Vergleich archive/global.php - 1.8.2 - 1.8.21

  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 62Zeile 64
	}
$base_url = $mybb->settings['bburl']."/archive/index.php/";
$endpart = my_substr(strrchr($url, "/"), 1);

	}
$base_url = $mybb->settings['bburl']."/archive/index.php/";
$endpart = my_substr(strrchr($url, "/"), 1);

}

}

else
{
$url = $_SERVER['QUERY_STRING'];

else
{
$url = $_SERVER['QUERY_STRING'];

Zeile 146Zeile 148
	define('MYBB_LOCATION', get_thread_link($id));
}
elseif($action == "forum")

	define('MYBB_LOCATION', get_thread_link($id));
}
elseif($action == "forum")

{

{

	define('MYBB_LOCATION', get_forum_link($id));
}
elseif($action == "announcement")
{
define('MYBB_LOCATION', get_announcement_link($id));

	define('MYBB_LOCATION', get_forum_link($id));
}
elseif($action == "announcement")
{
define('MYBB_LOCATION', get_announcement_link($id));

}

}

else

else

{

{

	define('MYBB_LOCATION', INDEX_URL);

	define('MYBB_LOCATION', INDEX_URL);

}


}


// Initialise session
$session = new session;
$session->init();

// Initialise session
$session = new session;
$session->init();

Zeile 167Zeile 169
	$mybb->settings['bblanguage'] = "english";
}
$lang->set_language($mybb->settings['bblanguage']);

	$mybb->settings['bblanguage'] = "english";
}
$lang->set_language($mybb->settings['bblanguage']);





// Load global language phrases
$lang->load("global");
$lang->load("messages");
$lang->load("archive");

// Load global language phrases
$lang->load("global");
$lang->load("messages");
$lang->load("archive");





// Draw up the basic part of our naviagation
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/archive/index.php";

// Draw up the basic part of our naviagation
$navbits[0]['name'] = $mybb->settings['bbname_orig'];
$navbits[0]['url'] = $mybb->settings['bburl']."/archive/index.php";

Zeile 182Zeile 184
{
archive_error($lang->error_banned);
}

{
archive_error($lang->error_banned);
}





// If our board is closed..
if($mybb->settings['boardclosed'] == 1)
{
if($mybb->usergroup['canviewboardclosed'] != 1)
{

// If our board is closed..
if($mybb->settings['boardclosed'] == 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);
}