Browse Source

SSL color modification

Pheella 3 years ago
parent
commit
3724747071
2 changed files with 4 additions and 1 deletions
  1. 3 0
      index.php
  2. 1 1
      templates/template.html

+ 3 - 0
index.php

@@ -2,6 +2,9 @@
 require_once '/var/www/html/vendor/autoload.php';
 
 $array = [];
+$array['ssl']=false;
+if($_SERVER['SERVER_PORT']==443){$array['ssl']=true;}
+
 $array['title'] = $_SERVER['CUSTOM_SERVER_NAME'];
 
 $items = array(

+ 1 - 1
templates/template.html

@@ -7,7 +7,7 @@
 		<style type="text/css">
 			html, body {
 				margin: 0;
-				background-color: #F5F5F5;
+				background-color: {% if not ssl %}#CD5C5C{% else %}#32CD32{% endif %};
 				font-size: 15px;
 				font-weight: 400;
 			}