Vergleich inc/init.php - 1.2.1 - 1.2.7

  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 2932 2007-03-10 05:48:55Z 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";

 


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

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

 


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

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