File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch08_User_and_Ses_Tracking/is_ssl.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch08_User_and_Ses_Tracking/is_ssl.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/03steinmetz_2008/ch08_User_and_Ses_Tracking/is_ssl.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 318 bytes
 

Contents

Class file image Download
<?php
function is_SSL() {
   
/* Checks to see whether the page is in secure mode */
   
if ($_SERVER['SERVER_PORT'] == "443") {
        return
true;
    } else {
        return
false;
    }
}

if (
is_SSL()) {
    print
"secure ($_SERVER[SERVER_PORT])";
} else {
    print
"not secure ($_SERVER[SERVER_PORT])";
}
?>

For more information send a message to info at phpclasses dot org.