<?php
/*
*(c) 2003 christoph althammer hide@address.com
* http://www.milpa.de
*
* GNU GENERAL PUBLIC LICENSE
* die deutsche Übersetzung der GPL ist zu finden auf www.suse.org.
*
* auth: c. althammer
* date: 2003-02-12
* lc : 2003-02-12
* comm: template
*
*
*/
class Inc extends Template {}
class Template {
/*
* YOU ARE NOT ALLOWED TO MODIFY COPYRIGHT INFORMATION
*
*/
function Template($TemplateFile,$Obj){
if (!empty($TemplateFile)) {
$Config = new Parameters();
$Inc = $Config->PathTemplates.$TemplateFile;
$NName = explode(".",$TemplateFile);
$NName = $NName[0].":".$NName[1].":".$NName[2];
new Debug("AFW 1.4 copyright2003 http://www.milpa.de: Include Template $Inc","Template");
new Comment("AFW 1.4 copyright2003 http://www.milpa.de: Include:$NName Begin");
require("$Inc");
new Comment("AFW 1.4 copyright2003 http://www.milpa.de: Include:$NName End");
return true;
}else {
new Error("AFW 1.4 copyright2003 http://www.milpa.de: Include Template $Inc failed!","Template");
return false;
}
}
/*
* YOU ARE NOT ALLOWED TO MODIFY COPYRIGHT INFORMATION
*
*/
function Inc($TemplateFile,$Obj){
if (!empty($TemplateFile)) {
$Config = new Parameters();
$Inc = $Config->PathTemplates.$TemplateFile;
$NName = explode(".",$TemplateFile);
$NName = $NName[0].$NName[1];
new Debug("AFW 1.4 copyright2003 http://www.milpa.de: Include Uncommented $Inc","Template");
require("$Inc");
return true;
}else {
new Error("AFW 1.4 copyright2003 http://www.milpa.de: Include Inc $Inc failed!","Template");
return false;
}
}
}
/* end of class */
class PageHeader {
var $Config = "";
function PageHeader($HeaderFile="", $MenuState=""){
$this->Config = new Parameters();
if (empty($HeaderFile)) $HeaderFile = $this->Config->DefaultHeaderFile;
new Template($HeaderFile,$this);
return true;
}
}
?>