Changeset 6057 for trunk/phpgwapi
- Timestamp:
- 04/27/12 09:17:30 (12 years ago)
- Location:
- trunk/phpgwapi/inc
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
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;
Note: See TracChangeset
for help on using the changeset viewer.