[pLog-svn] r5604 - in plog/branches/lifetype-1.2/class/dao: . userdata

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jul 2 07:18:00 EDT 2007


Author: mark
Date: 2007-07-02 07:18:00 -0400 (Mon, 02 Jul 2007)
New Revision: 5604

Modified:
   plog/branches/lifetype-1.2/class/dao/bayesianfilterinfos.class.php
   plog/branches/lifetype-1.2/class/dao/permissions.class.php
   plog/branches/lifetype-1.2/class/dao/userdata/simplepostnukeuserdataprovider.class.php
   plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php
Log:
Some bugs fix.

Modified: plog/branches/lifetype-1.2/class/dao/bayesianfilterinfos.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/bayesianfilterinfos.class.php	2007-07-02 10:05:19 UTC (rev 5603)
+++ plog/branches/lifetype-1.2/class/dao/bayesianfilterinfos.class.php	2007-07-02 11:18:00 UTC (rev 5604)
@@ -170,7 +170,7 @@
 				$totalNonSpam = 0;
 			}
 
-			return( $this->insert( $blogId, $totalSpam, $totalNonspam ));
+			return( $this->insert( $blogId, $totalSpam, $totalNonSpam ));
         }
 
         /**

Modified: plog/branches/lifetype-1.2/class/dao/permissions.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/permissions.class.php	2007-07-02 10:05:19 UTC (rev 5603)
+++ plog/branches/lifetype-1.2/class/dao/permissions.class.php	2007-07-02 11:18:00 UTC (rev 5604)
@@ -42,7 +42,7 @@
 		function updatePermission( &$perm )
 		{
 			if( ($result = $this->update( $perm ))) {
-				$this->_cache->removeData( $id, CACHE_PERMISSIONS );
+				$this->_cache->removeData( $perm->getId(), CACHE_PERMISSIONS );
 				$this->_cache->removeData( "_all_", CACHE_PERMISSIONS_ALL );				
 			}
 			

Modified: plog/branches/lifetype-1.2/class/dao/userdata/simplepostnukeuserdataprovider.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/userdata/simplepostnukeuserdataprovider.class.php	2007-07-02 10:05:19 UTC (rev 5603)
+++ plog/branches/lifetype-1.2/class/dao/userdata/simplepostnukeuserdataprovider.class.php	2007-07-02 11:18:00 UTC (rev 5604)
@@ -91,7 +91,7 @@
                     $this->_PostNukeAddBlog($username, $newUserId);
 
 					// assign the login_perm permission
-					$this->grantLoginPermission( $userInfo );
+					$this->grantLoginPermission( $user );
 
                     return true;
                 }

Modified: plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php	2007-07-02 10:05:19 UTC (rev 5603)
+++ plog/branches/lifetype-1.2/class/dao/userdata/wbbuserdataprovider.class.php	2007-07-02 11:18:00 UTC (rev 5604)
@@ -303,7 +303,7 @@
 	        $id = $this->getLastWBBUserId();
 	        	
 	        $query = "INSERT INTO ".$this->_wbbprefix."users (userid,username,password,sha1_password,email,groupcombinationid,rankid,regdate,lastvisit,lastactivity,usertext,signature,icq,aim,yim,msn,homepage,birthday,gender,showemail,admincanemail,usercanemail,invisible,usecookies,styleid,activation,daysprune,timezoneoffset,startweek,dateformat,timeformat,emailnotify,notificationperpm,receivepm,emailonpm,pmpopup,umaxposts,showsignatures,showavatars,showimages,threadview,langid,rankgroupid,useronlinegroupid,allowsigsmilies,allowsightml,allowsigbbcode,allowsigimages,usewysiwyg,reg_ipaddress) ".
-			"VALUES ($id,'".Db::qstr($user->getUserName())."','".md5($user->getPassword())."', '".sha1($user->getPassword())."', '".Db::qstr($user->getEmail())."','4','4','".time()."','".time()."','".time()."','','','','','','','','0000-00-00','0','1','1','1','0','1','0','1','0','1','0','','','0','1','1','0','1','0','1','1','1','0','0','4','4','1','0','1','1','0', '".addslashes($REMOTE_ADDR)."');";                      
+			"VALUES ($id,'".Db::qstr($user->getUserName())."','".md5($user->getPassword())."', '".sha1($user->getPassword())."', '".Db::qstr($user->getEmail())."','4','4','".time()."','".time()."','".time()."','','','','','','','','0000-00-00','0','1','1','1','0','1','0','1','0','1','0','','','0','1','1','0','1','0','1','1','1','0','0','4','4','1','0','1','1','0', '".addslashes($_SERVER['REMOTE_ADDR'])."');";                      
 
             $result = $this->_dbc->Execute( $query );            
 



More information about the pLog-svn mailing list