added Samba logon hours

This commit is contained in:
Roland Gruber 2004-11-28 19:44:46 +00:00
parent c97223eb05
commit d3de89ecbe
1 changed files with 3 additions and 0 deletions

View File

@ -491,6 +491,9 @@ function get_preg($argument, $regexp) {
case 'date':
$pregexpr = '/^((0[1-9])|([1-2][0-9])|30|31)\\-((0[1-9])|(1[0-2]))\\-[1-3][0-9][0-9][0-9]$/';
break;
case 'sambaLogonHours':
$pregexpr = '/^[0-9a-fA-F]{42}$/';
break;
}
if ($pregexpr!='')
if (preg_match($pregexpr, $argument)) {