Guest User

Untitled

a guest
Jan 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. 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
  2.  
  3. if ($user_auth) {
  4. //Если такой юзер имеется в нашей базе, то обновляем его инфу у нас на сайте
  5. $hash = md5($user['identity']."_".$user['first_name'].(rand(1,99999)/time()));
  6. $db->query("UPDATE `users` SET `name`='".$user['first_name']."+' '+".$user['last_name'].",`hash`='".$hash."' WHERE `uid`='".$user['identity']."'");
  7.  
  8.  
  9. $login = $user['identity'];
  10. $_SESSION['uid'] = $login;
  11. header('Location: http://'.$_SERVER['HTTP_HOST']); - 17 строка
Add Comment
Please, Sign In to add comment