[xoops-cvslog 4420] CVS update: xoops2jp/html/modules/base/preload

Back to archive index

Minahito minah****@users*****
2006年 9月 2日 (土) 10:47:31 JST


Index: xoops2jp/html/modules/base/preload/IndexRedirector.class.php
diff -u /dev/null xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1
--- /dev/null	Sat Sep  2 10:47:31 2006
+++ xoops2jp/html/modules/base/preload/IndexRedirector.class.php	Sat Sep  2 10:47:31 2006
@@ -0,0 +1,28 @@
+<?php
+/**
+ * @version $Id$
+ */
+
+if (!defined('XOOPS_ROOT_PATH')) exit();
+
+class Base_IndexRedirector extends XCube_ActionFilter
+{
+	function preBlockFilter()
+	{
+		$this->mController->mRoot->mDelegateManager->add("Legacypage.Top.Access", array(&$this, "redirect"));
+	}
+
+	function redirect()
+	{
+		$startPage = $this->mController->getConfig('startpage');
+		if ($startPage != null && $startPage != "--") {
+			$handler =& xoops_gethandler('module');
+			$module =& $handler->get($startPage);
+			if (is_object($module)) {
+				$this->mController->executeForward(XOOPS_URL . '/modules/' . $module->getShow('dirname') . '/');
+			}
+		}
+	}
+}
+
+?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index