Subversion Repositories Applications.papyrus

Rev

Rev 320 | Rev 1713 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 320 Rev 1173
Line 1... Line 1...
1
<?PHP
1
<?php
2
/* vim: set expandtab tabstop=4 shiftwidth=4: */
2
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
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.1 2005-03-30 08:50:33 jpm Exp $
-
 
20
//
-
 
Line -... Line 3...
-
 
3
 
-
 
4
/**
-
 
5
 * Storage driver for use against vpopmail setups
-
 
6
 *
-
 
7
 * PHP versions 4 and 5
-
 
8
 *
-
 
9
 * LICENSE: This source file is subject to version 3.01 of the PHP license
-
 
10
 * that is available through the world-wide-web at the following URI:
-
 
11
 * http://www.php.net/license/3_01.txt.  If you did not receive a copy of
-
 
12
 * the PHP License and are unable to obtain it through the web, please
-
 
13
 * send a note to license@php.net so we can mail you a copy immediately.
-
 
14
 *
-
 
15
 * @category   Authentication
-
 
16
 * @package    Auth
-
 
17
 * @author     Stanislav Grozev <tacho@orbitel.bg> 
-
 
18
 * @author     Adam Ashley <aashley@php.net>
-
 
19
 * @copyright  2001-2006 The PHP Group
-
 
20
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
-
 
21
 * @version    CVS: $Id: vpopmail.php,v 1.2 2006-12-14 15:04:28 jp_milcent Exp $
-
 
22
 * @link       http://pear.php.net/package/Auth
-
 
23
 * @since      File available since Release 1.2.0
-
 
24
 */
-
 
25
 
-
 
26
/**
-
 
27
 * Include Auth_Container base class
21
 
28
 */
-
 
29
require_once "Auth/Container.php";
-
 
30
/**
-
 
31
 * Include PEAR package for error handling
-
 
32
 */
Line 22... Line 33...
22
require_once "Auth/Container.php";
33
require_once "PEAR.php";
23
 
34
 
24
/**
35
/**
25
 * Storage driver for fetching login data from vpopmail
36
 * Storage driver for fetching login data from vpopmail
26
 *
37
 *
-
 
38
 * @category   Authentication
-
 
39
 * @package    Auth
-
 
40
 * @author     Stanislav Grozev <tacho@orbitel.bg>
-
 
41
 * @author     Adam Ashley <aashley@php.net>
27
 * @author   Stanislav Grozev <tacho@orbitel.bg>
42
 * @copyright  2001-2006 The PHP Group
-
 
43
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
-
 
44
 * @version    Release: 1.4.3  File: $Revision: 1.2 $
28
 * @package  Auth
45
 * @link       http://pear.php.net/package/Auth
29
 * @version  $Revision: 1.1 $
46
 * @since      Class available since Release 1.2.0
Line 30... Line 47...
30
 */
47
 */
Line 31... Line 48...
31
class Auth_Container_vpopmail extends Auth_Container {
48
class Auth_Container_vpopmail extends Auth_Container {
32
 
49
 
33
    // {{{ Constructor
50
    // {{{ Constructor
34
 
51
 
35
    /**
52
    /**
36
     * Constructor of the container class
53
     * Constructor of the container class
37
     *
54
     *
-
 
55
     * @return void
-
 
56
     */
-
 
57
    function Auth_Container_vpopmail()
38
     * @return integer Always returns 1.
58
    {
39
     */
59
        if (!extension_loaded('vpopmail')) {
Line 40... Line 60...
40
    function Auth_Container_vpopmail()
60
            return PEAR::raiseError('Cannot use VPOPMail authentication, '
41
    {
61
                    .'VPOPMail extension not loaded!', 41, PEAR_ERROR_DIE);
Line 60... Line 80...
60
 
80
 
61
        return $result;
81
        return $result;
Line 62... Line 82...
62
    }
82
    }
-
 
83
 
63
 
84
    // }}}
64
    // }}}
85