might just be me but is selecting everything from the usertable nessisary?
PHP Code:
$validateinfo = $DB_site->query_first("
SELECT user.*
FROM user
");
that will cause some slowups imo using something like:
PHP Code:
$validateinfo = $DB_site->query_first("
SELECT user.userid, user.username, user.membergroupids (example of rows you need, i dont know which ones these are so i put in some randoms.)
FROM user
WHERE user.userid = $userid
");
may be better