<?php
/**
* status : 1 - show
* 2 - hide
* 3 - approve
* 4 - first review (hold for authorization)
*/
/*
* How to get image in fckeditor
* <a href=\"javascript:getImage('$file');\">$file</a>
*
*/
error_reporting( E_ALL );
require_once( '../global.class.php' );
$tmpl1->template_dir = dirname( __FILE__ ) . '/tmpl/'; // Page template engine
$tmpl2->template_dir = dirname( __FILE__ ) . '/tmpl/'; // Form template engine
$conf->setConfigDir( dirname( __FILE__ ) . '/config/' ); // Config class
require_once( 'class.FormCMS.php' );
require_once( 'class.cDataCMS.php' );
require_once( 'class.cLogicCMS.php' );
require_once( 'class.cFormRatingActionCMS.php' );
require_once( 'class.cFormReviewActionCMS.php' );
require_once( 'class.aDataCMS.php' );
require_once( 'class.aFormAddActionCMS.php' );
require_once( 'class.aFormUpdateActionCMS.php' );
require_once( 'class.aFormDeleteActionCMS.php' );
require_once( 'class.aFormApproveActionCMS.php' );
require_once( 'class.aFormReviewActionCMS.php' );
require_once( 'class.aLogicCMS.php' );
require_once( 'function.acFormValidateCMS.php' );
$objects1 = array(
'conf' => &$conf,
'conn' => &$db,
'tmpl1' => &$tmpl1,
'tmpl2' => &$tmpl2,
'form' => &$form
);
$client = &new cLogicCMS( '', $objects1 );
$objects2 = array(
'conf' => &$conf,
'conn' => &$db,
'tmpl1' => &$tmpl1,
'tmpl2' => &$tmpl2,
'form' => &$form,
'client' => &$client
);
$admin = &new aLogicCMS( $objects2 );
$str = $admin->Execute( $_GET );
echo '<style type="text/css" rel="stylesheet">body {font-family: arial, font-size: 11px}</style>';
echo $str;
#################################################################################
/*
include('../libs/built/adodb/adodb-perf.inc.php');
$perf = NewPerfMonitor( $db );
echo $perf->SuspiciousSQL();
echo $perf->ExpensiveSQL();
*/
?>
|