} } // Include all the system modules. $folder = FOLDER_SYSTEM_MODULES; $handle = opendir($folder); while (false !== ($file = readdir($handle))) { if (is_file($folder . $file)) { include_once $folder . $file; } } // Include the database class. include_once '../Databases/' . DATABASE_TYPE . '.database.inc'; // Include the session class. include_once '../Sessions/' . SESSION_TYPE . '.session.inc'; // Manage post data. Form::manage_post_data($_POST); // Manage session data Session::manage_requested_data($_COOKIE); if ($_GET['request'] == 'controller') { if (isset($_GET['path']) && strpos($_GET['path'], '/') !== false) { // Orginaize variables, and fetch the URL $path = explode('/', $_GET['path']); $controller = $path[0]; $action = $path[1]; unset($path[0], $path[1]); $variables = $path; if (empty($controller) || empty($action)) { exit('<strong>Fatel Error:</strong> Cannot fetch URL.'); } // Fetch get variables $_GET = array();