source: branches/version-2_13-dev/data/module/PEAR/Command/Auth.php @ 23125

Revision 23125, 2.6 KB checked in by kimoto, 11 years ago (diff)

#2275 PEAR更新
不要なrequire_onceの削除
レガシーなPEARモジュールは使わない
SearchReplace?.phpのパスが間違っているので修正

Line 
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 */
22require_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 */
38class 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>
47WARNING: This function is deprecated in favor of using channel-login
48
49Log in to a remote channel server.  If <channel name> is not supplied,
50the default channel is used. To use remote functions in the installer
51that require any kind of privileges, you need to log in first.  The
52username and password you enter here will be stored in your per-user
53PEAR configuration (~/.pearrc on Unix-like systems).  After logging
54in, your username and password will be sent along in subsequent
55operations 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' => '
63WARNING: This function is deprecated in favor of using channel-logout
64
65Logs out from the remote server.  This command does not actually
66connect to the remote server, it only deletes the stored username and
67password 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}
Note: See TracBrowser for help on using the repository browser.