Ejemplo n.º 1
0
    }
}
class EUnloader
{
    public function __destruct()
    {
        EDatabase::unload();
    }
}
$unloader = new EUnloader();
//including all modules
ELoader::loadAllModules();
//loading current website configuration
EConfig::load();
//protecting whole website with auth and enabled
EProtect::load();
//rewrite url if needed
if (EConfig::$data['generic']['rewrite'] == "yes") {
    ERewriter::enable();
    ERewriter::load();
} else {
    ERewriter::disable();
}
//loading get/post
if (EConfig::$data['generic']['protectheaders'] == "yes") {
    EHeaderDataParser::load();
}
//loading database
if (EConfig::$data['generic']['database'] == "yes") {
    EDatabase::load();
}