summaryrefslogtreecommitdiff
path: root/www/include.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/include.php')
-rwxr-xr-xwww/include.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/www/include.php b/www/include.php
index 94eaba9..aa90993 100755
--- a/www/include.php
+++ b/www/include.php
@@ -1,5 +1,13 @@
<?php
+$scheme="http://";
+
+if(isset($_SERVER["HTTPS"])){
+ if($_SERVER["HTTPS"] == "on"){
+ $scheme="https://";
+ }
+}
+
require_once("constants.php");
$func_dir = "functions/";