cvs: pearweb /include pear-auth.php
| From: | Martin Jansen | Date: | Sun, 14 Sep 2003 09:56:01 +0000 |
| Subject: | cvs: pearweb /include pear-auth.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-12717@lists.php.net to get a copy of this message | ||
mj Sun Sep 14 05:56:01 2003 EDT
Modified files:
/pearweb/include pear-auth.php
Log:
* Removing unused argument
Index: pearweb/include/pear-auth.php
diff -u pearweb/include/pear-auth.php:1.28 pearweb/include/pear-auth.php:1.29
--- pearweb/include/pear-auth.php:1.28 Sun Aug 10 14:51:00 2003
+++ pearweb/include/pear-auth.php Sun Sep 14 05:56:01 2003
@@ -15,10 +15,10 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: pear-auth.php,v 1.28 2003/08/10 18:51:00 mj Exp $
+ $Id: pear-auth.php,v 1.29 2003/09/14 09:56:01 mj Exp $
*/
-function auth_reject($realm = null, $message = null, $refresh = false)
+function auth_reject($realm = null, $message = null)
{
global $format;
if ($realm === null) {
@@ -125,14 +125,14 @@
return false;
}
-function auth_require($admin = false, $refresh = false)
+function auth_require($admin = false)
{
global $auth_user;
$user = @$_COOKIE['PEAR_USER'];
$passwd = @$_COOKIE['PEAR_PW'];
if (!auth_verify($user, $passwd)) {
- auth_reject(null, null, $refresh); // exits
+ auth_reject(); // exits
}
if ($admin && empty($auth_user->admin)) {
response_header("Insufficient Privileges");