Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5badd34

Browse files
s
1 parent 6a613eb commit 5badd34

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

‎src/router.class.php‎

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -369,12 +369,6 @@ function console_output()
369369

370370
chdir($_SERVER['DOCUMENT_ROOT']);
371371

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-
378372
$uri_path = $this->URI_no_query();
379373
$uri_filepath = $_SERVER['DOCUMENT_ROOT'] . '/' . urldecode(substr($uri_path, 1));
380374

@@ -388,10 +382,6 @@ function console_output()
388382

389383
$_SERVER['SCRIPT_FILENAME'] = $this->format_unix($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $this->indexPath);
390384

391-
/*echo '<pre>';
392-
print_r($_SERVER);
393-
die();*/
394-
395385
if (!file_exists($load_index)) {
396386

397387
$not_found_message = "Your script file doesn't exist at " . $load_index;
@@ -402,19 +392,18 @@ function console_output()
402392
} else {
403393

404394
if (file_exists($uri_filepath) && !is_dir($uri_filepath)) {
395+
405396
$this->process_request();
406397

407398
exit();
408399

409400
} else {
410401

411-
/*echo '<pre>';
412-
print_r($_SERVER);
413-
die();*/
414402
$this->favicon();
415403

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");
418407

419408
}
420409

@@ -492,11 +481,6 @@ function listen()
492481
{
493482

494483
$this->init();
495-
/*
496-
echo '<pre>';
497-
//phpinfo();
498-
print_r($_SERVER);
499-
die();*/
500484

501485
if ($this->URIhasPHP()) {
502486

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /