Vergleich inc/class_error.php - 1.4.1 - 1.4.8

  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: class_error.php 4113 2008-08-14 00:42:50Z Tikitiki $

 * $Id: class_error.php 4271 2008-11-16 06:20:15Z Tikitiki $

 */

// Set to 1 if recieving a blank page (template failure).

 */

// Set to 1 if recieving a blank page (template failure).

Zeile 125Zeile 125

$this->has_errors = true;



$this->has_errors = true;


		if(($mybb->settings['errortypemedium'] == "both" || !$mybb->settings['errortypemedium']) || my_strpos(my_strtolower($this->error_types[$type]), $mybb->settings['errortypemedium']))








		// For some reason in the installer this setting is set to "<"
$accepted_error_types = array('both', 'error', 'warning');
if(!in_array($mybb->settings['errortypemedium'], $accepted_error_types))
{
$mybb->settings['errortypemedium'] = "both";
}

if(($mybb->settings['errortypemedium'] == "both" || !$mybb->settings['errortypemedium']) || my_strpos(my_strtolower($this->error_types[$type]), $mybb->settings['errortypemedium']) || defined("IN_INSTALL") || defined("IN_UPGRADE"))

		{
if(defined("IN_TASK"))
{

		{
if(defined("IN_TASK"))
{

Zeile 449Zeile 456
		if(!headers_sent())
{
@header("Content-type: text/html; charset={$charset}");

		if(!headers_sent())
{
@header("Content-type: text/html; charset={$charset}");

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


echo <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


echo <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">