get_image_link fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / unset_time_lock.inc
CommitLineData
9b80aa4a 1<?php
51ff3226 2function unset_time_lock(){
3global $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.";
23return false;
24}
9b80aa4a 25?>
This page took 1.03587 seconds and 4 git commands to generate.