コード例 #1
0
ファイル: site.php プロジェクト: Atomox/benhelmerphotography
     $httpErrorCodes['413'] = 'Request Entity Too Large';
     $httpErrorCodes['414'] = 'Request-url Too Long';
     $httpErrorCodes['415'] = 'Unsupported Media Type';
     $httpErrorCodes['416'] = 'Requested Range not satisfiable';
     $httpErrorCodes['417'] = 'Expectation Failed';
     $httpErrorCodes['500'] = 'Internal Server Error';
     $httpErrorCodes['501'] = 'Not Implemented';
     $httpErrorCodes['502'] = 'Bad Gateway';
     $httpErrorCodes['503'] = 'Service Unavailable';
     $httpErrorCodes['504'] = 'Gateway Timeout';
     $httpErrorCodes['505'] = 'HTTP Version Not Supported';
     header('HTTP/1.0 ' . $routed_variables['code'] . ' ' . $httpErrorCodes[$routed_variables['code']]);
 }
 $full_path = Koken::get_path($final_path);
 $tmpl = preg_replace('#<\\?.*?(\\?>|$)#s', '', file_get_contents($full_path));
 Koken::$routed_variables = $routed_variables;
 if ($stylesheet) {
     function go($tmpl)
     {
         Koken::$settings['style'] =& Koken::$settings['__style'];
         function url($matches)
         {
             $path = $matches[2];
             if ($matches[1]) {
                 $wrap = $matches[1];
             } else {
                 $wrap = '';
             }
             if (strpos($path, 'http') === 0 || strpos($path, 'data:') === 0) {
                 $path = $path;
             } else {