Vergleich inc/init.php - 1.6.6 - 1.6.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: init.php 5456 2011-05-01 14:25:55Z ralgith $

 * $Id$

 */

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");

 */

// Disallow direct access to this file for security reasons
if(!defined("IN_MYBB"))
{
die("Direct initialization of this file is not allowed.<br /><br />Please make sure IN_MYBB is defined.");

}

if(function_exists("unicode_decode"))
{
// Unicode extension introduced in 6.0
error_reporting(E_ALL ^ E_DEPRECATED ^ E_NOTICE ^ E_STRICT);
}
elseif(defined("E_DEPRECATED"))
{
// E_DEPRECATED introduced in 5.3
error_reporting(E_ALL ^ E_DEPRECATED ^ E_NOTICE);
}
else
{
error_reporting(E_ALL & ~E_NOTICE);

 
}

/* Defines the root directory for MyBB.

Uncomment the below line and set the path manually

}

/* Defines the root directory for MyBB.

Uncomment the below line and set the path manually

	if you experience problems. Acceptable values are:

	if you experience problems.


Always add a trailing slash to the end of the path.


Always add a trailing slash to the end of the path.





	* Path to your copy of MyBB

	* Path to your copy of MyBB

	* "./"

 
 */
//define('MYBB_ROOT', "./");


 */
//define('MYBB_ROOT', "./");


Zeile 46Zeile 30
if(!defined('MYBB_ROOT'))
{
define('MYBB_ROOT', dirname(dirname(__FILE__))."/");

if(!defined('MYBB_ROOT'))
{
define('MYBB_ROOT', dirname(dirname(__FILE__))."/");

}

define("TIME_NOW", time());

}

define("TIME_NOW", time());


if(function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
{
date_default_timezone_set('GMT');
}


if(function_exists('date_default_timezone_set') && !ini_get('date.timezone'))
{
date_default_timezone_set('GMT');
}


require_once MYBB_ROOT."inc/functions_compat.php";

 

require_once MYBB_ROOT."inc/class_error.php";
$error_handler = new errorHandler();


require_once MYBB_ROOT."inc/class_error.php";
$error_handler = new errorHandler();

Zeile 200Zeile 182
$mybb->parse_cookies();
$mybb->cache = &$cache;


$mybb->parse_cookies();
$mybb->cache = &$cache;


if($mybb->settings['useshutdownfunc'] != 0)

if($mybb->use_shutdown == true)

{

{

	$mybb->use_shutdown = true;
register_shutdown_function(array(&$mybb, "__destruct"));

	register_shutdown_function('run_shutdown');


}

// Did we just upgrade to a new version and haven't run the upgrade scripts yet?

}

// Did we just upgrade to a new version and haven't run the upgrade scripts yet?

Zeile 227Zeile 208
add_shutdown('send_mail_queue');

/* URL Definitions */

add_shutdown('send_mail_queue');

/* URL Definitions */

if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && $_SERVER['SEO_SUPPORT'] == 1))

if($mybb->settings['seourls'] == "yes" || ($mybb->settings['seourls'] == "auto" && isset($_SERVER['SEO_SUPPORT']) && $_SERVER['SEO_SUPPORT'] == 1))

{
define('FORUM_URL', "forum-{fid}.html");
define('FORUM_URL_PAGED', "forum-{fid}-page-{page}.html");

{
define('FORUM_URL', "forum-{fid}.html");
define('FORUM_URL_PAGED', "forum-{fid}-page-{page}.html");

Zeile 244Zeile 225
	define('CALENDAR_URL_DAY', 'calendar-{calendar}-year-{year}-month-{month}-day-{day}.html');
define('CALENDAR_URL_WEEK', 'calendar-{calendar}-week-{week}.html');
define('EVENT_URL', "event-{eid}.html");

	define('CALENDAR_URL_DAY', 'calendar-{calendar}-year-{year}-month-{month}-day-{day}.html');
define('CALENDAR_URL_WEEK', 'calendar-{calendar}-week-{week}.html');
define('EVENT_URL', "event-{eid}.html");

	define('INDEX_URL', "index.php");

 
}
else
{

}
else
{

Zeile 263Zeile 243
	define('CALENDAR_URL_DAY', 'calendar.php?action=dayview&calendar={calendar}&year={year}&month={month}&day={day}');
define('CALENDAR_URL_WEEK', 'calendar.php?action=weekview&calendar={calendar}&week={week}');
define('EVENT_URL', "calendar.php?action=event&eid={eid}");

	define('CALENDAR_URL_DAY', 'calendar.php?action=dayview&calendar={calendar}&year={year}&month={month}&day={day}');
define('CALENDAR_URL_WEEK', 'calendar.php?action=weekview&calendar={calendar}&week={week}');
define('EVENT_URL', "calendar.php?action=event&eid={eid}");

	define('INDEX_URL', "index.php");

 
}

}

 
define('INDEX_URL', "index.php");


// An array of valid date formats (Used for user selections etc)
$date_formats = array(


// An array of valid date formats (Used for user selections etc)
$date_formats = array(