PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/gespac/config/PEAR/PEAR/Command/Auth.php

http://gespac.googlecode.com/
PHP | 81 lines | 39 code | 4 blank | 38 comment | 0 complexity | 2d274a61760df9acf36f88d2cdcbc5bf MD5 | raw file
 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 276383 2009-02-24 23:39:37Z 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.1
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}