#!/usr/bin/php5 'Security', 'db/$Action' => 'DatabaseAdmin', '$Controller/$Action/$ID/$OtherID' => '*', 'images/$Action/$Class/$ID/$Field' => 'Image_Uploader', '' => '->home/', '$URLSegment/$Action/$ID/$OtherID' => 'ModelAsController', )); // Load error handlers Debug::loadErrorHandlers(); // Connect to database require_once("core/model/DB.php"); DB::connect($databaseConfig); // Get the request URL // $baseURL = dirname(dirname($_SERVER[SCRIPT_NAME])); $url = $_GET['url']; $url = $_SERVER['argv'][1]; // Direct away - this is the "main" function, that hands control to the apporopriate controllerx $dir = new Director(); $dir->direct($url); ?>