@@ -369,12 +369,6 @@ function console_output()
369
369
370
370
chdir ($ _SERVER ['DOCUMENT_ROOT ' ]);
371
371
372
- if (ini_get ('auto_prepend_file ' ) && !in_array (realpath (ini_get ('auto_prepend_file ' )), get_included_files (), true )) {
373
-
374
- include (ini_get ('auto_prepend_file ' ));
375
-
376
- }
377
-
378
372
$ uri_path = $ this ->URI_no_query ();
379
373
$ uri_filepath = $ _SERVER ['DOCUMENT_ROOT ' ] . '/ ' . urldecode (substr ($ uri_path , 1 ));
380
374
@@ -388,10 +382,6 @@ function console_output()
388
382
389
383
$ _SERVER ['SCRIPT_FILENAME ' ] = $ this ->format_unix ($ _SERVER ['DOCUMENT_ROOT ' ] . DIRECTORY_SEPARATOR . $ this ->indexPath );
390
384
391
- /*echo '<pre>';
392
- print_r($_SERVER);
393
- die();*/
394
-
395
385
if (!file_exists ($ load_index )) {
396
386
397
387
$ not_found_message = "Your script file doesn't exist at " . $ load_index ;
@@ -402,19 +392,18 @@ function console_output()
402
392
} else {
403
393
404
394
if (file_exists ($ uri_filepath ) && !is_dir ($ uri_filepath )) {
395
+
405
396
$ this ->process_request ();
406
397
407
398
exit ();
408
399
409
400
} else {
410
401
411
- /*echo '<pre>';
412
- print_r($_SERVER);
413
- die();*/
414
402
$ this ->favicon ();
415
403
416
- return FALSE ;
417
- //return include($_SERVER['DOCUMENT_ROOT'] . "/$this->indexPath");
404
+ //header("Content-Length: 0");
405
+ //return false;
406
+ return include ($ _SERVER ['DOCUMENT_ROOT ' ] . "/ $ this ->indexPath " );
418
407
419
408
}
420
409
@@ -492,11 +481,6 @@ function listen()
492
481
{
493
482
494
483
$ this ->init ();
495
- /*
496
- echo '<pre>';
497
- //phpinfo();
498
- print_r($_SERVER);
499
- die();*/
500
484
501
485
if ($ this ->URIhasPHP ()) {
502
486
0 commit comments