Changeset 3189
- Timestamp:
- 08/11/10 12:34:46 (18 months ago)
- Location:
- trunk
- Files:
-
- 23 edited
-
CHANGELOG (modified) (1 diff)
-
gui/tools/webmail/plugins/abook_take/setup.php (modified) (2 diffs)
-
gui/tools/webmail/plugins/add_address/add_addresses.php (modified) (1 diff)
-
gui/tools/webmail/plugins/add_address/functions.php (modified) (1 diff)
-
gui/tools/webmail/plugins/bookmarks/bookmark_create.php (modified) (1 diff)
-
gui/tools/webmail/plugins/bookmarks/bookmark_edit.php (modified) (1 diff)
-
gui/tools/webmail/plugins/disk_quota/details.php (modified) (1 diff)
-
gui/tools/webmail/plugins/disk_quota/disk_quota.php (modified) (1 diff)
-
gui/tools/webmail/plugins/gpg/gpg.php (modified) (1 diff)
-
gui/tools/webmail/plugins/gpg/gpg_decrypt_attach.php (modified) (1 diff)
-
gui/tools/webmail/plugins/gpg/gpg_hook_functions.php (modified) (1 diff)
-
gui/tools/webmail/plugins/gpg/gpg_key_functions.php (modified) (3 diffs)
-
gui/tools/webmail/plugins/gpg/gpg_keyring.php (modified) (2 diffs)
-
gui/tools/webmail/plugins/gpg/gpg_pref_functions.php (modified) (1 diff)
-
gui/tools/webmail/plugins/gpg/modules/genkey_keygen.php (modified) (1 diff)
-
gui/tools/webmail/plugins/html_mail/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php (modified) (3 diffs)
-
gui/tools/webmail/plugins/html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/Commands/GetFolders.php (modified) (1 diff)
-
gui/tools/webmail/plugins/html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/Commands/GetFoldersAndFiles.php (modified) (2 diffs)
-
gui/tools/webmail/plugins/html_mail/functions.php (modified) (1 diff)
-
gui/tools/webmail/plugins/preview_pane/source_files/read_body.php-squirrelmail-1.4.3 (modified) (1 diff)
-
gui/tools/webmail/plugins/preview_pane/source_files/read_body.php-squirrelmail-1.5.1 (modified) (1 diff)
-
gui/tools/webmail/plugins/squirrelspell/modules/forget_me_not.mod (modified) (1 diff)
-
gui/tools/webmail/plugins/todo/todo.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/CHANGELOG
r3186 r3189 8 8 - GUI: 9 9 * Default/Disabled Page CSS embedded in CDATA tags 10 - TOOLS: 11 * Fixed #2053: Make ispCP ω PHP 5.3 compatible (part III): 12 Made Squirrelmail Plugins PHP 5.3 compatible 10 13 11 14 2010-08-11 Laurent Declercq -
trunk/gui/tools/webmail/plugins/abook_take/setup.php
r1638 r3189 35 35 global $Email_RegExp_Match; 36 36 37 if (! eregi('^' . $Email_RegExp_Match . '$', $email)) 37 /* @author ispCP PHP5.3 Compatibility Changes */ 38 if (! preg_match('/^' . $Email_RegExp_Match . '$/i', $email)) 38 39 return false; 39 40 … … 48 49 global $abook_found_email, $Email_RegExp_Match; 49 50 50 while (eregi('(' . $Email_RegExp_Match . ')', $str, $hits)) 51 /* @author ispCP PHP5.3 Compatibility Change */ 52 while (preg_match('/(' . $Email_RegExp_Match . ')/i', $str, $hits)) 51 53 { 52 54 $str = substr(strstr($str, $hits[0]), strlen($hits[0])); -
trunk/gui/tools/webmail/plugins/add_address/add_addresses.php
r2693 r3189 138 138 // 139 139 $errstr = $aa_abook->error; 140 $errstr = ereg_replace('^\[.*\] *', '', $errstr); 140 /* @author ispCP PHP5.3 Compatibility Change */ 141 $errstr = preg_replace('/^\[.*\] */', '', $errstr); 141 142 $errors[$i][] = sprintf(_("%s for address number %s"), $errstr, $disp_number); 142 143 } -
trunk/gui/tools/webmail/plugins/add_address/functions.php
r2693 r3189 716 716 // check formatting 717 717 // 718 if (!eregi('^' . $Email_RegExp_Match . '$', $email)) 718 /* @author ispCP PHP5.3 Compatibility Change */ 719 if (!preg_match('/^' . $Email_RegExp_Match . '$/i', $email)) 719 720 return FALSE; 720 721 -
trunk/gui/tools/webmail/plugins/bookmarks/bookmark_create.php
r1638 r3189 76 76 $explode = explode("</TITLE>",$sString); 77 77 $sString = $explode[0]; 78 $title = ereg_replace("(\r\n|\n|\r)", "", $sString); 78 /* @author ispCP PHP5.3 Compatibility Change */ 79 $title = preg_replace("(\r\n|\n|\r)", "", $sString); 79 80 } 80 81 } -
trunk/gui/tools/webmail/plugins/bookmarks/bookmark_edit.php
r1638 r3189 85 85 $explode = explode("</TITLE>",$sString); 86 86 $sString = $explode[0]; 87 $title = ereg_replace("(\r\n|\n|\r)", "", $sString); 87 /* @author ispCP PHP5.3 Compatibility Change */ 88 $title = preg_replace("/(\r\n|\n|\r)/", "", $sString); 88 89 } 89 90 } -
trunk/gui/tools/webmail/plugins/disk_quota/details.php
r1638 r3189 42 42 $dq_grace = $_POST["dq_grace"]; 43 43 if ( $dq_blocks >= $dq_quota ) { 44 list ($dq_grace1, $dq_grace2) = split (":", $dq_grace); 44 /* @author ispCP 5.3 Compatibility Change */ 45 list ($dq_grace1, $dq_grace2) = explode (":", $dq_grace); 45 46 if ( strlen($dq_grace2) >= 1 ) { 46 47 if ( $dq_grace2 == "day" || $dq_grace2 == "days" ) { -
trunk/gui/tools/webmail/plugins/disk_quota/disk_quota.php
r1638 r3189 44 44 for ( $i=2 ; $i<sizeof($quota_data) ; $i++ ) { 45 45 46 /* @author ispCP 5.3 Compatibility Change */ 46 47 list($dq_fsname, $dq_blocks, $dq_quota, $dq_limit, $dq_grace) = 47 split( "[[:blank:]]+", trim($quota_data[$i]) );48 explode( "[[:blank:]]+", trim($quota_data[$i]) ); 48 49 if ( strlen($dq_fsname) != 0 && strlen($dq_blocks) == 0 && strlen($dq_quota) == 0 ) { 50 /* @author ispCP 5.3 Compatibility Change */ 49 51 list($dq_blocks, $dq_quota, $dq_limit, $dq_grace) = 50 split( "[[:blank:]]+", trim($quota_data[$i+1]) );52 explode( "[[:blank:]]+", trim($quota_data[$i+1]) ); 51 53 $i++; 52 54 } -
trunk/gui/tools/webmail/plugins/gpg/gpg.php
r1638 r3189 81 81 $j = substr_count($uidstring, "[User id not found]"); 82 82 if ($j) { $this->email_name='Unknown'; return; } 83 $matches = split("[<>]", $uidstring); 83 /* @author ispCP PHP5.3 Compatibility Change */ 84 $matches = explode("[<>]", $uidstring); 84 85 switch (count($matches)) { 85 86 case 1: -
trunk/gui/tools/webmail/plugins/gpg/gpg_decrypt_attach.php
r1638 r3189 79 79 $languages[$squirrelmail_language]['XTRA_CODE']('downloadfilename', $filename, $HTTP_USER_AGENT); 80 80 } else { 81 $filename = ereg_replace('[\\/:\*\?"<>\|;]', '_', str_replace(' ', ' ', $filename)); 81 /* @author ispCP PHP5.3 Compatibility Change */ 82 $filename = preg_replace('/[\\/:\*\?"<>\|;]/', '_', str_replace(' ', ' ', $filename)); 82 83 } 83 84 -
trunk/gui/tools/webmail/plugins/gpg/gpg_hook_functions.php
r1638 r3189 826 826 // THIS IS VERY IMPORTANT. Must make sure all the lines end in \r\n 827 827 // see RFC3156 section 5 828 $messageSignedText = ereg_replace("\r\n", "\n", $messageSignedText ); 829 $messageSignedText = ereg_replace("\r", "\n", $messageSignedText ); 830 $messageSignedText = ereg_replace("\n", "\r\n", $messageSignedText ); 828 /* @author ispCP PHP5.3 Compatibility Change */ 829 $messageSignedText = preg_replace("/\r\n/", "\n", $messageSignedText ); 830 $messageSignedText = preg_replace("/\r/", "\n", $messageSignedText ); 831 $messageSignedText = preg_replace("/\n/", "\r\n", $messageSignedText ); 831 832 832 833 //$messageSignedText = escapeshellarg($messageSignedText); 833 $messageSignedText = ereg_replace("\"", "\\\"", $messageSignedText );834 $messageSignedText = preg_replace("/\"/", "\\\"", $messageSignedText ); 834 835 835 836 -
trunk/gui/tools/webmail/plugins/gpg/gpg_key_functions.php
r1638 r3189 248 248 $key_date = $bits[5]; 249 249 $matches=array(); 250 eregi(".*(<.*>).*", $bits[9], $matches); 250 /* @author ispCP PHP5.3 Compatibility Change */ 251 preg_match("/.*(<.*>).*/i", $bits[9], $matches); 251 252 $email_str = htmlspecialchars($bits[9]); 252 253 $email_addr = htmlspecialchars($matches[1]); … … 492 493 $line=str_replace(""","&",$line); 493 494 494 if (ereg("^pub[[:space:]]+([[:digit:]]+[R|D])/([[:alnum:]]+)[[:space:]]+([[:digit:]]+)/([[:digit:]]+)/([[:digit:]]+)[[:space:]]+(.*)", $line, $tmp)) { 495 /* @author ispCP PHP5.3 Compatibility Change */ 496 if (preg_match("/^pub[[:space:]]+([[:digit:]]+[R|D])\/([[:alnum:]]+)[[:space:]]+([[:digit:]]+)\/([[:digit:]]+)\/([[:digit:]]+)[[:space:]]+(.*)/", $line, $tmp)) { 495 497 // foreach ($tmp as $key => $value) echo "<br>regex $key = $value"; 496 498 $lastkey = $tmp[2]; … … 499 501 500 502 } 501 if (ereg("(.+)<(.+@.+)>", $line, $t)) { 503 /* @author ispCP PHP5.3 Compatibility Change */ 504 if (preg_match("/(.+)<(.+@.+)>/", $line, $t)) { 502 505 $tmpemail = $t[2]; 503 506 $tmpname = $t[1]; -
trunk/gui/tools/webmail/plugins/gpg/gpg_keyring.php
r1638 r3189 86 86 87 87 //Email address info. 88 $matches = split("[<>]", $parts[9]); 88 /* @author ispCP PHP5.3 Compatibility Change */ 89 $matches = explode("[<>]", $parts[9]); 89 90 switch (count($matches)) { 90 91 case 1: … … 100 101 default: 101 102 //Patch to parse user info lines properly provided by Lars Kruse <devel@sumpfralle.de> 102 ereg ("^(.*)<([^>]*)>([^>]*)$", $parts[9], $infos); 103 /* @author ispCP PHP5.3 Compatibility Change */ 104 preg_match("/^(.*)<([^>]*)>([^>]*)$/", $parts[9], $infos); 103 105 $ret['email_name'] = $infos[1]; 104 106 $ret['email_addr'] = $infos[2]; -
trunk/gui/tools/webmail/plugins/gpg/gpg_pref_functions.php
r1638 r3189 55 55 if (substr($line,0,1) == '#') continue; 56 56 $matches=array(); 57 eregi("^([[:alnum:]|_]+)=(.*)", $line, $matches); 57 /* @author ispCP PHP5.3 Compatibility Change */ 58 preg_match("/^([[:alnum:]|_]+)=(.*)/i", $line, $matches); 58 59 $GLOBALS['GPG_SYSTEM_OPTIONS'][trim($matches[1])] = trim($matches[2]); 59 60 if (trim($matches[1])=='systemkeyringfile') { -
trunk/gui/tools/webmail/plugins/gpg/modules/genkey_keygen.php
r1638 r3189 248 248 { 249 249 //echo ("<br>" . htmlspecialchars($thing)); 250 if (ereg("sec[[:space:]]+([[:digit:]]+[R|D|G])/([[:alnum:]]+)[[:space:]]+(.*)", $thing, $tmp)) 250 /* @author ispCP PHP5.3 Compatibility Change */ 251 if (preg_match("/sec[[:space:]]+([[:digit:]]+[R|D|G])\/([[:alnum:]]+)[[:space:]]+(.*)/", $thing, $tmp)) 251 252 $key_id = $tmp[2]; 252 253 } -
trunk/gui/tools/webmail/plugins/html_mail/fckeditor/editor/filemanager/browser/default/connectors/php/connector.php
r1638 r3189 38 38 $GLOBALS["UserFilesPath"] = '/UserFiles/' ; 39 39 40 if ( ! ereg( '/$', $GLOBALS["UserFilesPath"] ) ) 40 /* @author ispCP PHP5.3 Compatibility Change */ 41 if ( ! preg_match( '#/$#', $GLOBALS["UserFilesPath"] ) ) 41 42 $GLOBALS["UserFilesPath"] .= '/' ; 42 43 … … 45 46 $GLOBALS["UserFilesDirectory"] = $Config['UserFilesAbsolutePath'] ; 46 47 47 if ( ! ereg( '/$', $GLOBALS["UserFilesDirectory"] ) ) 48 /* @author ispCP PHP5.3 Compatibility Change */ 49 if ( ! preg_match( '#/$#', $GLOBALS["UserFilesDirectory"] ) ) 48 50 $GLOBALS["UserFilesDirectory"] .= '/' ; 49 51 } … … 70 72 return ; 71 73 72 // Check the current folder syntax (must begin and start with a slash). 73 if ( ! ereg( '/$', $sCurrentFolder ) ) $sCurrentFolder .= '/' ; 74 // Check the current folder syntax (must begin and start with a slash).# 75 /* @author ispCP PHP5.3 Compatibility Change */ 76 if ( ! preg_match( '#/$#', $sCurrentFolder ) ) $sCurrentFolder .= '/' ; 74 77 if ( strpos( $sCurrentFolder, '/' ) !== 0 ) $sCurrentFolder = '/' . $sCurrentFolder ; 75 78 -
trunk/gui/tools/webmail/plugins/html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/Commands/GetFolders.php
r1638 r3189 48 48 //check if$fckphp_configured not to show this folder 49 49 $hide=false; 50 /* @author ispCP PHP5.3 Compatibility Change */ 50 51 for($i=0;$i<sizeof($this->fckphp_config['ResourceAreas'][$this->type]['HideFolders']);$i++) 51 $hide=( ereg($this->fckphp_config['ResourceAreas'][$this->type]['HideFolders'][$i],$filename)?true:$hide);52 $hide=(preg_match('/'.$this->fckphp_config['ResourceAreas'][$this->type]['HideFolders'][$i].'/',$filename)?true:$hide); 52 53 53 54 if (!$hide) echo "<Folder name=\"$filename\" />\n"; -
trunk/gui/tools/webmail/plugins/html_mail/fckeditor/editor/filemanager/browser/mcpuk/connectors/php/Commands/GetFoldersAndFiles.php
r1638 r3189 75 75 //check if$fckphp_configured not to show this folder 76 76 $hide=false; 77 /* @author ispCP PHP5.3 Compatibility Change */ 77 78 for($i=0;$i<sizeof($this->fckphp_config['ResourceAreas'][$this->type]['HideFolders']);$i++) 78 $hide=( ereg($this->fckphp_config['ResourceAreas'][$this->type]['HideFolders'][$i],$filename)?true:$hide);79 $hide=(preg_match('/'.$this->fckphp_config['ResourceAreas'][$this->type]['HideFolders'][$i].'/',$filename)?true:$hide); 79 80 80 81 if (!$hide) echo "\t\t<Folder name=\"$filename\" />\n"; … … 99 100 //check if$fckphp_configured not to show this file 100 101 $editable=$hide=false; 102 /* @author ispCP PHP5.3 Compatibility Change */ 101 103 for($j=0;$j<sizeof($this->fckphp_config['ResourceAreas'][$this->type]['HideFiles']);$j++) 102 $hide=( ereg($this->fckphp_config['ResourceAreas'][$this->type]['HideFiles'][$j],$files[$i])?true:$hide);104 $hide=(preg_match('/'.$this->fckphp_config['ResourceAreas'][$this->type]['HideFiles'][$j].'/',$files[$i])?true:$hide); 103 105 104 106 if (!$hide) { -
trunk/gui/tools/webmail/plugins/html_mail/functions.php
r1638 r3189 1490 1490 } 1491 1491 1492 ereg("^([\t >]*)([^\t >].*)?$", $line, $regs); 1492 /* @author ispCP PHP5.3 Compatibility Change */ 1493 preg_match("/^([\t >]*)([^\t >].*)?$/", $line, $regs); 1493 1494 $beginning_spaces = $regs[1]; 1494 1495 if (isset($regs[2])) { -
trunk/gui/tools/webmail/plugins/preview_pane/source_files/read_body.php-squirrelmail-1.4.3
r1638 r3189 189 189 // This merely comes from compose.php and only happens when there is no 190 190 // email_addr specified in user's identity (which is the startup config) 191 if (ereg("^([^@%/]+)[@%/](.+)$", $username, $usernamedata)) { 191 /* @author ispCP PHP5.3 Compatibility Change */ 192 if (preg_match("/^([^@%\/]+)[@%\/](.+)$/", $username, $usernamedata)) { 192 193 $popuser = $usernamedata[1]; 193 194 $domain = $usernamedata[2]; -
trunk/gui/tools/webmail/plugins/preview_pane/source_files/read_body.php-squirrelmail-1.5.1
r1638 r3189 150 150 // This merely comes from compose.php and only happens when there is no 151 151 // email_addr specified in user's identity (which is the startup config) 152 if (ereg("^([^@%/]+)[@%/](.+)$", $username, $usernamedata)) { 152 /* @author ispCP PHP5.3 Compatibility Change */ 153 if (preg_match("/^([^@%\/]+)[@%\/](.+)$/", $username, $usernamedata)) { 153 154 $popuser = $usernamedata[1]; 154 155 $domain = $usernamedata[2]; -
trunk/gui/tools/webmail/plugins/squirrelspell/modules/forget_me_not.mod
r2693 r3189 28 28 * Dirty: yes. Is there a better solution? Let me know. ;) 29 29 */ 30 $new_words = ereg_replace("%", "\n", $words); 30 /* @author ispCP PHP5.3 Compatibility Change */ 31 $new_words = preg_replace("/%/", "\n", $words); 31 32 /** 32 33 * Load the user dictionary and see if there is anything in it. -
trunk/gui/tools/webmail/plugins/todo/todo.php
r1638 r3189 93 93 94 94 $todo_deadline = todo_get_todo_dl($todos, $todo_index); 95 list($todo_dl_y, $todo_dl_m, $todo_dl_d) = split('-' ,$todo_deadline, 3); 95 /* @author ispCP PHP5.3 Compatibility Change */ 96 list($todo_dl_y, $todo_dl_m, $todo_dl_d) = explode('-' ,$todo_deadline, 3); 96 97 $todo_title = todo_get_todo_title($todos, $todo_index);; 97 98 $todo_desc = todo_get_todo_desc($todos, $todo_index);;
Note: See TracChangeset
for help on using the changeset viewer.
