Vergleich inc/init.php - 1.2.8 - 1.2.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

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

 * $Id: init.php 3030 2007-04-26 00:19:47Z Tikitiki $

 * $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 40Zeile 40

require_once MYBB_ROOT."inc/class_core.php";
$mybb = new MyBB;


require_once MYBB_ROOT."inc/class_core.php";
$mybb = new MyBB;


// 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);
}

 

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


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

Zeile 53Zeile 47
if(!isset($config['dbtype']))
{
$mybb->trigger_generic_error("board_not_installed", true);

if(!isset($config['dbtype']))
{
$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']))

}

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

Zeile 60Zeile 60
	$config['admin_dir'] = "admin";
}
$mybb->config = $config;

	$config['admin_dir'] = "admin";
}
$mybb->config = $config;





if(!function_exists($config['dbtype']."_connect"))
{
$config['dbtype'] = "mysql";
}

if(!function_exists($config['dbtype']."_connect"))
{
$config['dbtype'] = "mysql";
}





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

require_once MYBB_ROOT."inc/functions.php";

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

require_once MYBB_ROOT."inc/functions.php";





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


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


Zeile 100Zeile 100
if(file_exists(MYBB_ROOT."inc/settings.php"))
{
require_once MYBB_ROOT."inc/settings.php";

if(file_exists(MYBB_ROOT."inc/settings.php"))
{
require_once MYBB_ROOT."inc/settings.php";

}

}


if(!file_exists(MYBB_ROOT."inc/settings.php") || !$settings)
{


if(!file_exists(MYBB_ROOT."inc/settings.php") || !$settings)
{

Zeile 110Zeile 110
	);
$query = $db->simple_select(TABLE_PREFIX."settings", "value, name", "", $options);
while($setting = $db->fetch_array($query))

	);
$query = $db->simple_select(TABLE_PREFIX."settings", "value, name", "", $options);
while($setting = $db->fetch_array($query))

	{

	{

		$setting['value'] = str_replace("\"", "\\\"", $setting['value']);
$settings[$setting['name']] = $setting['value'];

		$setting['value'] = str_replace("\"", "\\\"", $setting['value']);
$settings[$setting['name']] = $setting['value'];

	}

	}

	if(function_exists('rebuildsettings'))
{
rebuildsettings();
}

	if(function_exists('rebuildsettings'))
{
rebuildsettings();
}

}

}

$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 160Zeile 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");
?>