<?php
@session_start();
@ob_start();
@ob_implicit_flush(0);

@error_reporting(E_ALL ^ E_WARNING ^ E_NOTICE);

define('MOZG', true);
define('ROOT_DIR', dirname (__FILE__));
define('ENGINE_DIR', ROOT_DIR.'/system');
define('ADMIN_DIR', ROOT_DIR.'/admin');

@include ENGINE_DIR.'/configs/site.php';

if(!$config['home_url']) die("TOEngine not installed. Please run install.php");

$admin_link = $config['home_url'].'admin.php';

include ENGINE_DIR.'/classes/mysql.php';
include ENGINE_DIR.'/configs/database.php';
include ADMIN_DIR.'/functions.php';
include ADMIN_DIR.'/signin.php';

$db->close();
?>