summaryrefslogtreecommitdiff
path: root/www/include.php
diff options
context:
space:
mode:
authorroot2014-03-26 03:07:06 +0100
committerroot2014-03-26 03:07:06 +0100
commite009b1e84dcbcc83f39652695eb86c6e64cc6a11 (patch)
treea4745e74da7f5ffc4b359ae5a8cb67aec9c770c9 /www/include.php
parentf1840d40760abb9869bd218ca510eceb94f86478 (diff)
downloadfiles.iamfabulous.de-e009b1e84dcbcc83f39652695eb86c6e64cc6a11.tar.gz
Now conform to HTTP/1.1. Also integrated func_download.
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/";