PHP Classes
elePHPant
Icontem

File: index2.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  >  index2.php  >  Download  
File: index2.php
Role: Example script
Content type: text/plain
Description: User Code
Class: Navelo CMS
A complete Content Management System
Author: By
Last change:
Date: 10 years ago
Size: 1,452 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_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' );

$objects1 = array(
                   
'conf' => &$conf,
                   
'conn' => &$db,
                   
'tmpl1' => &$tmpl1,
                   
'tmpl2' => &$tmpl2,
                   
'form' => &$form
                  
);

$client = &new cLogicCMS( '', $objects1 );

$str = $client->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();
*/

?>