<?php
$filename = basename(__FILE__);
$request_uri = preg_replace('/^(.*?'.preg_quote($filename).')/i', '', $_SERVER['REQUEST_URI']);
if (empty($request_uri)) { $request_uri = '/'; }

$_SERVER['REQUEST_URI'] = $request_uri;

chdir('web/');
include('index.php');

Allow 'Spark' to be Run Anywhere
Allow 'Spark' to be Run Anywhere

Running the 'Spark' framework through `info.php` allows the application
to be run in a directory other than root and without 'rewrite' rules.
