Vergleich global.php - 1.4.7 - 1.4.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: global.php 4322 2009-02-21 23:00:49Z Tikitiki $

 * $Id: global.php 4430 2009-08-22 23:27:11Z RyanGordon $

 */

$working_dir = dirname(__FILE__);

 */

$working_dir = dirname(__FILE__);

Zeile 75Zeile 75
	{
my_setcookie("mybblang", $mybb->settings['bblanguage']);
}

	{
my_setcookie("mybblang", $mybb->settings['bblanguage']);
}

 
	$mybb->user['language'] = $mybb->settings['bblanguage'];

}
// Cookied language!
else if($mybb->cookies['mybblang'] && $lang->language_exists($mybb->cookies['mybblang']))

}
// Cookied language!
else if($mybb->cookies['mybblang'] && $lang->language_exists($mybb->cookies['mybblang']))

Zeile 413Zeile 414
	if($pm['fromuid'] == 0)
{
$pm['fromusername'] = 'MyBB Engine';

	if($pm['fromuid'] == 0)
{
$pm['fromusername'] = 'MyBB Engine';

 
		$user_text = $pm['fromusername'];

	}

	}

	





	else
{
$user_text = build_profile_link($pm['fromusername'], $pm['fromuid']);
}


	if($mybb->user['pms_unread'] == 1)
{

	if($mybb->user['pms_unread'] == 1)
{

		$privatemessage_text = $lang->sprintf($lang->newpm_notice_one, get_profile_link($pm['fromuid']), htmlspecialchars_uni($pm['fromusername']), $pm['pmid'], htmlspecialchars_uni($pm['subject']));

		$privatemessage_text = $lang->sprintf($lang->newpm_notice_one, $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));

	}
else
{

	}
else
{

		$privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], get_profile_link($pm['fromuid']), htmlspecialchars_uni($pm['fromusername']), $pm['pmid'], htmlspecialchars_uni($pm['subject']));

		$privatemessage_text = $lang->sprintf($lang->newpm_notice_multiple, $mybb->user['pms_unread'], $user_text, $pm['pmid'], htmlspecialchars_uni($pm['subject']));

	}
eval("\$pm_notice = \"".$templates->get("global_pm_alert")."\";");
}

	}
eval("\$pm_notice = \"".$templates->get("global_pm_alert")."\";");
}

Zeile 440Zeile 446
	$mybbversion = ' '.$mybb->version;
}
else

	$mybbversion = ' '.$mybb->version;
}
else

{

{

	$mybbversion = '';
}


	$mybbversion = '';
}


Zeile 453Zeile 459
		$task_cache['nextrun'] = TIME_NOW;
}
if($task_cache['nextrun'] <= TIME_NOW)

		$task_cache['nextrun'] = TIME_NOW;
}
if($task_cache['nextrun'] <= TIME_NOW)

	{

	{

		$task_image = "<img src=\"{$mybb->settings['bburl']}/task.php\" border=\"0\" width=\"1\" height=\"1\" alt=\"\" />";

		$task_image = "<img src=\"{$mybb->settings['bburl']}/task.php\" border=\"0\" width=\"1\" height=\"1\" alt=\"\" />";

	}

	}

	else
{
$task_image = '';

	else
{
$task_image = '';

Zeile 465Zeile 471
// Are we showing the quick language selection box?
$lang_select = '';
if($mybb->settings['showlanguageselect'] != 0)

// Are we showing the quick language selection box?
$lang_select = '';
if($mybb->settings['showlanguageselect'] != 0)

{

{

	$languages = $lang->get_languages();
foreach($languages as $key => $language)
{

	$languages = $lang->get_languages();
foreach($languages as $key => $language)
{

Zeile 490Zeile 496
if($mybb->user['uid'] > 0 && $mybb->user['dstcorrection'] == 2)
{
$auto_dst_detection = "<script type=\"text/javascript\">if(MyBB) { Event.observe(window, 'load', function() { MyBB.detectDSTChange('".($mybb->user['timezone']+$mybb->user['dst'])."'); }); }</script>\n";

if($mybb->user['uid'] > 0 && $mybb->user['dstcorrection'] == 2)
{
$auto_dst_detection = "<script type=\"text/javascript\">if(MyBB) { Event.observe(window, 'load', function() { MyBB.detectDSTChange('".($mybb->user['timezone']+$mybb->user['dst'])."'); }); }</script>\n";

}

}


eval("\$footer = \"".$templates->get("footer")."\";");



eval("\$footer = \"".$templates->get("footer")."\";");


Zeile 515Zeile 521
    }
error($lang->error_banned);
}

    }
error($lang->error_banned);
}

 

$closed_bypass = array(
"member.php" => array(
"login",
"do_login",
"logout",
),
"captcha.php",
);


// If the board is closed, the user is not an administrator and they're not trying to login, show the board closed message


// If the board is closed, the user is not an administrator and they're not trying to login, show the board closed message

if($mybb->settings['boardclosed'] == 1 && $mybb->usergroup['cancp'] != 1 && !($current_page == "member.php" && ($mybb->input['action'] == "login" || $mybb->input['action'] == "do_login" || $mybb->input['action'] == "logout")))

if($mybb->settings['boardclosed'] == 1 && $mybb->usergroup['cancp'] != 1 && !in_array($current_page, $closed_bypass) && (!is_array($closed_bypass[$current_page]) || !in_array($mybb->input['action'], $closed_bypass[$current_page])))

{
// Show error
$lang->error_boardclosed .= "<blockquote>{$mybb->settings['boardclosed_reason']}</blockquote>";

{
// Show error
$lang->error_boardclosed .= "<blockquote>{$mybb->settings['boardclosed_reason']}</blockquote>";