Beispiel #1
0
// Require Configuration File
require_once 'config.php';
// Require Fram3w0rk and necessary classes
require_once FRAM3W0RK_DIR . 'index.php';
Instance::$import = array('class.php');
Instance::load();
Log::$blnLog = TRUE;
// Create global array
$_VARS = array();
// Create defaults for DBI
$DBI = Instance::get('DBI');
DBI::setDefaults(array("lang" => DBI_LANG, "host" => DBI_SERVER, "user" => DBI_USER, "pass" => DBI_PASS, "database" => DBI_DB));
$DBI->connect();
// Create defaults for FTP
FTP::setDefaults(FTP_SERVER, FTP_USER, FTP_PASS);
$FTP = Instance::get('FTP');
$FTP->connect();
// Pull in CMS variables
$_VARS["WEBSITE"] = Module::getInfo('');
$_VARS["WEBSITE"] = $_VARS["WEBSITE"]["values"];
$_VARS['PHP']['version'] = phpversion();
if ($_VARS["WEBSITE"]['mode'] == "DEV") {
    $_VARS['PHP']['extensions'] = get_loaded_extensions();
}
$_VARS['PAGE']['request']['get'] = $_GET;
$_VARS['PAGE']['request']['post'] = $_POST;
$_VARS['PAGE']['request']['all'] = $_REQUEST;
// Unset rewrite variables
unset($_VARS['PAGE']['request']['get']["TYPE"]);
unset($_VARS['PAGE']['request']['post']["TYPE"]);