Auth.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. * base class
  20. */
  21. require_once 'PEAR/Command/Channels.php';
  22. /**
  23. * PEAR commands for login/logout
  24. *
  25. * @category pear
  26. * @package PEAR
  27. * @author Stig Bakken <ssb@php.net>
  28. * @author Greg Beaver <cellog@php.net>
  29. * @copyright 1997-2009 The Authors
  30. * @license http://opensource.org/licenses/bsd-license.php New BSD License
  31. * @version Release: 1.9.4
  32. * @link http://pear.php.net/package/PEAR
  33. * @since Class available since Release 0.1
  34. * @deprecated since 1.8.0alpha1
  35. */
  36. class PEAR_Command_Auth extends PEAR_Command_Channels
  37. {
  38. var $commands = array(
  39. 'login' => array(
  40. 'summary' => 'Connects and authenticates to remote server [Deprecated in favor of channel-login]',
  41. 'shortcut' => 'li',
  42. 'function' => 'doLogin',
  43. 'options' => array(),
  44. 'doc' => '<channel name>
  45. WARNING: This function is deprecated in favor of using channel-login
  46. Log in to a remote channel server. If <channel name> is not supplied,
  47. the default channel is used. To use remote functions in the installer
  48. that require any kind of privileges, you need to log in first. The
  49. username and password you enter here will be stored in your per-user
  50. PEAR configuration (~/.pearrc on Unix-like systems). After logging
  51. in, your username and password will be sent along in subsequent
  52. operations on the remote server.',
  53. ),
  54. 'logout' => array(
  55. 'summary' => 'Logs out from the remote server [Deprecated in favor of channel-logout]',
  56. 'shortcut' => 'lo',
  57. 'function' => 'doLogout',
  58. 'options' => array(),
  59. 'doc' => '
  60. WARNING: This function is deprecated in favor of using channel-logout
  61. Logs out from the remote server. This command does not actually
  62. connect to the remote server, it only deletes the stored username and
  63. password from your user configuration.',
  64. )
  65. );
  66. /**
  67. * PEAR_Command_Auth constructor.
  68. *
  69. * @access public
  70. */
  71. function PEAR_Command_Auth(&$ui, &$config)
  72. {
  73. parent::PEAR_Command_Channels($ui, $config);
  74. }
  75. }