move_them()";
}
else {
// printing a meta redirect tag will move them
$string = "";
print $string;
}
}
function ask_them($url="") {
if (empty($url)) {
print "Null-string passed to ask_them()";
}
else {
print "Please use our secure sight: ";
print "$url";
exit; // very important
}
}
// main()
$docu = $PHP_SELF;
$name = $SERVER_NAME;
$sslp = $SSL_PROTOCOL;
if (empty($sslp)) {
$url = "https://$name$docu";
move_them($url);
// ask_them($url);
/* uncomment the above accordinly */
}
?>