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