Okay, here's what I did to prevent theives from stealing from mods/admins. Never posted anything I hacked up, so hopefully this is the right format...
In /uttstore/action.theif.php find:
PHP Code:
$thefted = $DB_site->query_first("SELECT userid, username, ".$vboptions['uttpoints_pointsfield']." AS points FROM ".TABLE_PREFIX."user WHERE ".$field."='".addslashes($data)."'");
REPLACE it with:
PHP Code:
$thefted = $DB_site->query_first("SELECT userid, usergroupid, username, ".$vboptions['uttpoints_pointsfield']." AS points FROM ".TABLE_PREFIX."user WHERE ".$field."='".addslashes($data)."'");
find:
PHP Code:
if (!isset($thefted['userid'])) {
$message = "User does not exist.";
uttstore_print_end_message($message);
}
ADD underneath:
PHP Code:
if ($thefted[usergroupid]==6 || $thefted[usergroupid]==7) {
$message = "Cannot steal from staff, asshat. You have been banned.";
uttstore_print_end_message($message);
}
Change the message to whatever you want, the script doesn't really ban them for that. I just thought it was funny.
This will prevent anyone from stealing from mods or admins.
|