} if (!empty($_SERVER['HTTP_CLOUDFRONT_FORWARDED_PROTO']) && $_SERVER['HTTP_CLOUDFRONT_FORWARDED_PROTO'] === 'https') { return true; } return false; } public static function getProtocol() { return self::isHttps() ? 'https:' : 'http:'; } public static function getBasePath() { return self::getProtocol() . '//' . $_SERVER['HTTP_HOST'] . substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')) . '/'; } } $basepath = HttpHelper::getBasePath(); ?> <!doctype html> <!--[if IE 8]> <html class="no-js lt-ie10 lt-ie9"> <![endif]--> <!--[if IE 9]><html class="no-js lt-ie10"><![endif]--> <!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" /> <title>Pay it</title> <!-- this is used for history, absolute uri to your 'index' --> <meta name="document-base" content="<?php echo $basepath;