last step:
in profile.php
FIND :
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
BEFORE ADD :
// team hack
if ($options['removeme'] = 1 ) {
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
SET teamid='0',teamadmin='0'
WHERE userid='$bbuserinfo[userid]'
");
}
however, there're alot of places has
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
where should I add the code?
|