$CORE->register_Module('sendmail', 'SERVER', $server_config['CORE']); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; } //open database connection $DB = $CORE->DatabaseConnection(); //Open database connection to auth $AUTH_DB = $CORE->AuthDatabaseConnection(); //Load necessary server modules $CORE->load_ServerModule('columns'); $CORE->load_ServerModule('account'); //starting the session class and defining it $SESSION = new Session(); //setting up session handlers from our PHP Class sessions $SESSION->register(); //setup the security class $SECURITY = new Security(); //Unregistring globals for security $SECURITY->unregisterGlobals(); //filter the request methods $SECURITY->RestrictHttpMethods(array('POST', 'GET')); //check if the session has expired $SECURITY->CheckSessionLife(); //setup Current User class $CURUSER = new CURUSER(); //setup the Cache $CACHE = new Cache(array('repo' => $config['RootPath'] . '/cache')); ############################################## ## Make an User Check server_Account::userCheck(true); ##############################################
$AUTH_DB = $CORE->AuthDatabaseConnection(); //unset the config variables unset($auth_config); //Load necessary server modules $CORE->load_ServerModule('columns'); $CORE->load_ServerModule('account'); //starting the session class and defining it $SESSION = new Session(); //setting up session handlers from our PHP Class sessions $SESSION->register(); //setup the security class $SECURITY = new Security(); //Unregistring globals for security $SECURITY->unregisterGlobals(); //filter the request methods $SECURITY->RestrictHttpMethods(array('POST', 'GET')); //check if the session has expired $SECURITY->CheckSessionLife(); //setup Current User class $CURUSER = new CURUSER(); //setup the Notifications class $NOTIFICATIONS = new Notifications(); //setup the Cache $CACHE = new Cache(array('repo' => $config['RootPath'] . '/cache')); //Setup the Template class $TPL = new Template(); ############################################## ## Make an User Check server_Account::RememberMeCheck(); server_Account::userCheck(); ##############################################