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");
?>Code: Select all
Moderator: General Moderators
Code: Select all
<?php
if(empty($page))
$page="index";
include("templates/".$page.".html");
?>Code: Select all
Code: Select all
<?php
if(empty($page))
$page="index";
include("templates/".$page.".html");
if (!function_exists('template_entry'))
die($page.': invalid template');
?>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.");");
}
?>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
}
?>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
}
?>