Update of /cvsroot/phpwiki/phpwiki/lib/WikiUser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv688/WikiUser
Modified Files:
HttpAuth.php
Log Message:
linebreaks
Index: HttpAuth.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiUser/HttpAuth.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -2 -b -p -d -r1.4 -r1.5
--- HttpAuth.php 26 Dec 2004 17:11:16 -0000 1.4
+++ HttpAuth.php 28 Feb 2005 20:35:45 -0000 1.5
@@ -27,5 +27,6 @@ extends _PassUser
$this->_authmethod = 'HttpAuth';
- // Is this double check really needed? It is not expensive so we keep
it for now.
+ // Is this double check really needed?
+ // It is not expensive so we keep it for now.
if ($this->userExists())
return $this;
@@ -52,5 +53,6 @@ extends _PassUser
if (!isset($_SERVER))
$_SERVER =& $GLOBALS['HTTP_SERVER_VARS'];
- // maybe we should random the realm to really force a logout. but the
next login will fail.
+ // Maybe we should random the realm to really force a logout.
+ // But the next login will fail.
// better_srand(); $realm = microtime().rand();
header('WWW-Authenticate: Basic realm="'.WIKI_NAME.'"');
@@ -77,5 +79,6 @@ extends _PassUser
//IIS:
if (!empty($_SERVER['HTTP_AUTHORIZATION'])) {
- list($userid, $passwd) = explode(':',
base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
+ list($userid, $passwd) = explode(':',
+ base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
return $userid;
}
@@ -86,5 +89,7 @@ extends _PassUser
function userExists() {
$username = $this->_http_username();
- if (empty($username) or strtolower($username) !=
strtolower($this->_userid)) {
+ if (empty($username)
+ or strtolower($username) != strtolower($this->_userid))
+ {
$this->logout();
$user = $GLOBALS['ForbiddenUser'];
@@ -113,14 +118,10 @@ extends _PassUser
return false;
}
-/*
- // hmm... either the server dialog or our own.
- function _disabled_PrintLoginForm (&$request, $args, $fail_message=false,
$seperate_page=true) {
- $this->_logout();
- return parent::PrintLoginForm ($request, $args, $fail_message,
$seperate_page);
- }
-*/
}
// $Log$
+// Revision 1.5 2005/02/28 20:35:45 rurban
+// linebreaks
+//
// Revision 1.4 2004/12/26 17:11:16 rurban
// just copyright
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Thread at a glance:
Previous Message by Date:
click to view message preview
CVS: phpwiki/lib WikiUserNew.php,1.125,1.126
Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31662
Modified Files:
WikiUserNew.php
Log Message:
some stupid code for _AdminUser (probably not needed)
Index: WikiUserNew.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiUserNew.php,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -2 -b -p -d -r1.125 -r1.126
--- WikiUserNew.php 8 Feb 2005 13:25:50 -0000 1.125
+++ WikiUserNew.php 28 Feb 2005 20:30:46 -0000 1.126
@@ -167,9 +167,9 @@ function _determineAdminUserOrOtherUser(
return $GLOBALS['ForbiddenUser'];
- //FIXME: check admin membership later at checkPass. now we cannot raise
the level.
+ //FIXME: check admin membership later at checkPass. Now we cannot raise
the level.
//$group = &WikiGroup::getGroup($GLOBALS['request']);
if ($UserName == ADMIN_USER)
return new _AdminUser($UserName);
- /* elseif ($group->isMember(GROUP_ADMIN)) {
+ /* elseif ($group->isMember(GROUP_ADMIN)) { // unneeded code
return _determineBogoUserOrPassUser($UserName);
}
@@ -1321,5 +1321,6 @@ extends _PassUser
$stored_password = ADMIN_PASSWD;
else {
- return $this->_tryNextPass($submitted_password);
+ // Should not happen! Only ADMIN_USER should use this class.
+ // return $this->_tryNextPass($submitted_password); // ???
// TODO: safety check if really member of the ADMIN group?
$stored_password = $this->_pref->get('passwd');
@@ -1337,8 +1338,13 @@ extends _PassUser
//return $this->_level;
}
-
}
+
function storePass($submitted_password) {
+ if ($this->_userid == ADMIN_USER)
return false;
+ else {
+ // should not happen! only ADMIN_USER should use this class.
+ return parent::storePass($submitted_password);
+ }
}
}
@@ -2033,4 +2039,7 @@ extends UserPreferences
// $Log$
+// Revision 1.126 2005/02/28 20:30:46 rurban
+// some stupid code for _AdminUser (probably not needed)
+//
// Revision 1.125 2005/02/08 13:25:50 rurban
// encrypt password. fix strict logic.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Next Message by Date:
click to view message preview
CVS: phpwiki/lib/WikiDB/adodb/drivers adodb-mssql.inc.php,1.2,1.3
Update of /cvsroot/phpwiki/phpwiki/lib/WikiDB/adodb/drivers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15404/WikiDB/adodb/drivers
Modified Files:
adodb-mssql.inc.php
Log Message:
ignore forbidden ini_set warnings. Bug #1117254 by Xavier Roche
Index: adodb-mssql.inc.php
===================================================================
RCS file:
/cvsroot/phpwiki/phpwiki/lib/WikiDB/adodb/drivers/adodb-mssql.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -2 -b -p -d -r1.2 -r1.3
--- adodb-mssql.inc.php 26 Apr 2004 20:44:35 -0000 1.2
+++ adodb-mssql.inc.php 28 Feb 2005 21:24:33 -0000 1.3
@@ -37,5 +37,5 @@ Set tabs to 4 for best viewing.
if (ADODB_PHPVER >= 0x4300) {
// docs say 4.2.0, but testing shows only since 4.3.0 does it work!
- ini_set('mssql.datetimeconvert',0);
+ @ini_set('mssql.datetimeconvert',0);
} else {
global $ADODB_mssql_mths; // array, months must be upper-case
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Previous Message by Thread:
click to view message preview
CVS: phpwiki/lib WikiUserNew.php,1.125,1.126
Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31662
Modified Files:
WikiUserNew.php
Log Message:
some stupid code for _AdminUser (probably not needed)
Index: WikiUserNew.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiUserNew.php,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -2 -b -p -d -r1.125 -r1.126
--- WikiUserNew.php 8 Feb 2005 13:25:50 -0000 1.125
+++ WikiUserNew.php 28 Feb 2005 20:30:46 -0000 1.126
@@ -167,9 +167,9 @@ function _determineAdminUserOrOtherUser(
return $GLOBALS['ForbiddenUser'];
- //FIXME: check admin membership later at checkPass. now we cannot raise
the level.
+ //FIXME: check admin membership later at checkPass. Now we cannot raise
the level.
//$group = &WikiGroup::getGroup($GLOBALS['request']);
if ($UserName == ADMIN_USER)
return new _AdminUser($UserName);
- /* elseif ($group->isMember(GROUP_ADMIN)) {
+ /* elseif ($group->isMember(GROUP_ADMIN)) { // unneeded code
return _determineBogoUserOrPassUser($UserName);
}
@@ -1321,5 +1321,6 @@ extends _PassUser
$stored_password = ADMIN_PASSWD;
else {
- return $this->_tryNextPass($submitted_password);
+ // Should not happen! Only ADMIN_USER should use this class.
+ // return $this->_tryNextPass($submitted_password); // ???
// TODO: safety check if really member of the ADMIN group?
$stored_password = $this->_pref->get('passwd');
@@ -1337,8 +1338,13 @@ extends _PassUser
//return $this->_level;
}
-
}
+
function storePass($submitted_password) {
+ if ($this->_userid == ADMIN_USER)
return false;
+ else {
+ // should not happen! only ADMIN_USER should use this class.
+ return parent::storePass($submitted_password);
+ }
}
}
@@ -2033,4 +2039,7 @@ extends UserPreferences
// $Log$
+// Revision 1.126 2005/02/28 20:30:46 rurban
+// some stupid code for _AdminUser (probably not needed)
+//
// Revision 1.125 2005/02/08 13:25:50 rurban
// encrypt password. fix strict logic.
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Next Message by Thread:
click to view message preview
CVS: phpwiki/lib/WikiDB/adodb/drivers adodb-mssql.inc.php,1.2,1.3
Update of /cvsroot/phpwiki/phpwiki/lib/WikiDB/adodb/drivers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15404/WikiDB/adodb/drivers
Modified Files:
adodb-mssql.inc.php
Log Message:
ignore forbidden ini_set warnings. Bug #1117254 by Xavier Roche
Index: adodb-mssql.inc.php
===================================================================
RCS file:
/cvsroot/phpwiki/phpwiki/lib/WikiDB/adodb/drivers/adodb-mssql.inc.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -2 -b -p -d -r1.2 -r1.3
--- adodb-mssql.inc.php 26 Apr 2004 20:44:35 -0000 1.2
+++ adodb-mssql.inc.php 28 Feb 2005 21:24:33 -0000 1.3
@@ -37,5 +37,5 @@ Set tabs to 4 for best viewing.
if (ADODB_PHPVER >= 0x4300) {
// docs say 4.2.0, but testing shows only since 4.3.0 does it work!
- ini_set('mssql.datetimeconvert',0);
+ @ini_set('mssql.datetimeconvert',0);
} else {
global $ADODB_mssql_mths; // array, months must be upper-case
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click