require_once($module);
واضف فوقه
$url1 = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; $url2 = "http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']; $url2 = str_replace('index.php', '', $url2 ); if($url1 == $url2) { @header("Location: index.php?page=portal"); exit; }