Ignore:
Timestamp:
Dec 10, 2005 2:36:04 AM (19 years ago)
Author:
scdev
Message:

reverted some changes to make more compatible with old sites, using adm_ template nmes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/1.0.0/lib/Utilities.inc.php

    r29 r30  
    206206
    207207/**
     208 * Encodes an email into a user (at) domain (dot) com format.
     209 *
     210 * @access  public
     211 * @param   string   $email   An email to encode.
     212 * @param   string   $at      Replaces the @.
     213 * @param   string   $dot     Replaces the ..
     214 * @return  string   Encoded email.
     215 */
     216function encodeEmail($email, $at='-at-', $dot='-dot-')
     217{
     218    $search = array('/@/', '/\./');
     219    $replace = array($at, $dot);
     220    return preg_replace($search, $replace, $email);
     221}
     222
     223/**
    208224 * Return a human readable filesize.
    209225 *
Note: See TracChangeset for help on using the changeset viewer.