Chris PeBenito 696b41
Chris PeBenito 696b41
  require_once ("./libs.inc.php");
Chris PeBenito 696b41
 
Chris PeBenito 696b41
  if (!$_GET['page'])
Chris PeBenito 696b41
	$page == "index";
Chris PeBenito 696b41
  else 
Chris PeBenito 696b41
	$page == $_GET['page'];
Chris PeBenito 696b41
/* Meh! this is a stupid hack because the stupid template system 
Chris PeBenito 696b41
   doesn't like the { } in policy statements */
Chris PeBenito 696b41
  $smarty->left_delimiter = '
Chris PeBenito 696b41
  $body = @$smarty->fetch("$page.html");
Chris PeBenito 696b41
  $smarty->left_delimiter = '{';
Chris PeBenito 696b41
Chris PeBenito 696b41
  if ($body == NULL) 
Chris PeBenito 696b41
	$body = @$smarty->fetch("index.html");
Chris PeBenito 696b41
Chris PeBenito 696b41
  $smarty->assign("body", $body);
Chris PeBenito 696b41
  
Chris PeBenito 696b41
  $smarty->display ("outer.html");
Chris PeBenito 696b41
Chris PeBenito 696b41
?>