3 * PEAR_Command_Auth (login, logout commands)
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 * @link http://pear.php.net/package/PEAR
14 * @since File available since Release 0.1
15 * @deprecated since 1.8.0alpha1
21 require_once 'PEAR/Command/Channels.php';
24 * PEAR commands for login/logout
28 * @author Stig Bakken <ssb@php.net>
29 * @author Greg Beaver <cellog@php.net>
30 * @copyright 1997-2009 The Authors
31 * @license http://opensource.org/licenses/bsd-license.php New BSD License
32 * @version Release: 1.10.3
33 * @link http://pear.php.net/package/PEAR
34 * @since Class available since Release 0.1
35 * @deprecated since 1.8.0alpha1
37 class PEAR_Command_Auth extends PEAR_Command_Channels
39 var $commands = array(
41 'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
43 'function' => 'doLogin',
45 'doc' => '<channel name>
46 WARNING: This function is deprecated in favor of using channel-login
48 Log in to a remote channel server. If <channel name> is not supplied,
49 the default channel is used. To use remote functions in the installer
50 that require any kind of privileges, you need to log in first. The
51 username and password you enter here will be stored in your per-user
52 PEAR configuration (~/.pearrc on Unix-like systems). After logging
53 in, your username and password will be sent along in subsequent
54 operations on the remote server.',
57 'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]',
59 'function' => 'doLogout',
62 WARNING: This function is deprecated in favor of using channel-logout
64 Logs out from the remote server. This command does not actually
65 connect to the remote server, it only deletes the stored username and
66 password from your user configuration.',
72 * PEAR_Command_Auth constructor.
76 function __construct(&$ui, &$config)
78 parent::__construct($ui, $config);