fix installation file step4.php
This commit is contained in:
parent
5111166316
commit
4b6204391b
@ -30,7 +30,7 @@ if ($cn == '1') {
|
||||
|
||||
$protocol = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443) ? "https://" : "http://";
|
||||
$host = $_SERVER["HTTP_HOST"];
|
||||
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\");
|
||||
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\\\");
|
||||
define("APP_URL", $protocol . $host . $baseDir);
|
||||
|
||||
// Live, Dev, Demo
|
||||
@ -61,7 +61,7 @@ if($_app_stage!="Live"){
|
||||
$input = '<?php
|
||||
$protocol = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443) ? "https://" : "http://";
|
||||
$host = $_SERVER["HTTP_HOST"];
|
||||
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\");
|
||||
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\\\");
|
||||
define("APP_URL", $protocol . $host . $baseDir);
|
||||
|
||||
// Live, Dev, Demo
|
||||
|
Loading…
x
Reference in New Issue
Block a user