logo       


CVS: phpwiki/lib WikiUserNew.php,1.37,1.38: msg#00154

Subject: CVS: phpwiki/lib WikiUserNew.php,1.37,1.38
Update of /cvsroot/phpwiki/phpwiki/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19257/lib

Modified Files:
        WikiUserNew.php 
Log Message:
helper to patch to and from php5 (workaround for stricter parser, no macros in 
php)


Index: WikiUserNew.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/WikiUserNew.php,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -2 -b -p -d -r1.37 -r1.38
--- WikiUserNew.php     25 Mar 2004 17:00:31 -0000      1.37
+++ WikiUserNew.php     25 Mar 2004 17:37:36 -0000      1.38
@@ -812,5 +812,5 @@ extends _AnonUser
                             $user = new 
_HttpAuthPassUser($UserName,$this->_prefs);
                             //todo: with php5 comment the following line.
-                            $this = $user;
+                            /*PHP5 patch*/$this = $user;
                             return UpgradeUser($user,$this);
                         }
@@ -822,5 +822,5 @@ extends _AnonUser
                             $user = new _DbPassUser($UserName,$this->_prefs);
                             //todo: with php5 comment the following line.
-                            $this = $user;
+                            /*PHP5 patch*/$this = $user;
                             return UpgradeUser($user,$this);
                         }
@@ -831,5 +831,5 @@ extends _AnonUser
                             $user = new _LDAPPassUser($UserName,$this->_prefs);
                             //todo: with php5 comment the following line.
-                            $this = $user;
+                            /*PHP5 patch*/$this = $user;
                             return UpgradeUser($user,$this);
                         }
@@ -840,5 +840,5 @@ extends _AnonUser
                             $user = new _IMAPPassUser($UserName,$this->_prefs);
                             //todo: with php5 comment the following line.
-                            $this = $user;
+                            /*PHP5 patch*/$this = $user;
                             return UpgradeUser($user,$this);
                         }
@@ -849,5 +849,5 @@ extends _AnonUser
                             $user = new _FilePassUser($UserName,$this->_prefs);
                             //todo: with php5 comment the following line.
-                            $this = $user;
+                            /*PHP5 patch*/$this = $user;
                             return UpgradeUser($user,$this);
                         }
@@ -858,5 +858,5 @@ extends _AnonUser
                             $user = new 
_PersonalPagePassUser($UserName,$this->_prefs);
                             //todo: with php5 comment the following line.
-                            $this = $user;
+                            /*PHP5 patch*/$this = $user;
                             return UpgradeUser($user,$this);
                         }
@@ -981,5 +981,5 @@ extends _AnonUser
         while ($user = new $class($this->_userid,$this->_prefs)) {
             //todo: with php5 comment the following line:
-            $this = $user;
+            /*PHP5 patch*/$this = $user;
             UpgradeUser($this,$user);
             if ($user->userExists()) {
@@ -988,5 +988,4 @@ extends _AnonUser
             // prevent endless loop. does this work on all PHP's?
             // it just has to set the classname, what it correctly does.
-            // $this = $user;
             $class = $user->nextClass();
             if ($class == "_ForbiddenPassUser")
@@ -1107,5 +1106,5 @@ extends _AnonUser
             while ($user = new $class($this->_userid,$this->_prefs)) {
                 //todo: with php5 comment the following line:
-                $this = $user;
+                /*PHP5 patch*/$this = $user;
                 $user = UpgradeUser($this, $user);
                 if ($user->userExists()) {
@@ -1145,8 +1144,6 @@ extends _PassUser
             if ($user->checkPass($submitted_password)) {
                 //todo: with php5 comment the following line:
-                $this = $user;
+                /*PHP5 patch*/$this = $user;
                 $user = UpgradeUser($this, $user);
-                //if (!check_php_version(5))
-                //    $this = $user;
                 $this->_level = WIKIAUTH_USER;
                 return $this->_level;
@@ -1326,5 +1323,5 @@ extends _PassUser
                 $user = new _AdoDbPassUser($UserName,$this->_prefs);
                 //todo: with php5 comment the following line:
-                $this = $user;
+                /*PHP5 patch*/$this = $user;
                 return UpgradeUser($user, $this);
             }
@@ -1336,5 +1333,5 @@ extends _PassUser
                 $user = new _PearDbPassUser($UserName,$this->_prefs);
                 //todo: with php5 comment the following line:
-                $this = $user;
+                /*PHP5 patch*/$this = $user;
                 return UpgradeUser($user, $this);
             }
@@ -2593,4 +2590,7 @@ extends UserPreferences
 
 // $Log$
+// Revision 1.38  2004/03/25 17:37:36  rurban
+// helper to patch to and from php5 (workaround for stricter parser, no macros 
in php)
+//
 // Revision 1.37  2004/03/25 17:00:31  rurban
 // more code to convert old-style pref array to new hash



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe