Login   Register  
PHP Classes
elePHPant
Icontem

File: index1.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of invitro  >  Navelo CMS  >  index1.php  >  Download  
File: index1.php
Role: Example script
Content type: text/plain
Description: Admin Code
Class: Navelo CMS
A complete Content Management System
Author: By
Last change:
Date: 9 years ago
Size: 1,987 bytes
 

Contents

Class file image Download
<?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_reportingE_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->setConfigDirdirname__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();
*/

?>