diff --git a/docroot/index.php b/docroot/index.php index 97c12d79..239660f1 100644 --- a/docroot/index.php +++ b/docroot/index.php @@ -285,9 +285,13 @@ function printHTMLErrorMsg($msg) { \n"; - printf($meta, strftime('%Y-%m-%d %H:%m:%S'), $_SERVER['HTTP_HOST'], - $_SERVER['REQUEST_URI']); + // Find out http or https + $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; + + // Debug information + $meta = "\n"; + printf($meta, date('Y-m-d H:m:s'), $_SERVER['HTTP_HOST'], $_SERVER['REQUEST_URI']); + ?> Helioviewer.org API - Error