Changeset 5921 for trunk/workflow/inc/local
- Timestamp:
- 04/11/12 17:21:30 (12 years ago)
- Location:
- trunk/workflow/inc/local
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/local/classes/class.wf_date.php
r795 r5921 76 76 function isEuroDate($date, &$regs) { 77 77 $date = trim($date); 78 if ( ereg("^([0-9]{1,2})(/|\-|\.)([0-9]{1,2})(/|\-|\.)([0-9]{4})([[:space:]]([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?)?$", $date, $matches)) {78 if (preg_match('/^([0-9]{1,2})(\/|\-|\.)([0-9]{1,2})(\/|\-|\.)([0-9]{4})([[:space:]]([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?)?$/', $date, $matches)) { 79 79 $regs = array( 80 80 $matches[0], … … 96 96 function isUsDate($date, &$regs) { 97 97 $date = trim($date); 98 if ( ereg("^([0-9]{4})(/|\-|\.)([0-9]{1,2})(/|\-|\.)([0-9]{1,2})([[:space:]]([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?)?$", $date, $matches)) {98 if (preg_match('/^([0-9]{4})(\/|\-|\.)([0-9]{1,2})(\/|\-|\.)([0-9]{1,2})([[:space:]]([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?)?$/', $date, $matches)) { 99 99 $regs = array( 100 100 $matches[0], … … 116 116 function isSqlDate($date, &$regs) { 117 117 $date = trim($date); 118 if ( ereg("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})([[:space:]]([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?)?$", $date, $matches)) {118 if (preg_match('/^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})([[:space:]]([0-9]{1,2}):([0-9]{1,2}):?([0-9]{1,2})?)?$/', $date, $matches)) { 119 119 $regs = array( 120 120 $matches[0], -
trunk/workflow/inc/local/classes/class.wf_regex.php
r795 r5921 523 523 { 524 524 if ( $caseSensitive ) 525 return( ereg( $pattern, (string) $input ) );525 return( preg_match("/$pattern/", (string) $input ) ); 526 526 else 527 527 return( eregi( $pattern, (string) $input ) ); -
trunk/workflow/inc/local/functions/function.wf_handle_download.php
r795 r5921 35 35 if (isset($fileResult['filename']) && isset($fileResult['content'])) 36 36 { 37 if ( ereg('Opera(/| )([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))37 if (preg_match('/Opera(\/| )([0-9].[0-9]{1,2})/', $_SERVER['HTTP_USER_AGENT'])) 38 38 $UserBrowser = "Opera"; 39 elseif ( ereg('MSIE ([0-9].[0-9]{1,2})', $_SERVER['HTTP_USER_AGENT']))39 elseif (preg_match('/MSIE ([0-9].[0-9]{1,2})/', $_SERVER['HTTP_USER_AGENT'])) 40 40 $UserBrowser = "IE"; 41 41 else
Note: See TracChangeset
for help on using the changeset viewer.