Base idea for handling multiple applications in admin area introduced
authorRoland Häder <roland@mxchange.org>
Mon, 27 Oct 2008 18:08:54 +0000 (18:08 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 27 Oct 2008 18:08:54 +0000 (18:08 +0000)
12 files changed:
.gitattributes
application/admin/admin/.htaccess [new file with mode: 0644]
application/admin/main/actions/.htaccess [new file with mode: 0644]
application/admin/main/actions/web/.htaccess [new file with mode: 0644]
application/admin/main/actions/web/class_WebAdminLoginWelcomeAction.php [new file with mode: 0644]
application/admin/templates/de/code/action_admin_login_welcome.ctp
application/blog/admin/.htaccess [new file with mode: 0644]
application/selector/admin/.htaccess [new file with mode: 0644]
application/ship-simu/admin/.htaccess [new file with mode: 0644]
application/ship-simu/main/actions/web/class_WebShipSimuLogin
application/shoutbox/admin/.htaccess [new file with mode: 0644]
application/todo/admin/.htaccess [new file with mode: 0644]

index 6621d2adaccface83933d669322a5149787685fa..acf693100feac10b8637615bd62d72d7afcc19e5 100644 (file)
@@ -2,6 +2,7 @@
 /Doxyfile -text
 application/.htaccess -text
 application/admin/.htaccess -text
+application/admin/admin/.htaccess -text
 application/admin/class_ApplicationHelper.php -text
 application/admin/config.php -text
 application/admin/data.php -text
@@ -12,6 +13,9 @@ application/admin/init.php -text
 application/admin/interfaces/.htaccess -text
 application/admin/loader.php -text
 application/admin/main/.htaccess -text
+application/admin/main/actions/.htaccess -text
+application/admin/main/actions/web/.htaccess -text
+application/admin/main/actions/web/class_WebAdminLoginWelcomeAction.php -text
 application/admin/main/class_ -text
 application/admin/main/commands/.htaccess -text
 application/admin/main/commands/web/.htaccess -text
@@ -52,6 +56,7 @@ application/admin/templates/images/de/image/.htaccess -text
 application/admin/templates/images/de/image/base_code.itp -text
 application/admin/templates/images/de/image/code_captcha.itp -text
 application/blog/.htaccess -text
+application/blog/admin/.htaccess -text
 application/blog/class_ApplicationHelper.php -text
 application/blog/config.php -text
 application/blog/data.php -text
@@ -95,6 +100,7 @@ application/blog/templates/images/de/image/.htaccess -text
 application/blog/templates/images/de/image/base_code.itp -text
 application/blog/templates/images/de/image/code_captcha.itp -text
 application/selector/.htaccess -text
+application/selector/admin/.htaccess -text
 application/selector/class_ApplicationHelper.php -text
 application/selector/class_ApplicationSelector.php -text
 application/selector/config.php -text
@@ -110,6 +116,7 @@ application/selector/templates/de/code/.htaccess -text
 application/selector/templates/de/code/selector_apps.ctp -text
 application/selector/templates/de/code/selector_main.ctp -text
 application/ship-simu/.htaccess -text
+application/ship-simu/admin/.htaccess -text
 application/ship-simu/class_ApplicationHelper.php -text
 application/ship-simu/config.php -text
 application/ship-simu/data.php -text
@@ -287,6 +294,7 @@ application/ship-simu/templates/images/de/image/.htaccess -text
 application/ship-simu/templates/images/de/image/base_code.itp -text
 application/ship-simu/templates/images/de/image/code_captcha.itp -text
 application/shoutbox/.htaccess -text
+application/shoutbox/admin/.htaccess -text
 application/shoutbox/class_ApplicationHelper.php -text
 application/shoutbox/config.php -text
 application/shoutbox/data.php -text
@@ -330,6 +338,7 @@ application/shoutbox/templates/images/de/image/.htaccess -text
 application/shoutbox/templates/images/de/image/base_code.itp -text
 application/shoutbox/templates/images/de/image/code_captcha.itp -text
 application/todo/.htaccess -text
+application/todo/admin/.htaccess -text
 application/todo/class_ApplicationHelper.php -text
 application/todo/config.php -text
 application/todo/data.php -text
diff --git a/application/admin/admin/.htaccess b/application/admin/admin/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/admin/main/actions/.htaccess b/application/admin/main/actions/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/admin/main/actions/web/.htaccess b/application/admin/main/actions/web/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/admin/main/actions/web/class_WebAdminLoginWelcomeAction.php b/application/admin/main/actions/web/class_WebAdminLoginWelcomeAction.php
new file mode 100644 (file)
index 0000000..a5e545f
--- /dev/null
@@ -0,0 +1,74 @@
+<?php
+/**
+ * An action class for the admin "welcome" page
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.ship-simu.org
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+class WebAdminLoginWelcomeAction extends BaseAction implements PerformableAction, Registerable {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this action
+        *
+        * @return      $actionInstance         An instance of this action class
+        */
+       public final static function createWebAdminLoginWelcomeAction () {
+               // Get a new instance
+               $actionInstance = new WebAdminLoginWelcomeAction();
+
+               // Return the instance
+               return $actionInstance;
+       }
+
+       /**
+        * Executes the command with given request and response objects
+        *
+        * @param       $requestInstance        An instance of a class with an Requestable interface
+        * @param       $responseInstance       An instance of a class with an Responseable interface
+        * @return      void
+        * @todo        Maybe we need to do something later here
+        */
+       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               $this->partialStub("Unfinished part.");
+       }
+
+       /**
+        * Adds extra filters to the given controller instance
+        *
+        * @param       $controllerInstance             A controller instance
+        * @param       $requestInstance                An instance of a class with an Requestable interface
+        * @return      void
+        * @todo        0% done
+        */
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+               $this->partialStub("Need to add filters which looks for applications with admin directory.");
+       }
+}
+
+// [EOF]
+?>
index 749b23966f0f69cb7e312fe4fd71c1647041708e..c1e0574407745026335bdc27b83ec274c67bc6d3 100644 (file)
@@ -1,3 +1,7 @@
+<div id="overview_frame">
+       {?admin_app_list?}
+</div>
+
 <div id="overview_frame">
        {?admin_overview?}
 </div>
diff --git a/application/blog/admin/.htaccess b/application/blog/admin/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/selector/admin/.htaccess b/application/selector/admin/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/admin/.htaccess b/application/ship-simu/admin/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
index b2959ff7d73c1fbc014aac80fe4f24cc98e06b7f..f6cb95ee08cf7f4622404bdcffd172a7726135c5 100644 (file)
@@ -70,7 +70,7 @@ class WebShipSimuLogin???Action extends BaseAction implements Commandable, Regis
         */
        public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
                // Add user status filter here
-               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_class'));
+               $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter'));
        }
 }
 
diff --git a/application/shoutbox/admin/.htaccess b/application/shoutbox/admin/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/admin/.htaccess b/application/todo/admin/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all