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