$value) { if (substr($name, 0, 5) == 'HTTP_') { $headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; } } return $headers; } } // Protection define('INFRAMEWORK', TRUE); // Initialize variables define('DS', DIRECTORY_SEPARATOR); define('EXT', '.php'); global $root, $appDir; $root = dirname(__FILE__); // App folder config $appDir = $root . DS . 'app'; // Include path for multiple library compatibility set_include_path($appDir . DS . 'lib'); // Include bootstrapper include_once($appDir . DS . 'init.php');