2005-05-17 19:51:41 +00:00
|
|
|
<?php
|
|
|
|
require_once ("./libs.inc.php");
|
|
|
|
|
2005-06-15 13:39:02 +00:00
|
|
|
$page = "index";
|
|
|
|
if ($_GET['page'])
|
|
|
|
$page = $_GET['page'];
|
|
|
|
|
|
|
|
#echo "page is $page";
|
2005-05-17 19:51:41 +00:00
|
|
|
/* Meh! this is a stupid hack because the stupid template system
|
|
|
|
doesn't like the { } in policy statements */
|
|
|
|
$smarty->left_delimiter = '<!--{';
|
|
|
|
$body = @$smarty->fetch("$page.html");
|
|
|
|
$smarty->left_delimiter = '{';
|
|
|
|
|
|
|
|
if ($body == NULL)
|
|
|
|
$body = @$smarty->fetch("index.html");
|
|
|
|
|
|
|
|
$smarty->assign("body", $body);
|
|
|
|
|
|
|
|
$smarty->display ("outer.html");
|
|
|
|
|
|
|
|
?>
|