summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e529de)
raw | patch | inline | side by side (parent: 9e529de)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 08:42:22 +0000 (08:42 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 2 Oct 2009 08:42:22 +0000 (08:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14462 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/class_tests.inc | patch | blob | history |
index 136dca87ab87c2b393447d2f8f6a5801a04f0673..343163dd1745047f511e5c9c6e22497a9ef386c2 100644 (file)
return ($first < $curr&& $last > $curr);
}
+ /* Check if entry value is a valid date */
+ public static function is_date($date)
+ {
+ global $lang;
+
+ if ($date == ""){
+ return (TRUE);
+ }
+
+ #TODO: use $lang to check date format
+ return preg_match("/[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{4}/", $date);
+ }
/* Check if the specified IP address $address is inside the given network */
public static function is_in_ip_range($from, $to, $address)