Update index.php

pull/13/head
qkqpttgf 2019-12-31 11:10:40 +08:00 committed by GitHub
parent 8817a177ac
commit 390135690a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<?php <?php
include 'conststr.php'; include 'conststr.php';
//echo '<pre>' . json_encode($_SERVER, JSON_PRETTY_PRINT) . '</pre>'; echo '<pre>' . json_encode($_SERVER, JSON_PRETTY_PRINT) . '</pre>';
if (!isset($_SERVER['REDIRECT_URL'])) $_SERVER['REDIRECT_URL'] = '/index.php'; if (!isset($_SERVER['REDIRECT_URL'])) $_SERVER['REDIRECT_URL'] = '/index.php';
if ($_SERVER['REDIRECT_URL']=='') $_SERVER['REDIRECT_URL']='/'; if ($_SERVER['REDIRECT_URL']=='') $_SERVER['REDIRECT_URL']='/';
$path = $_SERVER['REDIRECT_URL']; $path = $_SERVER['REDIRECT_URL'];