| 94 |
jpm |
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>
|
| 187 |
mathias |
11 |
* @copyright 1997-2009 The Authors
|
|
|
12 |
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
| 94 |
jpm |
13 |
* @link http://pear.php.net/package/PEAR
|
|
|
14 |
* @since File available since Release 0.1
|
| 187 |
mathias |
15 |
* @deprecated since 1.8.0alpha1
|
| 94 |
jpm |
16 |
*/
|
|
|
17 |
|
|
|
18 |
/**
|
|
|
19 |
* base class
|
|
|
20 |
*/
|
| 187 |
mathias |
21 |
require_once 'PEAR/Command/Channels.php';
|
| 94 |
jpm |
22 |
|
|
|
23 |
/**
|
|
|
24 |
* PEAR commands for login/logout
|
|
|
25 |
*
|
|
|
26 |
* @category pear
|
|
|
27 |
* @package PEAR
|
|
|
28 |
* @author Stig Bakken <ssb@php.net>
|
|
|
29 |
* @author Greg Beaver <cellog@php.net>
|
| 187 |
mathias |
30 |
* @copyright 1997-2009 The Authors
|
|
|
31 |
* @license http://opensource.org/licenses/bsd-license.php New BSD License
|
|
|
32 |
* @version Release: 1.10.1
|
| 94 |
jpm |
33 |
* @link http://pear.php.net/package/PEAR
|
|
|
34 |
* @since Class available since Release 0.1
|
| 187 |
mathias |
35 |
* @deprecated since 1.8.0alpha1
|
| 94 |
jpm |
36 |
*/
|
| 187 |
mathias |
37 |
class PEAR_Command_Auth extends PEAR_Command_Channels
|
| 94 |
jpm |
38 |
{
|
|
|
39 |
var $commands = array(
|
|
|
40 |
'login' => array(
|
| 187 |
mathias |
41 |
'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
|
| 94 |
jpm |
42 |
'shortcut' => 'li',
|
|
|
43 |
'function' => 'doLogin',
|
|
|
44 |
'options' => array(),
|
| 187 |
mathias |
45 |
'doc' => '<channel name>
|
|
|
46 |
WARNING: This function is deprecated in favor of using channel-login
|
|
|
47 |
|
|
|
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
|
| 94 |
jpm |
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.',
|
|
|
55 |
),
|
|
|
56 |
'logout' => array(
|
| 187 |
mathias |
57 |
'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]',
|
| 94 |
jpm |
58 |
'shortcut' => 'lo',
|
|
|
59 |
'function' => 'doLogout',
|
|
|
60 |
'options' => array(),
|
|
|
61 |
'doc' => '
|
| 187 |
mathias |
62 |
WARNING: This function is deprecated in favor of using channel-logout
|
|
|
63 |
|
| 94 |
jpm |
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.',
|
|
|
67 |
)
|
|
|
68 |
|
|
|
69 |
);
|
|
|
70 |
|
|
|
71 |
/**
|
|
|
72 |
* PEAR_Command_Auth constructor.
|
|
|
73 |
*
|
|
|
74 |
* @access public
|
|
|
75 |
*/
|
| 187 |
mathias |
76 |
function __construct(&$ui, &$config)
|
| 94 |
jpm |
77 |
{
|
| 187 |
mathias |
78 |
parent::__construct($ui, $config);
|
| 94 |
jpm |
79 |
}
|
|
|
80 |
}
|