[pLog-svn] r3656 - plog/trunk

oscar at devel.lifetype.net oscar at devel.lifetype.net
Mon Jun 26 21:18:30 GMT 2006


Author: oscar
Date: 2006-06-26 21:18:30 +0000 (Mon, 26 Jun 2006)
New Revision: 3656

Modified:
   plog/trunk/summary.php
Log:
I forgot this one from the previous commit


Modified: plog/trunk/summary.php
===================================================================
--- plog/trunk/summary.php	2006-06-26 21:00:16 UTC (rev 3655)
+++ plog/trunk/summary.php	2006-06-26 21:18:30 UTC (rev 3656)
@@ -4,13 +4,8 @@
         define( "PLOG_CLASS_PATH", dirname(__FILE__)."/");
     }
 
-    /**
-     * Script that shows a summary page with the 'n' most recent additions
-     * of all blogs in one page. Therefore, it is called a "Summary" :)
-     */
-
     include_once( PLOG_CLASS_PATH."class/bootstrap.php" );     
-    include_once( PLOG_CLASS_PATH."class/controller/controller.class.php" );
+    include_once( PLOG_CLASS_PATH."class/summary/controller/summarycontroller.class.php" );
     include_once( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
     include_once( PLOG_CLASS_PATH."class/misc/version.class.php" );
     include_once( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );
@@ -36,57 +31,9 @@
 		die();
 	}
 	
-	/**
-	 * our very own controller class... overwrite a few methods for our convenience!
-	 */
-	class SummaryController extends Controller
-	{
-		function SummaryController()
-		{
-			global $_actionMap;
-			$this->Controller( $_actionMap, "op" );
-			$this->setActionFolderPath( PLOG_CLASS_PATH."class/summary/action/" );
-		}
-	}
+	// initialiaze the session
+	SessionManager::init();		
 	
-	// start the session handling stuff
-	SessionManager::init();	
-
-    //// map to associate actions with classes ////
-    $_actionMap["Default"]       = "SummaryDefaultAction";
-    $_actionMap["BlogList"]      = "BlogListAction";
-    $_actionMap["PostList"]      = "PostListAction";
-	$_actionMap["UserList"]      = "UserListAction";	
-	$_actionMap["UserProfile"]   = "UserProfileAction";
-	$_actionMap["BlogProfile"]   = "BlogProfileAction";
-	// conditional action registration... you've got to love this :)))
-	if( !$config->getValue( 'summary_disable_registration' )) {
-		$_actionMap["RegisterStep0"] = "doReadAgreement";
-		$_actionMap["RegisterStep1"] = "doUserRegister";
-		$_actionMap["RegisterStep2"] = "doUserCreation";
-		$_actionMap["RegisterStep3"] = "doBlogRegistration";
-		$_actionMap["RegisterStep4"] = "ChooseBlogTemplateAction";    
-		$_actionMap["RegisterStep5"] = "doFinishRegister";
-		$_actionMap["checkUserNameAjax"] = "checkUserNameAjaxAction";
-	}
-	else {
-		$_actionMap["RegisterStep0"] = "SummaryRegistrationDisabledAction";
-		$_actionMap["RegisterStep1"] = "SummaryRegistrationDisabledAction";
-		$_actionMap["RegisterStep2"] = "SummaryRegistrationDisabledAction";
-		$_actionMap["RegisterStep3"] = "SummaryRegistrationDisabledAction";
-		$_actionMap["RegisterStep4"] = "SummaryRegistrationDisabledAction";    
-		$_actionMap["RegisterStep5"] = "SummaryRegistrationDisabledAction";
-		$_actionMap["checkUserNameAjax"] = "SummaryRegistrationDisabledAction";	
-	}
-	$_actionMap["resetPasswordForm"] = "SummaryShowResetPasswordForm";
-	$_actionMap["sendResetEmail"] = "SummarySendResetEmail";
-	$_actionMap["setNewPassword"] = "SummarySetNewPassword";
-	$_actionMap["updatePassword"] = "SummaryUpdatePassword";
-	$_actionMap["rss"] = "SummaryRssAction";
-	$_actionMap["summarySearch"] = "SummarySearchAction";
-	$_actionMap["activeAccount"] = "ActiveAccountAction";
-	$_actionMap["display"] = "SummaryCustomPageAction";
-
     //// main part ////
     $controller = new SummaryController();
     $controller->process( HttpVars::getRequest());



More information about the pLog-svn mailing list