Initial Commit

This commit is contained in:
Timothy Rogers 2020-03-06 20:40:46 -05:00
commit 67767e3faa
11 changed files with 343 additions and 0 deletions

9
views/https.php Normal file
View file

@ -0,0 +1,9 @@
<?php
//If the HTTPS is not found to be "on"
if(!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on")
{
//Tell the browser to redirect to the HTTPS URL.
header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], true, 301);
//Prevent the rest of the script from executing.
exit;
}