This is just a check to make sure you cant delete groups by accident that are suppose to be there
Now note this is only if your trying to delete something you should not
You only have a delete link is if its an internal install
if ($Globals['vbversion'] == "sellerspost" ) {
$addhtml = "<span class=\"{$Style['medium']}\"><b>(<a href=\"{$Globals['maindir']}/adm-misc.php?admact=usergroups&ppaction=usergroups&do=add\">Add a New
Usergroup</a>)</b></span>";
}
else {
$addhtml = "<span class=\"{$Style['medium']}\"><b>(<a
href=\"{$Globals['maindir']}/adm-misc.php?admact=usergroups&ppaction=usergroups&do=refresh-
vb\">Refresh usergroups from your forum software?</a>)</b></span>";
}
So your issue is real simply here. You may not delete a usergroup on a classifieds install that is a default group. You can delete extra ones you add. Hense the restriction of
if ($Globals['vbversion'] == "sellerspost") {
if ($usergroupid < 6) {
diewell("You can't delete this usergroup.");
}
}