wcf.regNote.message
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
<?
/* loadtpl läd ein Template, welches dann mit "showtpl" ausgegeben wird! */
function loadtpl($t,$endung="tpl",$tpl_folder="templates")
{
global $tpl_cache;
if (!file_exists($tpl_folder."/".$t.".".$endung)) echo ("Template existiert nicht.");
else
{
if (!$tpl_cache[$t])
{
if (!$tpl_folder) $tpl_folder = "templates";
$tpl_cache[$t]=implode ("",file($tpl_folder."/".$t.".".$endung));
}
return str_replace ("\"","\\\"",$tpl_cache[$t]);
}
}
/*
* function: showtpl
* params: template ($template)
* description: Gibt ein vorher mit "loadtpl" geladenes Template aus!ersetzt
* Template laden: eval("showtpl(\"".loadtpl("tpl")."\");");
* Variablen mit Template ersetzen: eval ("\$variable = \"".loadtpl("template")."\";");
*/
function showtpl($template)
{
// $template=str_replace("<stdfont>","<font face=\"verdana\" color=\"#000000\" size=\"-1\">);
echo $template;
}
?>
|
|
|
PHP Source code |
1 2 3 4 5 6 7 |
<?
require ("tpl_function.php");
eval ("\$cp_menue_left .= \"".loadtpl("cp_menue_left")."\";");
eval ("\$cp_menue_buttom .= \"".loadtpl("cp_menue_buttom")."\";");
?>
|
This post has been edited 1 times, last edit by "Killer0190" (May 6th 2005, 10:58am)
