0 OR ( isset($_COOKIE['username']) AND $_COOKIE['username'] == $_POST['username'] )) { $user_row = mysql_fetch_array($res); $_SESSION['login'] = $_POST['username']; $_SESSION['username'] = $user_row['name']; $_SESSION['usertype'] = $user_row['type']; if($_POST['savepass']==1) { setcookie('login', $_POST['username'], time()+2592000); setcookie('username', $user_row['name'], time()+2592000); setcookie('usertype', $user_row['type'], time()+2592000); } else { SetCookie('login',''); SetCookie('username',''); SetCookie('usertype',''); } /*if(!empty($_POST['referer'])) { if(!strstr(base64_decode($_POST['referer']),"login")) header('Location: '.base64_decode($_POST['referer'])); else header('Location: index.php'); } else*/ header('Location: index.php'); exit(); } } //echo ; ?> Терможаккард
Логин:
Пароль:
- запомнить пароль
Логин:
Пароль:
- запомнить пароль