Sha256: 4e95a86fc773108ca652830d46168994d26f059ea427a34888de6a498bbc741c
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
<?php $root = $_SERVER['DOCUMENT_ROOT']; chdir( $root ); $path = '/'. ltrim( parse_url( $_SERVER['REQUEST_URI'] )['path'], '/' ); set_include_path( get_include_path() .':'. __DIR__ ); if( file_exists( $root.$path ) ) { if( is_dir( $root.$path ) && substr( $path, strlen( $path ) - 1, 1 ) !== '/' ) { $path = rtrim( $path, '/' ) .'/index.php'; } if( strpos( $path, '.php' ) === false ) { return false; } else { chdir( dirname( $root.$path ) ); require_once $root.$path; } } else { include_once 'index.php'; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marv-0.3.2 | layouts/config/router.php.erb |