]> git.mxchange.org Git - shipsimu.git/commitdiff
Re-organized directory structure
authorRoland Häder <roland@mxchange.org>
Sun, 5 Apr 2009 09:15:22 +0000 (09:15 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 5 Apr 2009 09:15:22 +0000 (09:15 +0000)
14 files changed:
.gitattributes
.gitignore
application/ship-simu/config.php
application/ship-simu/main/menu/class_ShipSimuLoginMenu.php [new file with mode: 0644]
application/ship-simu/templates/de/image/base_code.xml [new file with mode: 0644]
application/ship-simu/templates/de/image/code_captcha.img [new file with mode: 0644]
application/ship-simu/templates/de/image/emergency_exit.img [new file with mode: 0644]
application/ship-simu/templates/de/menu/base_menu.xml [new file with mode: 0644]
application/ship-simu/templates/images/.htaccess [deleted file]
application/ship-simu/templates/images/_cache/.htaccess [deleted file]
application/ship-simu/templates/images/de/.htaccess [deleted file]
application/ship-simu/templates/images/de/image/.htaccess [deleted file]
application/ship-simu/templates/images/de/image/base_code.xml [deleted file]
application/ship-simu/templates/images/de/image/code_captcha.xml [deleted file]

index d50f5b2ca2ad3fd3ac76090388e770bf6aa66b19..b03d25c643b58a70619fdad7098b57878f567a15 100644 (file)
@@ -143,6 +143,7 @@ application/ship-simu/main/login/helper/class_ShipSimuLoginHelper.php -text
 application/ship-simu/main/menu/.htaccess -text
 application/ship-simu/main/menu/class_ShipSimu -text
 application/ship-simu/main/menu/class_ShipSimuHomeMenu.php -text
+application/ship-simu/main/menu/class_ShipSimuLoginMenu.php -text
 application/ship-simu/main/parts/.htaccess -text
 application/ship-simu/main/parts/class_BaseShipPart.php -text
 application/ship-simu/main/parts/maschineroom/.htaccess -text
@@ -224,13 +225,11 @@ application/ship-simu/templates/de/emails/text_resend_link.tpl -text
 application/ship-simu/templates/de/html/.htaccess -text
 application/ship-simu/templates/de/html/nav_advert.tpl -text
 application/ship-simu/templates/de/html/selector_ship-simu.tpl -text
+application/ship-simu/templates/de/image/base_code.xml -text
+application/ship-simu/templates/de/image/code_captcha.img -text
+application/ship-simu/templates/de/image/emergency_exit.img -text
 application/ship-simu/templates/de/menu/.htaccess -text
-application/ship-simu/templates/images/.htaccess -text
-application/ship-simu/templates/images/_cache/.htaccess -text
-application/ship-simu/templates/images/de/.htaccess -text
-application/ship-simu/templates/images/de/image/.htaccess -text
-application/ship-simu/templates/images/de/image/base_code.xml -text
-application/ship-simu/templates/images/de/image/code_captcha.xml -text
+application/ship-simu/templates/de/menu/base_menu.xml -text
 /clear-cache.sh -text
 db/.htaccess -text
 db/company/.htaccess -text
index 9a129d4acb254049cd9d9f7a14cde29e49092bc5..702e40c1263f07f4fd710067b9bb5ae0172b9663 100644 (file)
@@ -1,7 +1,6 @@
 /.cache
 /.project
 /.settings
-application/ship-simu/templates/images/_cache/*.*
 db/company/*.serialized
 db/company_user/*.serialized
 db/gov_user/*.serialized
index d775d4641a77595a90f3dcc4223df717b9996e3e..7921c6cbfe70101a2e1c2a65901c9c6f26ba2459 100644 (file)
@@ -406,5 +406,8 @@ $cfg->setConfigEntry('login_register_login_form', "index.php?app={?app_short_nam
 // CFG: HOME-MENU-CLASS
 $cfg->setConfigEntry('home_menu_class', "ShipSimuHomeMenu");
 
+// CFG: LOGIN-MENU-CLASS
+$cfg->setConfigEntry('login_menu_class', "ShipSimuLoginMenu");
+
 // [EOF]
 ?>
diff --git a/application/ship-simu/main/menu/class_ShipSimuLoginMenu.php b/application/ship-simu/main/menu/class_ShipSimuLoginMenu.php
new file mode 100644 (file)
index 0000000..75212e6
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/**
+ * A menu class for Ship-Simu
+ *
+ * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @version            0.0.0
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
+ * @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 ShipSimuLoginMenu extends BaseMenu implements RenderableMenu {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+       }
+
+       /**
+        * Creates an instance of this class
+        *
+        * @return      $menuInstance   An instance of this class
+        */
+       public final static function createShipSimuLoginMenu () {
+               // Get a new instance
+               $menuInstance = new ShipSimuLoginMenu();
+
+               // Return the prepared instance
+               return $menuInstance;
+       }
+}
+
+// [EOF]
+?>
diff --git a/application/ship-simu/templates/de/image/base_code.xml b/application/ship-simu/templates/de/image/base_code.xml
new file mode 100644 (file)
index 0000000..5de71be
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<image>
+       <type value="{?image_type?}" />
+       <base>
+               <name value="{?image_name?}" />
+       </base>
+       <resolution>
+               <width value="{?image_width?}" />
+               <height value="{?image_height?}" />
+       </resolution>
+       <background-color>
+               <red value="{?image_bg_red?}" />
+               <green value="{?image_bg_green?}" />
+               <blue value="{?image_bg_blue?}" />
+       </background-color>
+       <foreground-color>
+               <red value="{?image_fg_red?}" />
+               <green value="{?image_fg_green?}" />
+               <blue value="{?image_fg_blue?}" />
+       </foreground-color>
+       <image-string value="groupable">
+               <string-name value="{?image_string_name?}" />
+               <x value="{?image_x?}" />
+               <y value="{?image_y?}" />
+               <font-size value="{?image_size?}" />
+               <text value="{?image_string?}" />
+       </image-string>
+</image>
diff --git a/application/ship-simu/templates/de/image/code_captcha.img b/application/ship-simu/templates/de/image/code_captcha.img
new file mode 100644 (file)
index 0000000..223e4fb
--- /dev/null
@@ -0,0 +1,78 @@
+<?php
+// Needed in every image template to initialy set the image type
+$helper = ImageHelper::createImageHelper($this, 'png');
+$helper->setImageName('code_captcha');
+$helper->setBaseImage('base_code');
+
+// Set image dimensions
+$helper->setWidth(100);
+$helper->setHeight(50);
+
+// Get random number
+$rand = $helper->getRngInstance()->randomNumber(0, 6);
+
+// Background and foreground color
+switch ($rand) {
+       case 1:
+               // First varriant
+               $helper->setBackgroundColorRedGreenBlue('rand', 0x90  , 0x00  );
+               $helper->setForegroundColorRedGreenBlue(0x00  , 0xff  , 'rand');
+               break;
+
+       case 2:
+               // Second varriant
+               $helper->setBackgroundColorRedGreenBlue(0x90  , 'rand', 0x00  );
+               $helper->setForegroundColorRedGreenBlue(0xff  , 0x00  , 'rand');
+               break;
+
+       case 3:
+               // Third varriant
+               $helper->setBackgroundColorRedGreenBlue('rand', 0x00  , 0x90  );
+               $helper->setForegroundColorRedGreenBlue(0x00  , 'rand', 0xff  );
+               break;
+
+       case 4:
+               // Forth varriant
+               $helper->setBackgroundColorRedGreenBlue(0x00  , 0x90  , 'rand');
+               $helper->setForegroundColorRedGreenBlue(0x00  , 'rand', 0xa0  );
+               break;
+
+       case 5:
+               // Fith varriant
+               $helper->setBackgroundColorRedGreenBlue('rand', 0x00  , 0x90  );
+               $helper->setForegroundColorRedGreenBlue(0x00  , 0xe0  , 'rand');
+               break;
+
+       default:
+               // Last varriant
+               $helper->setBackgroundColorRedGreenBlue(0x00  , 'rand', 0x90  );
+               $helper->setForegroundColorRedGreenBlue(0xff  , 0x00  , 'rand');
+               break;
+}
+
+// Random X/Y factors...
+$xRand = $helper->getRngInstance()->randomNumber(0, 45);
+$yRand = $helper->getRngInstance()->randomNumber(0, 25);
+
+// Add code
+$helper->addTextLine('code');
+$helper->setCoord((5 + $xRand), (5 + $yRand));
+$helper->setFontSize('rand');
+$helper->setImageString('{?decrypted_code?}');
+
+// Only for debug!
+/*
+$helper->addTextLine('debug');
+$helper->setCoord(90, 35);
+$helper->setFontSize(3);
+$helper->setImageString($rand);
+*/
+
+// Flush content to the template engine
+$helper->flushContent();
+
+// Comment this out if image is done
+//$this->debugInstance();
+
+// [EOF]
+?>
diff --git a/application/ship-simu/templates/de/image/emergency_exit.img b/application/ship-simu/templates/de/image/emergency_exit.img
new file mode 100644 (file)
index 0000000..bf67aa7
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+// Needed in every image template to initialy set the image type
+$helper = ImageHelper::createImageHelper($this, 'png');
+$helper->setImageName('emergency_exit');
+$helper->setBaseImage('base_exit');
+
+// Set image dimensions
+$helper->setWidth(100);
+$helper->setHeight(50);
+
+// Flush content to the template engine
+//$helper->flushContent();
+
+// Comment this out if image is done
+$this->debugInstance();
+
+// [EOF]
+?>
diff --git a/application/ship-simu/templates/de/menu/base_menu.xml b/application/ship-simu/templates/de/menu/base_menu.xml
new file mode 100644 (file)
index 0000000..5eb5c1e
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<menu>
+       <header>
+               <title>
+                       {?menu_title?}
+               </title>
+       </header>
+       <entries>
+               <entry id="{?entry_id?}">
+                       <anchor id="{?anchor_id?}" href="{?anchor_href?}" target="{?anchor_target?}" rel="{?anchor_rel?}" title="{?anchor_title?}">
+                               {?anchor_link_text?}
+                       </anchor>
+                       <design class="{?entry_design_class?}">
+                               {?entry_design_text?}
+                       </design>
+               </entry>
+       </entries>
+       <footer>
+               <text>
+                       {?footer_text?}
+               </text>
+               <design class="{?footer_design_class?}">
+                       {?footer_design_text?}
+               </design>
+       </footer>
+</menu>
diff --git a/application/ship-simu/templates/images/.htaccess b/application/ship-simu/templates/images/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/ship-simu/templates/images/_cache/.htaccess b/application/ship-simu/templates/images/_cache/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/ship-simu/templates/images/de/.htaccess b/application/ship-simu/templates/images/de/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/ship-simu/templates/images/de/image/.htaccess b/application/ship-simu/templates/images/de/image/.htaccess
deleted file mode 100644 (file)
index 3a42882..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Deny from all
diff --git a/application/ship-simu/templates/images/de/image/base_code.xml b/application/ship-simu/templates/images/de/image/base_code.xml
deleted file mode 100644 (file)
index 6501b56..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<image>
-       <type value="{?image_type?}" />
-       <base>
-               <name value="{?image_name?}" />
-       </base>
-       <resolution>
-               <width value="{?image_width?}" />
-               <height value="{?image_height?}" />
-       </resolution>
-       <background-color>
-               <red value="{?image_bg_red?}" />
-               <green value="{?image_bg_green?}" />
-               <blue value="{?image_bg_blue?}" />
-       </background-color>
-       <foreground-color>
-               <red value="{?image_fg_red?}" />
-               <green value="{?image_fg_green?}" />
-               <blue value="{?image_fg_blue?}" />
-       </foreground-color>
-       <image-string value="groupable">
-               <string-name value="{?image_string_name?}" />
-               <x value="{?image_x?}" />
-               <y value="{?image_y?}" />
-               <font-size value="{?image_size?}" />
-               <text value="{?image_string?}" />
-       </image-string>
-</image>
diff --git a/application/ship-simu/templates/images/de/image/code_captcha.xml b/application/ship-simu/templates/images/de/image/code_captcha.xml
deleted file mode 100644 (file)
index 2e28522..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php
-// Needed in every image template to initialy set the image type
-$helper = ImageHelper::createImageHelper($this, "png");
-$helper->setImageName("code_captcha");
-$helper->setBaseImage("base_code");
-
-// Set image dimensions
-$helper->setWidth(100);
-$helper->setHeight(50);
-
-// Get random number
-$rand = $helper->getRngInstance()->randomNumber(0, 6);
-
-// Background and foreground color
-switch ($rand) {
-       case 1:
-               // First varriant
-               $helper->setBackgroundColorRedGreenBlue('rand', 0x90  , 0x00  );
-               $helper->setForegroundColorRedGreenBlue(0x00  , 0xff  , 'rand');
-               break;
-
-       case 2:
-               // Second varriant
-               $helper->setBackgroundColorRedGreenBlue(0x90  , 'rand', 0x00  );
-               $helper->setForegroundColorRedGreenBlue(0xff  , 0x00  , 'rand');
-               break;
-
-       case 3:
-               // Third varriant
-               $helper->setBackgroundColorRedGreenBlue('rand', 0x00  , 0x90  );
-               $helper->setForegroundColorRedGreenBlue(0x00  , 'rand', 0xff  );
-               break;
-
-       case 4:
-               // Forth varriant
-               $helper->setBackgroundColorRedGreenBlue(0x00  , 0x90  , 'rand');
-               $helper->setForegroundColorRedGreenBlue(0x00  , 'rand', 0xa0  );
-               break;
-
-       case 5:
-               // Fith varriant
-               $helper->setBackgroundColorRedGreenBlue('rand', 0x00  , 0x90  );
-               $helper->setForegroundColorRedGreenBlue(0x00  , 0xe0  , 'rand');
-               break;
-
-       default:
-               // Last varriant
-               $helper->setBackgroundColorRedGreenBlue(0x00  , 'rand', 0x90  );
-               $helper->setForegroundColorRedGreenBlue(0xff  , 0x00  , 'rand');
-               break;
-}
-
-// Random X/Y factors...
-$xRand = $helper->getRngInstance()->randomNumber(0, 45);
-$yRand = $helper->getRngInstance()->randomNumber(0, 25);
-
-// Add code
-$helper->addTextLine("code");
-$helper->setCoord((5 + $xRand), (5 + $yRand));
-$helper->setFontSize('rand');
-$helper->setImageString("{?decrypted_code?}");
-
-// Only for debug!
-/*
-$helper->addTextLine("debug");
-$helper->setCoord(90, 35);
-$helper->setFontSize(3);
-$helper->setImageString($rand);
-*/
-
-// Flush content to the template engine
-$helper->flushContent();
-
-// Comment this out if image is done
-//$this->debugInstance();
-
-// [EOF]
-?>