Changeset 3206 for branches/2.0
- Timestamp:
- 09/01/10 17:06:26 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/calendar/inc/class.boicalendar.inc.php
r3203 r3206 1285 1285 $this->line = $this->line + 1; 1286 1286 } 1287 1287 1288 // Corrige a codificacao dos caracteres 1288 $str = utf8_decode ( trim ($str) ); 1289 $str = trim ($str); 1290 if ( mb_detect_encoding($str, 'auto') == 'UTF-8' ) 1291 $str = iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $str); 1292 1289 1293 //$this->debug("LINE : ".$str); 1290 1294 return $str; … … 1421 1425 elseif(ereg('(.*(\:\\\\)?.*):(.*)',$value,$temp)) 1422 1426 { 1423 $this->debug('Value : '._debug_array($temp,False));1424 $this->debug('Param '.$majortype.' Value : '.$temp[3]);1427 //$this->debug('Value : '._debug_array($temp,False)); 1428 //$this->debug('Param '.$majortype.' Value : '.$temp[3]); 1425 1429 if($temp[3]) 1426 1430 { … … 1433 1437 while(ereg('(([A-Z\-]*)[=]([[:alnum:] \_\)\(\/\$\.\,\:\\\|\*\&\^\%\#\!\~\"\?\&\@\<\>\-]*))([\;]?)(.*)',$value,$temp)) 1434 1438 { 1435 $this->debug('Value : '._debug_array($temp,False));1436 $this->debug('Param '.$temp[2].' Value : '.$temp[3]);1439 //$this->debug('Value : '._debug_array($temp,False)); 1440 //$this->debug('Param '.$temp[2].' Value : '.$temp[3]); 1437 1441 $return_value[] = Array( 1438 1442 'param' => $temp[2], … … 1440 1444 ); 1441 1445 $value = chop($temp[5]); 1442 $this->debug('Value would be = '.$value);1446 //$this->debug('Value would be = '.$value); 1443 1447 } 1444 1448 } … … 1532 1536 { 1533 1537 $var = Array(); 1534 $this->debug('Mode : '.$mode.' Majortype : '.$majortype);1538 //$this->debug('Mode : '.$mode.' Majortype : '.$majortype); 1535 1539 $this->parse_parameters($var,$majortype,$value); 1536 1540 if($this->property[$majortype][$mode]['multiples']) 1537 1541 { 1538 $this->debug('parse_value var array: '._debug_array($var,False));1542 //$this->debug('parse_value var array: '._debug_array($var,False)); 1539 1543 $event[$majortype][] = $var; 1540 1544 } 1541 1545 else 1542 1546 { 1543 $this->debug('Majortype : '.$majortype);1544 $this->debug('Property : '.$this->property[$majortype]['type']);1547 //$this->debug('Majortype : '.$majortype); 1548 //$this->debug('Property : '.$this->property[$majortype]['type']); 1545 1549 if($this->property[$majortype]['type'] == 'date-time') 1546 1550 { 1547 $this->debug('Got a DATE-TIME type!');1551 //$this->debug('Got a DATE-TIME type!'); 1548 1552 $t_var = $var[$majortype]; 1549 1553 unset($var[$majortype]); … … 1555 1559 $var[$key] = $val; 1556 1560 } 1557 $this->debug($majortype.' : '._debug_array($var,False));1561 //$this->debug($majortype.' : '._debug_array($var,False)); 1558 1562 } 1559 1563 } … … 2246 2250 if(is_string($var)) 2247 2251 { 2252 $var = str_replace(array("\r\n", "\n", "\r"), "", $var); 2248 2253 if(strpos(' '.$var,':')) 2249 2254 {
Note: See TracChangeset
for help on using the changeset viewer.