Выдает ошибку!
Fatal error: Call to undefined function head() in C:\home\cms\www\moduls\system\enter.php on line 51
Вот код, не весь!
}else{
$usid = abs(intval(mysql_result(mysql_query("SELECT id FROM users WHERE login='$login' && pass='$mdpass' LIMIT 1"), 0)));
if(!empty($_POST['save'])){
$uid = base64_encode($usid);
$upass = base64_encode(md5($pass).$login.md5($pass));
setcookie('mmd', $uid, time() + 3600 * 24 * 365, "/");
setcookie('mms', $upass, time() + 3600 * 24 * 365, "/");
}
$_SESSION['auth'] = TRUE;
$_SESSION['id'] = $usid;
head("Location: /index.php");
}
break;