Vergleich admin/inc/class_page.php - 1.8.20 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 63Zeile 63
	 * @var string Show a post verify error
*/
public $show_post_verify_error = '';

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

 

/**
* @var string
*/
public $_menu;


/**
* Output the page header.


/**
* Output the page header.

Zeile 106Zeile 111
			echo "	<link rel=\"stylesheet\" href=\"styles/{$this->style}/{$this->active_module}.css\" type=\"text/css\" />\n";
}


			echo "	<link rel=\"stylesheet\" href=\"styles/{$this->style}/{$this->active_module}.css\" type=\"text/css\" />\n";
}


		echo "	<script type=\"text/javascript\" src=\"../jscripts/jquery.js?ver=1820\"></script>\n";
echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.plugins.min.js?ver=1813\"></script>\n";
echo " <script type=\"text/javascript\" src=\"../jscripts/general.js?ver=1820\"></script>\n";
echo " <script type=\"text/javascript\" src=\"./jscripts/admincp.js\"></script>\n";

		echo "	<script type=\"text/javascript\" src=\"../jscripts/jquery.js?ver=1823\"></script>\n";
echo " <script type=\"text/javascript\" src=\"../jscripts/jquery.plugins.min.js?ver=1821\"></script>\n";
echo " <script type=\"text/javascript\" src=\"../jscripts/general.js?ver=1821\"></script>\n";
echo " <script type=\"text/javascript\" src=\"./jscripts/admincp.js?ver=1821\"></script>\n";

		echo "	<script type=\"text/javascript\" src=\"./jscripts/tabs.js\"></script>\n";

echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.min.css\" />\n";

		echo "	<script type=\"text/javascript\" src=\"./jscripts/tabs.js\"></script>\n";

echo " <link rel=\"stylesheet\" href=\"jscripts/jqueryui/css/redmond/jquery-ui.min.css\" />\n";

Zeile 203Zeile 208
		$args = array(
'this' => &$this,
'quit' => &$quit,

		$args = array(
'this' => &$this,
'quit' => &$quit,

		);

$plugins->run_hooks("admin_page_output_footer", $args);

		);

$plugins->run_hooks("admin_page_output_footer", $args);


$memory_usage = get_friendly_size(get_memory_usage());



$memory_usage = get_friendly_size(get_memory_usage());


Zeile 378Zeile 383

// 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(isset($lang->login_field_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(isset($lang->login_field_width))

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

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

			$login_container_width = " style=\"width: ".(410+((int)$lang->login_field_width))."px;\"";

			$login_container_width = " style=\"width: ".(410+((int)$lang->login_field_width))."px;\"";

        }

$login_page .= <<<EOF

		}

$login_page = <<<EOF

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head profile="http://gmpg.org/xfn/1">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head profile="http://gmpg.org/xfn/1">

Zeile 391Zeile 396
<meta name="author" content="MyBB Group" />
<meta name="copyright" content="Copyright {$copy_year} MyBB Group." />
<link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />

<meta name="author" content="MyBB Group" />
<meta name="copyright" content="Copyright {$copy_year} MyBB Group." />
<link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />

<script type="text/javascript" src="../jscripts/jquery.js?ver=1820"></script>
<script type="text/javascript" src="../jscripts/general.js?ver=1820"></script>
<script type="text/javascript" src="./jscripts/admincp.js"></script>

<script type="text/javascript" src="../jscripts/jquery.js?ver=1823"></script>
<script type="text/javascript" src="../jscripts/general.js?ver=1821"></script>
<script type="text/javascript" src="./jscripts/admincp.js?ver=1821"></script>

<script type="text/javascript">
//<![CDATA[
loading_text = '{$lang->loading_text}';

<script type="text/javascript">
//<![CDATA[
loading_text = '{$lang->loading_text}';

Zeile 414Zeile 419
		if($message)
{
$login_page .= "<p id=\"message\" class=\"{$class}\"><span class=\"text\">{$message}</span></p>";

		if($message)
{
$login_page .= "<p id=\"message\" class=\"{$class}\"><span class=\"text\">{$message}</span></p>";

		}
// Make query string nice and pretty so that user can go to his/her preferred destination
$query_string = '';

		}
// Make query string nice and pretty so that user can go to his/her preferred destination
$query_string = '';

		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']);

Zeile 425Zeile 430
			$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:

		switch($mybb->settings['username_method'])
{
case 0:

Zeile 460Zeile 465
		{
case 0: // Username only
$login_lang_string = $lang->sprintf($login_lang_string, $lang->login_username);

		{
case 0: // Username only
$login_lang_string = $lang->sprintf($login_lang_string, $lang->login_username);

				break;

				break;

			case 1: // Email only
$login_lang_string = $lang->sprintf($login_lang_string, $lang->login_email);
break;

			case 1: // Email only
$login_lang_string = $lang->sprintf($login_lang_string, $lang->login_email);
break;

Zeile 484Zeile 489
			<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
<div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
{$secret_pin}

			<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
<div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
{$secret_pin}

		</div>
<p class="submit">

		</div>
<p class="submit">

			<span class="forgot_password">
<a href="../member.php?action=lostpw">{$lang->lost_password}</a>
</span>

			<span class="forgot_password">
<a href="../member.php?action=lostpw">{$lang->lost_password}</a>
</span>





			<input type="submit" value="{$lang->login}" />
<input type="hidden" name="do" value="login" />
</p>

			<input type="submit" value="{$lang->login}" />
<input type="hidden" name="do" value="login" />
</p>

Zeile 499Zeile 504
</body>
</html>
EOF;

</body>
</html>
EOF;





		$args = array(
'this' => &$this,
'login_page' => &$login_page
);

$plugins->run_hooks('admin_page_show_login_end', $args);

		$args = array(
'this' => &$this,
'login_page' => &$login_page
);

$plugins->run_hooks('admin_page_show_login_end', $args);





		echo $login_page;
exit;
}

		echo $login_page;
exit;
}





	function show_2fa()
{
global $lang, $cp_style, $mybb;

	function show_2fa()
{
global $lang, $cp_style, $mybb;

 

$copy_year = COPY_YEAR;


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


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

Zeile 523Zeile 530
<meta name="author" content="MyBB Group" />
<meta name="copyright" content="Copyright {$copy_year} MyBB Group." />
<link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />

<meta name="author" content="MyBB Group" />
<meta name="copyright" content="Copyright {$copy_year} MyBB Group." />
<link rel="stylesheet" href="./styles/{$cp_style}/login.css" type="text/css" />

<script type="text/javascript" src="../jscripts/jquery.js?ver=1820"></script>
<script type="text/javascript" src="../jscripts/general.js?ver=1820"></script>
<script type="text/javascript" src="./jscripts/admincp.js"></script>

<script type="text/javascript" src="../jscripts/jquery.js?ver=1823"></script>
<script type="text/javascript" src="../jscripts/general.js?ver=1821"></script>
<script type="text/javascript" src="./jscripts/admincp.js?ver=1821"></script>

<script type="text/javascript">
//<![CDATA[
loading_text = '{$lang->loading_text}';

<script type="text/javascript">
//<![CDATA[
loading_text = '{$lang->loading_text}';

Zeile 625Zeile 632
		global $lang, $mybb, $cp_style;

$copy_year = COPY_YEAR;

		global $lang, $mybb, $cp_style;

$copy_year = COPY_YEAR;

 

$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(isset($lang->login_field_width))
{
$login_label_width = " style=\"width: ".((int)$lang->login_field_width+100)."px;\"";
}


		switch($mybb->settings['username_method'])
{
case 0:

		switch($mybb->settings['username_method'])
{
case 0:

Zeile 746Zeile 762
		}
$build_menu .= "</ul>\n</div>";


		}
$build_menu .= "</ul>\n</div>";


		if($sub_menu)

		if(!empty($sub_menu))

		{
$this->_build_submenu($sub_menu_title, $sub_menu);
}

		{
$this->_build_submenu($sub_menu_title, $sub_menu);
}

Zeile 842Zeile 858
			$target = '';
}
echo "\t</ul>\n";

			$target = '';
}
echo "\t</ul>\n";

		if($tabs[$active]['description'])

		if(!empty($tabs[$active]['description']))

		{
echo "\t<div class=\"tab_description\">{$tabs[$active]['description']}</div>\n";
}

		{
echo "\t<div class=\"tab_description\">{$tabs[$active]['description']}</div>\n";
}

Zeile 901Zeile 917
	 */
function build_codebuttons_editor($bind, $editor_language, $smilies)
{

	 */
function build_codebuttons_editor($bind, $editor_language, $smilies)
{

		global $lang, $mybb, $smiliecache, $cache;

		global $lang, $mybb, $smiliecache, $smiliecount, $cache;


// Smilies
$emoticon = "";


// Smilies
$emoticon = "";

Zeile 1045Zeile 1061
<script type="text/javascript">
var partialmode = {$mybb->settings['partialmode']},
opt_editor = {

<script type="text/javascript">
var partialmode = {$mybb->settings['partialmode']},
opt_editor = {

	plugins: "bbcode,undo",
style: "../jscripts/sceditor/textarea_styles/jquery.sceditor.mybb.css",



	plugins: "undo",
format: "bbcode",
bbcodeTrim: true,
style: "../jscripts/sceditor/styles/jquery.sceditor.mybb.css",

	rtl: {$lang->settings['rtl']},
locale: "mybblang",
enablePasteFiltering: true,

	rtl: {$lang->settings['rtl']},
locale: "mybblang",
enablePasteFiltering: true,