diff options
-rw-r--r-- | sitemap.php | 2 | ||||
-rw-r--r-- | template/images.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sitemap.php b/sitemap.php index 6f6c095..041550c 100644 --- a/sitemap.php +++ b/sitemap.php @@ -5,7 +5,7 @@ include "data/config.php"; $domain = htmlspecialchars( - (strpos(strtolower($_SERVER['SERVER_PROTOCOL']), 'https') === false ? 'http' : 'https') . + ((isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] === 1)) ? "https" : "http") . '://' . $_SERVER["HTTP_HOST"] ); diff --git a/template/images.html b/template/images.html index 6007e44..647ec3d 100644 --- a/template/images.html +++ b/template/images.html @@ -1,4 +1,4 @@ - <div class="timetaken">Took {%timetaken%}s</div> + Took {%timetaken%} <div id="images"> {%images%} </div> |