Changeset 3023 for trunk


Ignore:
Timestamp:
07/09/10 12:10:17 (14 years ago)
Author:
wmerlotto
Message:

Ticket #1132 - Correção do e-mail no agendamento do outlook - patrocinio CEF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/calendar/inc/class.boicalendar.inc.php

    r2655 r3023  
    12611261                        $type = strtolower(str_replace('-','_',$type)); 
    12621262                        $event[$type] = $value; 
     1263                        /* 
    12631264                        if(is_string($value)) 
    12641265                        { 
     
    12691270                                $this->debug("Setting ".$type." = "._debug_array($value,False)); 
    12701271                        } 
     1272                        */ 
    12711273                } 
    12721274 
     
    12851287                                // Corrige a codificacao dos caracteres 
    12861288                                $str = utf8_decode ( trim ($str) ); 
    1287                                 $this->debug("LINE : ".$str); 
     1289                                //$this->debug("LINE : ".$str); 
    12881290                                return $str; 
    12891291                        } 
     
    14081410                function parse_parameters(&$event,$majortype,$value) 
    14091411                { 
    1410                         $this->debug ('value: '.$value); 
     1412                        //$this->debug ('value: '.$value); 
    14111413                        if(!ereg('[\=\;]',$value)) 
    14121414                        { 
     
    14561458                        } 
    14571459 
    1458                         $this->debug('parse_parameters array return_value: '._debug_array($return_value,False)); 
     1460                        //$this->debug('parse_parameters array return_value: '._debug_array($return_value,False)); 
    14591461 
    14601462                        for($i=0;$i<count($return_value);$i++) 
     
    14831485                                        } 
    14841486                                } 
    1485                                 $this->debug('name : '.$name.' : Param = '.$param); 
     1487                                //$this->debug('name : '.$name.' : Param = '.$param); 
    14861488                                if(@$this->parameter[$param]['properties'][$majortype]) 
    14871489                                { 
     
    25742576 
    25752577                                ereg($property_regexp,$text,$temp); 
    2576                                 $this->debug ('Majortype dump: '._debug_array($temp, false) ); 
     2578                                //$this->debug ('Majortype dump: '._debug_array($temp, false) ); 
    25772579                                $majortype = str_replace('-','_',strtolower($temp[1])); 
    25782580                                $value = chop($temp[2]); 
     
    25802582                                if($mode != 'none' && ($majortype != 'begin' && $majortype != 'end')) 
    25812583                                { 
    2582                                         $this->debug('PARSE:MAJORTYPE : '.$majortype); 
     2584                                        //$this->debug('PARSE:MAJORTYPE : '.$majortype); 
    25832585                                        if(isset($this->property[$majortype])) 
    25842586                                        { 
     
    26102612                                        unset($dur); 
    26112613 
    2612                                         // Split «DURATION» 
     2614                                        // Split DURATION 
    26132615                                        list($_f_['day_raw'], $_f_['time_raw']) = split('T', substr($value, 1, strlen($value)-1)); 
    26142616 
     
    30223024                                default: 
    30233025                                        $cat_sep = ','; 
    3024                                         break; 
    3025                         } 
    3026                         $this->debug ('ical parse result: ' . _debug_array ($ical, false)); 
     3026                                        break;                   
     3027                        } 
     3028                                         
    30273029                        $c_events = count($ical['event']); 
    3028                         for($i=0;$i<$c_events;$i++) 
     3030                        for($i=0; $i<$c_events; $i++) 
    30293031                        { 
    30303032                                if($ical['event'][$i]['uid']['value']) 
     
    30753077                                                        $email = $ical['event'][$i]['attendee'][$a]['mailto']['user']; 
    30763078                                                        if ( $email ) 
    3077                                                                 $email = '<'. $email .'@'. $ical['event'][$i]['attendee'][$a]['mailto']['host'] .'>'; 
     3079                                                        { 
     3080                                                                // Remove os espaços, tabs e quebra-de-linha no dominio 
     3081                                                                $email_domain = preg_replace('/\s*/m', '', $ical['event'][$i]['attendee'][$a]['mailto']['host']); 
     3082                                                                $email = '<'. $email .'@'. $email_domain .'>'; 
     3083                                                        } 
    30783084                                                        else 
    30793085                                                                $email = ''; 
     
    31943200 
    31953201                                                        // Weeks::Day-- 
    3196                                                         if(     $ical['event'][$i]['duration']['weeks'] 
     3202                                                        if( $ical['event'][$i]['duration']['weeks'] 
    31973203                                                        AND 
    31983204                                                        ( $ical['event'][$i]['duration']['hours'] == 0 ) 
Note: See TracChangeset for help on using the changeset viewer.