List

Try: ca/tecreations/ViewFile.php


<?php

function getSecure() {
     if (!isset($_SERVER['HTTPS'])) {
	 header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
     }
}

function isSecure() {
    return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on';
}