Auth
[ class tree: Auth ] [ index: Auth ] [ all elements ]

Source for file vpopmail.php

Documentation is available at vpopmail.php

  1. <?PHP
  2. /* vim: set expandtab tabstop=4 shiftwidth=4: */
  3. // +----------------------------------------------------------------------+
  4. // | PHP Version 4                                                        |
  5. // +----------------------------------------------------------------------+
  6. // | Copyright (c) 1997-2003 The PHP Group                                |
  7. // +----------------------------------------------------------------------+
  8. // | This source file is subject to version 2.02 of the PHP license,      |
  9. // | that is bundled with this package in the file LICENSE, and is        |
  10. // | available at through the world-wide-web at                           |
  11. // | http://www.php.net/license/2_02.txt.                                 |
  12. // | If you did not receive a copy of the PHP license and are unable to   |
  13. // | obtain it through the world-wide-web, please send a note to          |
  14. // | license@php.net so we can mail you a copy immediately.               |
  15. // +----------------------------------------------------------------------+
  16. // | Author: Stanislav Grozev <tacho@orbitel.bg>                          |
  17. // +----------------------------------------------------------------------+
  18. //
  19. // $Id: vpopmail.php,v 1.3 2003/09/08 11:24:05 yavo Exp $
  20. //
  21.  
  22. require_once "Auth/Container.php";
  23.  
  24. /**
  25.  * Storage driver for fetching login data from vpopmail
  26.  *
  27.  * @author   Stanislav Grozev <tacho@orbitel.bg>
  28.  * @package  Auth
  29.  * @version  $Revision: 1.3 $
  30.  */
  31.  
  32.     // {{{ Constructor
  33.  
  34.     /**
  35.      * Constructor of the container class
  36.      *
  37.      * @return integer Always returns 1.
  38.      */
  39.     function Auth_Container_vpopmail()
  40.     {
  41.         return 1;
  42.     }
  43.  
  44.     // }}}
  45.     // {{{ fetchData()
  46.  
  47.     /**
  48.      * Get user information from vpopmail
  49.      *
  50.      * @param   string Username - has to be valid email address
  51.      * @param   string Password
  52.      * @return  boolean 
  53.      */
  54.     function fetchData($username$password)
  55.     {
  56.         $userdata = array();
  57.         $userdata preg_split("/@/"$username2);
  58.         $result @vpopmail_auth_user($userdata[0]$userdata[1]$password);
  59.  
  60.         return $result;
  61.     }
  62.  
  63.     // }}}
  64. }
  65. ?>

Documentation generated on Mon, 11 Mar 2019 13:52:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.