Vergleich admin/inc/class_page.php - 1.8.15 - 1.8.25

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 106Zeile 106
			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=1813\"></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=1813\"></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 378Zeile 378

// 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


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

Zeile 391Zeile 391
<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=1813"></script>
<script type="text/javascript" src="../jscripts/general.js?ver=1813"></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 414
		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 = '';
if($_SERVER['QUERY_STRING'])

		// Make query string nice and pretty so that user can go to his/her preferred destination
$query_string = '';
if($_SERVER['QUERY_STRING'])

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

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

				$lang_username = $lang->username;
break;

				$lang_username = $lang->username;
break;

			case 1:
$lang_username = $lang->username1;
break;

			case 1:
$lang_username = $lang->username1;
break;

Zeile 447Zeile 447
		if(isset($config['secret_pin']) && $config['secret_pin'] != '')
{
$secret_pin = "<div class=\"label\"{$login_label_width}><label for=\"pin\">{$lang->secret_pin}</label></div>

		if(isset($config['secret_pin']) && $config['secret_pin'] != '')
{
$secret_pin = "<div class=\"label\"{$login_label_width}><label for=\"pin\">{$lang->secret_pin}</label></div>

            <div class=\"field\"><input type=\"password\" name=\"pin\" id=\"pin\" class=\"text_input\" /></div>";
}
else

            <div class=\"field\"><input type=\"password\" name=\"pin\" id=\"pin\" class=\"text_input\" /></div>";
}
else

		{
$secret_pin = '';
}

		{
$secret_pin = '';
}

Zeile 470Zeile 470
				break;
}


				break;
}


       	$_SERVER['PHP_SELF'] = htmlspecialchars_uni($_SERVER['PHP_SELF']);

       	$this_file = htmlspecialchars_uni($_SERVER['SCRIPT_NAME']);


$login_page .= <<<EOF
<p>{$login_lang_string}</p>


$login_page .= <<<EOF
<p>{$login_lang_string}</p>

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

		<form method="post" action="{$this_file}{$query_string}">

		<div class="form_container">

		<div class="form_container">





			<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="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>

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

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

 

$copy_year = COPY_YEAR;


$mybb2fa_page = <<<EOF


$mybb2fa_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">

<!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">
<title>{$lang->my2fa}</title>
<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" />

<head profile="http://gmpg.org/xfn/1">
<title>{$lang->my2fa}</title>
<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=1813"></script>
<script type="text/javascript" src="../jscripts/general.js?ver=1813"></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 584Zeile 586

$copy_year = COPY_YEAR;
$allowed_attempts = (int)$mybb->settings['maxloginattempts'];


$copy_year = COPY_YEAR;
$allowed_attempts = (int)$mybb->settings['maxloginattempts'];

		$lockedout_message = $lang->sprintf($lang->error_mybb_admin_lockedout_message, $allowed_attempts);

print <<<EOF

		$lockedout_message = $lang->sprintf($lang->error_mybb_admin_lockedout_message, $allowed_attempts);

print <<<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 625Zeile 627
		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 784Zeile 795
		$tab_count = count($tabs);
$done = 1;
foreach($tabs as $anchor => $title)

		$tab_count = count($tabs);
$done = 1;
foreach($tabs as $anchor => $title)

		{

		{

			$class = "";
if($tab_count == $done)
{

			$class = "";
if($tab_count == $done)
{

Zeile 799Zeile 810
		}
echo "</ul>\n";
$plugins->run_hooks("admin_page_output_tab_control_end", $tabs);

		}
echo "</ul>\n";
$plugins->run_hooks("admin_page_output_tab_control_end", $tabs);

	}


	}


	/**
* Output a series of primary navigation tabs for swithcing between items within a particular module/action.
*

	/**
* Output a series of primary navigation tabs for swithcing between items within a particular module/action.
*

Zeile 823Zeile 834
			if(isset($tab['align']) == "right")
{
$class .= " right";

			if(isset($tab['align']) == "right")
{
$class .= " right";

			}
$target = '';

			}
$target = '';

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

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

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

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

		}

		}

		echo "\t</ul>\n";
if($tabs[$active]['description'])
{

		echo "\t</ul>\n";
if($tabs[$active]['description'])
{

Zeile 849Zeile 860
		echo "</div>";
$arguments = array('tabs' => $tabs, 'active' => $active);
$plugins->run_hooks("admin_page_output_nav_tabs_end", $arguments);

		echo "</div>";
$arguments = array('tabs' => $tabs, 'active' => $active);
$plugins->run_hooks("admin_page_output_nav_tabs_end", $arguments);

	}


	}


	/**
* Output a page asking if a user wishes to continue performing a specific action.
*

	/**
* Output a page asking if a user wishes to continue performing a specific action.
*

Zeile 859Zeile 870
	 * @param string $title The title to use in the output header
*/
function output_confirm_action($url, $message="", $title="")

	 * @param string $title The title to use in the output header
*/
function output_confirm_action($url, $message="", $title="")

	{

	{

		global $lang, $plugins;

$args = array(

		global $lang, $plugins;

$args = array(

Zeile 917Zeile 928
			if(!$smiliecount)
{
$smilie_cache = $cache->read("smilies");

			if(!$smiliecount)
{
$smilie_cache = $cache->read("smilies");

 
				if(!is_array($smilie_cache))
{
$smilie_cache = array();
}

				$smiliecount = count($smilie_cache);
}


				$smiliecount = count($smilie_cache);
}


Zeile 1041Zeile 1056
<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,