Vergleich admin/modules/config/module_meta.php - 1.8.2 - 1.8.38

  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 config_meta()
{
global $page, $lang, $plugins;

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

Zeile 36Zeile 39
	$sub_menu['150'] = array("id" => "warning", "title" => $lang->warning_system, "link" => "index.php?module=config-warning");
$sub_menu['160'] = array("id" => "thread_prefixes", "title" => $lang->thread_prefixes, "link" => "index.php?module=config-thread_prefixes");
$sub_menu['170'] = array("id" => "questions", "title" => $lang->security_questions, "link" => "index.php?module=config-questions");

	$sub_menu['150'] = array("id" => "warning", "title" => $lang->warning_system, "link" => "index.php?module=config-warning");
$sub_menu['160'] = array("id" => "thread_prefixes", "title" => $lang->thread_prefixes, "link" => "index.php?module=config-thread_prefixes");
$sub_menu['170'] = array("id" => "questions", "title" => $lang->security_questions, "link" => "index.php?module=config-questions");

 
	$sub_menu['180'] = array("id" => "report_reasons", "title" => $lang->report_reasons, "link" => "index.php?module=config-report_reasons");


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



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


Zeile 44Zeile 48
	return true;
}


	return true;
}


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

function config_action_handler($action)
{
global $page, $plugins;

function config_action_handler($action)
{
global $page, $plugins;

Zeile 67Zeile 76
		'mycode' => array('active' => 'mycode', 'file' => 'mycode.php'),
'settings' => array('active' => 'settings', 'file' => 'settings.php'),
'thread_prefixes' => array('active' => 'thread_prefixes', 'file' => 'thread_prefixes.php'),

		'mycode' => array('active' => 'mycode', 'file' => 'mycode.php'),
'settings' => array('active' => 'settings', 'file' => 'settings.php'),
'thread_prefixes' => array('active' => 'thread_prefixes', 'file' => 'thread_prefixes.php'),

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


		'questions' => array('active' => 'questions', 'file' => 'questions.php'),
'report_reasons' => array('active' => 'report_reasons', 'file' => 'report_reasons.php')

	);

$actions = $plugins->run_hooks("admin_config_action_handler", $actions);

	);

$actions = $plugins->run_hooks("admin_config_action_handler", $actions);

Zeile 84Zeile 94
	}
}


	}
}


 
/**
* @return array
*/

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

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

Zeile 105Zeile 118
		"warning" => $lang->can_manage_warning_system,
"mod_tools" => $lang->can_manage_mod_tools,
"thread_prefixes" => $lang->can_manage_thread_prefixes,

		"warning" => $lang->can_manage_warning_system,
"mod_tools" => $lang->can_manage_mod_tools,
"thread_prefixes" => $lang->can_manage_thread_prefixes,

		"questions" => $lang->can_manage_security_questions


		"questions" => $lang->can_manage_security_questions,
"report_reasons" => $lang->can_manage_report_reasons

	);

$admin_permissions = $plugins->run_hooks("admin_config_permissions", $admin_permissions);

	);

$admin_permissions = $plugins->run_hooks("admin_config_permissions", $admin_permissions);