Update functions.php

pull/13/head
qkqpttgf 2020-01-05 16:58:01 +08:00 committed by GitHub
parent 20d44cb333
commit 31d042a90e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ function ConfigWriteable()
function RewriteEngineOn() function RewriteEngineOn()
{ {
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://'; $http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
$tmpurl=$http_type . $_SERVER['SERVER_NAME'] . '/config.php'; //.$_SERVER["REQUEST_URI"]; $tmpurl=$http_type . path_format($_SERVER['SERVER_NAME'] . $_SERVER['base_path'] . '/config.php');
$tmp = curl_request($tmpurl); $tmp = curl_request($tmpurl);
if ($tmp['stat']==201) return true; //when install return 201, after installed return 404 or 200; if ($tmp['stat']==201) return true; //when install return 201, after installed return 404 or 200;
return false; return false;