Changeset 4468 for sandbox/2.2.0.2/expressoMail1_2
- Timestamp:
- 05/20/11 10:57:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.2.0.2/expressoMail1_2/inc/class.imap_functions.inc.php
r4457 r4468 3566 3566 "SOZsozYYuAAAAACEEEEIIIIINOOOOOUUUUUsaaaaaceeeeiiiiinooooouuuuuyy"); 3567 3567 } 3568 3569 function make_search_date($date){ 3570 3571 $months = array( 3572 1 => 'jan', 3573 2 => 'feb', 3574 3 => 'mar', 3575 4 => 'apr', 3576 5 => 'may', 3577 6 => 'jun', 3578 7 => 'jul', 3579 8 => 'aug', 3580 9 => 'sep', 3581 10 => 'oct', 3582 11 => 'nov', 3583 12 => 'dec' 3584 ); 3568 3569 function make_search_date($date,$before = false){ 3585 3570 3586 3571 //TODO: Adaptar a data de acordo com o locale do sistema. 3587 3572 list($day,$month,$year) = explode("/", $date); 3588 $search_date = $day."-".$months[intval($month)]."-".$year; 3573 $before?$day=(int)$day+1:$day=(int)$day; 3574 $timestamp = mktime(0,0,0,(int)$month,$day,(int)$year); 3575 $search_date = date('d-M-Y',$timestamp); 3589 3576 return $search_date; 3590 3577 3591 3578 } 3592 3579 3593 3580 function search_msg( $params = false ) … … 3631 3618 $filter .= '"'.$filter_array[1].'"'; 3632 3619 } 3633 else3620 if(trim($filter_array[0]) == 'BEFORE' ) 3634 3621 { 3635 $filter .= '"'.$this->make_search_date($filter_array[1]).'"'; 3636 } 3622 $filter .= '"'.$this->make_search_date($filter_array[1],true).'"'; 3623 }else{ 3624 $filter .= '"'.$this->make_search_date($filter_array[1]).'"'; 3625 } 3637 3626 } 3638 3627 }
Note: See TracChangeset
for help on using the changeset viewer.