cvs: pear /Auth_HTTP Auth_HTTP.php
| From: | Martin Jansen | Date: | Sun, 04 Nov 2001 17:08:59 +0000 |
| Subject: | cvs: pear /Auth_HTTP Auth_HTTP.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1260@lists.php.net to get a copy of this message | ||
mj Sun Nov 4 12:08:59 2001 EDT
Modified files:
/pear/Auth_HTTP Auth_HTTP.php
Log:
* Some cleanup here
Index: pear/Auth_HTTP/Auth_HTTP.php
diff -u pear/Auth_HTTP/Auth_HTTP.php:1.3 pear/Auth_HTTP/Auth_HTTP.php:1.4
--- pear/Auth_HTTP/Auth_HTTP.php:1.3 Fri Aug 24 17:30:22 2001
+++ pear/Auth_HTTP/Auth_HTTP.php Sun Nov 4 12:08:59 2001
@@ -16,7 +16,7 @@
// | Authors: Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Auth_HTTP.php,v 1.3 2001/08/24 21:30:22 mj Exp $
+// $Id: Auth_HTTP.php,v 1.4 2001/11/04 17:08:59 mj Exp $
//
require_once "Auth/Auth.php";
@@ -37,7 +37,7 @@
* @author Martin Jansen <mj@php.net>
* @package Auth_HTTP
* @extends Auth
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
class Auth_HTTP extends Auth
{
@@ -64,7 +64,7 @@
// }}}
// {{{ assignData()
-
+
/**
* Assign values from $PHP_AUTH_USER and $PHP_AUTH_PW
* to internal variables
@@ -74,7 +74,7 @@
function assignData()
{
global $PHP_AUTH_USER,$PHP_AUTH_PW;
-
+
if ($PHP_AUTH_USER != "") {
$this->username = $PHP_AUTH_USER;
}
@@ -93,14 +93,14 @@
* @param string $username Username
* @param string $password Password
*/
- function drawLogin($username = "", $password = "")
- {
+ function drawLogin($username = "")
+ {
/**
* Send the header commands
*/
- Header("WWW-Authenticate: Basic
realm=\"".$this->realm."\"");
- Header("HTTP/1.0 401 Unauthorized");
-
+ header("WWW-Authenticate: Basic
realm=\"".$this->realm."\"");
+ header("HTTP/1.0 401 Unauthorized");
+
/**
* This code is only executed if the user hits the cancel
* button or if he enters wrong data 3 times.
@@ -118,7 +118,8 @@
* @access public
* @param string $name Name of the realm
*/
- function setRealm($name) {
+ function setRealm($name)
+ {
$this->realm = $name;
}
@@ -131,7 +132,8 @@
* @access public
* @param string $text Text to send
*/
- function setCancelText($text) {
+ function setCancelText($text)
+ {
$this->CancelText = $text;
}