[ Index ]

PHP Cross Reference of osCMax 2.0.4

title

Body

[close]

/install/includes/functions/ -> compatibility.php (source)

   1  <?php
   2  /*
   3    $Id: compatibility.php 1739 2007-12-20 00:52:16Z user $
   4  
   5    osCMax Power E-Commerce
   6    http://www.oscmax.com
   7  
   8    Copyright 2009 osCMax
   9  
  10    Released under the GNU General Public License
  11  */
  12  
  13    if (PHP_VERSION >= 4.1) {
  14      $HTTP_GET_VARS =& $_GET;
  15      $HTTP_POST_VARS =& $_POST;
  16      $HTTP_COOKIE_VARS =& $_COOKIE;
  17      $HTTP_SESSION_VARS =& $_SESSION;
  18      $HTTP_SERVER_VARS =& $_SERVER;
  19    } else {
  20      if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array();
  21      if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array();
  22      if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array();
  23    }
  24  
  25    if (!function_exists('is_numeric')) {
  26      function is_numeric($param) {
  27        return ereg('^[0-9]{1,50}.?[0-9]{0,50}$', $param);
  28      }
  29    }
  30  ?>


Generated: Fri Jan 1 13:43:16 2010 Cross-referenced by PHPXref 0.7