diff options
| author | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-07-02 13:14:35 +0000 |
|---|---|---|
| committer | artem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2008-07-02 13:14:35 +0000 |
| commit | 15b3431d068216bb134c64ff52af63bebc8f45f0 (patch) | |
| tree | 71e8667413452be6de6a27de24e32f634131d8cd /frontends/php/include/func.inc.php | |
| parent | 9c1ce6fd1d7f4617f0796fa9eb9246e4e184813c (diff) | |
| download | zabbix-15b3431d068216bb134c64ff52af63bebc8f45f0.tar.gz zabbix-15b3431d068216bb134c64ff52af63bebc8f45f0.tar.xz zabbix-15b3431d068216bb134c64ff52af63bebc8f45f0.zip | |
- [DEV-144] improvements in users authentication methods (Artem)
- [ZBX-387] fixed issue with undefined function ctype_digit (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5814 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/func.inc.php')
| -rw-r--r-- | frontends/php/include/func.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontends/php/include/func.inc.php b/frontends/php/include/func.inc.php index 2e67e260..299ae747 100644 --- a/frontends/php/include/func.inc.php +++ b/frontends/php/include/func.inc.php @@ -223,6 +223,12 @@ function zbx_rksort(&$array, $flags=NULL){ /************* END SORT *************/ /************* ZBX MISC *************/ +if(!function_exists('ctype_digit')){ + function ctype_digit($x){ + return preg_match('/^\\d+$/',$x); + } +} + function zbx_numeric($value){ if(is_array($value)) return false; if(zbx_empty($value)) return false; |
