Vergleich admin/modules/user/module_meta.php - 1.8.5 - 1.8.21

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 14Zeile 14
	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


	die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");
}


 
/**
* @return bool true
*/

function user_meta()
{
global $page, $lang, $plugins;

$sub_menu = array();
$sub_menu['10'] = array("id" => "users", "title" => $lang->users, "link" => "index.php?module=user-users");

function user_meta()
{
global $page, $lang, $plugins;

$sub_menu = array();
$sub_menu['10'] = array("id" => "users", "title" => $lang->users, "link" => "index.php?module=user-users");

	$sub_menu['20'] = array("id" => "groups", "title" => $lang->groups, "link" => "index.php?module=user-groups");
$sub_menu['30'] = array("id" => "titles", "title" => $lang->user_titles, "link" => "index.php?module=user-titles");
$sub_menu['40'] = array("id" => "banning", "title" => $lang->banning, "link" => "index.php?module=user-banning");
$sub_menu['50'] = array("id" => "admin_permissions", "title" => $lang->admin_permissions, "link" => "index.php?module=user-admin_permissions");
$sub_menu['60'] = array("id" => "mass_mail", "title" => $lang->mass_mail, "link" => "index.php?module=user-mass_mail");
$sub_menu['70'] = array("id" => "group_promotions", "title" => $lang->group_promotions, "link" => "index.php?module=user-group_promotions");


	$sub_menu['20'] = array("id" => "awaiting_activation", "title" => $lang->awaiting_activation, "link" => "index.php?module=user-awaiting_activation");
$sub_menu['30'] = array("id" => "groups", "title" => $lang->groups, "link" => "index.php?module=user-groups");
$sub_menu['40'] = array("id" => "titles", "title" => $lang->user_titles, "link" => "index.php?module=user-titles");
$sub_menu['50'] = array("id" => "banning", "title" => $lang->banning, "link" => "index.php?module=user-banning");
$sub_menu['60'] = array("id" => "admin_permissions", "title" => $lang->admin_permissions, "link" => "index.php?module=user-admin_permissions");
$sub_menu['70'] = array("id" => "mass_mail", "title" => $lang->mass_mail, "link" => "index.php?module=user-mass_mail");
$sub_menu['80'] = array("id" => "group_promotions", "title" => $lang->group_promotions, "link" => "index.php?module=user-group_promotions");


$sub_menu = $plugins->run_hooks("admin_user_menu", $sub_menu);



$sub_menu = $plugins->run_hooks("admin_user_menu", $sub_menu);


Zeile 33Zeile 37
	return true;
}


	return true;
}


 
/**
* @param string $action
*
* @return string
*/

function user_action_handler($action)
{
global $page, $lang, $plugins;

function user_action_handler($action)
{
global $page, $lang, $plugins;

Zeile 40Zeile 49
	$page->active_module = "user";

$actions = array(

	$page->active_module = "user";

$actions = array(

 
		'awaiting_activation' => array('active' => 'awaiting_activation', 'file' => 'awaiting_activation.php'),

		'group_promotions' => array('active' => 'group_promotions', 'file' => 'group_promotions.php'),
'admin_permissions' => array('active' => 'admin_permissions', 'file' => 'admin_permissions.php'),
'titles' => array('active' => 'titles', 'file' => 'titles.php'),

		'group_promotions' => array('active' => 'group_promotions', 'file' => 'group_promotions.php'),
'admin_permissions' => array('active' => 'admin_permissions', 'file' => 'admin_permissions.php'),
'titles' => array('active' => 'titles', 'file' => 'titles.php'),

Zeile 63Zeile 73
	}
}


	}
}


 
/**
* @return array
*/

function user_admin_permissions()
{
global $lang, $plugins;

$admin_permissions = array(
"users" => $lang->can_manage_users,

function user_admin_permissions()
{
global $lang, $plugins;

$admin_permissions = array(
"users" => $lang->can_manage_users,

 
		"awaiting_activation" => $lang->can_manage_awaiting_activation,

		"groups" => $lang->can_manage_user_groups,
"titles" => $lang->can_manage_user_titles,
"banning" => $lang->can_manage_user_bans,

		"groups" => $lang->can_manage_user_groups,
"titles" => $lang->can_manage_user_titles,
"banning" => $lang->can_manage_user_bans,