<?php
if ( strlen($_SERVER['HTTPS']) == 0 && strlen($_SERVER['QUERY_STRING']) == 0 ) {
echo "<div id=\"sslhinweis\">Benutze doch HTTPS! -> ";
echo "<a href=\"https://{$_SERVER['SERVER_NAME']}/\">https://{$_SERVER['SERVER_NAME']}</a></div>";
}
?>
</body>
</html>