1 | <?php |
---|
2 | /** |
---|
3 | * PEAR_Command_Auth (login, logout commands) |
---|
4 | * |
---|
5 | * PHP versions 4 and 5 |
---|
6 | * |
---|
7 | * @category pear |
---|
8 | * @package PEAR |
---|
9 | * @author Stig Bakken <ssb@php.net> |
---|
10 | * @author Greg Beaver <cellog@php.net> |
---|
11 | * @copyright 1997-2009 The Authors |
---|
12 | * @license http://opensource.org/licenses/bsd-license.php New BSD License |
---|
13 | * @version CVS: $Id: Auth.php 313023 2011-07-06 19:17:11Z dufuz $ |
---|
14 | * @link http://pear.php.net/package/PEAR |
---|
15 | * @since File available since Release 0.1 |
---|
16 | * @deprecated since 1.8.0alpha1 |
---|
17 | */ |
---|
18 | |
---|
19 | /** |
---|
20 | * base class |
---|
21 | */ |
---|
22 | require_once 'PEAR/Command/Channels.php'; |
---|
23 | |
---|
24 | /** |
---|
25 | * PEAR commands for login/logout |
---|
26 | * |
---|
27 | * @category pear |
---|
28 | * @package PEAR |
---|
29 | * @author Stig Bakken <ssb@php.net> |
---|
30 | * @author Greg Beaver <cellog@php.net> |
---|
31 | * @copyright 1997-2009 The Authors |
---|
32 | * @license http://opensource.org/licenses/bsd-license.php New BSD License |
---|
33 | * @version Release: 1.9.4 |
---|
34 | * @link http://pear.php.net/package/PEAR |
---|
35 | * @since Class available since Release 0.1 |
---|
36 | * @deprecated since 1.8.0alpha1 |
---|
37 | */ |
---|
38 | class PEAR_Command_Auth extends PEAR_Command_Channels |
---|
39 | { |
---|
40 | var $commands = array( |
---|
41 | 'login' => array( |
---|
42 | 'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]', |
---|
43 | 'shortcut' => 'li', |
---|
44 | 'function' => 'doLogin', |
---|
45 | 'options' => array(), |
---|
46 | 'doc' => '<channel name> |
---|
47 | WARNING: This function is deprecated in favor of using channel-login |
---|
48 | |
---|
49 | Log in to a remote channel server. If <channel name> is not supplied, |
---|
50 | the default channel is used. To use remote functions in the installer |
---|
51 | that require any kind of privileges, you need to log in first. The |
---|
52 | username and password you enter here will be stored in your per-user |
---|
53 | PEAR configuration (~/.pearrc on Unix-like systems). After logging |
---|
54 | in, your username and password will be sent along in subsequent |
---|
55 | operations on the remote server.', |
---|
56 | ), |
---|
57 | 'logout' => array( |
---|
58 | 'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]', |
---|
59 | 'shortcut' => 'lo', |
---|
60 | 'function' => 'doLogout', |
---|
61 | 'options' => array(), |
---|
62 | 'doc' => ' |
---|
63 | WARNING: This function is deprecated in favor of using channel-logout |
---|
64 | |
---|
65 | Logs out from the remote server. This command does not actually |
---|
66 | connect to the remote server, it only deletes the stored username and |
---|
67 | password from your user configuration.', |
---|
68 | ) |
---|
69 | |
---|
70 | ); |
---|
71 | |
---|
72 | /** |
---|
73 | * PEAR_Command_Auth constructor. |
---|
74 | * |
---|
75 | * @access public |
---|
76 | */ |
---|
77 | function PEAR_Command_Auth(&$ui, &$config) |
---|
78 | { |
---|
79 | parent::PEAR_Command_Channels($ui, $config); |
---|
80 | } |
---|
81 | } |
---|