Page 1 of 1
Can anyone start?
Posted: Wed Aug 28, 2002 5:38 pm
by ReDucTor
Can anyone start?
If so can we do this:
Maximum of
5 lines changing
The Aim is to get a full checking, with some sorta markup in there code..hehe
Code: Select all
<?php
if(empty($page))
$page="index";
include("templates/".$page.".html");
?>
Posted: Wed Aug 28, 2002 7:00 pm
by volka
Code: Select all
<?php
if(empty($page))
$page="index";
include("templates/".$page.".html");
if (!function_exists('template_entry'))
die($page.': invalid template');
?>
Posted: Thu Aug 29, 2002 1:04 am
by ReDucTor
Code: Select all
<?php
if(empty($page))
$page="index";
include("templates/".$page.".html");
if (!function_exists('template_entry'))
die($page.': invalid template');
function call_func($name,$args_str)
{ // Now we can do call_func('template_entry','')
if(function_exists($name))
eval($name."(".$args_str.");");
}
?>
Posted: Tue Sep 03, 2002 12:34 am
by volka
Code: Select all
<?php
if(empty($page))
$page="index";
include("templates/".$page.".html");
if (!function_exists('template_entry'))
die($page.': invalid template');
function call_func($name,$args_str)
{ // Now we can do call_func('template_entry','')
if(function_exists($name))
{
eval($name."(".$args_str.");");
return TRUE;
}
else
return FALSE; // some might to know
}
?>
Posted: Tue Sep 03, 2002 1:41 am
by ReDucTor
Code: Select all
<?php
if(empty($page))
$page="index";
if(!file_exists("templates/".$page.".html"))
$page="missing";
include("templates/".$page.".html");
if (!function_exists('template_entry'))
die($page.': invalid template');
function call_func($name,$args_str)
{ // Now we can do call_func('template_entry','')
if(function_exists($name))
{
eval($name."(".$args_str.");");
return TRUE;
}
else
return FALSE; // some might to know
}
?>