php gdzie ten glupi blad
: śr mar 04, 2009 7:28 pm
Kod: Zaznacz cały
if(basename($_SERVER['PHP_SELF']) == 'tenplik.php'){
header('Location: http://'.$_SERVER['SERVER_NAME']);
}
function test(){
$serv = 'jakasdomena.com';
$serve = 'http://'.$serv.'/';
$dlugosc = strlen($serve);
$refere = substr($_SERVER['HTTP_REFERER'], 0, $dlugosc);
if (($GLOBALS['access'] !== TRUE) || ($serve !== $refere) || (!isset($_GET['id'])){
return FALSE;
} else {
return TRUE;
}
}