Change your $page variable to something else.... like $pg.
Quote:
Originally Posted by Freakpyromaniac
The script is working fine, thanks!
But i still have one problem!
It disabled another script which i was using in the website:
PHP Code:
<?PHP
function checkPage($page) {
//Controle
if($page=="index") return false;
$page.=".php";
return file_exists($page);
}
$page=$_GET['page'];
if(!isset($page) || empty($page)) $page="nl/home";
if(checkPage($page)) include($page.".php");
?>
it is just a page script,but not working anymore when i put:
PHP Code:
<?php
chdir("../../HTML/testforum/");
include('./vBExternal.php');
?>
in the head of the index.
Anybody know the reason, and has a solution?
|