Added stylesheets with default Comic Sans MS and Bitstream Vera Sans/Verdana
[squirrelmail.git] / functions / global.php
index e01cbb6c4a8585756e184421de0a7974985c0289..955c53629b8e8b936098f050f612091ae75ae937 100644 (file)
@@ -29,6 +29,8 @@ if(isset($session_name) && $session_name) {
  */
 ini_set('magic_quotes_runtime','0');
 
+sqsession_is_active();
+
 /* convert old-style superglobals to current method
  * this is executed if you are running PHP 4.0.x.
  * it is run via a require_once directive in validate.php 
@@ -167,6 +169,7 @@ define('SQ_POST',2);
 define('SQ_SESSION',3);
 define('SQ_COOKIE',4);
 define('SQ_SERVER',5);
+define('SQ_FORM',6);
 
 /**
  * Search for the var $name in $_SESSION, $_POST, $_GET,
@@ -209,7 +212,7 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) {
           so that if a valid value isn't specified, 
           all three arrays will be searched. */
       default:
-      case SQ_INORDER:
+      case SQ_INORDER: // check session, post, get
       case SQ_SESSION:
         if( isset($_SESSION[$name]) ) {
             $value = $_SESSION[$name];
@@ -217,6 +220,7 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) {
         } elseif ( $search == SQ_SESSION ) {
             break;
         }
+      case SQ_FORM:   // check post, get
       case SQ_POST:
         if( isset($_POST[$name]) ) {
             $value = $_POST[$name];