Changeset 6037
- Timestamp:
- 04/26/12 11:43:10 (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar/inc/class.boicalendar.inc.php
r5921 r6037 2383 2383 // if(preg_match('/D/', $_f_['day_raw'])) 2384 2384 if (strstr($_f_['day_raw'], 'D')) { 2385 $dur['days'] = eregi_replace("([0-9]+)D(.*)", "\\1", $_f_['day_raw']);2385 $dur['days'] = preg_replace('/([0-9]+)D(.*)/i', '\\1', $_f_['day_raw']); 2386 2386 } 2387 2387 … … 2389 2389 // if(preg_match('/W/', $_f_["day_raw"])) 2390 2390 if (strstr($_f_['day_raw'], 'W')) { 2391 $dur['weeks'] = eregi_replace("([^|.*]+D)?([0-9]+)W", "\\2", $_f_['day_raw']);2391 $dur['weeks'] = preg_replace('/([^|.*]+D)?([0-9]+)W/i', '\\2', $_f_['day_raw']); 2392 2392 } 2393 2393 } … … 2398 2398 // if(preg_match('/H/', $_f_["time_raw"])) 2399 2399 if (strstr($_f_['time_raw'], 'H')) { 2400 $dur['hours'] = eregi_replace("([0-9]+)H(.*)", "\\1", $_f_['time_raw']);2400 $dur['hours'] = preg_replace('/([0-9]+)H(.*)/i', '\\1', $_f_['time_raw']); 2401 2401 } 2402 2402 … … 2405 2405 // if(preg_match('/M/', $_f_["time_raw"])) 2406 2406 if (strstr($_f_['time_raw'], 'M')) { 2407 $dur['minutes'] = eregi_replace("([^|.*]+H)?([0-9]+)M(.*)", "\\2", $_f_['time_raw']);2407 $dur['minutes'] = preg_replace('/([^|.*]+H)?([0-9]+)M(.*)/i', '\\2', $_f_['time_raw']); 2408 2408 } 2409 2409 … … 2412 2412 // if(preg_match('/S/', $_f_["time_raw"]) ) 2413 2413 if (strstr($_f_['time_raw'], 'S')) { 2414 $dur['seconds'] = eregi_replace("([^|.*]+M)?([0-9]+)S(.*)", "\\2", $_f_['time_raw']);2414 $dur['seconds'] = preg_replace('/([^|.*]+M)?([0-9]+)S(.*)/i', '\\2', $_f_['time_raw']); 2415 2415 } 2416 2416 } -
trunk/expressoMail1_2/inc/class.imap_attachment.inc.php
r5509 r6037 93 93 $str = ""; 94 94 foreach ($array as $key => $part) 95 $str .= @ eregi_replace("\{", "[",@eregi_replace("\}", "]",$part->text));95 $str .= @preg_replace('/\{\/i', '['',@preg_replace('\/\}/i', ']',$part->text)); 96 96 97 97 return $str; -
trunk/expressoMail1_2/offline.php
r5509 r6037 129 129 // Fix problem with cyrus delimiter changes in preferences. 130 130 // Dots in names: enabled/disabled. 131 $save_in_folder = @ eregi_replace("INBOX/", "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']);132 $save_in_folder = @ eregi_replace("INBOX.", "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $save_in_folder);131 $save_in_folder = @preg_replace('/INBOX//i', "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']); 132 $save_in_folder = @preg_replace('/INBOX./i', "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $save_in_folder); 133 133 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'] = $save_in_folder; 134 134 // End Fix. -
trunk/filemanager/inc/class.bofilemanager.inc.php
r5940 r6037 138 138 if ($all) 139 139 { 140 if (preg_match( "-([\\/<>\|\'\"\&])-", $string, $badchars))140 if (preg_match('/-([\\/<>\|\'\"\&])-/', $string, $badchars)) 141 141 $rstring = $badchars[1]; 142 142 } 143 143 else 144 144 { 145 if (preg_match( "-([\\/<>])-", $string, $badchars))145 if (preg_match('/-([\\/<>])-/', $string, $badchars)) 146 146 $rstring = $badchars[1]; 147 147 } … … 212 212 { 213 213 //var_dump($string); 214 if (preg_match ("/=(.*)(&|$)/U", $string))214 if (preg_match('/\/=(.*)(&|$)\/U/', $string)) 215 215 { 216 216 $rstring = $string; … … 228 228 } 229 229 elseif ($this->hostname != "" && preg_match("/^$this->hostname/", $string)) 230 // elseif ( ereg ('^'.$this->hostname, $string))230 // elseif (preg_match ("/^$this->hostname/", $string)) 231 231 { 232 232 $rstring = preg_replace("/^$this->hostname\//", '', $string); … … 239 239 240 240 /* Terrible hack, decodes all /'s back to normal */ 241 $rstring = preg_replace ("/%2F/", '/', $rstring);241 $rstring = preg_replace('/%2F/', '/', $rstring); 242 242 } 243 243 -
trunk/mobile/inc/class.ui_mobilemail.inc.php
r5620 r6037 317 317 // Fix problem with cyrus delimiter changes in preferences. 318 318 // Dots in names: enabled/disabled. 319 $save_in_folder = @ eregi_replace("INBOX/", "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']);320 $save_in_folder = @ eregi_replace("INBOX.", "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $save_in_folder);319 $save_in_folder = @preg_replace('/INBOX//i', "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder']); 320 $save_in_folder = @preg_replace('/INBOX./i', "INBOX".$_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter'], $save_in_folder); 321 321 $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'] = $save_in_folder; 322 322 // End Fix. -
trunk/phpgwapi/inc/class.interserver.inc.php
r2 r6037 81 81 function interserver($serverid='') 82 82 { 83 $url = eregi_replace('https*://[^/]*/','',$GLOBALS['phpgw_info']['server']['webserver_url']);83 $url = preg_replace('/https*:\/\/[^\/]*\//i','',$GLOBALS['phpgw_info']['server']['webserver_url']); 84 84 $this->urlparts = array( 85 85 'xmlrpc' => $url.'/xmlrpc.php', -
trunk/phpgwapi/inc/class.sessions.inc.php
r5281 r6037 1184 1184 if( preg_match('/\[\]/i', $b[0]) ) 1185 1185 { 1186 $b[0] = eregi_replace("\[\]", "[$i]", $b[0]);1186 $b[0] = preg_replace('/\[\]/i', "[$i]", $b[0]); 1187 1187 } 1188 1188 } -
trunk/phpgwapi/inc/class.xml.inc.php
r5928 r6037 3378 3378 3379 3379 // Replace the last separator. 3380 $command = eregi_replace(", $", ");", $command);3380 $command = preg_replace('/, $/i', ');', $command); 3381 3381 3382 3382 // Execute the command. -
trunk/workflow/inc/class.bo_adminjobs.inc.php
r3167 r6037 109 109 foreach ($logs as $key => $value) 110 110 { 111 $logs[$key]['date_time'] = ereg_replace("([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2}) ([[:digit:]]{2}):([[:digit:]]{2}):00", '\3/\2/\1 \4h\5', $value['date_time']);111 $logs[$key]['date_time'] = preg_replace('/([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2}) ([[:digit:]]{2}):([[:digit:]]{2}):00/', '\3/\2/\1 \4h\5', $value['date_time']); 112 112 $currentDate = $value['date_time']; 113 113 if (isset($writtenDates[substr($logs[$key]['date_time'], 0, 10)])) -
trunk/workflow/inc/class.bo_utils.inc.php
r5928 r6037 66 66 { 67 67 // parâmetro a ser procurado no ldap 68 $cn = trim( ereg_replace(' +', ' ', $params['cn']));68 $cn = trim(preg_replace('/ +/', ' ', $params['cn'])); 69 69 70 70 $output = array(); -
trunk/workflow/inc/class.powergraphic.inc.php
r5921 r6037 1143 1143 $this->color['line_2'] = imagecolorallocate($this->img, 220, 200, 50); 1144 1144 } 1145 else if ( ereg("^(5|6)$", $this->type))1145 else if (preg_match('/^(5|6)$/', $this->type)) 1146 1146 { 1147 1147 $this->color['arc_1'] = imagecolorallocate($this->img, 100, 150, 200);
Note: See TracChangeset
for help on using the changeset viewer.