app/_ozo/classes/Ozo/Request.php [ 650 ]
645 }
646
647 // No matching route for this URI
648 $this->status = 404;
649
650 throw new Exception('Unable to find a route to match the ' . $uri);
651 }
652
653 /**
654 * Returns the response as the string representation of a request.
655 *
-
app/_ozo/classes/Ozo/Request.php [ 260 ] » Ozo_Request->__construct(arguments)
uristring(27) "/18-dobry-hotel-Wroclaw.php"255 256 // Remove all dot-paths from the URI, they are not valid 257 $uri = preg_replace('#\.[\s./]*/#', '', $uri); 258 259 // Create the instance singleton 260 Request::$instance = Request::$current = new Request($uri); 261 262 // Add the default Content-Type header 263 Request::$instance->headers['Content-Type'] = 'text/html; charset=' . Ozo::$charset; 264 } 265 if (isset($redirect)) { -
app/_ozo/classes/Ozo/Application.php [ 36 ] » Ozo_Request::instance()
31 public function __construct() { 32 Application::$current = $this; 33 34 $this->routes(); 35 Ozo::$baseUrl = '/' . OZO_APP . '/'; 36 $this->request = Request::instance(); 37 38 Ozo::load('classes/Opl', 'Exception'); 39 Ozo::load('classes/Opt', 'Exception'); 40 } 41 -
app/_ozo/classes/Ozo/Application.php [ 22 ] » Ozo_Application->__construct()
17 public $langs = array(); 18 public $globals = array(); 19 public static $website; 20 21 public static function run() { 22 $application = new Application(); 23 $application->before(); 24 $application->execute(); 25 $application->after(); 26 Ozo::$application = $application; 27 } -
app/_ozo/index.php [ 31 ] » Ozo_Application::run()
26 Ozo::init(); 27 Ozo::load('config', 'defaults', TRUE); 28 Ozo::load('config', 'init', TRUE); 29 30 // Db::add(Ozo::config('db')); 31 Application::run(); 32 33 Ozo::deinit(); -
app/index.php [ 11 ] » require_once(arguments)
0string(44) "/home/users/aalto/public_html/_ozo/index.php"6 } elseif ($_SERVER['SERVER_ADMIN'] === 'admin@vipserv.org') { 7 define('OZO_ENV', 'test'); 8 require_once '../_ozo/index.php'; 9 } else { 10 define('OZO_ENV', 'prod'); 11 require_once '_ozo/index.php'; 12 }