- Timestamp:
- 02/25/10 12:13:51 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r2070 r2071 1226 1226 $pattern = "/(url\( *['\"]?|['\"@=])?{$url}/"; 1227 1227 1228 /* 1229 // PHP 5.3 1228 1230 $replace = function( $matches ) 1229 1231 { 1230 //echo "\n--------------------------------------\n";1231 //print_r( $matches );1232 //return '';1233 1232 if ( $matches[ 1 ] ) 1234 1233 return $matches[ 0 ]; 1235 1234 1236 //print_r( $matches );1237 1235 $url = ( $matches[ 2 ] ) ? $matches[ 2 ] : 'http'; 1238 1236 $url .= "{$matches[ 3 ]}://{$matches[ 4 ]}"; … … 1240 1238 }; 1241 1239 $body = preg_replace_callback( $pattern, $replace, $body ); 1240 */ 1241 1242 // PHP 5.2.x - Remover assim que possível 1243 $body = preg_replace_callback( $pattern, 1244 create_function( 1245 '$matches', 1246 'if ( $matches[ 1 ] ) return $matches[ 0 ];' 1247 . '$url = ( $matches[ 2 ] ) ? $matches[ 2 ] : "http";' 1248 . '$url .= "{$matches[ 3 ]}://{$matches[ 4 ]}";' 1249 . 'return "<a href=\"{$url}\" target=\"_blank\">{$matches[ 4 ]}</a>";' 1250 ), $body 1251 ); 1242 1252 1243 1253 // E-mail address in the text should create a new e-mail on ExpressoMail
Note: See TracChangeset
for help on using the changeset viewer.