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 * @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
22 require_once 'PEAR/Command/Channels.php';
25 * PEAR commands for login/logout
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
38 class PEAR_Command_Auth extends PEAR_Command_Channels
40 var $commands = array(
42 'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
44 'function' => 'doLogin',
46 'doc' => '<channel name>
47 WARNING: This function is deprecated in favor of using channel-login
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.',
58 'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]',
60 'function' => 'doLogout',
63 WARNING: This function is deprecated in favor of using channel-logout
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.',
73 * PEAR_Command_Auth constructor.
77 function PEAR_Command_Auth(&$ui, &$config)
79 parent::PEAR_Command_Channels($ui, $config);