Changeset 6057


Ignore:
Timestamp:
04/27/12 09:17:30 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

Location:
trunk
Files:
52 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r162 r6057  
    6767                                                          { 
    6868                                                                 $names = explode('<br>',$infos['name']); 
    69                                                                  $emails = split('@|<br>',$infos['email']); 
     69                                                                 $emails = preg_split('/@|<br>/',$infos['email']); 
    7070                                                                 if (count($names) < count($emails)/2) 
    7171                                                                 { 
  • trunk/admin/inc/Controller.class.php

    r5509 r6057  
    457457                // convert from a string to an array 
    458458                ksort($keywords['sorted']); 
    459                 $keywords = "'" . implode('|',$keywords['sorted']) . "'.split('|')"; 
     459                $keywords = "'" . implode('|',$keywords['sorted']) . "'.preg_split('/|/')"; 
    460460 
    461461                $encode = ($this->_encoding > 62) ? '_encode95' : $this->_getEncoder($ascii); 
  • trunk/admin/inc/class.boaccess_history.inc.php

    r5912 r6057  
    5656                                if (preg_match('/@/',$record['loginid'])) 
    5757                                { 
    58                                         $t = split('@',$record['loginid']); 
     58                                        $t = preg_split('/@/',$record['loginid']); 
    5959                                        $record['loginid'] = $t[0]; 
    6060                                } 
  • trunk/admin/inc/class.bocurrentsessions.inc.php

    r5912 r6057  
    3333                                if (preg_match('/@/',$value['session_lid'])) 
    3434                                { 
    35                                         $t = split('@',$value['session_lid']); 
     35                                        $t = preg_split('/@/',$value['session_lid']); 
    3636                                        $session_lid = $t[0]; 
    3737                                } 
  • trunk/admin/inc/class.uicategories.inc.php

    r3536 r6057  
    345345                function edit() 
    346346                { 
    347                         $cat_group = split(",",$_POST['idgroup']); 
     347                        $cat_group = preg_split('/,/',$_POST['idgroup']); 
    348348 
    349349                        if (count($cat_group) == 0)      
  • trunk/calendar/csv_import.php

    r5934 r6057  
    9393                } 
    9494 
    95                 $cats = split('[,;]',$cats); 
     95                $cats = preg_split('/[,;]/',$cats); 
    9696 
    9797                foreach($cats as $k => $cat) 
     
    473473                                // convert participants-names to user-id's 
    474474                                $participants = 0; 
    475                                 foreach(split('[,;]',$values['participants']) as $part_status) 
     475                                foreach(preg_split('/[,;]/',$values['participants']) as $part_status) 
    476476                                { 
    477477                                        list($part,$status) = explode('=',$part_status); 
  • trunk/calendar/inc/class.boicalendar.inc.php

    r6037 r6057  
    23762376 
    23772377                                        // Split DURATION 
    2378                                 list ($_f_['day_raw'], $_f_['time_raw']) = split('T', substr($value, 1, strlen($value) - 1)); 
     2378                                list ($_f_['day_raw'], $_f_['time_raw']) = preg_split('/T/', substr($value, 1, strlen($value) - 1)); 
    23792379 
    23802380                                        /* Datecode */ 
     
    29602960                                                        // What is datetime in 2192 ? 
    29612961                                                        $enddate = strtotime($pdate, $ptimer); 
    2962                                 list ($recur_enddate['year'], $recur_enddate['month'], $recur_enddate['mday'], $recur_enddate['hour'], $recur_enddate['min'], $recur_enddate['sec']) = split(":", date("Y:m:d:H:i:s", $enddate)); 
     2962                                list ($recur_enddate['year'], $recur_enddate['month'], $recur_enddate['mday'], $recur_enddate['hour'], $recur_enddate['min'], $recur_enddate['sec']) = preg_split('/:/', date("Y:m:d:H:i:s", $enddate)); 
    29632963 
    29642964                                                        // Set End of event 
  • trunk/calendar/inc/class.socalendar.inc.php

    r5132 r6057  
    157157                                '(phpgw_cal_user.cal_login=' . (int)$this->owner . ' OR phpgw_cal.is_public=1) AND ('; 
    158158 
    159                         $words = split(' ',$keywords); 
     159                        $words = preg_split('/ /',$keywords); 
    160160                        foreach($words as $i => $word) 
    161161                        { 
  • trunk/calendar/inc/class.uicalendar.inc.php

    r5921 r6057  
    57255725                        if(isset($_GET['part']) && $_GET['part']) 
    57265726                        { 
    5727                                 $control_data['part'] = split(",", $_GET['part']); 
     5727                                $control_data['part'] = preg_split('/,/', $_GET['part']); 
    57285728                        } 
    57295729                        else 
  • trunk/expressoCalendar/inc/class.ui_migration.inc.php

    r5804 r6057  
    107107                                 
    108108                                //time 
    109                                 $time =  split (":", $result['times']); 
     109                                $time =  preg_split('/:/', $result['times']); 
    110110                                $sql_insert .= substr($time, -1).", "; 
    111111                                //range_end 
     
    160160                        //participantes externos normais 
    161161                        } catch (Exception $e) { 
    162                                 $participants_ex = split(',', $ex_participante); 
     162                                $participants_ex = preg_split('/,/', $ex_participante); 
    163163                                 
    164164                                foreach ($participants_ex as $ex){ 
  • trunk/expressoMail1_2/inc/class.ScriptS.inc.php

    r5509 r6057  
    588588        // Recebe o conteúdo do array; 
    589589        $lines = array(); 
    590         $lines = preg_split("/\n/", $scriptName); 
     590        $lines = preg_split('/\n/', $scriptName); 
    591591 
    592592        // Pega o tamanho da regra na primeira do script; 
  • trunk/expressoMail1_2/inc/class.SieveS.inc.php

    r5509 r6057  
    7777                    elseif (preg_match("/^\"SASL\" +\"(.*)\"/",$said,$bits)) { 
    7878                                $auth_types = $bits[1]; 
    79                                 $this->saslmethods = split(" ", $auth_types); 
     79                                $this->saslmethods = preg_split('/ /', $auth_types); 
    8080                    } 
    8181                    elseif (preg_match("/^\"SIEVE\" +\"(.*)\"/",$said,$bits)) { 
    8282                                $extensions = $bits[1]; 
    83                                 $this->extensions = split(" ", $extensions); 
     83                                $this->extensions = preg_split('/ /', $extensions); 
    8484                    } 
    8585                elseif (preg_match("/^\"STARTTLS\"/",$said)){ 
     
    9898                        if (preg_match("/SASL=\{(.+)\}/",$sasl_str,$morebits)) { 
    9999                            $auth_types = $morebits[1]; 
    100                             $this->saslmethods = split(", ", $auth_types); 
     100                            $this->saslmethods = preg_split('/, /', $auth_types); 
    101101                        }else { 
    102102                                // a bit desperate if we get here. 
  • trunk/expressoMail1_2/inc/class.ldap_functions.inc.php

    r5864 r6057  
    212212                                        $contacts_result[$i] = array(); 
    213213                                        $contacts_result[$i]["cn"] = $cn; 
    214                                         list ($contacts_result[$i]["mail"], $contacts_result[$i]["phone"], $contacts_result[$i]["mobile"], $contacts_result[$i]["uid"], $contacts_result[$i]["jpegphoto"], $contacts_result[$i]["employeenumber"], $contacts_result[$i]["ou"]) = split ('%', $info); 
     214                                        list ($contacts_result[$i]["mail"], $contacts_result[$i]["phone"], $contacts_result[$i]["mobile"], $contacts_result[$i]["uid"], $contacts_result[$i]["jpegphoto"], $contacts_result[$i]["employeenumber"], $contacts_result[$i]["ou"]) = preg_split('/%/', $info); 
    215215                                        $i++; 
    216216                                } 
     
    511511                    $extendedinfo=false; 
    512512 
    513                 list ($contacts_result["mail"], $contacts_result["phone"], $contacts_result["mobile"], $contacts_result["uid"], $contacts_result["jpegphoto"], $contacts_result["employeenumber"], $contacts_result["ou"]) = split ('%', $info); 
     513                list ($contacts_result["mail"], $contacts_result["phone"], $contacts_result["mobile"], $contacts_result["uid"], $contacts_result["jpegphoto"], $contacts_result["employeenumber"], $contacts_result["ou"]) = preg_split('/%/', $info); 
    514514 
    515515                if ($contacts_result['jpegphoto']) 
  • trunk/expressoMail1_2/spell_checker/cpaint/cpaint2.proxy.php

    r3400 r6057  
    127127    } 
    128128 
    129     list($http_headers, $http_body) = split("\r\n\r\n", $http_data, 2); 
     129    list($http_headers, $http_body) = preg_split('/\r\n\r\n/', $http_data, 2); 
    130130    echo($http_body); 
    131131    @fclose($cp_socket); 
  • trunk/expressoMail1_2/spell_checker/pspell_comp.php

    r3400 r6057  
    201201 
    202202            //parse output 
    203             $lines = split("\n",$out); 
     203            $lines = preg_split('/\n/',$out); 
    204204            foreach ($lines as $line){ 
    205205                $line = trim($line); 
     
    210210                if($line[0] == '&'){ 
    211211                    $line = preg_replace('/&.*?: /','',$line); 
    212                     return split(', ',$line); 
     212                    return preg_split('/, /',$line); 
    213213                } 
    214214            } 
  • trunk/expressoMail1_2/spell_checker/spell_checker.php

    r3400 r6057  
    197197 
    198198        //splits the string on any html tags, preserving the tags and putting them in the $words array 
    199         $words = preg_split("/(<[^<>]*>)/", $string, -1, PREG_SPLIT_DELIM_CAPTURE); 
     199        $words = preg_split('/(<[^<>]*>)/', $string, -1, PREG_SPLIT_DELIM_CAPTURE); 
    200200 
    201201        $numResults = count($words); //the number of elements in the array. 
     
    215215                if(($i & 1) == 0) // Even-numbered entries are word sets. 
    216216                { 
    217                         $words[$i] = preg_split("/(\s+|\&nbsp;)/", $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 
     217                        $words[$i] = preg_split('/(\s+|\&nbsp;)/', $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 
    218218 
    219219                        // Now go through each word and link up the misspelled ones. 
  • trunk/filemanager/tp/dompdf/dompdf.php

    r3019 r6057  
    229229 
    230230  if ( isset($opts['t']) ) { 
    231     $arr = split(',',$opts['t']); 
     231    $arr = preg_split('/,/',$opts['t']); 
    232232    $types = array(); 
    233233    foreach ($arr as $type) 
  • trunk/filemanager/tp/dompdf/include/block_frame_decorator.cls.php

    r3019 r6057  
    186186 
    187187    if ( $frame->get_node()->nodeName == "#text") 
    188       $this->_lines[$this->_cl]["wc"] += count(preg_split("/\s+/", $frame->get_text())); 
     188      $this->_lines[$this->_cl]["wc"] += count(preg_split('/\s+/', $frame->get_text())); 
    189189 
    190190    $this->_lines[$this->_cl]["w"] += $w; 
  • trunk/filemanager/tp/dompdf/include/dompdf.cls.php

    r3019 r6057  
    363363        //Check if the css file is for an accepted media type 
    364364        //media not given then always valid 
    365         $formedialist = preg_split("/[\s\n,]/", $link->getAttribute("media"),-1, PREG_SPLIT_NO_EMPTY); 
     365        $formedialist = preg_split('/[\s\n,]/', $link->getAttribute("media"),-1, PREG_SPLIT_NO_EMPTY); 
    366366        if ( count($formedialist) > 0 ) { 
    367367          $accept = false; 
  • trunk/filemanager/tp/dompdf/include/stylesheet.cls.php

    r3019 r6057  
    357357 
    358358    // Parse the selector 
    359     //$s = preg_split("/([ :>.#+])/", $selector, -1, PREG_SPLIT_DELIM_CAPTURE); 
     359    //$s = preg_split('/([ :>.#+])/', $selector, -1, PREG_SPLIT_DELIM_CAPTURE); 
    360360 
    361361    $delimiters = array(" ", ">", ".", "#", "+", ":", "["); 
     
    883883   */ 
    884884  private function _parse_import($url) { 
    885     $arr = preg_split("/[\s\n,]/", $url,-1, PREG_SPLIT_NO_EMPTY); 
     885    $arr = preg_split('/[\s\n,]/', $url,-1, PREG_SPLIT_NO_EMPTY); 
    886886    $url = array_shift($arr); 
    887887    $accept = false; 
  • trunk/filemanager/tp/dompdf/include/text_frame_reflower.cls.php

    r3019 r6057  
    363363      // faster than doing a single-pass character by character scan.  Heh, 
    364364      // yes I took the time to bench it ;) 
    365       $words = array_flip(preg_split("/[\s-]+/u",$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 
     365      $words = array_flip(preg_split('/[\s-]+/u',$str, -1, PREG_SPLIT_DELIM_CAPTURE)); 
    366366      array_walk($words, create_function('&$val,$str', 
    367367                                         '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); 
     
    371371 
    372372    case "pre": 
    373       $lines = array_flip(preg_split("/\n/u", $str)); 
     373      $lines = array_flip(preg_split('/\n/u', $str)); 
    374374      array_walk($lines, create_function('&$val,$str', 
    375375                                         '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); 
     
    398398    case "pre-wrap": 
    399399      // Find the longest word (i.e. minimum length) 
    400       $lines = array_flip(preg_split("/\n/", $text)); 
     400      $lines = array_flip(preg_split('/\n/', $text)); 
    401401      array_walk($lines, create_function('&$val,$str', 
    402402                                         '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); 
  • trunk/library/PEAR/PEAR/RunTest.php

    r5146 r6057  
    320320                $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); 
    321321            } 
    322             $ini = preg_split( "/[\n\r]+/", $section_text['INI']); 
     322            $ini = preg_split( '/[\n\r]+/', $section_text['INI']); 
    323323            $ini_settings = $this->settings2array($ini, $ini_settings); 
    324324        } 
     
    804804    { 
    805805        $headers = array(); 
    806         $rh = preg_split("/[\n\r]+/", $text); 
     806        $rh = preg_split('/[\n\r]+/', $text); 
    807807        foreach ($rh as $line) { 
    808808            if (strpos($line, ':')!== false) { 
  • trunk/library/mime/mimeDecode.php

    r4414 r6057  
    665665            $boundary = $bs_possible; 
    666666        } 
    667         $tmp = preg_split("/--".preg_quote($boundary, '/')."((?=\s)|--)/", $input); 
     667        $tmp = preg_split('/\/--/'.preg_quote($boundary, '/')."((?=\s)|--)/", $input); 
    668668 
    669669        $len = count($tmp) -1; 
     
    799799 
    800800            $file = ''; 
    801             $str = preg_split("/\r?\n/", trim($str)); 
     801            $str = preg_split('/\r?\n/', trim($str)); 
    802802            $strlen = count($str); 
    803803 
  • trunk/library/mime/mimePart.php

    r5135 r6057  
    570570        } 
    571571        */ 
    572         $lines  = preg_split("/\r?\n/", $input); 
     572        $lines  = preg_split('/\r?\n/', $input); 
    573573        $escape = '='; 
    574574        $output = ''; 
  • trunk/listAdmin/inc/class.functions.inc.php

    r3514 r6057  
    398398                         
    399399                        $first_sector_ufn = ldap_dn2ufn($context); 
    400                         $first_sector_string = split(",", $first_sector_ufn); 
     400                        $first_sector_string = preg_split('/,/', $first_sector_ufn); 
    401401                         
    402402                        $s = CreateObject('phpgwapi.sector_search_ldap'); 
     
    503503                        // Cria a primeira entrada na combo  
    504504                        $first_sector_ufn = ldap_dn2ufn($context); 
    505                         $first_sector_string = split(",", $first_sector_ufn); 
     505                        $first_sector_string = preg_split('/,/', $first_sector_ufn); 
    506506                        $options = "<option value='$context'>" . strtoupper($first_sector_string[0]) . "</option>" . $options; 
    507507 
  • trunk/listAdmin/inc/sieve-php.lib.php

    r5912 r6057  
    121121 
    122122    $this->line=fgets($this->fp,1024); 
    123     $this->token = split(" ", $this->line, 2); 
     123    $this->token = preg_split('/ /', $this->line, 2); 
    124124 
    125125    if($this->token[0] == "NO"){ 
     
    127127           NO ("yyyyy") "zzzzzzz" or, two, NO {yyyyy} "zzzzzzzzzzz" */ 
    128128        $this->x = 0; 
    129         list($this->ltoken, $this->mtoken, $this->rtoken) = split(" ", $this->line." ", 3); 
     129        list($this->ltoken, $this->mtoken, $this->rtoken) = preg_split('/ /', $this->line." ", 3); 
    130130        if($this->mtoken[0] == "{"){ 
    131131            while($this->mtoken[$this->x] != "}" or $this->err_len < 1){ 
     
    389389                  $this->cap_type="auth";             
    390390 
    391               $this->modules = split(" ", $this->item[1]); 
     391              $this->modules = preg_split('/ /', $this->item[1]); 
    392392              if(is_array($this->modules)){ 
    393393                  foreach($this->modules as $this->module) 
     
    422422 
    423423        //then split again at the ", " stuff. 
    424         $this->modules = split($this->modules, ", "); 
     424        $this->modules = preg_split("/$this->modules/", ", "); 
    425425  
    426426        //fill up our $this->modules property 
     
    784784                  $this->cap_type="auth";             
    785785 
    786               $this->modules = split(" ", $this->item[1]); 
     786              $this->modules = preg_split('/ /', $this->item[1]); 
    787787              if(is_array($this->modules)){ 
    788788                  foreach($this->modules as $this->module) 
     
    814814 
    815815        //then split again at the ", " stuff. 
    816         $this->modules = split($this->modules, ", "); 
     816        $this->modules = preg_split("/$this->modules/", ", "); 
    817817  
    818818        //fill up our $this->modules property 
  • trunk/mobile/inc/class.ui_mobilecalendar.inc.php

    r4277 r6057  
    146146                                //descobrindo a semana anterior e a pŽroxima 
    147147                                $last_week = date("d-m-Y", strtotime("-7 day", mktime(0,0,0,$month,$day,$year) ) ); 
    148                                 $last_week = split("-",$last_week); 
     148                                $last_week = preg_split('/-/',$last_week); 
    149149                                $next_week = date("d-m-Y", strtotime("+7 day", mktime(0,0,0,$month,$day,$year) ) ); 
    150                                 $next_week = split("-",$next_week); 
     150                                $next_week = preg_split('/-/',$next_week); 
    151151                                 
    152152                                //descobrind o primeiro dia da semana e o último 
    153153                                $first_week_day = date("d-m-Y", strtotime("-".$current_day_of_week." day", mktime(0,0,0,$month,$day,$year) ) ); 
    154                                 $first_week_day = split("-",$first_week_day); 
     154                                $first_week_day = preg_split('/-/',$first_week_day); 
    155155                                $last_week_day = date("d-m-Y", strtotime("+".(6-$current_day_of_week)." day", mktime(0,0,0,$month,$day,$year) ) ); 
    156                                 $last_week_day = split("-",$last_week_day); 
     156                                $last_week_day = preg_split('/-/',$last_week_day); 
    157157                                 
    158158                                //definindo a barra de navegação do calandário 
     
    196196                                $last_day_of_before_month = date('t', mktime(0,0,0,$month-1,"01",$year)); 
    197197                                $last_month_year = date("m-Y", strtotime("-1 month", mktime(0,0,0,$month,"01",$year) ) ); 
    198                                 $last_month_year = split("-",$last_month_year); 
     198                                $last_month_year = preg_split('/-/',$last_month_year); 
    199199                                $next_month_year = date("m-Y", strtotime("+1 month", mktime(0,0,0,$month,"01",$year) ) ); 
    200                                 $next_month_year = split("-",$next_month_year); 
     200                                $next_month_year = preg_split('/-/',$next_month_year); 
    201201                                $today = date("d-m-Y"); 
    202202                                 
     
    285285                                //descobrind o primeiro dia da semana e o último 
    286286                                $before_day = date("d-m-Y", strtotime("-1 day", mktime(0,0,0,$month,$day,$year) ) ); 
    287                                 $before_day = split("-",$before_day); 
     287                                $before_day = preg_split('/-/',$before_day); 
    288288                                $next_day = date("d-m-Y", strtotime("+1 day", mktime(0,0,0,$month,$day,$year) ) ); 
    289                                 $next_day = split("-",$next_day);                                
     289                                $next_day = preg_split('/-/',$next_day);                                 
    290290                                 
    291291                                //definindo a barra de navegação do calandário 
  • trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php

    r34 r6057  
    519519                        if ($lines == null) $lines = array(); 
    520520                        list(,$first) = each($lines); 
    521                         list(,$column_def) = split("[\t ]+",$first,2); 
     521                        list(,$column_def) = preg_split('/[\t ]+/',$first,2); 
    522522                } 
    523523                return array(sprintf($this->renameColumn,$tabname,$this->NameQuote($oldcolumn),$this->NameQuote($newcolumn),$column_def)); 
  • trunk/phpgwapi/inc/adodb/adodb-perf.inc.php

    r34 r6057  
    8888                $dbT = $conn->databaseType; 
    8989                 
    90                 $a0 = split(' ',$t0); 
     90                $a0 = preg_split('/ /',$t0); 
    9191                $a0 = (float)$a0[1]+(float)$a0[0]; 
    9292                 
    93                 $a1 = split(' ',$t1); 
     93                $a1 = preg_split('/ /',$t1); 
    9494                $a1 = (float)$a1[1]+(float)$a1[0]; 
    9595                 
  • trunk/phpgwapi/inc/adodb/drivers/adodb-informix72.inc.php

    r34 r6057  
    370370                                $o = new ADOFieldObject; 
    371371                                $o->name = $k; 
    372                                 $arr = split(';',$v); //"SQLTYPE;length;precision;scale;ISNULLABLE" 
     372                                $arr = preg_split('/;/',$v); //"SQLTYPE;length;precision;scale;ISNULLABLE" 
    373373                                $o->type = $arr[0]; 
    374374                                $o->max_length = $arr[1]; 
  • trunk/phpgwapi/inc/adodb/drivers/adodb-ldap.inc.php

    r34 r6057  
    5656                 
    5757                if ( strstr( $host, ':' ) ) { 
    58                     $conn_info = split( ':', $host ); 
     58                    $conn_info = preg_split( '/:/', $host ); 
    5959                }  
    6060                 
  • trunk/phpgwapi/inc/adodb/session/adodb-session.php

    r1057 r6057  
    4747{ 
    4848        $variables = array( ); 
    49         $a = preg_split( "/(\w+)\|/", $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 
     49        $a = preg_split( '/(\w+)\|/', $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 
    5050        for( $i = 0; $i < count( $a ); $i = $i+2 ) { 
    5151                $variables[$a[$i]] = unserialize( $a[$i+1] ); 
  • trunk/phpgwapi/inc/adodb/session/adodb-session2.php

    r34 r6057  
    7777{ 
    7878        $variables = array( ); 
    79         $a = preg_split( "/(\w+)\|/", $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 
     79        $a = preg_split( '/(\w+)\|/', $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); 
    8080        for( $i = 0; $i < count( $a ); $i = $i+2 ) { 
    8181                $variables[$a[$i]] = unserialize( $a[$i+1] ); 
  • trunk/phpgwapi/inc/class.asyncservice.inc.php

    r5141 r6057  
    634634                                { 
    635635                                        if ($this->debug) echo 'line '.++$n.": $line<br>\n"; 
    636                                         $parts = split(' ',$line,6); 
     636                                        $parts = preg_split('/ /',$line,6); 
    637637                                         
    638638                                        // Foi customizado para a Celepar. 
  • trunk/phpgwapi/inc/class.contacts_ldap.inc.php

    r2 r6057  
    324324                        { 
    325325                                if($DEBUG) { echo 'DEBUG - Inbound filter is: #'.$filter.'#'; } 
    326                                 $filterarray = split(',',$filter); 
     326                                $filterarray = preg_split('/,/',$filter); 
    327327                                if($filterarray[1]) 
    328328                                { 
     
    340340                                else 
    341341                                { 
    342                                         list($name,$value) = split('=',$filter); 
     342                                        list($name,$value) = preg_split('/=/',$filter); 
    343343                                        if($DEBUG) 
    344344                                        { 
     
    547547                        elseif($extra) 
    548548                        { 
    549                                 $tmp = split('=',$extra); 
     549                                $tmp = preg_split('/=/',$extra); 
    550550                                $qarray[] = array($tmp[0] => $tmp[1]); 
    551551                        } 
     
    863863 
    864864                                        /* Verify uid */ 
    865                                         $uids = split(',',$dn); 
     865                                        $uids = preg_split('/,/',$dn); 
    866866                                        $stock_fields['lid'] = $uids[0]; 
    867867                                        if(empty($ldap_fields[0]['uid'])) 
  • trunk/phpgwapi/inc/class.jscalendar.inc.php

    r5934 r6057  
    154154                                return False; 
    155155                        } 
    156                         $fields = split('[./-]',$datestr); 
    157                         foreach(split('[./-]',$this->dateformat) as $n => $field) 
     156                        $fields = preg_split('/[./-]/',$datestr); 
     157                        foreach(preg_split('/[./-]/',$this->dateformat) as $n => $field) 
    158158                        { 
    159159                                if ($field == 'M') 
  • trunk/phpgwapi/inc/class.net_http_client.inc.php

    r2 r6057  
    742742                        $finished = ( $str == $lastLine ); 
    743743                        if ( !$finished ) { 
    744                                 list( $hdr, $value ) = split( ": ", $str, 2 ); 
     744                                list( $hdr, $value ) = preg_split( '/: /', $str, 2 ); 
    745745                                // nasty workaround broken multiple same headers (eg. Set-Cookie headers) @FIXME 
    746746                                if( isset( $headers[$hdr]) ) 
  • trunk/phpgwapi/inc/class.send.inc.php

    r2 r6057  
    124124                                else 
    125125                                { 
    126                                         $addresses = split('[, ]',$$adr); 
     126                                        $addresses = preg_split('/[, ]/',$$adr); 
    127127                                        $names = array(); 
    128128                                }                                        
  • trunk/phpgwapi/inc/class.vcard.inc.php

    r5934 r6057  
    123123                        while($data = fgets($fp,8000)) 
    124124                        { 
    125                                 list($name,$value,$extra) = split(':', $data); 
     125                                list($name,$value,$extra) = preg_split('/:/', $data); 
    126126                                if(substr($value,0,5) == 'http') 
    127127                                { 
     
    216216                        foreach($buffer as $name => $value) 
    217217                        { 
    218                                 $field  = split(';',$name); 
     218                                $field  = preg_split('/;/',$name); 
    219219                                $field[0] = preg_replace('/A\./','',$field[0]); 
    220220                                $field[0] = preg_replace('/B\./','',$field[0]); 
    221221                                $field[0] = preg_replace('/C\./','',$field[0]); 
    222222                                $field[0] = preg_replace('/D\./','',$field[0]); 
    223                                 $values = split(';',$value); 
     223                                $values = preg_split('/;/',$value); 
    224224                                if($field[1]) 
    225225                                { 
     
    594594                                                        else 
    595595                                                        { 
    596                                                                 $tmp = split('-',$values[0]); 
     596                                                                $tmp = preg_split('/-/',$values[0]); 
    597597                                                                if($tmp[0]) 
    598598                                                                { 
     
    612612                        $entry['adr_two_type'] = substr($buffer['adr_two_type'],0,-1); 
    613613 
    614                         if(count($street = split("\r*\n",$buffer['adr_one_street'],3)) > 1) 
     614                        if(count($street = preg_split('/\r*\n/',$buffer['adr_one_street'],3)) > 1) 
    615615                        { 
    616616                                $entry['adr_one_street'] = $street[0];  // RB 2001/05/08 added for Lotus Organizer to split multiline adresses 
     
    650650                                                elseif($value == 'BDAY') 
    651651                                                { 
    652                                                         $tmp = split('/',$buffer[$value]); # 12/31/1969 -> 1969-12-31 
     652                                                        $tmp = preg_split('/\//',$buffer[$value]); # 12/31/1969 -> 1969-12-31 
    653653                                                        if($tmp[0]) 
    654654                                                        { 
  • trunk/phpgwapi/inc/class.vfs_dav.inc.php

    r5940 r6057  
    23742374                                if (!preg_match('/^#/',$contents[$i])) 
    23752375                                { 
    2376                                         $line=split("[[:space:]]+", $contents[$i]); 
     2376                                        $line=preg_split('/[[:space:]]+/', $contents[$i]); 
    23772377                                        if (sizeof($line) >= 2) 
    23782378                                        { 
  • trunk/phpgwapi/inc/class.vfs_shared.inc.php

    r5940 r6057  
    797797                                if (!preg_match('/^#/',$contents[$i])) 
    798798                                { 
    799                                         $line=split("[[:space:]]+", $contents[$i]); 
     799                                        $line=preg_split('/[[:space:]]+/', $contents[$i]); 
    800800                                        if (sizeof($line) >= 2) 
    801801                                        { 
  • trunk/phpgwapi/inc/class.vfs_sql.inc.php

    r5940 r6057  
    331331                                if ($attribute == 'version' && $data['incversion']) 
    332332                                { 
    333                                         $version_parts = split ("\.", $value); 
     333                                        $version_parts = preg_split('/\./', $value); 
    334334                                        $newnumofparts = $numofparts = count ($version_parts); 
    335335 
  • trunk/phpgwapi/inc/class.xmlrpc_server.inc.php

    r2 r6057  
    4747                function iso86012date($isodate,$timestamp=False) 
    4848                { 
    49                         if (($arr = split('[-:T]',$isodate)) && count($arr) == 6) 
     49                        if (($arr = preg_split('/[-:T]/',$isodate)) && count($arr) == 6) 
    5050                        { 
    5151                                foreach(array('year','month','mday','hour','min','sec') as $n => $name) 
  • trunk/phpgwapi/inc/class.xmlrpcmsg.inc.php

    r5912 r6057  
    243243                                } 
    244244                        } 
    245                         $r->hdrs = $GLOBALS['_xh'][$parser]['ha']; //split("\r?\n", $GLOBALS['_xh'][$parser]['ha'][1]); 
     245                        $r->hdrs = $GLOBALS['_xh'][$parser]['ha']; //preg_split('/\r?\n/', $GLOBALS['_xh'][$parser]['ha'][1]); 
    246246                        return $r; 
    247247                } 
  • trunk/phpgwapi/inc/common_functions.inc.php

    r5928 r6057  
    341341                                if (preg_match('/^[0-9]{1,3}(\.[0-9]{1,3}){3}$/i',$string)) 
    342342                                { 
    343                                         $octets = split('\.',$string); 
     343                                        $octets = preg_split('/\./',$string); 
    344344                                        for ($i=0; $i != count($octets); $i++) 
    345345                                        { 
  • trunk/phpgwapi/inc/xml_functions.inc.php

    r5934 r6057  
    146146        function xmlrpc_entity_decode($string) 
    147147        { 
    148                 $top = split('&', $string); 
     148                $top = preg_split('/&/', $string); 
    149149                $op  = ''; 
    150150                $i   = 0; 
  • trunk/preferences/inc/class.uiaclprefs.inc.php

    r3404 r6057  
    130130                                $totalacl = array(); 
    131131                                while(list($rowinfo,$perm) = each($group_variable))     { 
    132                                         list($group_id,$rights) = split('_',$rowinfo); 
     132                                        list($group_id,$rights) = preg_split('/_/',$rowinfo); 
    133133                                        $totalacl[$group_id] += $rights; 
    134134                                } 
     
    153153                                $totalacl = array(); 
    154154                                while(list($rowinfo,$perm) = each($user_variable))      { 
    155                                         list($user_id,$rights) = split('_',$rowinfo); 
     155                                        list($user_id,$rights) = preg_split('/_/',$rowinfo); 
    156156                                        $totalacl[$user_id] += $rights; 
    157157                                } 
  • trunk/prototype/plugins/davicalCliente/caldav-client-v2.php

    r5437 r6057  
    279279    fclose($fip); 
    280280 
    281     list( $this->httpResponseHeaders, $this->httpResponseBody ) = preg_split( '{\r?\n\r?\n}s', $response, 2 ); 
     281    list( $this->httpResponseHeaders, $this->httpResponseBody ) = preg_split( '/{\r?\n\r?\n}s/', $response, 2 ); 
    282282    if ( preg_match( '{Transfer-Encoding: chunked}i', $this->httpResponseHeaders ) ) $this->Unchunk(); 
    283283 
  • trunk/reports/inc/class.functions.inc.php

    r5291 r6057  
    119119                        $result['raw_context'] = $acl[0]['context']; 
    120120                         
    121                         $all_contexts = split("%", $acl[0]['context']); 
     121                        $all_contexts = preg_split('/%/', $acl[0]['context']); 
    122122                        foreach ($all_contexts as $index=>$context) 
    123123                        { 
     
    10711071                function make_lang($ram_lang) 
    10721072                { 
    1073                         $a_lang = split("_", $ram_lang); 
     1073                        $a_lang = preg_split('/_/', $ram_lang); 
    10741074                        $a_lang_reverse  = array_reverse ( $a_lang, true ); 
    10751075                        array_pop ( $a_lang_reverse ); 
  • trunk/setup/lang.php

    r2 r6057  
    103103                { 
    104104                        _debug_array($badline); 
    105                         $_f_buffer = split("[/\\]", $badline['appfile']); 
     105                        $_f_buffer = preg_split('/[\/\\]/', $badline['appfile']); 
    106106                        $str .= lang('Application: %1, File: %2, Line: "%3"','<b>'.$_f_buffer[count($_f_buffer)-3].'</b>', 
    107107                                '<b>'.$_f_buffer[count($_f_buffer)-1].'</b>',$badline['line'])."<br>\n"; 
  • trunk/workflow/inc/phplot/phplot.php

    r5934 r6057  
    942942            // Split the text by its lines, and count them 
    943943            $which_text = preg_replace('/\r/', '', $which_text); 
    944             $str = split("\n", $which_text); 
     944            $str = preg_split('/\n/', $which_text); 
    945945            $nlines = count($str); 
    946946            $spacing = $this->line_spacing * ($nlines - 1); 
     
    14801480        } 
    14811481 
    1482         $str = split("\n", $which_title); 
     1482        $str = preg_split('/\n/', $which_title); 
    14831483        $lines = count($str); 
    14841484        $spacing = $this->line_spacing * ($lines - 1); 
     
    15051505        $this->x_title_txt = $which_xtitle; 
    15061506 
    1507         $str = split("\n", $which_xtitle); 
     1507        $str = preg_split('/\n/', $which_xtitle); 
    15081508        $lines = count($str); 
    15091509        $spacing = $this->line_spacing * ($lines - 1); 
     
    15321532        $this->y_title_txt = $which_ytitle; 
    15331533 
    1534         $str = split("\n", $which_ytitle); 
     1534        $str = preg_split('/\n/', $which_ytitle); 
    15351535        $lines = count($str); 
    15361536        $spacing = $this->line_spacing * ($lines - 1); 
  • trunk/workflow/inc/smarty/plugins/function.fetch.php

    r795 r6057  
    182182                    } 
    183183                    fclose($fp); 
    184                     $csplit = split("\r\n\r\n",$content,2); 
     184                    $csplit = preg_split('/\r\n\r\n/',$content,2); 
    185185 
    186186                    $content = $csplit[1]; 
    187187 
    188188                    if(!empty($params['assign_headers'])) { 
    189                         $smarty->assign($params['assign_headers'],split("\r\n",$csplit[0])); 
     189                        $smarty->assign($params['assign_headers'],preg_split('/\r\n/',$csplit[0])); 
    190190                    } 
    191191                } 
Note: See TracChangeset for help on using the changeset viewer.