Friend request error?

Cronus

Cerberus Founder/Developer
Jul 19, 2013
449
25
Hello,

after awhile the users if they accept friend request it will disconnect


i am using ubercms and fixs?
 

XenonR

Active Member
Mar 22, 2013
102
16
Go to your class.users.php file and find:
PHP:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gend er,motto,credits,activity_points,last_online,accou nt_created,ip_reg) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','','" . date('d-M-Y') . "','". $_SERVER['REMOTE_ADDR'] . "')");

And replace all of that with:
PHP:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gend er,motto,credits,activity_points,last_online,accou nt_created,ip_reg) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','', UNIX_TIMESTAMP() ,'" .$_SERVER['REMOTE_ADDR'] . "')");

When you've done that, run this into your database:
PHP:
update users set last_online = UNIX_TIMESTAMP();

This should fix it, if not I don't know.
 

Users who are viewing this thread

Top