vertel het mij please

Code: Selecteer alles
[OPEN FILE]
includes/page_header.php
[FIND]
// We have a nested array, used for items like <link rel='chapter'> that can occur more than once.
while( list(,$nested_array) = each($nav_array) )
{
$nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);
}
}
}
[AFTER, ADD]
// Random Var Mod
// Defining the random vars
$ranvar['no1'] ='';
$ranvar['no2'] ='';
$ranvar['no3'] ='';
$ranvar['no4'] ='';
$ranvar['no5'] ='';
// You can add more if you want to, just copy and change the number
// Don't forget to add it at the random generation too!
// Random Var Mod
[FIND]
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
//
$template->assign_vars(array(
[AFTER, ADD]
// Random Var Mod
// Randomizing the variable
srand((double)microtime()1000000);
$bnrb=rand(1,5);
if ($bnrb == 1) {'RANVAR' => $ranvar['no1'],}
elseif ($bnrb == 2) {'RANVAR' => $ranvar['no2'],}
elseif ($bnrb == 3) {'RANVAR' => $ranvar['no3'],}
elseif ($bnrb == 4) {'RANVAR' => $ranvar['no4'],}
elseif ($bnrb == 5) {'RANVAR' => $ranvar['no5'],}
// You can add more if you want to, just copy and change the number
// If you add more you should change the generation of bnrb as well
// Don't forget to define the new ranvar above!
// Random Var Mod
[OPEN FILE]
templates/*/*.tpl
[NOTE]
Make sure you edit every template! (1st *)
Do this for any tpl file you want. (2nd *)
[ADD]
{RANVAR}
[NOTE]
Add the variable anywhere you want the random thing to appear
[SAVE/UPLOAD]
EoM