Ignore:
Timestamp:
Mar 13, 2007, 12:10:35 AM (17 years ago)
Author:
rub
Message:

Add notification when a picture is loaded.
Change little translations.
Improve mail sent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_mail.inc.php

    r1828 r1901  
    195195
    196196  return $result;
     197}
     198
     199/* Return a standard block useful for admin mail */
     200function 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";
    197210}
    198211
     
    374387  if (($args['content_format'] == 'text/plain') and ($args['email_format'] == 'text/html'))
    375388  {
    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>';
    377395  }
    378396  else
Note: See TracChangeset for help on using the changeset viewer.