Vergleich archive/global.php - 1.8.1 - 1.8.34

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 20Zeile 20
require_once MYBB_ROOT."inc/class_session.php";
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;

require_once MYBB_ROOT."inc/class_session.php";
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;

 

$shutdown_queries = $shutdown_functions = array();


$groupscache = $cache->read("usergroups");
if(!is_array($groupscache))


$groupscache = $cache->read("usergroups");
if(!is_array($groupscache))

Zeile 90Zeile 92
	else
{
$page = 1;

	else
{
$page = 1;

	}

	}

	if(!empty($todo[1]))

	if(!empty($todo[1]))

	{

	{

		$id = (int)$todo[1];
}
else

		$id = (int)$todo[1];
}
else

Zeile 112Zeile 114
		");
$announcement = $db->fetch_array($query);
if(!$announcement['aid'])

		");
$announcement = $db->fetch_array($query);
if(!$announcement['aid'])

		{
$action = "404";

		{
$action = "404";

		}
}
elseif($action == "thread")

		}
}
elseif($action == "thread")

Zeile 121Zeile 123
		$query = $db->simple_select("threads", "*", "tid='{$id}' AND closed NOT LIKE 'moved|%'");
$thread = $db->fetch_array($query);
if(!$thread['tid'])

		$query = $db->simple_select("threads", "*", "tid='{$id}' AND closed NOT LIKE 'moved|%'");
$thread = $db->fetch_array($query);
if(!$thread['tid'])

		{
$action = "404";

		{
$action = "404";

		}
}
elseif($action == "forum")

		}
}
elseif($action == "forum")

Zeile 137Zeile 139
	elseif($action != 'index')
{
$action = "404";

	elseif($action != 'index')
{
$action = "404";

	}

	}

}

// Define the full MyBB version location of this page.

}

// Define the full MyBB version location of this page.

Zeile 188Zeile 190
{
if($mybb->usergroup['canviewboardclosed'] != 1)
{

{
if($mybb->usergroup['canviewboardclosed'] != 1)
{

 
		if(!$mybb->settings['boardclosed_reason'])
{
$mybb->settings['boardclosed_reason'] = $lang->boardclosed_reason;
}


		$lang->error_boardclosed .= "<blockquote>".$mybb->settings['boardclosed_reason']."</blockquote>";
archive_error($lang->error_boardclosed);

		$lang->error_boardclosed .= "<blockquote>".$mybb->settings['boardclosed_reason']."</blockquote>";
archive_error($lang->error_boardclosed);

	}
}

	}
}


// Do we require users to login?
if($mybb->settings['forcelogin'] == 1)


// Do we require users to login?
if($mybb->settings['forcelogin'] == 1)

Zeile 202Zeile 209
	}
}


	}
}


// Load Limiting - DIRECTORY_SEPARATOR checks if running windows
if(DIRECTORY_SEPARATOR != '\\')

// Load Limiting
if($mybb->usergroup['cancp'] != 1 && $mybb->settings['load'] > 0 && ($load = get_server_load()) && $load != $lang->unknown && $load > $mybb->settings['load'])

{

{

	if($uptime = @exec('uptime'))
{
preg_match("/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/", $uptime, $regs);
$load = $regs[1];
if($mybb->usergroup['cancp'] != 1 && $load > $mybb->settings['load'] && $mybb->settings['load'] > 0)
{
archive_error($lang->error_loadlimit);
}
}

	// User is not an administrator and the load limit is higher than the limit, show an error
archive_error($lang->error_loadlimit);








}

if($mybb->usergroup['canview'] == 0)

}

if($mybb->usergroup['canview'] == 0)