lolcat hace 2 años
padre
commit
43162438af
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      sitemap.php
  2. 1 1
      template/images.html

+ 1 - 1
sitemap.php

@@ -5,7 +5,7 @@ include "data/config.php";
 
 
 $domain =
 $domain =
 	htmlspecialchars(
 	htmlspecialchars(
-		(strpos(strtolower($_SERVER['SERVER_PROTOCOL']), 'https') === false ? 'http' : 'https') .
+		((isset($_SERVER["HTTPS"]) && ($_SERVER["HTTPS"] == "on" || $_SERVER["HTTPS"] === 1)) ? "https" : "http") .
 		'://' . $_SERVER["HTTP_HOST"]
 		'://' . $_SERVER["HTTP_HOST"]
 	);
 	);
 
 

+ 1 - 1
template/images.html

@@ -1,4 +1,4 @@
-		<div class="timetaken">Took {%timetaken%}s</div>
+		Took {%timetaken%}
 		<div id="images">
 		<div id="images">
 			{%images%}
 			{%images%}
 		</div>
 		</div>