Vergleich admin/inc/class_page.php - 1.6.9 - 1.6.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 54Zeile 54
	 * @var string Any additional information to add between the <head> tags.
*/
public $extra_header = "";

	 * @var string Any additional information to add between the <head> tags.
*/
public $extra_header = "";

 

/**
* @var string Show a post verify error
*/
public $show_post_verify_error = '';


/**
* Output the page header.


/**
* Output the page header.

Zeile 154Zeile 159
		global $mybb, $maintimer, $db, $lang, $plugins;

$plugins->run_hooks("admin_page_output_footer");

		global $mybb, $maintimer, $db, $lang, $plugins;

$plugins->run_hooks("admin_page_output_footer");

		
$memory_usage = $lang->na;
if(function_exists("memory_get_usage"))
{
$memory_usage = get_friendly_size(memory_get_peak_usage(true));
}


$memory_usage = get_friendly_size(get_memory_usage());





		
$totaltime = $maintimer->stop();
$querycount = $db->query_count;
echo " </div>\n";
echo " </div>\n";

		
$totaltime = $maintimer->stop();
$querycount = $db->query_count;
echo " </div>\n";
echo " </div>\n";

		echo "	<br style=\"clear: both;\" />";

		echo "	<br style=\"clear: both;\" />";

		echo "	<br style=\"clear: both;\" />";
echo " </div>\n";
echo "<div id=\"footer\"><p class=\"generation\">".$lang->sprintf($lang->generated_in, $totaltime, $querycount, $memory_usage)."</p><p class=\"powered\">Powered By MyBB. &copy; ".COPY_YEAR." MyBB Group. All Rights Reserved.</p></div>\n";
if($mybb->debug_mode)
{
echo $db->explain;

		echo "	<br style=\"clear: both;\" />";
echo " </div>\n";
echo "<div id=\"footer\"><p class=\"generation\">".$lang->sprintf($lang->generated_in, $totaltime, $querycount, $memory_usage)."</p><p class=\"powered\">Powered By MyBB. &copy; ".COPY_YEAR." MyBB Group. All Rights Reserved.</p></div>\n";
if($mybb->debug_mode)
{
echo $db->explain;

		}

		}

		echo "</div>\n";
echo "</body>\n";
echo "</html>\n";

		echo "</div>\n";
echo "</body>\n";
echo "</html>\n";

Zeile 206Zeile 207
		$trail = "";
foreach($this->_breadcrumb_trail as $key => $crumb)
{

		$trail = "";
foreach($this->_breadcrumb_trail as $key => $crumb)
{

			if($this->_breadcrumb_trail[$key+1])
{

			if(isset($this->_breadcrumb_trail[$key+1]))
{

				$trail .= "<a href=\"".$crumb['url']."\">".$crumb['name']."</a>";

				$trail .= "<a href=\"".$crumb['url']."\">".$crumb['name']."</a>";

				if($this->_breadcrumb_trail[$key+2])

				if(isset($this->_breadcrumb_trail[$key+2]))

				{
$trail .= " &raquo; ";
}
}
else

				{
$trail .= " &raquo; ";
}
}
else

			{

			{

				$trail .= "<span class=\"active\">".$crumb['name']."</span>";
}
}

				$trail .= "<span class=\"active\">".$crumb['name']."</span>";
}
}

Zeile 224Zeile 225
	
/**
* Output a success message.

	
/**
* Output a success message.

	 *

	 *

	 * @param string The message to output.
*/
function output_success($message)

	 * @param string The message to output.
*/
function output_success($message)

Zeile 243Zeile 244
		if($id)
{
$id = " id=\"{$id}\"";

		if($id)
{
$id = " id=\"{$id}\"";

		}

		}

		echo "<div class=\"alert\"{$id}>{$message}</div>\n";
}


		echo "<div class=\"alert\"{$id}>{$message}</div>\n";
}


Zeile 281Zeile 282
		if(!is_array($errors))
{
$errors = array($errors);

		if(!is_array($errors))
{
$errors = array($errors);

		}

		}

		echo "<div class=\"error\">\n";
echo "<p><em>{$lang->encountered_errors}</em></p>\n";
echo "<ul>\n";

		echo "<div class=\"error\">\n";
echo "<p><em>{$lang->encountered_errors}</em></p>\n";
echo "<ul>\n";

Zeile 291Zeile 292
		}
echo "</ul>\n";
echo "</div>\n";

		}
echo "</ul>\n";
echo "</div>\n";

	}


	}



/**
* Generate the login page.


/**
* Generate the login page.

Zeile 310Zeile 311
		$login_label_width = "";

// If the language string for "Username" is too cramped then use this to define how much larger you want the gap to be (in px)

		$login_label_width = "";

// If the language string for "Username" is too cramped then use this to define how much larger you want the gap to be (in px)

		if($lang->login_field_width)

		if(isset($lang->login_field_width))

        {
$login_label_width = " style=\"width: ".(intval($lang->login_field_width)+100)."px;\"";
$login_container_width = " style=\"width: ".(410+(intval($lang->login_field_width)))."px;\"";

        {
$login_label_width = " style=\"width: ".(intval($lang->login_field_width)+100)."px;\"";
$login_container_width = " style=\"width: ".(410+(intval($lang->login_field_width)))."px;\"";

Zeile 358Zeile 359
			$query_string = preg_replace('#&+#', '&', $query_string);
$query_string = str_replace('?&', '?', $query_string);
$query_string = htmlspecialchars_uni($query_string);

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

		}
switch($mybb->settings['username_method'])
{
case 0:
$lang_username = $lang->username;
break;
case 1:
$lang_username = $lang->username1;
break;
case 2:
$lang_username = $lang->username2;
break;
default:

		}
switch($mybb->settings['username_method'])
{
case 0:
$lang_username = $lang->username;
break;
case 1:
$lang_username = $lang->username1;
break;
case 2:
$lang_username = $lang->username2;
break;
default:

				$lang_username = $lang->username;
break;
}

				$lang_username = $lang->username;
break;
}

Zeile 552Zeile 553
		{
foreach($items as $menu_item)
{

		{
foreach($items as $menu_item)
{

				$menu_item['link'] = htmlspecialchars($menu_item['link']);

				$menu_item['link'] = htmlspecialchars_uni($menu_item['link']);

				if($menu_item['id'] == $this->active_module)
{
$sub_menu = $menu_item['submenu'];

				if($menu_item['id'] == $this->active_module)
{
$sub_menu = $menu_item['submenu'];

Zeile 602Zeile 603
		{
$alt_bg = "alt2";
return "alt1";

		{
$alt_bg = "alt2";
return "alt1";

		}

		}

		else
{
$alt_bg = "alt1";

		else
{
$alt_bg = "alt1";

Zeile 612Zeile 613

/**
* Output a Javascript based tab control on to the page.


/**
* Output a Javascript based tab control on to the page.

	 *

	 *

	 * @param array Array of tabs in name => title format. Name should correspond to the name of a DIV containing the tab content.
* @param boolean Whether or not to run the event onload or instantly
* @param string The ID to use for the tabs for if you run multiple instances of the tabbing control in one html page

	 * @param array Array of tabs in name => title format. Name should correspond to the name of a DIV containing the tab content.
* @param boolean Whether or not to run the event onload or instantly
* @param string The ID to use for the tabs for if you run multiple instances of the tabbing control in one html page

Zeile 622Zeile 623
		global $plugins;
$tabs = $plugins->run_hooks("admin_page_output_tab_control_start", $tabs);
echo "<script type=\"text/javascript\">\n";

		global $plugins;
$tabs = $plugins->run_hooks("admin_page_output_tab_control_start", $tabs);
echo "<script type=\"text/javascript\">\n";

		if($observe_onload)

		if($observe_onload)

		{
echo "Event.observe(window,'load',function(){\n";
}

		{
echo "Event.observe(window,'load',function(){\n";
}

Zeile 631Zeile 632
		echo "		new Control.Tabs(tabs);\n";
echo " });\n";
if($observe_onload)

		echo "		new Control.Tabs(tabs);\n";
echo " });\n";
if($observe_onload)

		{

		{

			echo "});\n";
}
echo "</script>\n";

			echo "});\n";
}
echo "</script>\n";

Zeile 675Zeile 676
			{
$class = ' active';
}

			{
$class = ' active';
}

			if($tab['align'] == "right")

			if(isset($tab['align']) == "right")

			{
$class .= " right";
}

			{
$class .= " right";
}

			if($tab['link_target'])
{


			$target = '';
if(isset($tab['link_target']))
{

				$target = " target=\"{$tab['link_target']}\"";

				$target = " target=\"{$tab['link_target']}\"";

 
			}
if(!isset($tab['link']))
{
$tab['link'] = '';

			}
echo "\t\t<li class=\"{$class}\"><a href=\"{$tab['link']}\"{$target}>{$tab['title']}</a></li>\n";
$target = '';

			}
echo "\t\t<li class=\"{$class}\"><a href=\"{$tab['link']}\"{$target}>{$tab['title']}</a></li>\n";
$target = '';

Zeile 798Zeile 804
			{
$class = "active";
}

			{
$class = "active";
}

			$item['link'] = htmlspecialchars($item['link']);

			$item['link'] = htmlspecialchars_uni($item['link']);

			$this->_contents .= "<li class=\"{$class}\"><a href=\"{$item['link']}\">{$item['title']}</a></li>\n";
}
$this->_contents .= "</ul>";

			$this->_contents .= "<li class=\"{$class}\"><a href=\"{$item['link']}\">{$item['title']}</a></li>\n";
}
$this->_contents .= "</ul>";