home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / admin / new_user.inc < prev    next >
Encoding:
Text File  |  2003-03-16  |  1.3 KB  |  40 lines

  1. <?php
  2. /********************************************************
  3.     conf/new_user.inc
  4.     
  5.     PURPOSE:
  6.         Do whatever needs to be done for a new user, that
  7.         isn't done by the default program.  This might include
  8.         something like sending them a welcoming email, or
  9.         upgrading external databases.
  10.         It can be anything as long as IT HAS NOT OUTPUT.
  11.         
  12.         This shouldn't require authentication or any sort of
  13.         validation that could prevent the user from logging in.
  14.         Any such processing must be done in conf/custom_auth.inc
  15.         
  16.     PRE-CONDITION:
  17.         $user_name - Login ID
  18.         $password - Password
  19.         $host - IMAP Server
  20.         $error - Don't run if this isn't empty...
  21.                     ...primary authentication failed.
  22.     POST-CONDITION:
  23.         Whatever that needs to be done...
  24.  
  25. ********************************************************/
  26.  
  27.     /***
  28.         Example:
  29.         The code below will send a short email to the new user.
  30.     ***/
  31.     
  32.     // $email_address = $user_name."@".$host;
  33.     // $subject = "Welcome to IlohaMail";
  34.     // $message = "Hi!\n\n";
  35.     // $message .= "Welcome to IlohaMail, the best webmail on the net.\n";
  36.     // $message .= "This program was brought to you by the folks at\n";
  37.     // $message .= "IlohaMail.org\n";
  38.     // mail($email_address, $subject, $message);
  39. ?>
  40.