Xtreme_Pokemaster
The Master Of Glitches
- 46
- Posts
- 21
- Years
- The Internet
- Seen Feb 16, 2004
well, with PHP i heard that you could make a left.php and make it so all the pages have that menu bar. I'm confused, how is it done?
<?php
$OK=$_GET['OK'];
include("$OK.php");
?>
<?php
/**************************** Content Starts Here ****************************************/
if(strstr($OK, "..") || $OK[0]=="/") $OK = "";
if(empty($OK)) $OK = "PAGE.php";
else { $OK = $OK. ".php"; }
if(is_file("$OK")){ include("$OK");
} else echo "<b>Error 404</b><br> The file has not been found";
/**************************** Content Ends Here ******************************************/
?>