Code

Updated timezone class
[gosa.git] / gosa-core / include / utils / class_tests.inc
index 4fa85ce41c677209242014e723958112cf5ee3c0..136dca87ab87c2b393447d2f8f6a5801a04f0673 100644 (file)
@@ -57,8 +57,6 @@ class tests {
 
   public static function is_uid($uid)
   {
-    global $config;
-
     if ($uid == ""){
       return (TRUE);
     }
@@ -129,7 +127,7 @@ class tests {
   /* Simple is domain check, it checks if the given string looks like "string(...).string" */
   public static function is_domain($str)
   {
-    return(preg_match("/^([a-z0-9i\-]*)\.[a-z0-9]*$/i",$str));
+    return(preg_match("/^([a-z0-9\-]*)\.[a-z0-9\-]*$/i",$str));
   }
 
 
@@ -199,7 +197,7 @@ class tests {
    */
   public static function is_ip_range($ip1,$ip2)
   {
-    if(!is_ip($ip1) || !is_ip($ip2)){
+    if(!tests::is_ip($ip1) || !tests::is_ip($ip2)){
       return(FALSE);
     }else{
       $ar1 = split("\.",$ip1);