mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-17 00:01:06 +02:00
Merge branch 'master' into Development
This commit is contained in:
commit
2727d53d62
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ if ($cn == '1') {
|
||||||
|
|
||||||
$protocol = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443) ? "https://" : "http://";
|
$protocol = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443) ? "https://" : "http://";
|
||||||
$host = $_SERVER["HTTP_HOST"];
|
$host = $_SERVER["HTTP_HOST"];
|
||||||
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\");
|
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\\\");
|
||||||
define("APP_URL", $protocol . $host . $baseDir);
|
define("APP_URL", $protocol . $host . $baseDir);
|
||||||
|
|
||||||
// Live, Dev, Demo
|
// Live, Dev, Demo
|
||||||
|
@ -61,7 +61,7 @@ if($_app_stage!="Live"){
|
||||||
$input = '<?php
|
$input = '<?php
|
||||||
$protocol = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443) ? "https://" : "http://";
|
$protocol = (!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] !== "off" || $_SERVER["SERVER_PORT"] == 443) ? "https://" : "http://";
|
||||||
$host = $_SERVER["HTTP_HOST"];
|
$host = $_SERVER["HTTP_HOST"];
|
||||||
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\");
|
$baseDir = rtrim(dirname($_SERVER["SCRIPT_NAME"]), "/\\\\");
|
||||||
define("APP_URL", $protocol . $host . $baseDir);
|
define("APP_URL", $protocol . $host . $baseDir);
|
||||||
|
|
||||||
// Live, Dev, Demo
|
// Live, Dev, Demo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue