converted to unix-style eol
[www-register-wizard.git] / codeigniter / Compat.php
index 291f01d..6100956 100644 (file)
@@ -1,93 +1,93 @@
-<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\r
-/**\r
- * CodeIgniter\r
- *\r
- * An open source application development framework for PHP 4.3.2 or newer\r
- *\r
- * @package            CodeIgniter\r
- * @author             ExpressionEngine Dev Team\r
- * @copyright  Copyright (c) 2008, EllisLab, Inc.\r
- * @license            http://codeigniter.com/user_guide/license.html\r
- * @link               http://codeigniter.com\r
- * @since              Version 1.0\r
- * @filesource\r
- */\r
-\r
-// ------------------------------------------------------------------------\r
-\r
-/**\r
- * Compatibility Functions\r
- *\r
- * Function overrides for older versions of PHP or PHP environments missing\r
- * certain extensions / libraries\r
- *\r
- * @package            CodeIgniter\r
- * @subpackage codeigniter\r
- * @category   Compatibility Functions\r
- * @author             ExpressionEngine Development Team\r
- * @link               http://codeigniter.com/user_guide/\r
- */\r
-\r
-// ------------------------------------------------------------------------\r
-\r
-/*\r
- * PHP versions prior to 5.0 don't support the E_STRICT constant\r
- * so we need to explicitly define it otherwise the Exception class \r
- * will generate errors when running under PHP 4\r
- *\r
- */\r
-if ( ! defined('E_STRICT'))\r
-{\r
-       define('E_STRICT', 2048);\r
-}\r
-\r
-/**\r
- * ctype_digit()\r
- *\r
- * Determines if a string is comprised only of digits\r
- * http://us.php.net/manual/en/function.ctype_digit.php\r
- *\r
- * @access     public\r
- * @param      string\r
- * @return     bool\r
- */\r
-if ( ! function_exists('ctype_digit'))\r
-{\r
-       function ctype_digit($str)\r
-       {\r
-               if ( ! is_string($str) OR $str == '')\r
-               {\r
-                       return FALSE;\r
-               }\r
-               \r
-               return ! preg_match('/[^0-9]/', $str);\r
-       }       \r
-}\r
-\r
-// --------------------------------------------------------------------\r
-\r
-/**\r
- * ctype_alnum()\r
- *\r
- * Determines if a string is comprised of only alphanumeric characters\r
- * http://us.php.net/manual/en/function.ctype-alnum.php\r
- *\r
- * @access     public\r
- * @param      string\r
- * @return     bool\r
- */\r
-if ( ! function_exists('ctype_alnum'))\r
-{\r
-       function ctype_alnum($str)\r
-       {\r
-               if ( ! is_string($str) OR $str == '')\r
-               {\r
-                       return FALSE;\r
-               }\r
-               \r
-               return ! preg_match('/[^0-9a-z]/i', $str);\r
-       }       \r
-}\r
-\r
-/* End of file Compat.php */\r
+<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
+/**
+ * CodeIgniter
+ *
+ * An open source application development framework for PHP 4.3.2 or newer
+ *
+ * @package            CodeIgniter
+ * @author             ExpressionEngine Dev Team
+ * @copyright  Copyright (c) 2008, EllisLab, Inc.
+ * @license            http://codeigniter.com/user_guide/license.html
+ * @link               http://codeigniter.com
+ * @since              Version 1.0
+ * @filesource
+ */
+
+// ------------------------------------------------------------------------
+
+/**
+ * Compatibility Functions
+ *
+ * Function overrides for older versions of PHP or PHP environments missing
+ * certain extensions / libraries
+ *
+ * @package            CodeIgniter
+ * @subpackage codeigniter
+ * @category   Compatibility Functions
+ * @author             ExpressionEngine Development Team
+ * @link               http://codeigniter.com/user_guide/
+ */
+
+// ------------------------------------------------------------------------
+
+/*
+ * PHP versions prior to 5.0 don't support the E_STRICT constant
+ * so we need to explicitly define it otherwise the Exception class 
+ * will generate errors when running under PHP 4
+ *
+ */
+if ( ! defined('E_STRICT'))
+{
+       define('E_STRICT', 2048);
+}
+
+/**
+ * ctype_digit()
+ *
+ * Determines if a string is comprised only of digits
+ * http://us.php.net/manual/en/function.ctype_digit.php
+ *
+ * @access     public
+ * @param      string
+ * @return     bool
+ */
+if ( ! function_exists('ctype_digit'))
+{
+       function ctype_digit($str)
+       {
+               if ( ! is_string($str) OR $str == '')
+               {
+                       return FALSE;
+               }
+               
+               return ! preg_match('/[^0-9]/', $str);
+       }       
+}
+
+// --------------------------------------------------------------------
+
+/**
+ * ctype_alnum()
+ *
+ * Determines if a string is comprised of only alphanumeric characters
+ * http://us.php.net/manual/en/function.ctype-alnum.php
+ *
+ * @access     public
+ * @param      string
+ * @return     bool
+ */
+if ( ! function_exists('ctype_alnum'))
+{
+       function ctype_alnum($str)
+       {
+               if ( ! is_string($str) OR $str == '')
+               {
+                       return FALSE;
+               }
+               
+               return ! preg_match('/[^0-9a-z]/i', $str);
+       }       
+}
+
+/* End of file Compat.php */
 /* Location: ./system/codeigniter/Compat.php */
\ No newline at end of file