Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: managegroup.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id$
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'managegroup.php');
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'managegroup.php');
|
$templatelist = "managegroup_leaders_bit, managegroup_leaders, postbit_pm, postbit_email, managegroup_user_checkbox, managegroup_user, managegroup_adduser, managegroup_removeusers, managegroup,managegroup_joinrequests_request, managegroup_joinrequests";
| $templatelist = "managegroup_leaders_bit,managegroup_leaders,postbit_pm,postbit_email,managegroup_user_checkbox,managegroup_user,managegroup_adduser,managegroup_removeusers,managegroup,managegroup_joinrequests_request,managegroup_joinrequests"; $templatelist .= ",managegroup_requestnote,managegroup_no_users,multipage_prevpage,multipage_start,multipage_page_current,multipage_page,multipage_end,multipage_nextpage,multipage";
|
require_once "./global.php";
| require_once "./global.php";
|
Zeile 25 | Zeile 26 |
---|
{ error($lang->invalid_group); }
|
{ error($lang->invalid_group); }
|
$lang->nav_group_management = $lang->sprintf($lang->nav_group_management, $usergroup['title']);
| $lang->nav_group_management = $lang->sprintf($lang->nav_group_management, htmlspecialchars_uni($usergroup['title']));
|
add_breadcrumb($lang->nav_group_memberships, "usercp.php?action=usergroups"); add_breadcrumb($lang->nav_group_management, "managegroup.php?gid=$gid");
| add_breadcrumb($lang->nav_group_memberships, "usercp.php?action=usergroups"); add_breadcrumb($lang->nav_group_management, "managegroup.php?gid=$gid");
|
Zeile 59 | Zeile 60 |
---|
if ($user['usergroup'] != $gid && !in_array($gid, $additionalgroups)) { join_usergroup($user['uid'], $gid);
|
if ($user['usergroup'] != $gid && !in_array($gid, $additionalgroups)) { join_usergroup($user['uid'], $gid);
|
| $db->delete_query("joinrequests", "uid='{$user['uid']}' AND gid='{$gid}'");
|
redirect("managegroup.php?gid=".$gid, $lang->user_added); } else
| redirect("managegroup.php?gid=".$gid, $lang->user_added); } else
|
Zeile 106 | Zeile 108 |
---|
$plugins->run_hooks("managegroup_do_joinrequests_end");
|
$plugins->run_hooks("managegroup_do_joinrequests_end");
|
redirect("usercp.php?action=usergroups", $lang->join_requests_moderated);
| redirect("managegroup.php?gid={$gid}", $lang->join_requests_moderated);
|
} elseif($mybb->input['action'] == "joinrequests") {
| } elseif($mybb->input['action'] == "joinrequests") {
|
Zeile 132 | Zeile 134 |
---|
{ error($lang->no_requests); }
|
{ error($lang->no_requests); }
|
$lang->join_requests = $lang->sprintf($lang->join_requests_title,htmlspecialchars_uni($usergroup['title']));
| $lang->join_requests = $lang->sprintf($lang->join_requests_title, htmlspecialchars_uni($usergroup['title']));
|
$plugins->run_hooks("managegroup_joinrequests_end");
| $plugins->run_hooks("managegroup_joinrequests_end");
|
Zeile 165 | Zeile 167 |
---|
$plugins->run_hooks("managegroup_do_manageusers_end");
|
$plugins->run_hooks("managegroup_do_manageusers_end");
|
redirect("usercp.php?action=usergroups", $lang->users_removed);
| redirect("managegroup.php?gid={$gid}", $lang->users_removed);
|
} else { $plugins->run_hooks("managegroup_start");
|
} else { $plugins->run_hooks("managegroup_start");
|
$lang->members_of = $lang->sprintf($lang->members_of, $usergroup['title']); $lang->add_member = $lang->sprintf($lang->add_member, $usergroup['title']);
| $lang->members_of = $lang->sprintf($lang->members_of, htmlspecialchars_uni($usergroup['title'])); $lang->add_member = $lang->sprintf($lang->add_member, htmlspecialchars_uni($usergroup['title']));
|
if($usergroup['type'] == 4) { $query = $db->simple_select("joinrequests", "COUNT(*) AS req", "gid='".$mybb->input['gid']."'");
| if($usergroup['type'] == 4) { $query = $db->simple_select("joinrequests", "COUNT(*) AS req", "gid='".$mybb->input['gid']."'");
|
Zeile 297 | Zeile 299 |
---|
}
eval("\$users .= \"".$templates->get("managegroup_user")."\";");
|
}
eval("\$users .= \"".$templates->get("managegroup_user")."\";");
|
| }
if(!$users) { eval("\$users = \"".$templates->get("managegroup_no_users")."\";");
|
}
$add_user = '';
| }
$add_user = '';
|