#SSL TEST PAGE#

This page is used purely to test for SSL availability.

<?php $ssl = FALSE; if (isset($_SERVER['HTTPS'])) { if (strtolower($_SERVER['HTTPS']) == 'on') { echo "#SERVER-HTTPS-ON#" . " (" . htmlentities($_SERVER['HTTPS'], ENT_QUOTES, 'UTF-8') . ")
"; $ssl = TRUE; } if ('1' == $_SERVER['HTTPS']) { echo "#SERVER-HTTPS-1#
"; $ssl = TRUE; } } if (isset($_SERVER['SERVER_PORT']) && ('443' == $_SERVER['SERVER_PORT'])) { echo "#SERVERPORT443#
"; $ssl = TRUE; } if (isset($_ENV['HTTPS']) && ('on' == $_ENV['HTTPS'])) { echo "#ENVHTTPS#
"; $ssl = TRUE; } if (!empty($_SERVER['HTTP_CLOUDFRONT_FORWARDED_PROTO']) && ($_SERVER['HTTP_CLOUDFRONT_FORWARDED_PROTO'] == 'https')) { echo "#CLOUDFRONT#
"; $ssl = TRUE; } if (!empty($_SERVER['HTTP_CF_VISITOR']) && ($_SERVER['HTTP_CF_VISITOR'] == 'https')) { echo "#CLOUDFLARE#
"; $ssl = TRUE; } if (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) { echo "#LOADBALANCER#
"; $ssl = TRUE; } if (!empty($_SERVER['HTTP_X_PROTO']) && ($_SERVER['HTTP_X_PROTO'] == 'SSL')) { echo "#HTTP_X_PROTO#
"; $ssl = TRUE; } if (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && ($_SERVER['HTTP_X_FORWARDED_SSL'] == 'on')) { echo "#HTTP_X_FORWARDED_SSL_ON#
"; $ssl = TRUE; } if (!empty($_SERVER['HTTP_X_FORWARDED_SSL']) && ($_SERVER['HTTP_X_FORWARDED_SSL'] == '1')) { echo "#HTTP_X_FORWARDED_SSL_1#
"; $ssl = TRUE; } if ($ssl) { echo "
#SUCCESFULLY DETECTED SSL#"; } else { echo "
#NO KNOWN SSL CONFIGURATION DETECTED#"; } ?>