Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (isset($_COOKIE['unlogin']) and isset($_COOKIE['unpass']))
- {
- $unlogin = msg($_COOKIE['unlogin'])
- $unpass = msg($_COOKIE['uspass'])
- $user = base('SELECT * FROM `users` WHERE `login` = '.ex($_GET['login'].' and `pass` = '.ex($_GET['pass'].' LIMIT 1')[0];
- if (isset($user['id']) && $user['login'] != $uslogin or $user['pass'] != $uspass)
- {
- setcookie('uslogin', '', TIME - 86400 * 31);
- setcookie('uspass', '', TIME - 86400 * 31);
- }
- $vremja = TIME - $user['viz'];
- if ($vremja < 120)
- {
- $newtime = $user['login'] + $vremja;
- base('UPDATE `users` SET `online` = "'.$newtime.'" WHERE `id` = "'.$user['id'].'"');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement