24-12-2005, 19:48
|
|
|
חבר מתאריך: 26.06.05
הודעות: 36
|
|
בעיה בקוד מפנה
קוד PHP:
<? if (!defined("_Start_File_")) { define("_Start_File_",ture); include("./configs/constvars.php"); } include(libs."/Functions".exec); $from = getenv("HTTP_REFERER"); $domin = explode(".",$_SERVER['HTTP_HOST']); if (count($domin)==2){ $reg = "(http:\/\/|https:\/\/|)".$domin[0]."\.".$domin[1]; } elseif (count($domin)==3){ $reg = "(http:\/\/|https:\/\/|)".$domin[0]."\.".$domin[1]."\.".$domin[2]; } else { $reg = "(http:\/\/|https:\/\/|)".$domin[0]."\.".$domin[1]."\.".$domin[2]."\.".$domin[3]; } $reg.="\/TheSysWebs\/(admin\/|)(index\.php|)"; if (ereg($reg,$from)) { $_loc = $_REQUEST[loc]; if (base64_decode($_loc) == "admin") { redirection_url($_SERVER['HTTP_HOST']."/TheSysWebs/admin/ref.php".$_REQUEST[urlstx],2); } else {
} } else { die($from ." = ".$reg); }
הארור שלו הוא
Warning: ereg(): REG_EMPTY in /home/sivan/domains/sivan.mooo.com/public_html/TheSysWebs/ref.php on line 19
http://sivan.mooo.com/TheSysWebs/ = (http:\/\/|https:\/\/|)sivan\.mooo\.com\/TheSysWebs\/(admin\/|)(index\.php|)
ראשי לציין שאין לי מושג מה ואיפה
|