nextcloud/3rdparty/PEAR/Command/Auth.php

81 lines
2.6 KiB
PHP
Raw Normal View History

2010-03-10 15:03:40 +03:00
<?php
2012-05-11 19:57:55 +04:00
/**
* PEAR_Command_Auth (login, logout commands)
*
* PHP versions 4 and 5
*
* @category pear
* @package PEAR
* @author Stig Bakken <ssb@php.net>
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php New BSD License
* @version CVS: $Id: Auth.php 313023 2011-07-06 19:17:11Z dufuz $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
* @deprecated since 1.8.0alpha1
*/
2010-03-10 15:03:40 +03:00
2012-05-11 19:57:55 +04:00
/**
* base class
*/
require_once 'PEAR/Command/Channels.php';
2010-03-10 15:03:40 +03:00
/**
2012-05-11 19:57:55 +04:00
* PEAR commands for login/logout
2010-03-10 15:03:40 +03:00
*
2012-05-11 19:57:55 +04:00
* @category pear
* @package PEAR
* @author Stig Bakken <ssb@php.net>
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php New BSD License
* @version Release: 1.9.4
* @link http://pear.php.net/package/PEAR
* @since Class available since Release 0.1
* @deprecated since 1.8.0alpha1
2010-03-10 15:03:40 +03:00
*/
2012-05-11 19:57:55 +04:00
class PEAR_Command_Auth extends PEAR_Command_Channels
2010-03-10 15:03:40 +03:00
{
var $commands = array(
'login' => array(
2012-05-11 19:57:55 +04:00
'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
2010-03-10 15:03:40 +03:00
'shortcut' => 'li',
'function' => 'doLogin',
'options' => array(),
2012-05-11 19:57:55 +04:00
'doc' => '<channel name>
WARNING: This function is deprecated in favor of using channel-login
Log in to a remote channel server. If <channel name> is not supplied,
the default channel is used. To use remote functions in the installer
2010-03-10 15:03:40 +03:00
that require any kind of privileges, you need to log in first. The
username and password you enter here will be stored in your per-user
PEAR configuration (~/.pearrc on Unix-like systems). After logging
in, your username and password will be sent along in subsequent
operations on the remote server.',
),
'logout' => array(
2012-05-11 19:57:55 +04:00
'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]',
2010-03-10 15:03:40 +03:00
'shortcut' => 'lo',
'function' => 'doLogout',
'options' => array(),
'doc' => '
2012-05-11 19:57:55 +04:00
WARNING: This function is deprecated in favor of using channel-logout
2010-03-10 15:03:40 +03:00
Logs out from the remote server. This command does not actually
connect to the remote server, it only deletes the stored username and
password from your user configuration.',
)
);
/**
* PEAR_Command_Auth constructor.
*
* @access public
*/
function PEAR_Command_Auth(&$ui, &$config)
{
2012-05-11 19:57:55 +04:00
parent::PEAR_Command_Channels($ui, $config);
2010-03-10 15:03:40 +03:00
}
2012-05-11 19:57:55 +04:00
}