6,4 → 6,36 |
include_once('includes/functions.php'); |
include_once('includes/db.php'); |
|
$g_display = NULL; |
|
function Prolog() |
{ |
global $g_display; |
|
$g_display = new template_handler('template'); |
$g_display->add_template('header'); |
ShowMenu($g_display); |
} |
|
function ShowMenu($display) |
{ |
global $g_site_style, $g_site_title; |
|
$display->add_template('menu'); |
|
$display->add_variables(array( |
'AST_STYLESHEET' => $g_site_style, |
'AST_SITETITLE' => $g_site_title, |
'AST_DATETIME' => date('Y-m-d H:i:s'), |
)); |
} |
|
function Epilog() |
{ |
global $g_display; |
|
$g_display->add_template('footer'); |
echo $g_display; |
} |
|
?> |