Changeset 1901 for trunk/include/functions_mail.inc.php
- Timestamp:
- Mar 13, 2007, 12:10:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_mail.inc.php
r1828 r1901 195 195 196 196 return $result; 197 } 198 199 /* Return a standard block useful for admin mail */ 200 function get_block_mail_admin_info() 201 { 202 global $user; 203 204 return 205 "\n" 206 .'Connected user: '.$user['username']."\n" 207 .'IP: '.$_SERVER['REMOTE_ADDR']."\n" 208 .'Browser: '.$_SERVER['HTTP_USER_AGENT']."\n" 209 ."\n"; 197 210 } 198 211 … … 374 387 if (($args['content_format'] == 'text/plain') and ($args['email_format'] == 'text/html')) 375 388 { 376 $content.= '<p>'.nl2br(htmlentities($args['content'])).'</p>'; 389 $content.= '<p>'. 390 nl2br( 391 preg_replace("/(http:\/\/)([^\s,]*)/i", 392 "<a href='$1$2'>$1$2</a>", 393 htmlentities($args['content']))). 394 '</p>'; 377 395 } 378 396 else
Note: See TracChangeset
for help on using the changeset viewer.