Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: upgrade.php 5353 2011-02-15 14:24:00Z Tomm $
| * $Id$
|
*/
|
*/
|
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); }
| |
define('MYBB_ROOT', dirname(dirname(__FILE__))."/"); define("INSTALL_ROOT", dirname(__FILE__)."/");
| define('MYBB_ROOT', dirname(dirname(__FILE__))."/"); define("INSTALL_ROOT", dirname(__FILE__)."/");
|
Zeile 34 | Zeile 19 |
---|
{ date_default_timezone_set('GMT'); }
|
{ date_default_timezone_set('GMT'); }
|
| require_once MYBB_ROOT.'inc/class_error.php'; $error_handler = new errorHandler();
|
require_once MYBB_ROOT."inc/class_core.php"; $mybb = new MyBB;
| require_once MYBB_ROOT."inc/class_core.php"; $mybb = new MyBB;
|
Zeile 339 | Zeile 327 |
---|
require_once INSTALL_ROOT."resources/upgrade".intval($mybb->input['from']).".php"; if($db->table_exists("datacache") && $upgrade_detail['requires_deactivated_plugins'] == 1 && $mybb->input['donewarning'] != "true") {
|
require_once INSTALL_ROOT."resources/upgrade".intval($mybb->input['from']).".php"; if($db->table_exists("datacache") && $upgrade_detail['requires_deactivated_plugins'] == 1 && $mybb->input['donewarning'] != "true") {
|
require_once MYBB_ROOT."inc/class_datacache.php"; $cache = new datacache;
| |
$plugins = $cache->read('plugins', true); if(!empty($plugins['active'])) {
| $plugins = $cache->read('plugins', true); if(!empty($plugins['active'])) {
|
Zeile 450 | Zeile 436 |
---|
$contents = @file_get_contents(INSTALL_ROOT.'resources/mybb_theme.xml'); if(file_exists(MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php")) {
|
$contents = @file_get_contents(INSTALL_ROOT.'resources/mybb_theme.xml'); if(file_exists(MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php")) {
|
| require_once MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions.php";
|
require_once MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php"; } else if(file_exists(MYBB_ROOT."admin/inc/functions_themes.php")) {
|
require_once MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php"; } else if(file_exists(MYBB_ROOT."admin/inc/functions_themes.php")) {
|
| require_once MYBB_ROOT."admin/inc/functions.php";
|
require_once MYBB_ROOT."admin/inc/functions_themes.php"; } else
| require_once MYBB_ROOT."admin/inc/functions_themes.php"; } else
|