Vergleich inc/init.php - 1.2.5 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: init.php 2180 2006-09-02 07:36:22Z chris $

 * $Id: init.php 3286 2007-09-01 07:35:44Z chris $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 43Zeile 43

// Include the required core files
require_once MYBB_ROOT."inc/config.php";


// Include the required core files
require_once MYBB_ROOT."inc/config.php";

 


if(!isset($config['dbtype']))

if(!isset($config['dbtype']))

{

{

	$mybb->trigger_generic_error("board_not_installed", true);
}

	$mybb->trigger_generic_error("board_not_installed", true);
}

 

// Trigger an error if the installation directory exists
if(is_dir(MYBB_ROOT."install") && !file_exists(MYBB_ROOT."install/lock"))
{
$mybb->trigger_generic_error("install_directory", true);
}


if(!isset($config['admin_dir']))
{
$config['admin_dir'] = "admin";

if(!isset($config['admin_dir']))
{
$config['admin_dir'] = "admin";

Zeile 60Zeile 68

require_once MYBB_ROOT."inc/db_".$config['dbtype'].".php";
$db = new databaseEngine;


require_once MYBB_ROOT."inc/db_".$config['dbtype'].".php";
$db = new databaseEngine;





require_once MYBB_ROOT."inc/functions.php";

require_once MYBB_ROOT."inc/functions.php";





require_once MYBB_ROOT."inc/class_templates.php";
$templates = new templates;

require_once MYBB_ROOT."inc/class_datacache.php";
$cache = new datacache;

require_once MYBB_ROOT."inc/class_templates.php";
$templates = new templates;

require_once MYBB_ROOT."inc/class_datacache.php";
$cache = new datacache;





require_once MYBB_ROOT."inc/class_plugins.php";
$plugins = new pluginSystem;


require_once MYBB_ROOT."inc/class_plugins.php";
$plugins = new pluginSystem;


Zeile 112Zeile 120
	}
}
$settings['wolcutoff'] = $settings['wolcutoffmins']*60;

	}
}
$settings['wolcutoff'] = $settings['wolcutoffmins']*60;

 

// Fix for people who for some specify a trailing slash on the board URL
if(substr($settings['bburl'], -1) == "/")
{
$settings['bburl'] = my_substr($settings['bburl'], 0, -1);
}

$mybb->settings = $settings;



$mybb->settings = $settings;



Zeile 152Zeile 166
/* URL Definitions */
define('PROFILE_URL', "member.php?action=profile&uid={uid}");
define('FORUM_URL', "forumdisplay.php?fid={fid}");

/* URL Definitions */
define('PROFILE_URL', "member.php?action=profile&uid={uid}");
define('FORUM_URL', "forumdisplay.php?fid={fid}");

define('FORUM_URL_PAGED', "forumdisplay.php?fid={fid}&page={page}");

define('FORUM_URL_PAGED', "forumdisplay.php?fid={fid}&page={page}");

define('THREAD_URL', "showthread.php?tid={tid}");

define('THREAD_URL', "showthread.php?tid={tid}");

define('THREAD_URL_PAGED', "showthread.php?tid={tid}&page={page}");

define('THREAD_URL_PAGED', "showthread.php?tid={tid}&page={page}");

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

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