<?php
/*
___.
\_ |__ _____ _____ ____ _____ ______
| __ \ / \\__ \ _/ ___\ / \ / ___/
| \_\ \ Y Y \/ __ \\ \___| Y Y \\___ \
|___ /__|_| (____ /\___ >__|_| /____ >
\/ \/ \/ \/ \/ \/
Free and lightweight Habbo CMS
Developed by Nathan, Connor and Harrison
*/
/**
*
* This is where everything is initiated. You shouldn't need to touch anything here.
*
*/
/**
*
* This part is for development purposes.
*
*/
if($_SERVER['REMOTE_ADDR'] != "86.11.40.76" && $_SERVER['REMOTE_ADDR'] != "77.96.62.154" && $_SERVER['REMOTE_ADDR'] != "2.25.120.223" && $_SERVER['REMOTE_ADDR'] != "81.174.150.65")
{
header('Location: http://fustigate.info/403.shtml');
}
/**
*
* Error reporting..
*
*/
//error_reporting(E_ALL);
/**
*
* Lets throw in a few variables here..
*
*/
define("SEP", DIRECTORY_SEPARATOR);
define("INCLUDES", "includes/");
define("THEMES", "themes/");
define("CONFIGURATION", "configuration/");
define("SMARTY", "smarty/");
/**
*
* Require the classes..
*
*/
require_once INCLUDES . "Functions.class.php";
require_once INCLUDES . "Users.class.php";
require_once INCLUDES . "Database.class.php";
require_once INCLUDES . "Permissions.class.php";
require_once INCLUDES . "Template.class.php";
/**
*
* Require the configuration
*
*/
require_once INCLUDES . CONFIGURATION . "template_config.php";
require_once INCLUDES . CONFIGURATION . "system_config.php";
/**
*
* The OOP
*
*/
$functions = new Functions();
$users = new Users();
$database = new Database();
$permissions = new Permissions();
$register = new Register();
$template = new Template();
/**
*
* Connect to the database
*
*/
$database->connect($config['MySQL']['host'], $config['MySQL']['user'], $config['MySQL']['password'], $config['MySQL']['database']);
/**
*
* Initiate the session
*
*/
session_start();
/**
*
* Smarty!!111
*
*/
require_once INCLUDES . SMARTY . "Smarty.class.php";
$smarty = new Smarty();
$smarty->setTemplateDir(THEMES . $config['Template']['theme']);
$smarty->setCompileDir(INCLUDES . SMARTY . "templates_c");
$smarty->setCacheDir(INCLUDES . SMARTY . "cache");
$smarty->setConfigDir(INCLUDES . SMARTY . "configs");
?>