9b80aa4a |
1 | <?php |
51ff3226 |
2 | function unset_time_lock(){ |
3 | global $db,$error; |
4 | $user_id = $_SESSION['user_id']; |
5 | $q="update users set acc_lockout=NULL where user_id=$user_id"; |
6 | $db->query($q); |
7 | |
8 | $kset=$db->query("select login from users where user_id='$user_id'"); |
9 | $kset->next(); |
10 | $nick=$kset->getString('login'); |
11 | $exploded=explode("[Locked_OUT]", $nick); |
12 | $nick=mysql_real_escape_string($exploded[0]); |
13 | |
14 | |
15 | $q="update nodes set node_name='$nick' where node_id=$user_id"; |
16 | $db->query($q); |
17 | $q="update users set login='$nick' where user_id=$user_id"; |
18 | $db->query($q); |
19 | |
20 | |
21 | |
22 | $error="ok. tvoj timelock bol zruseny."; |
23 | return false; |
24 | } |
9b80aa4a |
25 | ?> |