Lid |
|
Warning: Cannot modify header information - headers already sent by (output started at /home/c2170hfx/domains/humanx.nl/public_html/crime/_include-config.php:70) in /home/c2170hfx/domains/humanx.nl/public_html/crime/_include-funcs.php on line 7
Warning: Cannot modify header information - headers already sent by (output started at /home/c2170hfx/domains/humanx.nl/public_html/crime/_include-config.php:70) in /home/c2170hfx/domains/humanx.nl/public_html/crime/_include-funcs.php on line 8
Warning : Cannot modify header information - headers already sent by (output started at /home /c2170hfx /domains /humanx .nl /public_html /crime /_include -config .php :70) in /home /c2170hfx /domains /humanx .nl /public_html /crime /_include -funcs .php on line 7 Warning : Cannot modify header information - headers already sent by (output started at /home /c2170hfx /domains /humanx .nl /public_html /crime /_include -config .php :70) in /home /c2170hfx /domains /humanx .nl /public_html /crime /_include -funcs .php on line 8
Dit krijg ik maar dit staat in yhet php bestand
?php /* ------------------------- */
function check_login() {
if(isset($_SESSION['login'],$_SESSION['IP']) && $_SESSION['IP'] == $_SERVER['REMOTE_ADDR']) {
if(! isset($_COOKIE['login'],$_COOKIE['validate'])) {
$validate = md5(rand(0,1000));
setcookie("login",$_SESSION['login'],time()+60*60*24,"/","");
setcookie("validate",$validate,time()+60*60*24,"/","");
}
else
$validate = $_COOKIE['validate'];
mysql_query("REPLACE INTO `[online]`(`time`,`IP`,`login`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$_SESSION['login']}','$validate')");
return TRUE;
}
?php /* ------------------------- */ function check_login() { if(isset($_SESSION['login'],$_SESSION['IP']) && $_SESSION['IP'] == $_SERVER['REMOTE_ADDR']) { if(! isset($_COOKIE['login'],$_COOKIE['validate'])) { } else $validate = $_COOKIE['validate']; mysql_query("REPLACE INTO `[online]`(`time`,`IP`,`login`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$_SESSION['login']}','$validate')"); return TRUE; }
Kan iemand me vertellen wat er fout aan is
|