[pLog-svn] r6521 - plog/branches/lifetype-1.2/class/action/admin

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jun 9 02:15:45 EDT 2008


Author: mark
Date: 2008-06-09 02:15:44 -0400 (Mon, 09 Jun 2008)
New Revision: 6521

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminupdateeditblogaction.class.php
Log:
1. Properties & blogOwner is never used, just remove them
2. Use unsigned integer to validate blogTimeOffset

Modified: plog/branches/lifetype-1.2/class/action/admin/adminupdateeditblogaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminupdateeditblogaction.class.php	2008-06-09 05:59:52 UTC (rev 6520)
+++ plog/branches/lifetype-1.2/class/action/admin/adminupdateeditblogaction.class.php	2008-06-09 06:15:44 UTC (rev 6521)
@@ -27,7 +27,6 @@
         var $_blogOwner;
         var $_blogTemplate;
 		var $_blogTimeOffset;
-		var $_blogProperties;
 		var $_blogUsers;
 		var $_blogQuota;
 		var $_blogName;
@@ -46,16 +45,12 @@
 			$this->registerFieldValidator( "blogName", new BlogNameValidator());
 			$this->registerFieldValidator( "blogId", new IntegerValidator());
 			$this->registerFieldValidator( "blogStatus", new IntegerValidator());
-                // TODO: this is an int, right?
-			$this->registerFieldValidator( "blogOwner", new IntegerValidator());
 			$this->registerFieldValidator( "blogLocale", new StringValidator());
 			$this->registerFieldValidator( "blogTemplate", new StringValidator());
 			$this->registerFieldValidator( "blogResourcesQuota", new IntegerValidator(), true );
-			$this->registerFieldValidator( "userId", new IntegerValidator());
+			$this->registerFieldValidator( "userId", new IntegerValidator() );
 			$this->registerFieldValidator( "userName", new UsernameValidator());
-                // TODO: validate this
-			$this->registerField( "blogTimeOffset" );
-                // TODO: validate "properties"
+			$this->registerFieldValidator( "blogTimeOffset", new IntegerValidator( true ) );
 			if( Subdomains::getSubdomainsEnabled()) {
 				$this->registerFieldValidator( "blogSubDomain", new DomainValidator());
 				$this->registerFieldValidator( "blogMainDomain", new DomainValidator());			
@@ -76,10 +71,8 @@
             $this->_blogName = Textfilter::filterAllHTML($this->_request->getValue( "blogName" ));
             $this->_blogLocale = $this->_request->getValue( "blogLocale" );
             $this->_blogTemplate = $this->_request->getValue( "blogTemplate" );
-            $this->_blogOwner = $this->_request->getValue( "blogOwner" );
             $this->_editBlogId = $this->_request->getValue( "blogId" );
             $this->_blogTimeOffset = $this->_request->getValue( "blogTimeOffset" );
-            $this->_blogProperties = $this->_request->getValue( "properties" );
             $this->_blogQuota = $this->_request->getValue( "blogResourcesQuota" );
             $this->_blogUsers = $this->_request->getValue( "blogUsers" );
             $this->_blogStatus = $this->_request->getValue( "blogStatus" );
@@ -118,7 +111,6 @@
             $blogInfo->setSettings( $blogSettings );
 			$blogInfo->setResourcesQuota( $this->_blogQuota );
 			$blogInfo->setBlog( $this->_blogName );
-			$blogInfo->setProperties( $this->_blogProperties );
             $blogInfo->setOwner( $this->_blogOwner );
 			$blogInfo->setStatus( $this->_blogStatus );
             $blogInfo->setMangledBlogName( $blogInfo->getBlog(), true );
@@ -173,7 +165,6 @@
             // do it again, baby :)))
             if( $this->_blogInfo->getId() == $blogInfo->getId()) {
             	$this->_blogInfo->setSettings( $blogSettings );
-				$blogInfo->setProperties( $this->_blogProperties );
             	$this->_session->setValue( "blogInfo", $this->_blogInfo );
             	$this->saveSession();
             }



More information about the pLog-svn mailing list