Vergleich admin/inc/class_page.php - 1.6.1 - 1.6.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: class_page.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id: class_page.php 5620 2011-09-26 18:23:52Z ralgith $

 */

/*

 */

/*

Zeile 119Zeile 119
		echo "<body>\n";
echo "<div id=\"container\">\n";
echo " <div id=\"logo\"><h1><span class=\"invisible\">{$lang->mybb_admin_cp}</span></h1></div>\n";

		echo "<body>\n";
echo "<div id=\"container\">\n";
echo " <div id=\"logo\"><h1><span class=\"invisible\">{$lang->mybb_admin_cp}</span></h1></div>\n";

		echo "	<div id=\"welcome\"><span class=\"logged_in_as\">{$lang->logged_in_as} <a href=\"index.php?module=user-users&amp;action=edit&amp;uid={$mybb->user['uid']}\" class=\"username\">{$mybb->user['username']}</a></span> | <a href=\"{$mybb->settings['bburl']}\" target=\"_blank\" class=\"forum\">{$lang->view_board}</a> | <a href=\"index.php?action=logout\" class=\"logout\">{$lang->logout}</a></div>\n";

		echo "	<div id=\"welcome\"><span class=\"logged_in_as\">{$lang->logged_in_as} <a href=\"index.php?module=user-users&amp;action=edit&amp;uid={$mybb->user['uid']}\" class=\"username\">{$mybb->user['username']}</a></span> | <a href=\"{$mybb->settings['bburl']}\" target=\"_blank\" class=\"forum\">{$lang->view_board}</a> | <a href=\"index.php?action=logout&amp;my_post_key={$mybb->post_code}\" class=\"logout\">{$lang->logout}</a></div>\n";

		echo $this->_build_menu();
echo " <div id=\"page\">\n";
echo " <div id=\"left_menu\">\n";

		echo $this->_build_menu();
echo " <div id=\"page\">\n";
echo " <div id=\"left_menu\">\n";

Zeile 370Zeile 370
		if($_SERVER['QUERY_STRING'])
{
$query_string = '?'.preg_replace('#adminsid=(.{32})#i', '', $_SERVER['QUERY_STRING']);

		if($_SERVER['QUERY_STRING'])
{
$query_string = '?'.preg_replace('#adminsid=(.{32})#i', '', $_SERVER['QUERY_STRING']);

 
			$query_string = preg_replace('#my_post_key=(.{32})#i', '', $query_string);

			$query_string = str_replace('action=logout', '', $query_string);
$query_string = preg_replace('#&+#', '&', $query_string);
$query_string = str_replace('?&', '?', $query_string);

			$query_string = str_replace('action=logout', '', $query_string);
$query_string = preg_replace('#&+#', '&', $query_string);
$query_string = str_replace('?&', '?', $query_string);

Zeile 606Zeile 607
	function output_tab_control($tabs=array(), $observe_onload=true, $id="tabs")
{
global $plugins;

	function output_tab_control($tabs=array(), $observe_onload=true, $id="tabs")
{
global $plugins;

		$plugins->run_hooks_by_ref("admin_page_output_tab_control_start", $tabs);

		$tabs = $plugins->run_hooks("admin_page_output_tab_control_start", $tabs);

		echo "<script type=\"text/javascript\">\n";
if($observe_onload)
{

		echo "<script type=\"text/javascript\">\n";
if($observe_onload)
{

Zeile 651Zeile 652
	function output_nav_tabs($tabs=array(), $active='')
{
global $plugins;

	function output_nav_tabs($tabs=array(), $active='')
{
global $plugins;

		$plugins->run_hooks_by_ref("admin_page_output_nav_tabs_start", $tabs);

		$tabs = $plugins->run_hooks("admin_page_output_nav_tabs_start", $tabs);

		echo "<div class=\"nav_tabs\">";
echo "\t<ul>\n";
foreach($tabs as $id => $tab)

		echo "<div class=\"nav_tabs\">";
echo "\t<ul>\n";
foreach($tabs as $id => $tab)

Zeile 769Zeile 770
	 */
function add_menu_items($items, $active)
{

	 */
function add_menu_items($items, $active)
{

 
		global $run_module;


		$this->_contents = "<ul class=\"menu\">";
foreach($items as $item)
{

		$this->_contents = "<ul class=\"menu\">";
foreach($items as $item)
{

 
			if(!check_admin_permissions(array("module" => $run_module, "action" => $item['id']), false))
{
continue;
}


			$class = "";
if($item['id'] == $active)
{

			$class = "";
if($item['id'] == $active)
{