Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning: Cannot modify header information - headers already sent by (output started at /home/host1268570/dpstore.info/htdocs/www/index.php:37) in /home/host1268570/dpstore.info/htdocs/www/pages/auth.php on line 17
- if ($user_auth) {
- //Если такой юзер имеется в нашей базе, то обновляем его инфу у нас на сайте
- $hash = md5($user['identity']."_".$user['first_name'].(rand(1,99999)/time()));
- $db->query("UPDATE `users` SET `name`='".$user['first_name']."+' '+".$user['last_name'].",`hash`='".$hash."' WHERE `uid`='".$user['identity']."'");
- $login = $user['identity'];
- $_SESSION['uid'] = $login;
- header('Location: http://'.$_SERVER['HTTP_HOST']); - 17 строка
Add Comment
Please, Sign In to add comment