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

  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 5620 2011-09-26 18:23:52Z ralgith $

 * $Id$

 */

/*

 */

/*

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 131Zeile 131
		echo $this->_generate_breadcrumb();
echo " </div>\n";
echo " <div id=\"inner\">\n";

		echo $this->_generate_breadcrumb();
echo " </div>\n";
echo " <div id=\"inner\">\n";

		if($admin_session['data']['flash_message'])

			if(isset($admin_session['data']['flash_message']) && $admin_session['data']['flash_message'])

		{
$message = $admin_session['data']['flash_message']['message'];
$type = $admin_session['data']['flash_message']['type'];

		{
$message = $admin_session['data']['flash_message']['message'];
$type = $admin_session['data']['flash_message']['type'];

Zeile 220Zeile 220
			}
}
return $trail;

			}
}
return $trail;

	}	

/**
* Output an introductory message.
*
* @param string The title of the introductory message.
* @param string The introductory message.
* @param string An additional class name to add to the message if there is one.
*/
function output_intro($title, $description, $class="")
{
echo " <div class=\"intro_description\">\n";
echo " <div class=\"{$class}\">\n";
echo " <h2>{$title}</h2>\n";
echo " <p>{$description}</p>\n";
echo "</div>\n";
echo "</div>\n";

 
	}

/**
* Output a success message.

	}

/**
* Output a success message.

	 *
* @param string The message to output.
*/

	 *
* @param string The message to output.
*/

	function output_success($message)
{
echo "<div class=\"success\">{$message}</div>\n";

	function output_success($message)
{
echo "<div class=\"success\">{$message}</div>\n";

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

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

	}

/**

	}

/**

	 * Output an inline message.

	 * Output an inline message.

	 *
* @param string The message to output.
*/

	 *
* @param string The message to output.
*/

	function output_inline_message($message)
{
echo "<div class=\"inline_message\">{$message}</div>\n";

	function output_inline_message($message)
{
echo "<div class=\"inline_message\">{$message}</div>\n";

Zeile 278Zeile 261
	 * Output a single error message.
*
* @param string The message to output.

	 * Output a single error message.
*
* @param string The message to output.

	 */

	 */

	function output_error($error)
{
echo "<div class=\"error\">\n";

	function output_error($error)
{
echo "<div class=\"error\">\n";

Zeile 292Zeile 275
	 * @param array Array of error messages to output.
*/
function output_inline_error($errors)

	 * @param array Array of error messages to output.
*/
function output_inline_error($errors)

	{

	{

		global $lang;

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

		global $lang;

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 318Zeile 301
	 * @param string The class name of the message (defaults to success)
*/
function show_login($message="", $class="success")

	 * @param string The class name of the message (defaults to success)
*/
function show_login($message="", $class="success")

	{
global $lang, $cp_style;


	{
global $lang, $cp_style, $mybb;


		$copy_year = COPY_YEAR;

$login_container_width = "";

		$copy_year = COPY_YEAR;

$login_container_width = "";

Zeile 370Zeile 353
		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 = htmlspecialchars_uni($query_string);

			$query_string = str_replace('action=logout', '', $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:
$lang_username = $lang->username;
break;

		}

// TODO: Better Fix?

		}

// TODO: Better Fix?

Zeile 383Zeile 382
		<form method="post" action="{$_SERVER['PHP_SELF']}{$query_string}">
<div class="form_container">


		<form method="post" action="{$_SERVER['PHP_SELF']}{$query_string}">
<div class="form_container">


			<div class="label"{$login_label_width}><label for="username">{$lang->username}</label></div>

			<div class="label"{$login_label_width}><label for="username">{$lang_username}</label></div>


<div class="field"><input type="text" name="username" id="username" class="text_input initial_focus" /></div>



<div class="field"><input type="text" name="username" id="username" class="text_input initial_focus" /></div>


Zeile 399Zeile 398
			<input type="hidden" name="do" value="login" />
</p>
</form>

			<input type="hidden" name="do" value="login" />
</p>
</form>

	</div>
</div>
</body>
</html>

	</div>
</div>
</body>
</html>

EOF;
exit;
}

EOF;
exit;
}

Zeile 456Zeile 455
		global $lang, $mybb, $cp_style;

$copy_year = COPY_YEAR;

		global $lang, $mybb, $cp_style;

$copy_year = COPY_YEAR;

 
		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;
}


print <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


print <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Zeile 480Zeile 494
		<form method="post" action="index.php">
<div class="form_container">


		<form method="post" action="index.php">
<div class="form_container">


			<div class="label"{$login_label_width}><label for="username">{$lang->username}</label></div>

			<div class="label"{$login_label_width}><label for="username">{$lang_username}</label></div>


<div class="field"><input type="text" name="username" id="username" class="text_input initial_focus" /></div>



<div class="field"><input type="text" name="username" id="username" class="text_input initial_focus" /></div>