Add files via upload

This commit is contained in:
qkqpttgf
2020-01-18 00:46:26 +08:00
committed by GitHub
parent b0e75a3d54
commit c489399fc9
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -2,6 +2,7 @@
function getpath()
{
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
$_SERVER['base_path'] = path_format(substr($_SERVER['SCRIPT_NAME'], 0, -10) . '/');
$p = strpos($_SERVER['REQUEST_URI'],'?');
if ($p>0) $path = substr($_SERVER['REQUEST_URI'], 0, $p);