Changeset 6057
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- Location:
- trunk
- Files:
-
- 52 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/about.php
r162 r6057 67 67 { 68 68 $names = explode('<br>',$infos['name']); 69 $emails = split('@|<br>',$infos['email']);69 $emails = preg_split('/@|<br>/',$infos['email']); 70 70 if (count($names) < count($emails)/2) 71 71 { -
trunk/admin/inc/Controller.class.php
r5509 r6057 457 457 // convert from a string to an array 458 458 ksort($keywords['sorted']); 459 $keywords = "'" . implode('|',$keywords['sorted']) . "'. split('|')";459 $keywords = "'" . implode('|',$keywords['sorted']) . "'.preg_split('/|/')"; 460 460 461 461 $encode = ($this->_encoding > 62) ? '_encode95' : $this->_getEncoder($ascii); -
trunk/admin/inc/class.boaccess_history.inc.php
r5912 r6057 56 56 if (preg_match('/@/',$record['loginid'])) 57 57 { 58 $t = split('@',$record['loginid']);58 $t = preg_split('/@/',$record['loginid']); 59 59 $record['loginid'] = $t[0]; 60 60 } -
trunk/admin/inc/class.bocurrentsessions.inc.php
r5912 r6057 33 33 if (preg_match('/@/',$value['session_lid'])) 34 34 { 35 $t = split('@',$value['session_lid']);35 $t = preg_split('/@/',$value['session_lid']); 36 36 $session_lid = $t[0]; 37 37 } -
trunk/admin/inc/class.uicategories.inc.php
r3536 r6057 345 345 function edit() 346 346 { 347 $cat_group = split(",",$_POST['idgroup']);347 $cat_group = preg_split('/,/',$_POST['idgroup']); 348 348 349 349 if (count($cat_group) == 0) -
trunk/calendar/csv_import.php
r5934 r6057 93 93 } 94 94 95 $cats = split('[,;]',$cats);95 $cats = preg_split('/[,;]/',$cats); 96 96 97 97 foreach($cats as $k => $cat) … … 473 473 // convert participants-names to user-id's 474 474 $participants = 0; 475 foreach( split('[,;]',$values['participants']) as $part_status)475 foreach(preg_split('/[,;]/',$values['participants']) as $part_status) 476 476 { 477 477 list($part,$status) = explode('=',$part_status); -
trunk/calendar/inc/class.boicalendar.inc.php
r6037 r6057 2376 2376 2377 2377 // 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)); 2379 2379 2380 2380 /* Datecode */ … … 2960 2960 // What is datetime in 2192 ? 2961 2961 $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)); 2963 2963 2964 2964 // Set End of event -
trunk/calendar/inc/class.socalendar.inc.php
r5132 r6057 157 157 '(phpgw_cal_user.cal_login=' . (int)$this->owner . ' OR phpgw_cal.is_public=1) AND ('; 158 158 159 $words = split('',$keywords);159 $words = preg_split('/ /',$keywords); 160 160 foreach($words as $i => $word) 161 161 { -
trunk/calendar/inc/class.uicalendar.inc.php
r5921 r6057 5725 5725 if(isset($_GET['part']) && $_GET['part']) 5726 5726 { 5727 $control_data['part'] = split(",", $_GET['part']);5727 $control_data['part'] = preg_split('/,/', $_GET['part']); 5728 5728 } 5729 5729 else -
trunk/expressoCalendar/inc/class.ui_migration.inc.php
r5804 r6057 107 107 108 108 //time 109 $time = split (":", $result['times']);109 $time = preg_split('/:/', $result['times']); 110 110 $sql_insert .= substr($time, -1).", "; 111 111 //range_end … … 160 160 //participantes externos normais 161 161 } catch (Exception $e) { 162 $participants_ex = split(',', $ex_participante);162 $participants_ex = preg_split('/,/', $ex_participante); 163 163 164 164 foreach ($participants_ex as $ex){ -
trunk/expressoMail1_2/inc/class.ScriptS.inc.php
r5509 r6057 588 588 // Recebe o conteúdo do array; 589 589 $lines = array(); 590 $lines = preg_split( "/\n/", $scriptName);590 $lines = preg_split('/\n/', $scriptName); 591 591 592 592 // Pega o tamanho da regra na primeira do script; -
trunk/expressoMail1_2/inc/class.SieveS.inc.php
r5509 r6057 77 77 elseif (preg_match("/^\"SASL\" +\"(.*)\"/",$said,$bits)) { 78 78 $auth_types = $bits[1]; 79 $this->saslmethods = split(" ", $auth_types);79 $this->saslmethods = preg_split('/ /', $auth_types); 80 80 } 81 81 elseif (preg_match("/^\"SIEVE\" +\"(.*)\"/",$said,$bits)) { 82 82 $extensions = $bits[1]; 83 $this->extensions = split(" ", $extensions);83 $this->extensions = preg_split('/ /', $extensions); 84 84 } 85 85 elseif (preg_match("/^\"STARTTLS\"/",$said)){ … … 98 98 if (preg_match("/SASL=\{(.+)\}/",$sasl_str,$morebits)) { 99 99 $auth_types = $morebits[1]; 100 $this->saslmethods = split(", ", $auth_types);100 $this->saslmethods = preg_split('/, /', $auth_types); 101 101 }else { 102 102 // a bit desperate if we get here. -
trunk/expressoMail1_2/inc/class.ldap_functions.inc.php
r5864 r6057 212 212 $contacts_result[$i] = array(); 213 213 $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); 215 215 $i++; 216 216 } … … 511 511 $extendedinfo=false; 512 512 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); 514 514 515 515 if ($contacts_result['jpegphoto']) -
trunk/expressoMail1_2/spell_checker/cpaint/cpaint2.proxy.php
r3400 r6057 127 127 } 128 128 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); 130 130 echo($http_body); 131 131 @fclose($cp_socket); -
trunk/expressoMail1_2/spell_checker/pspell_comp.php
r3400 r6057 201 201 202 202 //parse output 203 $lines = split("\n",$out);203 $lines = preg_split('/\n/',$out); 204 204 foreach ($lines as $line){ 205 205 $line = trim($line); … … 210 210 if($line[0] == '&'){ 211 211 $line = preg_replace('/&.*?: /','',$line); 212 return split(',',$line);212 return preg_split('/, /',$line); 213 213 } 214 214 } -
trunk/expressoMail1_2/spell_checker/spell_checker.php
r3400 r6057 197 197 198 198 //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); 200 200 201 201 $numResults = count($words); //the number of elements in the array. … … 215 215 if(($i & 1) == 0) // Even-numbered entries are word sets. 216 216 { 217 $words[$i] = preg_split( "/(\s+|\ )/", $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces217 $words[$i] = preg_split('/(\s+|\ )/', $words[$i], -1, PREG_SPLIT_DELIM_CAPTURE); //then split it on the spaces 218 218 219 219 // Now go through each word and link up the misspelled ones. -
trunk/filemanager/tp/dompdf/dompdf.php
r3019 r6057 229 229 230 230 if ( isset($opts['t']) ) { 231 $arr = split(',',$opts['t']);231 $arr = preg_split('/,/',$opts['t']); 232 232 $types = array(); 233 233 foreach ($arr as $type) -
trunk/filemanager/tp/dompdf/include/block_frame_decorator.cls.php
r3019 r6057 186 186 187 187 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())); 189 189 190 190 $this->_lines[$this->_cl]["w"] += $w; -
trunk/filemanager/tp/dompdf/include/dompdf.cls.php
r3019 r6057 363 363 //Check if the css file is for an accepted media type 364 364 //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); 366 366 if ( count($formedialist) > 0 ) { 367 367 $accept = false; -
trunk/filemanager/tp/dompdf/include/stylesheet.cls.php
r3019 r6057 357 357 358 358 // Parse the selector 359 //$s = preg_split( "/([ :>.#+])/", $selector, -1, PREG_SPLIT_DELIM_CAPTURE);359 //$s = preg_split('/([ :>.#+])/', $selector, -1, PREG_SPLIT_DELIM_CAPTURE); 360 360 361 361 $delimiters = array(" ", ">", ".", "#", "+", ":", "["); … … 883 883 */ 884 884 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); 886 886 $url = array_shift($arr); 887 887 $accept = false; -
trunk/filemanager/tp/dompdf/include/text_frame_reflower.cls.php
r3019 r6057 363 363 // faster than doing a single-pass character by character scan. Heh, 364 364 // 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)); 366 366 array_walk($words, create_function('&$val,$str', 367 367 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); … … 371 371 372 372 case "pre": 373 $lines = array_flip(preg_split( "/\n/u", $str));373 $lines = array_flip(preg_split('/\n/u', $str)); 374 374 array_walk($lines, create_function('&$val,$str', 375 375 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); … … 398 398 case "pre-wrap": 399 399 // Find the longest word (i.e. minimum length) 400 $lines = array_flip(preg_split( "/\n/", $text));400 $lines = array_flip(preg_split('/\n/', $text)); 401 401 array_walk($lines, create_function('&$val,$str', 402 402 '$val = Font_Metrics::get_text_width($str, "'.$font.'", '.$size.', '.$spacing.');')); -
trunk/library/PEAR/PEAR/RunTest.php
r5146 r6057 320 320 $section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']); 321 321 } 322 $ini = preg_split( "/[\n\r]+/", $section_text['INI']);322 $ini = preg_split( '/[\n\r]+/', $section_text['INI']); 323 323 $ini_settings = $this->settings2array($ini, $ini_settings); 324 324 } … … 804 804 { 805 805 $headers = array(); 806 $rh = preg_split( "/[\n\r]+/", $text);806 $rh = preg_split('/[\n\r]+/', $text); 807 807 foreach ($rh as $line) { 808 808 if (strpos($line, ':')!== false) { -
trunk/library/mime/mimeDecode.php
r4414 r6057 665 665 $boundary = $bs_possible; 666 666 } 667 $tmp = preg_split( "/--".preg_quote($boundary, '/')."((?=\s)|--)/", $input);667 $tmp = preg_split('/\/--/'.preg_quote($boundary, '/')."((?=\s)|--)/", $input); 668 668 669 669 $len = count($tmp) -1; … … 799 799 800 800 $file = ''; 801 $str = preg_split( "/\r?\n/", trim($str));801 $str = preg_split('/\r?\n/', trim($str)); 802 802 $strlen = count($str); 803 803 -
trunk/library/mime/mimePart.php
r5135 r6057 570 570 } 571 571 */ 572 $lines = preg_split( "/\r?\n/", $input);572 $lines = preg_split('/\r?\n/', $input); 573 573 $escape = '='; 574 574 $output = ''; -
trunk/listAdmin/inc/class.functions.inc.php
r3514 r6057 398 398 399 399 $first_sector_ufn = ldap_dn2ufn($context); 400 $first_sector_string = split(",", $first_sector_ufn);400 $first_sector_string = preg_split('/,/', $first_sector_ufn); 401 401 402 402 $s = CreateObject('phpgwapi.sector_search_ldap'); … … 503 503 // Cria a primeira entrada na combo 504 504 $first_sector_ufn = ldap_dn2ufn($context); 505 $first_sector_string = split(",", $first_sector_ufn);505 $first_sector_string = preg_split('/,/', $first_sector_ufn); 506 506 $options = "<option value='$context'>" . strtoupper($first_sector_string[0]) . "</option>" . $options; 507 507 -
trunk/listAdmin/inc/sieve-php.lib.php
r5912 r6057 121 121 122 122 $this->line=fgets($this->fp,1024); 123 $this->token = split(" ", $this->line, 2);123 $this->token = preg_split('/ /', $this->line, 2); 124 124 125 125 if($this->token[0] == "NO"){ … … 127 127 NO ("yyyyy") "zzzzzzz" or, two, NO {yyyyy} "zzzzzzzzzzz" */ 128 128 $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); 130 130 if($this->mtoken[0] == "{"){ 131 131 while($this->mtoken[$this->x] != "}" or $this->err_len < 1){ … … 389 389 $this->cap_type="auth"; 390 390 391 $this->modules = split(" ", $this->item[1]);391 $this->modules = preg_split('/ /', $this->item[1]); 392 392 if(is_array($this->modules)){ 393 393 foreach($this->modules as $this->module) … … 422 422 423 423 //then split again at the ", " stuff. 424 $this->modules = split($this->modules, ", ");424 $this->modules = preg_split("/$this->modules/", ", "); 425 425 426 426 //fill up our $this->modules property … … 784 784 $this->cap_type="auth"; 785 785 786 $this->modules = split(" ", $this->item[1]);786 $this->modules = preg_split('/ /', $this->item[1]); 787 787 if(is_array($this->modules)){ 788 788 foreach($this->modules as $this->module) … … 814 814 815 815 //then split again at the ", " stuff. 816 $this->modules = split($this->modules, ", ");816 $this->modules = preg_split("/$this->modules/", ", "); 817 817 818 818 //fill up our $this->modules property -
trunk/mobile/inc/class.ui_mobilecalendar.inc.php
r4277 r6057 146 146 //descobrindo a semana anterior e a pŽroxima 147 147 $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); 149 149 $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); 151 151 152 152 //descobrind o primeiro dia da semana e o último 153 153 $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); 155 155 $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); 157 157 158 158 //definindo a barra de navegação do calandário … … 196 196 $last_day_of_before_month = date('t', mktime(0,0,0,$month-1,"01",$year)); 197 197 $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); 199 199 $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); 201 201 $today = date("d-m-Y"); 202 202 … … 285 285 //descobrind o primeiro dia da semana e o último 286 286 $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); 288 288 $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); 290 290 291 291 //definindo a barra de navegação do calandário -
trunk/phpgwapi/inc/adodb/adodb-datadict.inc.php
r34 r6057 519 519 if ($lines == null) $lines = array(); 520 520 list(,$first) = each($lines); 521 list(,$column_def) = split("[\t ]+",$first,2);521 list(,$column_def) = preg_split('/[\t ]+/',$first,2); 522 522 } 523 523 return array(sprintf($this->renameColumn,$tabname,$this->NameQuote($oldcolumn),$this->NameQuote($newcolumn),$column_def)); -
trunk/phpgwapi/inc/adodb/adodb-perf.inc.php
r34 r6057 88 88 $dbT = $conn->databaseType; 89 89 90 $a0 = split('',$t0);90 $a0 = preg_split('/ /',$t0); 91 91 $a0 = (float)$a0[1]+(float)$a0[0]; 92 92 93 $a1 = split('',$t1);93 $a1 = preg_split('/ /',$t1); 94 94 $a1 = (float)$a1[1]+(float)$a1[0]; 95 95 -
trunk/phpgwapi/inc/adodb/drivers/adodb-informix72.inc.php
r34 r6057 370 370 $o = new ADOFieldObject; 371 371 $o->name = $k; 372 $arr = split(';',$v); //"SQLTYPE;length;precision;scale;ISNULLABLE"372 $arr = preg_split('/;/',$v); //"SQLTYPE;length;precision;scale;ISNULLABLE" 373 373 $o->type = $arr[0]; 374 374 $o->max_length = $arr[1]; -
trunk/phpgwapi/inc/adodb/drivers/adodb-ldap.inc.php
r34 r6057 56 56 57 57 if ( strstr( $host, ':' ) ) { 58 $conn_info = split( ':', $host );58 $conn_info = preg_split( '/:/', $host ); 59 59 } 60 60 -
trunk/phpgwapi/inc/adodb/session/adodb-session.php
r1057 r6057 47 47 { 48 48 $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 ); 50 50 for( $i = 0; $i < count( $a ); $i = $i+2 ) { 51 51 $variables[$a[$i]] = unserialize( $a[$i+1] ); -
trunk/phpgwapi/inc/adodb/session/adodb-session2.php
r34 r6057 77 77 { 78 78 $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 ); 80 80 for( $i = 0; $i < count( $a ); $i = $i+2 ) { 81 81 $variables[$a[$i]] = unserialize( $a[$i+1] ); -
trunk/phpgwapi/inc/class.asyncservice.inc.php
r5141 r6057 634 634 { 635 635 if ($this->debug) echo 'line '.++$n.": $line<br>\n"; 636 $parts = split('',$line,6);636 $parts = preg_split('/ /',$line,6); 637 637 638 638 // Foi customizado para a Celepar. -
trunk/phpgwapi/inc/class.contacts_ldap.inc.php
r2 r6057 324 324 { 325 325 if($DEBUG) { echo 'DEBUG - Inbound filter is: #'.$filter.'#'; } 326 $filterarray = split(',',$filter);326 $filterarray = preg_split('/,/',$filter); 327 327 if($filterarray[1]) 328 328 { … … 340 340 else 341 341 { 342 list($name,$value) = split('=',$filter);342 list($name,$value) = preg_split('/=/',$filter); 343 343 if($DEBUG) 344 344 { … … 547 547 elseif($extra) 548 548 { 549 $tmp = split('=',$extra);549 $tmp = preg_split('/=/',$extra); 550 550 $qarray[] = array($tmp[0] => $tmp[1]); 551 551 } … … 863 863 864 864 /* Verify uid */ 865 $uids = split(',',$dn);865 $uids = preg_split('/,/',$dn); 866 866 $stock_fields['lid'] = $uids[0]; 867 867 if(empty($ldap_fields[0]['uid'])) -
trunk/phpgwapi/inc/class.jscalendar.inc.php
r5934 r6057 154 154 return False; 155 155 } 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) 158 158 { 159 159 if ($field == 'M') -
trunk/phpgwapi/inc/class.net_http_client.inc.php
r2 r6057 742 742 $finished = ( $str == $lastLine ); 743 743 if ( !$finished ) { 744 list( $hdr, $value ) = split( ": ", $str, 2 );744 list( $hdr, $value ) = preg_split( '/: /', $str, 2 ); 745 745 // nasty workaround broken multiple same headers (eg. Set-Cookie headers) @FIXME 746 746 if( isset( $headers[$hdr]) ) -
trunk/phpgwapi/inc/class.send.inc.php
r2 r6057 124 124 else 125 125 { 126 $addresses = split('[, ]',$$adr);126 $addresses = preg_split('/[, ]/',$$adr); 127 127 $names = array(); 128 128 } -
trunk/phpgwapi/inc/class.vcard.inc.php
r5934 r6057 123 123 while($data = fgets($fp,8000)) 124 124 { 125 list($name,$value,$extra) = split(':', $data);125 list($name,$value,$extra) = preg_split('/:/', $data); 126 126 if(substr($value,0,5) == 'http') 127 127 { … … 216 216 foreach($buffer as $name => $value) 217 217 { 218 $field = split(';',$name);218 $field = preg_split('/;/',$name); 219 219 $field[0] = preg_replace('/A\./','',$field[0]); 220 220 $field[0] = preg_replace('/B\./','',$field[0]); 221 221 $field[0] = preg_replace('/C\./','',$field[0]); 222 222 $field[0] = preg_replace('/D\./','',$field[0]); 223 $values = split(';',$value);223 $values = preg_split('/;/',$value); 224 224 if($field[1]) 225 225 { … … 594 594 else 595 595 { 596 $tmp = split('-',$values[0]);596 $tmp = preg_split('/-/',$values[0]); 597 597 if($tmp[0]) 598 598 { … … 612 612 $entry['adr_two_type'] = substr($buffer['adr_two_type'],0,-1); 613 613 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) 615 615 { 616 616 $entry['adr_one_street'] = $street[0]; // RB 2001/05/08 added for Lotus Organizer to split multiline adresses … … 650 650 elseif($value == 'BDAY') 651 651 { 652 $tmp = split('/',$buffer[$value]); # 12/31/1969 -> 1969-12-31652 $tmp = preg_split('/\//',$buffer[$value]); # 12/31/1969 -> 1969-12-31 653 653 if($tmp[0]) 654 654 { -
trunk/phpgwapi/inc/class.vfs_dav.inc.php
r5940 r6057 2374 2374 if (!preg_match('/^#/',$contents[$i])) 2375 2375 { 2376 $line= split("[[:space:]]+", $contents[$i]);2376 $line=preg_split('/[[:space:]]+/', $contents[$i]); 2377 2377 if (sizeof($line) >= 2) 2378 2378 { -
trunk/phpgwapi/inc/class.vfs_shared.inc.php
r5940 r6057 797 797 if (!preg_match('/^#/',$contents[$i])) 798 798 { 799 $line= split("[[:space:]]+", $contents[$i]);799 $line=preg_split('/[[:space:]]+/', $contents[$i]); 800 800 if (sizeof($line) >= 2) 801 801 { -
trunk/phpgwapi/inc/class.vfs_sql.inc.php
r5940 r6057 331 331 if ($attribute == 'version' && $data['incversion']) 332 332 { 333 $version_parts = split ("\.", $value);333 $version_parts = preg_split('/\./', $value); 334 334 $newnumofparts = $numofparts = count ($version_parts); 335 335 -
trunk/phpgwapi/inc/class.xmlrpc_server.inc.php
r2 r6057 47 47 function iso86012date($isodate,$timestamp=False) 48 48 { 49 if (($arr = split('[-:T]',$isodate)) && count($arr) == 6)49 if (($arr = preg_split('/[-:T]/',$isodate)) && count($arr) == 6) 50 50 { 51 51 foreach(array('year','month','mday','hour','min','sec') as $n => $name) -
trunk/phpgwapi/inc/class.xmlrpcmsg.inc.php
r5912 r6057 243 243 } 244 244 } 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]); 246 246 return $r; 247 247 } -
trunk/phpgwapi/inc/common_functions.inc.php
r5928 r6057 341 341 if (preg_match('/^[0-9]{1,3}(\.[0-9]{1,3}){3}$/i',$string)) 342 342 { 343 $octets = split('\.',$string);343 $octets = preg_split('/\./',$string); 344 344 for ($i=0; $i != count($octets); $i++) 345 345 { -
trunk/phpgwapi/inc/xml_functions.inc.php
r5934 r6057 146 146 function xmlrpc_entity_decode($string) 147 147 { 148 $top = split('&', $string);148 $top = preg_split('/&/', $string); 149 149 $op = ''; 150 150 $i = 0; -
trunk/preferences/inc/class.uiaclprefs.inc.php
r3404 r6057 130 130 $totalacl = array(); 131 131 while(list($rowinfo,$perm) = each($group_variable)) { 132 list($group_id,$rights) = split('_',$rowinfo);132 list($group_id,$rights) = preg_split('/_/',$rowinfo); 133 133 $totalacl[$group_id] += $rights; 134 134 } … … 153 153 $totalacl = array(); 154 154 while(list($rowinfo,$perm) = each($user_variable)) { 155 list($user_id,$rights) = split('_',$rowinfo);155 list($user_id,$rights) = preg_split('/_/',$rowinfo); 156 156 $totalacl[$user_id] += $rights; 157 157 } -
trunk/prototype/plugins/davicalCliente/caldav-client-v2.php
r5437 r6057 279 279 fclose($fip); 280 280 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 ); 282 282 if ( preg_match( '{Transfer-Encoding: chunked}i', $this->httpResponseHeaders ) ) $this->Unchunk(); 283 283 -
trunk/reports/inc/class.functions.inc.php
r5291 r6057 119 119 $result['raw_context'] = $acl[0]['context']; 120 120 121 $all_contexts = split("%", $acl[0]['context']);121 $all_contexts = preg_split('/%/', $acl[0]['context']); 122 122 foreach ($all_contexts as $index=>$context) 123 123 { … … 1071 1071 function make_lang($ram_lang) 1072 1072 { 1073 $a_lang = split("_", $ram_lang);1073 $a_lang = preg_split('/_/', $ram_lang); 1074 1074 $a_lang_reverse = array_reverse ( $a_lang, true ); 1075 1075 array_pop ( $a_lang_reverse ); -
trunk/setup/lang.php
r2 r6057 103 103 { 104 104 _debug_array($badline); 105 $_f_buffer = split("[/\\]", $badline['appfile']);105 $_f_buffer = preg_split('/[\/\\]/', $badline['appfile']); 106 106 $str .= lang('Application: %1, File: %2, Line: "%3"','<b>'.$_f_buffer[count($_f_buffer)-3].'</b>', 107 107 '<b>'.$_f_buffer[count($_f_buffer)-1].'</b>',$badline['line'])."<br>\n"; -
trunk/workflow/inc/phplot/phplot.php
r5934 r6057 942 942 // Split the text by its lines, and count them 943 943 $which_text = preg_replace('/\r/', '', $which_text); 944 $str = split("\n", $which_text);944 $str = preg_split('/\n/', $which_text); 945 945 $nlines = count($str); 946 946 $spacing = $this->line_spacing * ($nlines - 1); … … 1480 1480 } 1481 1481 1482 $str = split("\n", $which_title);1482 $str = preg_split('/\n/', $which_title); 1483 1483 $lines = count($str); 1484 1484 $spacing = $this->line_spacing * ($lines - 1); … … 1505 1505 $this->x_title_txt = $which_xtitle; 1506 1506 1507 $str = split("\n", $which_xtitle);1507 $str = preg_split('/\n/', $which_xtitle); 1508 1508 $lines = count($str); 1509 1509 $spacing = $this->line_spacing * ($lines - 1); … … 1532 1532 $this->y_title_txt = $which_ytitle; 1533 1533 1534 $str = split("\n", $which_ytitle);1534 $str = preg_split('/\n/', $which_ytitle); 1535 1535 $lines = count($str); 1536 1536 $spacing = $this->line_spacing * ($lines - 1); -
trunk/workflow/inc/smarty/plugins/function.fetch.php
r795 r6057 182 182 } 183 183 fclose($fp); 184 $csplit = split("\r\n\r\n",$content,2);184 $csplit = preg_split('/\r\n\r\n/',$content,2); 185 185 186 186 $content = $csplit[1]; 187 187 188 188 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])); 190 190 } 191 191 }
Note: See TracChangeset
for help on using the changeset viewer.