Example #1
0
$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"]);
unset($_VARS['PAGE']['request']['both']["TYPE"]);
unset($_VARS['PAGE']['request']['get']["PATH"]);
unset($_VARS['PAGE']['request']['post']["PATH"]);
unset($_VARS['PAGE']['request']['both']["PATH"]);
$_VARS["TYPE"] = $_REQUEST["TYPE"];
$_VARS["PATH"] = $_REQUEST["PATH"];
unset($_GET["TYPE"]);
unset($_POST["TYPE"]);
unset($_REQUEST["TYPE"]);
unset($_GET["PATH"]);
unset($_POST["PATH"]);
unset($_REQUEST["PATH"]);
date_default_timezone_set($_VARS["WEBSITE"]['time_zone']);
Instance::get('Session');
$_VARS['WEBSITE']['account'] = Account::verify();
$_VARS["WEBSITE"]['cookies'] = Session::getCookies();
$_VARS["WEBSITE"]['cookies'] = $_VARS["WEBSITE"]['cookies']['data'];