The Scriptcase provides the macro sc_site_ssl (https protocol) to see if the site is safe.
Note: This macro works only for the IIS web server (Internet Information Server).
Example 1: Using the affirmative.
if (sc_site_ssl) {
echo "okay - Secure Site";
}
Example 2: Using the negative.
if (! sc_site_ssl) {
echo "Danger - Site is not safe";
}
Example 3: Redirecting if the site is not safe.
if (! sc_site_ssl){
sc_redir ( "http://www.PAGE.com/");
}
Ronyan Alves
Comments