Vergleich admin/modules/home/module_meta.php - 1.8.5 - 1.8.6

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

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

Zeile 30Zeile 33
	return true;
}


	return true;
}


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

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

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

Zeile 58Zeile 66
	{
// Quick Access
$sub_menu = array();

	{
// Quick Access
$sub_menu = array();

		$sub_menu['10'] = array("id" => "add_forum", "title" => $lang->add_new_forum, "link" => "index.php?module=forum-management&action=add");
$sub_menu['20'] = array("id" => "search", "title" => $lang->search_for_users, "link" => "index.php?module=user-users&action=search");
$sub_menu['30'] = array("id" => "themes", "title" => $lang->themes, "link" => "index.php?module=style-themes");
$sub_menu['40'] = array("id" => "templates", "title" => $lang->templates, "link" => "index.php?module=style-templates");
$sub_menu['50'] = array("id" => "plugins", "title" => $lang->plugins, "link" => "index.php?module=config-plugins");
$sub_menu['60'] = array("id" => "backupdb", "title" => $lang->database_backups, "link" => "index.php?module=tools-backupdb");

		$sub_menu['10'] = array("id" => "add_forum", "title" => $lang->add_new_forum, "link" => "index.php?module=forum-management&action=add", "module" => "forum", "action" => "management");
$sub_menu['20'] = array("id" => "search", "title" => $lang->search_for_users, "link" => "index.php?module=user-users&action=search", "module" => "user", "action" => "users");
$sub_menu['30'] = array("id" => "themes", "title" => $lang->themes, "link" => "index.php?module=style-themes", "module" => "style", "action" => "themes");
$sub_menu['40'] = array("id" => "templates", "title" => $lang->templates, "link" => "index.php?module=style-templates", "module" => "style", "action" => "templates");
$sub_menu['50'] = array("id" => "plugins", "title" => $lang->plugins, "link" => "index.php?module=config-plugins", "module" => "config", "action" => "plugins");
$sub_menu['60'] = array("id" => "backupdb", "title" => $lang->database_backups, "link" => "index.php?module=tools-backupdb", "module" => "tools", "action" => "backupdb");





 
		foreach($sub_menu as $id => $sub)
{
if(!check_admin_permissions(array("module" => $sub['module'], "action" => $sub['action']), false))
{
unset($sub_menu[$id]);
}
}


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

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


$sidebar = new SidebarItem($lang->quick_access);
$sidebar->add_menu_items($sub_menu, $page->active_action);

$page->sidebar .= $sidebar->get_markup();



		
if(!empty($sub_menu))
{
$sidebar = new SidebarItem($lang->quick_access);
$sidebar->add_menu_items($sub_menu, $page->active_action);
$page->sidebar .= $sidebar->get_markup();
}


// Online Administrators in the last 30 minutes
$timecut = TIME_NOW-60*30;


// Online Administrators in the last 30 minutes
$timecut = TIME_NOW-60*30;