Changeset 10 for branches/1.1dev/lib


Ignore:
Timestamp:
Sep 12, 2005 1:02:01 AM (19 years ago)
Author:
scdev
Message:

update module_maker to print module variables instead of writing files

Location:
branches/1.1dev
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/Utilities.inc.php

    r3 r10  
    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.