
01-08-2009, 04:25 PM
|
|
|
Join Date: Jun 2008
Posts: 305
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Dismounted
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('THIS_SCRIPT', 'test');
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array();
// get special data templates from the datastore
$specialtemplates = array();
// pre-cache templates used by all actions
$globaltemplates = array(
'news'
);
// pre-cache templates used by specific actions
$actiontemplates = array(
'run' => array(
'TEST'
)
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'Test Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
if ($_GET['do'] == 'run')
{
eval('print_output("' . fetch_template('TEST') . '");');
}
else
{
eval('print_output("' . fetch_template('news') . '");');
}
?>
|
It works perfect!
Thank you.
|