Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: usergroups.php 2277 2006-09-27 10:26:56Z chris $
| * $Id: usergroups.php 2672 2007-01-27 01:46:48Z chris $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 205 | Zeile 205 |
---|
$success_text = sprintf($lang->leader_added, $usergroup['title']); }
|
$success_text = sprintf($lang->leader_added, $usergroup['title']); }
|
cpredirect("usergroups.php?".SID."&action=groupleaders&gid=".$mybb->input['gid'], $success_text);
| cpredirect("usergroups.php?".SID."&action=groupleaders&gid=".$mybb->input['gid'], $success_text);
|
}
if($mybb->input['action'] == "do_delete")
| }
if($mybb->input['action'] == "do_delete")
|
Zeile 213 | Zeile 213 |
---|
if($mybb->input['deletesubmit']) { $plugins->run_hooks("admin_usergroups_do_delete");
|
if($mybb->input['deletesubmit']) { $plugins->run_hooks("admin_usergroups_do_delete");
|
| $db->query("DELETE FROM ".TABLE_PREFIX."groupleaders WHERE gid='".intval($mybb->input['gid'])."'");
|
$db->query("DELETE FROM ".TABLE_PREFIX."usergroups WHERE gid='".intval($mybb->input['gid'])."' AND type!='1'"); $db->query("UPDATE ".TABLE_PREFIX."users SET usergroup='2' WHERE usergroup='".intval($mybb->input['gid'])."'"); $db->query("UPDATE ".TABLE_PREFIX."users SET displaygroup=usergroup WHERE displaygroup='".intval($mybb->input['gid'])."'");
| $db->query("DELETE FROM ".TABLE_PREFIX."usergroups WHERE gid='".intval($mybb->input['gid'])."' AND type!='1'"); $db->query("UPDATE ".TABLE_PREFIX."users SET usergroup='2' WHERE usergroup='".intval($mybb->input['gid'])."'"); $db->query("UPDATE ".TABLE_PREFIX."users SET displaygroup=usergroup WHERE displaygroup='".intval($mybb->input['gid'])."'");
|
Zeile 635 | Zeile 636 |
---|
if(is_array($uidin)) { $uids = implode(",", $uidin);
|
if(is_array($uidin)) { $uids = implode(",", $uidin);
|
$db->query("DELETE FROM ".TABLE_PREFIX."joinrequests WHERE uid IN($uids)");
| $db->query("DELETE FROM ".TABLE_PREFIX."joinrequests WHERE uid IN($uids) AND gid='{$mybb->input['gid']}'");
|
} cpredirect("usergroups.php?".SID, $lang->join_requests_moderated); }
| } cpredirect("usergroups.php?".SID, $lang->join_requests_moderated); }
|