]> git.mxchange.org Git - shipsimu.git/commitdiff
ToDo manager added (I need it by myself!), all links and form action now dynamic
authorRoland Häder <roland@mxchange.org>
Mon, 8 Sep 2008 22:13:23 +0000 (22:13 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 8 Sep 2008 22:13:23 +0000 (22:13 +0000)
65 files changed:
.gitattributes
application/blog/config.php
application/blog/templates/de/code/action_login_logout.ctp
application/blog/templates/de/code/block_persona_data.ctp
application/blog/templates/de/code/captch_graphic_code.ctp
application/blog/templates/de/code/confirm_link.ctp
application/blog/templates/de/code/login_failed.ctp
application/blog/templates/de/code/login_form.ctp
application/blog/templates/de/code/login_main.ctp
application/blog/templates/de/code/logout_done.ctp
application/blog/templates/de/emails/text_resend_link.tpl
application/ship-simu/config.php
application/ship-simu/templates/de/code/action_login_company.ctp
application/ship-simu/templates/de/code/action_login_logout.ctp
application/ship-simu/templates/de/code/block_company_data.ctp
application/ship-simu/templates/de/code/block_persona_data.ctp
application/ship-simu/templates/de/code/captch_graphic_code.ctp
application/ship-simu/templates/de/code/confirm_link.ctp
application/ship-simu/templates/de/code/login_failed.ctp
application/ship-simu/templates/de/code/login_form.ctp
application/ship-simu/templates/de/code/login_main.ctp
application/ship-simu/templates/de/code/logout_done.ctp
application/ship-simu/templates/de/emails/text_resend_link.tpl
application/todo/.htaccess [new file with mode: 0644]
application/todo/class_ApplicationHelper.php [new file with mode: 0644]
application/todo/config.php [new file with mode: 0644]
application/todo/debug.php [new file with mode: 0644]
application/todo/exceptions.php [new file with mode: 0644]
application/todo/exceptions/.htaccess [new file with mode: 0644]
application/todo/init.php [new file with mode: 0644]
application/todo/interfaces/.htaccess [new file with mode: 0644]
application/todo/loader.php [new file with mode: 0644]
application/todo/main/.htaccess [new file with mode: 0644]
application/todo/main/class_ [new file with mode: 0644]
application/todo/starter.php [new file with mode: 0644]
application/todo/templates/.htaccess [new file with mode: 0644]
application/todo/templates/de/.htaccess [new file with mode: 0644]
application/todo/templates/de/code/action_login_logout.ctp [new file with mode: 0644]
application/todo/templates/de/code/action_login_profile.ctp [new file with mode: 0644]
application/todo/templates/de/code/action_login_status_problem.ctp [new file with mode: 0644]
application/todo/templates/de/code/action_login_welcome.ctp [new file with mode: 0644]
application/todo/templates/de/code/block_persona_data.ctp [new file with mode: 0644]
application/todo/templates/de/code/captch_graphic_code.ctp [new file with mode: 0644]
application/todo/templates/de/code/confirm_link.ctp [new file with mode: 0644]
application/todo/templates/de/code/footer.ctp [new file with mode: 0644]
application/todo/templates/de/code/header.ctp [new file with mode: 0644]
application/todo/templates/de/code/home.ctp [new file with mode: 0644]
application/todo/templates/de/code/login_failed.ctp [new file with mode: 0644]
application/todo/templates/de/code/login_form.ctp [new file with mode: 0644]
application/todo/templates/de/code/login_main.ctp [new file with mode: 0644]
application/todo/templates/de/code/logout_done.ctp [new file with mode: 0644]
application/todo/templates/de/code/mail_debug.ctp [new file with mode: 0644]
application/todo/templates/de/code/register_form.ctp [new file with mode: 0644]
application/todo/templates/de/code/todo_main.ctp [new file with mode: 0644]
application/todo/templates/de/emails/.htaccess [new file with mode: 0644]
application/todo/templates/de/emails/text_resend_link.tpl [new file with mode: 0644]
application/todo/templates/de/html/.htaccess [new file with mode: 0644]
application/todo/templates/de/html/nav_advert.tpl [new file with mode: 0644]
application/todo/templates/de/html/selector_ship-simu.tpl [new file with mode: 0644]
application/todo/templates/images/.htaccess [new file with mode: 0644]
application/todo/templates/images/_cache/.htaccess [new file with mode: 0644]
application/todo/templates/images/de/.htaccess [new file with mode: 0644]
application/todo/templates/images/de/image/.htaccess [new file with mode: 0644]
application/todo/templates/images/de/image/base_code.itp [new file with mode: 0644]
application/todo/templates/images/de/image/code_captcha.itp [new file with mode: 0644]

index 797f038b3a6033059ea49e54022133780cebbdab..ff8b2faf5d2a06a77bb5d455eba9439f63e75989 100644 (file)
@@ -232,6 +232,48 @@ 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.itp -text
 application/ship-simu/templates/images/de/image/code_captcha.itp -text
+application/todo/.htaccess -text
+application/todo/class_ApplicationHelper.php -text
+application/todo/config.php -text
+application/todo/debug.php -text
+application/todo/exceptions.php -text
+application/todo/exceptions/.htaccess -text
+application/todo/init.php -text
+application/todo/interfaces/.htaccess -text
+application/todo/loader.php -text
+application/todo/main/.htaccess -text
+application/todo/main/class_ -text
+application/todo/starter.php -text
+application/todo/templates/.htaccess -text
+application/todo/templates/de/.htaccess -text
+application/todo/templates/de/code/action_login_logout.ctp -text
+application/todo/templates/de/code/action_login_profile.ctp -text
+application/todo/templates/de/code/action_login_status_problem.ctp -text
+application/todo/templates/de/code/action_login_welcome.ctp -text
+application/todo/templates/de/code/block_persona_data.ctp -text
+application/todo/templates/de/code/captch_graphic_code.ctp -text
+application/todo/templates/de/code/confirm_link.ctp -text
+application/todo/templates/de/code/footer.ctp -text
+application/todo/templates/de/code/header.ctp -text
+application/todo/templates/de/code/home.ctp -text
+application/todo/templates/de/code/login_failed.ctp -text
+application/todo/templates/de/code/login_form.ctp -text
+application/todo/templates/de/code/login_main.ctp -text
+application/todo/templates/de/code/logout_done.ctp -text
+application/todo/templates/de/code/mail_debug.ctp -text
+application/todo/templates/de/code/register_form.ctp -text
+application/todo/templates/de/code/todo_main.ctp -text
+application/todo/templates/de/emails/.htaccess -text
+application/todo/templates/de/emails/text_resend_link.tpl -text
+application/todo/templates/de/html/.htaccess -text
+application/todo/templates/de/html/nav_advert.tpl -text
+application/todo/templates/de/html/selector_ship-simu.tpl -text
+application/todo/templates/images/.htaccess -text
+application/todo/templates/images/_cache/.htaccess -text
+application/todo/templates/images/de/.htaccess -text
+application/todo/templates/images/de/image/.htaccess -text
+application/todo/templates/images/de/image/base_code.itp -text
+application/todo/templates/images/de/image/code_captcha.itp -text
 /clear-cache.sh -text
 db/.htaccess -text
 db/company_user/.htaccess -text
index 53bdfd542dff2939dee3999228251869817bd4c0..5ceea919850f83b5cf79485eab2386fc590dd68c 100644 (file)
@@ -95,28 +95,28 @@ $cfg->setConfigEntry('login_helper_class', "ShipSimuLoginHelper");
 $cfg->setConfigEntry('auth_method_class', "CookieAuth");
 
 // CFG: APP-LOGIN-URL
-$cfg->setConfigEntry('app_login_url', "index.php?app=blog&page=login_area");
+$cfg->setConfigEntry('app_login_url', "index.php?app={?app_short_name?}&page=login_area");
 
 // CFG: LOGIN-FAILED-URL
-$cfg->setConfigEntry('login_failed_url', "index.php?app=blog&page=login_failed");
+$cfg->setConfigEntry('login_failed_url', "index.php?app={?app_short_name?}&page=login_failed");
 
 // CFG: LOGOUT-DONE-URL
-$cfg->setConfigEntry('logout_done_url', "index.php?app=blog&page=logout_done");
+$cfg->setConfigEntry('logout_done_url', "index.php?app={?app_short_name?}&page=logout_done");
 
 // CFG: LOGIN-USER-STATUS-URL
-$cfg->setConfigEntry('login_user_status_url', "index.php?app=blog&page=login_area&action=status_problem");
+$cfg->setConfigEntry('login_user_status_url', "index.php?app={?app_short_name?}&page=login_area&action=status_problem");
 
 // CFG: USER-NOT-UNCONFIRMED-URL
-$cfg->setConfigEntry('user_not_unconfirmed_url', "index.php?app=blog&page=status&status=unconfirmed_problem");
+$cfg->setConfigEntry('user_not_unconfirmed_url', "index.php?app={?app_short_name?}&page=status&status=unconfirmed_problem");
 
 // CFG: USER-UNCONFIRMED-EMAIL-MISSING-URL
-$cfg->setConfigEntry('user_unconfirmed_email_missing_url', "index.php?app=blog&page=status&status=unconfirmed_email_missing");
+$cfg->setConfigEntry('user_unconfirmed_email_missing_url', "index.php?app={?app_short_name?}&page=status&status=unconfirmed_email_missing");
 
 // CFG: CONFIRM-CODE-INVALID-URL
-$cfg->setConfigEntry('confirm_code_invalid_url', "index.php?app=blog&page=status&status=confirm_code_invalid");
+$cfg->setConfigEntry('confirm_code_invalid_url', "index.php?app={?app_short_name?}&page=status&status=confirm_code_invalid");
 
 // CFG: USER-NOT-FOUND-URL
-$cfg->setConfigEntry('user_not_found_url', "index.php?app=ship-simu&page=status&status=user_not_found");
+$cfg->setConfigEntry('user_not_found_url', "index.php?app={?app_short_name?}&page=status&status=user_not_found");
 
 // CFG: LOGIN-DEFAULT-ACTION
 $cfg->setConfigEntry('login_default_action', "welcome");
index 5d345c3c6b7e6649ad6a5f464ddef5b84fb99a39..4dd47d9625b7e7058e423d627a6874e74620beed 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app=blog&amp;page=logout');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&amp;page=logout');
 
 // Set link text
 $helper->addLinkWithTextById('logout_now_link_text');
@@ -9,7 +9,7 @@ $helper->addLinkWithTextById('logout_now_link_text');
 $helper->flushContent();
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app=blog&amp;page=login_area');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Set link text
 $helper->addLinkWithTextById('return_login_link_text');
index 5911ed76c370d935d925a5859b33dfd04b51d246..e92df8a6b4996cc4a8987e2aa4d4265dd3e46168 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app=blog&amp;page=login_area');
+$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Prefetch user instance
 $helperInstance->prefetchValueInstance('user');
index b74acf7e1c96d3b7189f609bb99f6aac1ca60e03..400a861e135c95fba5e1e62555447a634b819ff0 100644 (file)
@@ -9,7 +9,7 @@ $captchaHelper->flushContent();
 // [EOF]
 ?>
 <div class="captcha_image">
-       <img src="$config[base_url]/index.php?app=blog&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
+       <img src="$config[base_url]/index.php?app={?app_short_name?}&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
 </div>
 <div class="captcha_code">
        {?captcha_code?}
index 6ae9490b2b2a1fe5ca2da5e3251442dfddc9308d..eaf8060723cffd9ef4f039766c40bdaa0946b820 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app=blog&amp;page=login');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&amp;page=login');
 
 // Set link text
 $helper->addLinkWithTextById('direct_login_link_text');
index 8d98657fcf866f3f59adf7395e90c69af2a0b1c1..dc67766febefac81569e651aef8fd13965b4a423 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app=blog&amp;page=login');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&amp;page=login');
 
 // Set link text
 $helper->addLinkWithTextById('login_retry_link_text');
index e1b54bf941ec59cc3fcd6806f192aae1d328d37c..dca65410a1003dffa718663f5065f0b9f36b9a20 100644 (file)
@@ -70,7 +70,7 @@ if ($helper->ifGuestLoginAllowed()) {
 }
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app=blog&amp;page=register');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&amp;page=register');
 
 // Set link text
 $helper->addLinkWithTextById('register_login_form_link_text');
index 3807d7548b27c249f3f23e45512cb456808fa175..df6c2ba1eab660da21d1b83d1a240010ac8ed48b 100644 (file)
@@ -63,7 +63,7 @@ if ($blockInstance->getValueInstance()->ifUserIsFounder()) {
 $blockInstance->flushContent();
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app=blog&amp;page=login_area');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Add action
 $helper->addActionLink('logout', "Ausloggen");
index f4d7daf97b9119cf7a4f81162462c1918d6e475d..be8a24b434d116301db2c63cf94b7236edeadb32 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app=blog&amp;page=login');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&amp;page=login');
 
 // Set link text
 $helper->addLinkWithTextById('relogin_link_text');
index 3867bd96282003075e9c18d941551c499a2d9f5c..e764146707e2145c560788b931325e59c8a04633 100644 (file)
@@ -11,7 +11,7 @@ Du (oder ein anderer) hattest soeben deinen Best&auml;tigungslink erneut angefor
 
 Hier ist nun dein Best&auml;tigungslink. Der alte aus der Anmeldemail ist somit nicht mehr g&uuml;ltig!
 
-$config[base_url]/index.php?app=blog&page=confirm&username={?username?}&confirm={?confirm_hash?}
+$config[base_url]/index.php?app={?app_short_name?}&page=confirm&username={?username?}&confirm={?confirm_hash?}
 
 Solltest du die URL nicht anklicken k&ouml;nnen, versuche diese in die Adresszeile deines Browsers zu kopieren.
 
index f59de87347e2eda5ab17f106453c2eeb779017f8..995707f7e29201a4eecbfd48626f80cd726494a8 100644 (file)
@@ -95,28 +95,28 @@ $cfg->setConfigEntry('login_helper_class', "ShipSimuLoginHelper");
 $cfg->setConfigEntry('auth_method_class', "CookieAuth");
 
 // CFG: APP-LOGIN-URL
-$cfg->setConfigEntry('app_login_url', "index.php?app=ship-simu&page=login_area");
+$cfg->setConfigEntry('app_login_url', "index.php?app={?app_short_name?}&page=login_area");
 
 // CFG: LOGIN-FAILED-URL
-$cfg->setConfigEntry('login_failed_url', "index.php?app=ship-simu&page=login_failed");
+$cfg->setConfigEntry('login_failed_url', "index.php?app={?app_short_name?}&page=login_failed");
 
 // CFG: LOGOUT-DONE-URL
-$cfg->setConfigEntry('logout_done_url', "index.php?app=ship-simu&page=logout_done");
+$cfg->setConfigEntry('logout_done_url', "index.php?app={?app_short_name?}&page=logout_done");
 
 // CFG: LOGIN-USER-STATUS-URL
-$cfg->setConfigEntry('login_user_status_url', "index.php?app=ship-simu&page=login_area&action=status_problem");
+$cfg->setConfigEntry('login_user_status_url', "index.php?app={?app_short_name?}&page=login_area&action=status_problem");
 
 // CFG: USER-NOT-UNCONFIRMED-URL
-$cfg->setConfigEntry('user_not_unconfirmed_url', "index.php?app=ship-simu&page=status&status=unconfirmed_problem");
+$cfg->setConfigEntry('user_not_unconfirmed_url', "index.php?app={?app_short_name?}&page=status&status=unconfirmed_problem");
 
 // CFG: USER-UNCONFIRMED-EMAIL-MISSING-URL
-$cfg->setConfigEntry('user_unconfirmed_email_missing_url', "index.php?app=ship-simu&page=status&status=unconfirmed_email_missing");
+$cfg->setConfigEntry('user_unconfirmed_email_missing_url', "index.php?app={?app_short_name?}&page=status&status=unconfirmed_email_missing");
 
 // CFG: CONFIRM-CODE-INVALID-URL
-$cfg->setConfigEntry('confirm_code_invalid_url', "index.php?app=ship-simu&page=status&status=confirm_code_invalid");
+$cfg->setConfigEntry('confirm_code_invalid_url', "index.php?app={?app_short_name?}&page=status&status=confirm_code_invalid");
 
 // CFG: USER-NOT-FOUND-URL
-$cfg->setConfigEntry('user_not_found_url', "index.php?app=ship-simu&page=status&status=user_not_found");
+$cfg->setConfigEntry('user_not_found_url', "index.php?app={?app_short_name?}&page=status&status=user_not_found");
 
 // CFG: LOGIN-DEFAULT-ACTION
 $cfg->setConfigEntry('login_default_action', "welcome");
index 584136f3e8becadbc0ad2e0213b130b325221300..b6c53775bd473e913929f6fcfe528617536968b9 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get a link helper instance
-$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'company_links', 'index.php?app=ship-simu&amp;page=login_area');
+$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'company_links', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Prefetch the user data
 $linkInstance->prefetchValueInstance('user');
index 944166e2940bd6b6ccf5f941261a74520455d973..8e430022a3d371be6b8db277292b36dc03154a70 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app=ship-simu&amp;page=logout');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&amp;page=logout');
 
 // Set link text
 $helper->addLinkWithTextById('logout_now_link_text');
@@ -9,7 +9,7 @@ $helper->addLinkWithTextById('logout_now_link_text');
 $helper->flushContent();
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app=ship-simu&amp;page=login_area');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Set link text
 $helper->addLinkWithTextById('return_login_link_text');
index bc2271605bd37cf2bca51b0ff3b169f3c3c9a643..25809e8f7184f8fa6e0f9f2648bfd7aa3f20bee8 100644 (file)
@@ -2,6 +2,6 @@
        Firmenstatus: <span class="company_status">{?company_status?}</span>
 </div>
 <div class="user_profile_div">
-       <a href="$config[base_url]/index.php?app=ship-simu&amp;page=login_area&amp;action={?company_link_action?}"
+       <a href="$config[base_url]/index.php?app={?app_short_name?}&amp;page=login_area&amp;action={?company_link_action?}"
         title="{?company_link_title?}">{?company_link_text?}</a>
 </div>
index 45923dc2bf1753476073f982ad5a91f9de0a4033..ec843fd1fc3427d0f4278d67d99324fb11ac28c0 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get a helper instance for the profile link (and maybe later more!)
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app=ship-simu&amp;page=login_area');
+$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Prefetch user instance
 $helperInstance->prefetchValueInstance('user');
index 4744e75aa9032bbe3538c0cf5f99e3369420166b..400a861e135c95fba5e1e62555447a634b819ff0 100644 (file)
@@ -9,7 +9,7 @@ $captchaHelper->flushContent();
 // [EOF]
 ?>
 <div class="captcha_image">
-       <img src="$config[base_url]/index.php?app=ship-simu&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
+       <img src="$config[base_url]/index.php?app={?app_short_name?}&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
 </div>
 <div class="captcha_code">
        {?captcha_code?}
index 6e6cb4716d3b04d91a533d5f77ca8c43ad03b6da..a3f7895a123f771466ba8b22ce8a00703f728ad8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app=ship-simu&amp;page=login');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&amp;page=login');
 
 // Set link text
 $helper->addLinkWithTextById('direct_login_link_text');
index 4ff7b8973d00334f3d337e4f1e85fb72d0b2a3f6..07455ab6be15616f394e7e977bba5b2d20596c26 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app=ship-simu&amp;page=login');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&amp;page=login');
 
 // Set link text
 $helper->addLinkWithTextById('login_retry_text');
index c2cf6fc7489f2f388ed31a591f055c9c6cd279d6..fed90b38f734188a671b1f4cb9be0a8ebcf80cdf 100644 (file)
@@ -70,7 +70,7 @@ if ($helper->ifGuestLoginAllowed()) {
 }
 
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app=ship-simu&amp;page=register');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&amp;page=register');
 
 // Set link text
 $helper->addLinkWithTextById('register_login_form_link_text');
index 81c6c111cdfc181470e35140e9a764966bd013db..74c9e747b2380f25e8a18b4af754170d658964e3 100644 (file)
@@ -63,7 +63,7 @@ if ($blockInstance->getValueInstance()->ifUserIsFounder()) {
 $blockInstance->flushContent();
 
 // Get helper instance
-$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app=ship-simu&amp;page=login_area');
+$linkInstance = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
 
 // Add action
 $linkInstance->addLinkGroup('logout', "");
index 1f37ca835b85a9538e66d8f2bd01d483f5e86f7b..4eba18049714e7ecc0310100f26c8dfb84978a59 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 // Get helper instance
-$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app=ship-simu&amp;page=login');
+$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&amp;page=login');
 
 // Set link text
 $helper->addLinkWithTextById('relogin_link_text');
index e5b7a597f738edfb146074ad3b07b0b2febdb8f1..ab28babdf43f3a1e44bb1ce83ad02c3b334c8473 100644 (file)
@@ -11,7 +11,7 @@ Du (oder ein anderer) hattest soeben deinen Best&auml;tigungslink erneut angefor
 
 Hier ist nun dein Best&auml;tigungslink. Der alte aus der Anmeldemail ist somit nicht mehr g&uuml;ltig!
 
-$config[base_url]/index.php?app=ship-simu&page=confirm&username={?username?}&confirm={?confirm_hash?}
+$config[base_url]/index.php?app={?app_short_name?}&page=confirm&username={?username?}&confirm={?confirm_hash?}
 
 Solltest du die URL nicht anklicken k&ouml;nnen, versuche diese in die Adresszeile deines Browsers zu kopieren.
 
diff --git a/application/todo/.htaccess b/application/todo/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/class_ApplicationHelper.php b/application/todo/class_ApplicationHelper.php
new file mode 100644 (file)
index 0000000..ccedad6
--- /dev/null
@@ -0,0 +1,235 @@
+<?php
+/**
+ * A class holding general data about the application and some methods for
+ * the management including the entry point.
+ *
+ * E.g.:
+ *
+ * index.php?app=my_app
+ *
+ * You need to create a folder in the folder "application" named "my_app"
+ * (without the quotes) and create a include file called
+ * class_ApplicationHelper.php. You have to write the same class for your
+ * application and implement the same interface called ManageableApplication
+ * because this class include file will be searched for.
+ *
+ * It is good when you avoid more GET parameters to keep URLs short and sweet.
+ * But sometimes you need some GET paramerers e.g. for your imprint or info page
+ * or other linked pages which you have to create and state some informations.
+ *
+ * Please remember that this include file is being loaded *before* the class
+ * loader is loading classes from "exceptions", "interfaces" and "main"!
+ *
+ * @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 ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
+       /**
+        * The version number of this application
+        */
+       private $appVersion = "";
+
+       /**
+        * The human-readable name for this application
+        */
+       private $appName = "";
+
+       /**
+        * The short uni*-like name for this application
+        */
+       private $shortName = "";
+
+       /**
+        * The name of the master template
+        */
+       private $masterTemplate = "todo_main";
+
+       /**
+        * An instance of a controller
+        */
+       private $controllerInstance = null;
+
+       /**
+        * An instance of this class
+        */
+       private static $thisInstance = null;
+
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+
+               // Tidy up a little
+               $this->removeSystemArray();
+               $this->removeNumberFormaters();
+       }
+
+       /**
+        * Getter for an instance of this class
+        *
+        * @return      $thisInstance           An instance of this class
+        */
+       public final static function getInstance () {
+               // Is the instance there?
+               if (is_null(self::$thisInstance)) {
+                       self::$thisInstance = new ApplicationHelper();
+               }
+
+               // Return the instance
+               return self::$thisInstance;
+       }
+
+       /**
+        * Getter for the version number
+        *
+        * @return      $appVersion             The application's version number
+        */
+       public final function getAppVersion () {
+               return $this->appVersion;
+       }
+
+       /**
+        * Setter for the version number
+        *
+        * @param       $appVersion             The application's version number
+        * @return      void
+        */
+       public final function setAppVersion ($appVersion) {
+               // Cast and set it
+               $appVersion = (string) $appVersion;
+               $this->appVersion = $appVersion;
+       }
+
+       /**
+        * Getter for human-readable name
+        *
+        * @return      $appName        The application's human-readable name
+        */
+       public final function getAppName () {
+               return $this->appName;
+       }
+
+       /**
+        * Setter for human-readable name
+        *
+        * @param       $appName        The application's human-readable name
+        * @return      void
+        */
+       public final function setAppName ($appName) {
+               // Cast and set it
+               $appName = (string) $appName;
+               $this->appName = $appName;
+       }
+
+       /**
+        * Getter for short uni*-like name
+        *
+        * @return      $shortName      The application's short uni*-like name
+        */
+       public final function getAppShortName () {
+               return $this->shortName;
+       }
+
+       /**
+        * Setter for short uni*-like name
+        *
+        * @param       $shortName      The application's short uni*-like name
+        * @return      void
+        */
+       public final function setAppShortName ($shortName) {
+               // Cast and set it
+               $shortName = (string) $shortName;
+               $this->shortName = $shortName;
+       }
+
+       /**
+        * Getter for master template name
+        *
+        * @return      $masterTemplate         Name of the master template
+        */
+       public final function getMasterTemplate () {
+               return $this->masterTemplate;
+       }
+
+       /**
+        * Launches the todo software
+        *
+        * @return      void
+        */
+       public final function entryPoint () {
+               // Create a new request object
+               $requestInstance = ObjectFactory::createObjectByName('HttpRequest');
+
+               // Default response is HTTP (HTML page) and type is "Web"
+               $response = "http";
+               $responseType = "web";
+
+               // Do we have another response?
+               if ($requestInstance->isRequestElementSet('response')) {
+                       // Then use it
+                       $response = strtolower($requestInstance->getRequestElement('response'));
+                       $responseType = $response;
+               } // END - if
+
+               // ... and a new response object
+               $responseInstance = ObjectFactory::createObjectByName(ucfirst($response)."Response", array($this));
+
+               // Remember both in this application
+               $this->setRequestInstance($requestInstance);
+               $this->setResponseInstance($responseInstance);
+
+               // Get the parameter from the request
+               $commandName = $requestInstance->getRequestElement('page');
+
+               // If it is null then get default command
+               if (is_null($commandName)) {
+                       $commandName = $responseInstance->getDefaultCommand();
+               } // END - if
+
+               // Get a resolver
+               $resolverInstance = ObjectFactory::createObjectByName(ucfirst($responseType)."ControllerResolver", array($commandName, $this));
+
+               // Get a controller instance as well
+               $this->controllerInstance = $resolverInstance->resolveController();
+
+               // Handle the request
+               $this->controllerInstance->handleRequest($requestInstance, $responseInstance);
+       }
+
+       /**
+        * Handle the indexed array of fatal messages and puts them out in an
+        * acceptable fasion
+        *
+        * @param       $messageList    An array of fatal messages
+        * @return      void
+        */
+       public function handleFatalMessages (array $messageList) {
+               // Walk through all messages
+               foreach ($messageList as $message) {
+                       print("MSG:".$message."<br />\n");
+               } // END - if
+       }
+}
+
+// [EOF]
+?>
diff --git a/application/todo/config.php b/application/todo/config.php
new file mode 100644 (file)
index 0000000..a1a4544
--- /dev/null
@@ -0,0 +1,248 @@
+<?php
+/**
+ * Additional/overwritten configuration parts
+ *
+ * @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/>.
+ */
+
+// Get a configuration instance for shorter lines
+$cfg = FrameworkConfiguration::getInstance();
+
+// CFG: DEFAULT-WEB-COMMAND
+$cfg->setConfigEntry('default_web_command', "home");
+
+// CFG: DEFAULT-IMAGE-COMMAND
+$cfg->setConfigEntry('default_image_command', "build");
+
+// CFG: PAGE-WITH-NEWS
+$cfg->setConfigEntry('page_with_news', "home");
+
+// CFG: FORM-ACTION
+$cfg->setConfigEntry('form_action', "index.php?app={?app_short_name?}&amp;page=do_form");
+
+// CFG: FORM-METHOD
+$cfg->setConfigEntry('form_method', "post");
+
+// CFG: FORM-TARGET
+$cfg->setConfigEntry('form_target', "_self");
+
+// CFG: REGISTER-REQUIRES-EMAIL
+$cfg->setConfigEntry('register_requires_email', "Y");
+
+// CFG: REGISTER-INCLUDES-PROFILE
+$cfg->setConfigEntry('register_includes_profile', "Y");
+
+// CFG: REGISTER-PERSONAL-DATA
+$cfg->setConfigEntry('register_personal_data', "Y");
+
+// CFG: REGISTER-EMAIL-UNIQUE
+$cfg->setConfigEntry('register_email_unique', "Y");
+
+// CFG: CHAT-ENABLED-ICQ
+$cfg->setConfigEntry('chat_enabled_icq', "Y");
+
+// CFG: CHAT-ENABLED-JABBER
+$cfg->setConfigEntry('chat_enabled_jabber', "Y");
+
+// CFG: CHAT-ENABLED-YAHOO
+$cfg->setConfigEntry('chat_enabled_yahoo', "Y");
+
+// CFG: CHAT-ENABLED-AOL
+$cfg->setConfigEntry('chat_enabled_aol', "Y");
+
+// CFG: CHAT-ENABLED-MSN
+$cfg->setConfigEntry('chat_enabled_msn', "Y");
+
+// CFG: USER-REGISTRATION
+$cfg->setConfigEntry('user_registration_class', "ShipSimuRegistration");
+
+// CFG: USER-LOGIN-CLASS
+$cfg->setConfigEntry('user_login_class', "ShipSimuUserLogin");
+
+// CFG: GUEST-LOGIN-CLASS
+$cfg->setConfigEntry('guest_login_class', "ShipSimuGuestLogin");
+
+// CFG: USER-STATUS-REGISTER
+$cfg->setConfigEntry('user_status_unconfirmed', "UNCONFIRMED");
+
+// CFG: USER-STATUS-GUEST
+$cfg->setConfigEntry('user_status_guest', "GUEST");
+
+// CFG: USER-STATUS-CONFIRMED
+$cfg->setConfigEntry('user_status_confirmed', "CONFIRMED");
+
+// CFG: LOGIN-HELPER-CLASS
+$cfg->setConfigEntry('login_helper_class', "ShipSimuLoginHelper");
+
+// CFG: AUTH-METHOD-CLASS
+$cfg->setConfigEntry('auth_method_class', "CookieAuth");
+
+// CFG: APP-LOGIN-URL
+$cfg->setConfigEntry('app_login_url', "index.php?app={?app_short_name?}&page=login_area");
+
+// CFG: LOGIN-FAILED-URL
+$cfg->setConfigEntry('login_failed_url', "index.php?app={?app_short_name?}&page=login_failed");
+
+// CFG: LOGOUT-DONE-URL
+$cfg->setConfigEntry('logout_done_url', "index.php?app={?app_short_name?}&page=logout_done");
+
+// CFG: LOGIN-USER-STATUS-URL
+$cfg->setConfigEntry('login_user_status_url', "index.php?app={?app_short_name?}&page=login_area&action=status_problem");
+
+// CFG: USER-NOT-UNCONFIRMED-URL
+$cfg->setConfigEntry('user_not_unconfirmed_url', "index.php?app={?app_short_name?}&page=status&status=unconfirmed_problem");
+
+// CFG: USER-UNCONFIRMED-EMAIL-MISSING-URL
+$cfg->setConfigEntry('user_unconfirmed_email_missing_url', "index.php?app={?app_short_name?}&page=status&status=unconfirmed_email_missing");
+
+// CFG: CONFIRM-CODE-INVALID-URL
+$cfg->setConfigEntry('confirm_code_invalid_url', "index.php?app={?app_short_name?}&page=status&status=confirm_code_invalid");
+
+// CFG: USER-NOT-FOUND-URL
+$cfg->setConfigEntry('user_not_found_url', "index.php?app={?app_short_name?}&page=status&status=user_not_found");
+
+// CFG: LOGIN-DEFAULT-ACTION
+$cfg->setConfigEntry('login_default_action', "welcome");
+
+// CFG: NEWS-READER-CLASS
+$cfg->setConfigEntry('news_reader_class', "DefaultNewsReader");
+
+// CFG: NEWS-DOWNLOAD-CLASS
+$cfg->setConfigEntry('news_download_class', "NewsDownloadFilter");
+
+// CFG: NEWS-PROCESS-CLASS
+$cfg->setConfigEntry('news_process_class', "NewsProcessFilter");
+
+// CFG: USER-AUTH-CLASS
+$cfg->setConfigEntry('user_auth_class', "UserAuthFilter");
+
+// CFG: USER-UPDATE-CLASS
+$cfg->setConfigEntry('user_update_class', "UserUpdateFilter");
+
+// CFG: USER-STATUS-CONFIRMED-CLASS
+$cfg->setConfigEntry('user_status_confirmed_class', "UserStatusConfimedUpdateFilter");
+
+// CFG: CAPTCHA-ENCRYPT-VALIDATOR-CLASS
+$cfg->setConfigEntry('captcha_encrypt_validator_class', "CaptchaEncryptFilter");
+
+// CFG: CAPTCHA-GUEST-VERIFIER-CLASS
+$cfg->setConfigEntry('captcha_guest_verifier_class', "GraphicalCodeCaptchaVerifierFilter");
+
+// CFG: CAPTCHA-USER-VERIFIER-CLASS
+$cfg->setConfigEntry('captcha_user_verifier_class', "GraphicalCodeCaptchaVerifierFilter");
+
+// CFG: CAPTCHA-REGISTER-VERIFIER-CLASS
+$cfg->setConfigEntry('captcha_register_verifier_class', "GraphicalCodeCaptchaVerifierFilter");
+
+// CFG: CONFIRM-CODE-VALIDATOR-CLASS
+$cfg->setConfigEntry('confirm_code_verifier_class', "ConfirmCodeVerifierFilter");
+
+// CFG: NEWS-HOME-LIMIT
+$cfg->setConfigEntry('news_home_limit', 10);
+
+// CFG: NEWS-LOGIN-AREA-LIMIT
+$cfg->setConfigEntry('news_login_area_limit', 15);
+
+// CFG: LOGIN-ENABLED
+$cfg->setConfigEntry('login_enabled', "Y");
+
+// CFG: CONFIRM-EMAIL-ENABLED
+$cfg->setConfigEntry('confirm_email_enabled', "Y");
+
+// CFG: LOGIN-DISABLED-REASON
+$cfg->setConfigEntry('login_disabled_reason', "Loginbereich befindet sich noch im Aufbau.");
+
+// CFG: LOGIN-TYPE
+$cfg->setConfigEntry('login_type', "username"); // username, email, both
+
+// CFG: EMAIL-CHANGE-ALLOWED
+$cfg->setConfigEntry('email_change_allowed', "Y");
+
+// CFG: EMAIL-CHANGE-CONFIRMATION
+$cfg->setConfigEntry('email_change_confirmation', "Y");
+
+// CFG: GUEST-LOGIN-ALLOWED
+$cfg->setConfigEntry('guest_login_allowed', "Y");
+
+// CFG: GUEST-LOGIN-USERNAME
+$cfg->setConfigEntry('guest_login_user', "guest");
+
+// CFG: GUEST-LOGIN-PASS
+$cfg->setConfigEntry('guest_login_passwd', "guest");
+
+// CFG: LOGIN-WELCOME-ACTION-CLASS
+$cfg->setConfigEntry('login_welcome_action_class', "ShipSimuLoginAction");
+
+// CFG: LOGIN-LOGOUT-ACTION-CLASS
+$cfg->setConfigEntry('login_logout_action_class', "ShipSimuLogoutAction");
+
+// CFG: LOGIN-PROFILE-ACTION-CLASS
+$cfg->setConfigEntry('login_profile_action_class', "ShipSimuProfileAction");
+
+// CFG: SHIPSIMU-REGISTER-CAPTCHA
+$cfg->setConfigEntry('todo_register_captcha', "GraphicalCodeCaptcha");
+
+// CFG: todo-USER-LOGIN-CAPTCHA
+$cfg->setConfigEntry('todo_user_login_captcha', "GraphicalCodeCaptcha");
+
+// CFG: todo-GUEST-LOGIN-CAPTCHA
+$cfg->setConfigEntry('todo_guest_login_captcha', "GraphicalCodeCaptcha");
+
+// CFG: CAPTCHA-STRING-LENGTH
+$cfg->setConfigEntry('captcha_string_length', 5);
+
+// CFG: CAPTCHA-SEARCH-CHARS
+$cfg->setConfigEntry('captcha_search_chars', "+/=");
+
+// CFG: RANDOM-STRING-LENGTH
+$cfg->setConfigEntry('random_string_length', 100);
+
+// CFG: todo-REGISTER-CAPTCHA-SECURED
+$cfg->setConfigEntry('todo_register_captcha_secured', "Y");
+
+// CFG: todo-USER-LOGIN-CAPTCHA-SECURED
+$cfg->setConfigEntry('todo_user_login_captcha_secured', "Y");
+
+// CFG: todo-GUEST-LOGIN-CAPTCHA-SECURED
+$cfg->setConfigEntry('todo_guest_login_captcha_secured', "Y");
+
+// CFG: BLOCK-SHOWS-REGISTRATION
+$cfg->setConfigEntry('block_shows_registration', "Y");
+
+// CFG: COMPANY-CLASS
+$cfg->setConfigEntry('company_class', "ShippingCompany");
+
+// CFG: COMPANY-DB-WRAPPER-CLASS
+$cfg->setConfigEntry('company_db_wrapper_class', "CompanyDatabaseWrapper");
+
+// CFG EMAIl-TPL-RESEND-LINK
+$cfg->setConfigEntry('email_tpl_resend_link', "text");
+
+// CFG: MAIL-TEMPLATE-ENGINE
+$cfg->setConfigEntry('mail_template_class', "MailTemplateEngine");
+
+// CFG: IMAGE-TEMPLATE-ENGINE
+$cfg->setConfigEntry('image_template_class', "ImageTemplateEngine");
+
+// CFG: ADMIN-EMAIL
+$cfg->setConfigEntry('admin_email', "you@some-hoster.invalid");
+
+// [EOF]
+?>
diff --git a/application/todo/debug.php b/application/todo/debug.php
new file mode 100644 (file)
index 0000000..f5da828
--- /dev/null
@@ -0,0 +1,61 @@
+<?php
+/**
+ * Some debugging stuff for this application
+ *
+ * @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/>.
+ */
+
+// Reederei-Objekt debuggen
+//define('DEBUG_COMPANY_OBJ', true);
+// Hafen-Objekt debuggen
+//define('DEBUG_HARBOR_OBJ', true);
+// Schiff-Objekt debuggen
+//define('DEBUG_SHIP_OBJ', true);
+// Auftrag-Objekt debuggen
+//define('DEBUG_CONTRACT_OBJ', true);
+// Haendler-Objekt debuggen
+//define('DEBUG_MERCHANT_OBJ', true);
+// Personal-Objekt debuggen
+//define('DEBUG_PERSONELL_OBJ', true);
+// Personal debuggen
+//define('DEBUG_PERSONELL', true);
+// Reederei debuggen
+//define('DEBUG_COMPANY', true);
+// Mitarbeiter debuggen
+//define('DEBUG_COMPANY_EMPLOYEE', true);
+// Hafen debuggen
+//define('DEBUG_HARBOR', true);
+// Werft debuggen
+//define('DEBUG_SHIPYARD', true);
+// Schiff debuggen
+//define('DEBUG_SHIP', true);
+// Schiffstruktur debuggen
+//define('DEBUG_STRUCTURE', true);
+// Kabinen debuggen
+//define('DEBUG_CABIN', true);
+// Decks debuggen
+//define('DEBUG_DECK', true);
+// Bauauftraege debuggen
+//define('DEBUG_CONTRACT', true);
+// Haendler debuggen
+//define('DEBUG_MERCHANT', true);
+
+// [EOF]
+?>
diff --git a/application/todo/exceptions.php b/application/todo/exceptions.php
new file mode 100644 (file)
index 0000000..c6310a3
--- /dev/null
@@ -0,0 +1,85 @@
+<?php
+/**
+ * The exception handler for this application
+ *
+ * @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/>.
+ */
+
+// Our own exception handler
+function __exceptionHandler (FrameworkException $e) {
+       // Call the app_die() method
+       ApplicationEntryPoint::app_die(sprintf("[Main:] The application <strong>%s</strong> (<strong>%s</strong>) has been terminated due to a thrown exception: <span id=\"exception_name\">%s</span> <span id=\"exception_number\">[%s]</span>: <span id=\"debug_exception\">%s</span> Backtrace: <div id=\"debug_backtrace\">%s</div>",
+               ApplicationHelper::getInstance()->getAppName(),
+               ApplicationHelper::getInstance()->getAppShortName(),
+               $e->__toString(),
+               $e->getHexCode(),
+               $e->getMessage(),
+               $e->getPrintableBackTrace()
+       ),
+               $e->getHexCode(),
+               $e->getExtraData()
+       );
+} // END - function
+
+// Set the new handler
+set_exception_handler('__exceptionHandler');
+
+// Error handler
+function __errorHandler ($errno, $errstr, $errfile, $errline, array $errcontext) {
+       // Construct the message
+       $message = sprintf("File: <span id=\"debug_file\">%s</span>, Line: <span id=\"debug_line\">%s</span>, Code: <span id=\"debug_code\">%s</span>, Message: <span id=\"debug_message\">%s</span>",
+               basename($errfile),
+               $errline,
+               $errno,
+               $errstr
+       );
+
+       // Throw an exception here
+       throw new FatalErrorException($message, BaseFrameworkSystem::EXCEPTION_FATAL_ERROR);
+} // END - function
+
+// Set error handler
+set_error_handler('__errorHandler');
+
+// Assertion handler
+function __assertHandler ($file, $line, $code) {
+       // Empty code?
+       if ($code === "") $code = "<em>Unknown</em>";
+
+       // Create message
+       $message = sprintf("File: <span id=\"debug_file\">%s</span>, Line: <span id=\"debug_line\">%s</span>, Code: <span id=\"debug_code\">%s</span>",
+               basename($file),
+               $line,
+               $code
+       );
+
+       // Throw an exception here
+       throw new AssertionException($message, BaseFrameworkSystem::EXCEPTION_ASSERTION_FAILED);
+} // END - function
+
+// Init assert handling
+assert_options(ASSERT_ACTIVE,     1);
+assert_options(ASSERT_WARNING,    0);
+assert_options(ASSERT_BAIL,       0);
+assert_options(ASSERT_QUIET_EVAL, 0);
+assert_options(ASSERT_CALLBACK,   '__assertHandler');
+
+// [EOF]
+?>
diff --git a/application/todo/exceptions/.htaccess b/application/todo/exceptions/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/init.php b/application/todo/init.php
new file mode 100644 (file)
index 0000000..38482f9
--- /dev/null
@@ -0,0 +1,68 @@
+<?php
+/**
+ * Application initializer
+ *
+ * Please remember that this include file is being loaded *before* the class
+ * loader is loading classes from "exceptions", "interfaces" and "main"!
+ *
+ * You can prevent adding this application to the selector by uncommenting the
+ * following line:
+ *
+ * if ((isset($this)) && (is_object($this)) && ($this->isClass("ApplicationSelector"))) { return; }
+ *
+ * isset() is required to prevent a warning and is_object() is highly required
+ * when the application itself is requested in URL (hint: index.php?app=your_app)
+ *
+ * @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/>.
+ */
+
+// Initialize output system
+require(PATH . 'inc/output.php');
+
+// Initialize file i/o system
+require(PATH . 'inc/file_io.php');
+
+// Include the language sub-system
+require(PATH . 'inc/language.php');
+
+// This application needs a database connection then we have to simply include
+// the inc/database.php script
+require(PATH . 'inc/database.php');
+
+// Generate call-back function
+$callback = sprintf("%s::getInstance",
+       FrameworkConfiguration::getInstance()->readConfig('app_helper_class')
+);
+
+// Get an instance of the helper
+$app = call_user_func_array($callback, array());
+
+// Set application name and version
+$app->setAppName("OpenToDo");
+$app->setAppVersion("0.0.0");
+$app->setAppShortName("todo");
+
+// Set instances
+$app->setFileIoInstance($io);
+$app->setLanguageInstance($lang);
+$app->setDatabaseInstance($db);
+
+// [EOF]
+?>
diff --git a/application/todo/interfaces/.htaccess b/application/todo/interfaces/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/loader.php b/application/todo/loader.php
new file mode 100644 (file)
index 0000000..12b388b
--- /dev/null
@@ -0,0 +1,39 @@
+<?php
+/**
+ * A specialized class loader for this class
+ *
+ * @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/>.
+ */
+
+// Get config instance
+$cfg = FrameworkConfiguration::getInstance();
+
+// Load all classes for the application
+foreach ($lowerClasses as $className) {
+       // Load the application classes
+       ClassLoader::getInstance()->loadClasses(sprintf("%s/%s/%s", $cfg->readConfig('application_path'), $cfg->readConfig('app_name'), $className));
+} // END - if
+
+// Clean up the global namespace
+unset($lowerClasses);
+unset($className);
+
+// [EOF]
+?>
diff --git a/application/todo/main/.htaccess b/application/todo/main/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/main/class_ b/application/todo/main/class_
new file mode 100644 (file)
index 0000000..df22004
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+/**
+ * 
+ *
+ * @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  extends BaseFrameworkSystem {
+       /**
+        * Protected constructor
+        *
+        * @return      void
+        */
+       protected function __construct () {
+               // Call parent constructor
+               parent::__construct(__CLASS__);
+
+               // Clean up a little
+               $this->removeNumberFormaters();
+               $this->removeSystemArray();
+       }
+}
+
+// [EOF]
+?>
diff --git a/application/todo/starter.php b/application/todo/starter.php
new file mode 100644 (file)
index 0000000..b1530f7
--- /dev/null
@@ -0,0 +1,53 @@
+<?php
+/**
+ * The application launcher
+ *
+ * @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/>.
+ */
+
+// Is there an application helper instance? We need the method main() for
+// maining the application
+$app = call_user_func_array(array(FrameworkConfiguration::getInstance()->readConfig('app_helper_class'), "getInstance"), array());
+
+// Some sanity checks
+if ((empty($app)) || (is_null($app))) {
+       // Something went wrong!
+       ApplicationEntryPoint::app_die(sprintf("[Main:] The application <strong>%s</strong> could not be launched because the helper class <strong>%s</strong> is not loaded.",
+               $application,
+               FrameworkConfiguration::getInstance()->readConfig('app_helper_class')
+       ));
+} elseif (!is_object($app)) {
+       // No object!
+       ApplicationEntryPoint::app_die(sprintf("[Main:] The application <strong>%s</strong> could not be launched because &#39;app&#39; is not an object.",
+               $application
+       ));
+} elseif (!method_exists($app, FrameworkConfiguration::getInstance()->readConfig('entry_method'))) {
+       // Method not found!
+       ApplicationEntryPoint::app_die(sprintf("[Main:] The application <strong>%s</strong> could not be launched because the method <strong>%s</strong> is missing.",
+               $application,
+               FrameworkConfiguration::getInstance()->readConfig('entry_method')
+       ));
+}
+
+// Call user function
+call_user_func_array(array($app, FrameworkConfiguration::getInstance()->readConfig('entry_method')), array());
+
+// [EOF]
+?>
diff --git a/application/todo/templates/.htaccess b/application/todo/templates/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/de/.htaccess b/application/todo/templates/de/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/de/code/action_login_logout.ctp b/application/todo/templates/de/code/action_login_logout.ctp
new file mode 100644 (file)
index 0000000..4dd47d9
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_now_link', 'index.php?app={?app_short_name?}&amp;page=logout');
+
+// Set link text
+$helper->addLinkWithTextById('logout_now_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'return_login_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
+
+// Set link text
+$helper->addLinkWithTextById('return_login_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+// [EOF]
+?>
+<div id="logout_box">
+       <div id="logout_header">
+               Willst du dich wirklich aus dem Blog aussloggen?
+       </div>
+
+       <div id="logout_links">
+               {?logout_now_link?} | {?return_login_link?}
+       </div>
+</div>
diff --git a/application/todo/templates/de/code/action_login_profile.ctp b/application/todo/templates/de/code/action_login_profile.ctp
new file mode 100644 (file)
index 0000000..7789806
--- /dev/null
@@ -0,0 +1,117 @@
+<?php
+// Get helper instance for web forms. This will add the opening form-tag to
+// the helper's render cache which is simply a small variable in the class
+// BaseHelper.
+$helper = WebFormHelper::createWebFormHelper($this, "todo_profile");
+
+// Pre-fetch field data with a given registry key
+$helper->prefetchValueInstance('user');
+
+// Password can only be changed when the old one is entered and new one twice!
+$helper->addFormGroup('pass', "Neues Passwort einrichten:");
+$helper->addFormSubGroup('pass', "Bitte gebe zum &Auml;ndern deines Passwortes zweimal das gew&uuml;nschte neue Passwort ein.");
+$helper->addFieldText('pass1', "Neues Passwort:");
+$helper->addInputPasswordField('pass1');
+$helper->addFieldText('pass2', "Neues Passwort, Wiederholung:");
+$helper->addInputPasswordField('pass2');
+
+// Display current email
+$helper->addFormNote('current_email', "Derzeitige Email-Adresse: <span id=\"displayed_field\">".$helper->getValueField('email')."</span>");
+
+// Only for changing email address
+if ($helper->ifEmailChangeAllowed()) {
+       $helper->addFormGroup('email', "&Auml;nderung deiner Email-Addresse:");
+       $helper->addFormSubGroup('email', "Gebe nur deine Email-Adresse zweimal ein, wenn du diese &auml;ndern m&ouml;chtest!");
+       $helper->addFieldText('email1', "Email-Adresse:");
+       $helper->addInputTextField('email1');
+       $helper->addFieldText('email2', "Wiederholung Email-Adresse:");
+       $helper->addInputTextField('email2');
+
+       if ($helper->ifEmailMustBeUnique()) {
+               $helper->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Blog verwendet worden sein.");
+       } // END - Unique email addresses
+
+       if ($helper->ifEmailChangeRequireConfirmation()) {
+               $helper->addFormNote('confirm_link', "Es wird ein Best&auml;tigungslink an deine neue Email-Adresse gesendet. Bitte klicke diesen dann m&ouml;glichst schnell an.");
+       } // END - Change requires confirmation
+} // END - email change allowed
+
+$helper->addFormGroup('profile', "Hier kannst du deine Profildaten &auml;ndern.");
+
+// Persoenliche Daten mit in der Anmeldung abfragen?
+if ($helper->ifRegisterIncludesPersonaData()) {
+       $helper->addFormSubGroup('persona', "Wenn du magst, dann vervollst&auml;ndige deine komplette Adresse mit deinem Namen.");
+       $helper->addFieldText('surname', "Dein Vorname:");
+       $helper->addInputTextFieldWithDefault('surname');
+       $helper->addFieldText('family', "Dein Nachname:");
+       $helper->addInputTextFieldWithDefault('family');
+       $helper->addFieldText('street', "Strasse und Hausnummer:");
+       $helper->addInputTextFieldWithDefault('street');
+       $helper->addFieldText('city', "Wohnort:");
+       $helper->addInputTextFieldWithDefault('city');
+} // END - Persona data
+
+$helper->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
+$helper->addFieldText('zip', "Postleitzahl:");
+$helper->addInputTextFieldWithDefault('zip');
+
+$helper->addFormSubGroup('chat', "Gebe hier deine Nicknames bzw. Nummern an:");
+
+if ($helper->ifChatEnabled('icq')) {
+       $helper->addFieldText('icq', "ICQ-Nummer:");
+       $helper->addInputTextFieldWithDefault('icq');
+} // END - if
+
+if ($helper->ifChatEnabled('jabber')) {
+       $helper->addFieldText('jabber', "Jabber:");
+       $helper->addInputTextFieldWithDefault('jabber');
+} // END - if
+
+if ($helper->ifChatEnabled('yahoo')) {
+       $helper->addFieldText('yahoo', "Yahoo!:");
+       $helper->addInputTextFieldWithDefault('yahoo');
+} // END - if
+
+if ($helper->ifChatEnabled('aol')) {
+       $helper->addFieldText('aol', "AOL-Screenname:");
+       $helper->addInputTextFieldWithDefault('aol');
+} // END - if
+
+if ($helper->ifChatEnabled('msn')) {
+       $helper->addFieldText('msn', "MSN:");
+       $helper->addInputTextFieldWithDefault('msn');
+} // END - if
+
+if (!$helper->ifRegisterRequiresEmailVerification()) {
+       $helper->addFormExtraNote(1, "Die Benachrichtigungen per sind im Loginbereich verfeinerbar, welche du genau haben willst.");
+} // END - Extra note
+
+// Rules already accepted?
+if ($helper->ifRulesHaveChanged()) {
+       $helper->addFormGroup('rules', "Bitte lese dir die Blogeregeln gut durch und kreuze dann &quot;Ja, ich akzeptiere die aktuellen Blogregeln&quot; an.");
+       $helper->addFieldText('rules', "Ja, ich akzeptiere die aktuellen Blogregeln:");
+       $helper->addInputCheckboxField('rules', false);
+} else {
+       $helper->addFormNote('rules_accepted', "Du hast die aktuellen Blogregeln akzeptiert. Vielen Dank!");
+       $helper->addInputHiddenField('rules', "1");
+}
+
+// Ask again for current account password
+$helper->addFormGroup('pass_old', "Bitte gebe zur Best&auml;tigung der &Auml;nderungen dein derzeitiges Passwort ein.");
+$helper->addFieldText('pass_old', "Altes Passwort:");
+$helper->addInputPasswordField('pass_old');
+
+// Abschliessender Hinweis und Abschluss des Formulars
+$helper->addFormGroup('buttons', "Sind alle Daten nun korrekt eingegeben? Dann sende sie mit einem Klick einfach ab!");
+$helper->addInputResetButton("Alles nochmal eingeben");
+$helper->addInputSubmitButton("Accountdaten aktualisieren");
+$helper->addFormNote('data_protection', "Deine Daten werden nach den g&uuml;ltigen Datenschutzgesetzten gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link &quot;Datenschutz&quot;.");
+$helper->flushContent();
+?>
+<div id="content_header">
+       Deine Profildaten bearbeiten
+</div>
+
+<div id="profile_box">
+       {?todo_profile?}
+</div>
diff --git a/application/todo/templates/de/code/action_login_status_problem.ctp b/application/todo/templates/de/code/action_login_status_problem.ctp
new file mode 100644 (file)
index 0000000..88a47b1
--- /dev/null
@@ -0,0 +1,67 @@
+<?php
+// Get helper instance for web forms. This will add the opening form-tag to
+// the helper's render cache which is simply a small variable in the class
+// BaseHelper.
+$helper = WebFormHelper::createWebFormHelper($this, "resend_link");
+
+// Pre-fetch field data with a given registry key
+$helper->prefetchValueInstance('user');
+
+// Add submit button or notice
+if ($helper->ifUserAccountUnconfirmed()) {
+       // Add submit button
+       $helper->addInputHiddenFieldWithDefault('email');
+       $helper->addInputSubmitButton("Best&auml;tigungslink erneut aussenden");
+} elseif ($helper->ifUserAccountLocked()) {
+       // Account is locked
+       $helper->addFormNote('status_locked', "Dein Account wurde gesperrt! Grund der Sperre:
+               <span id=\"lock_reason\">".$helper->getValueField('lock_reason')."</span>
+               Bitte melde dich beim Support, damit dieser dir weiterhelfen kann."
+       );
+} elseif ($helper->ifUserAccountGuest()) {
+       // Account is guest account
+       $helper->addFormNote('status_guest', "G&auml;steaccounts sind in der Funktionalit&auml;t
+               leicht eingeschr&auml;nkt. Bitte melde dich an, damit du ein
+               vollwertiges Account bekommst."
+       );
+}
+
+// Flush content and automatically close the form
+$helper->flushContent();
+
+if ($helper->ifUserAccountUnconfirmed()) {
+       // Build the form for confirmation
+       $helper = WebFormHelper::createWebFormHelper($this, "confirm_code");
+
+       // Add code box
+       $helper->addFormGroup('code', "Bitte gebe hier den Best&auml;tigungscode aus der Willkommensemail ein. Solltest du diese nicht erhalten haben, kannst du dir diesen jetzt zusenden lassen.");
+       $helper->addFieldText('code', "Best&auml;tigungscode aus der Mail:");
+       $helper->addInputTextField('code');
+
+       // Add submit button
+       $helper->addFormGroup('buttons', "Bitte einmal abschicken und das Ergebnis abwarten!");
+       $helper->addInputResetButton("Nochmal eingeben");
+       $helper->addInputSubmitButton("Best&auml;tigungscode absenden");
+
+       // Flush content and automatically close the form
+       $helper->flushContent();
+} // END - if
+?>
+<div id="content_header">
+       Problem mit deinem Account gefunden:
+</div>
+
+<div id="status_box">
+       Du bist m&ouml;glicherweise f&uuml;r deine ausgew&auml;hlte Aktion nicht
+       berechtigt oder du hast noch deine Email-Adresse nicht best&auml;tigt. Du
+       kannst dir nun den Best&auml;tigungslink erneut aussenden lassen, oder den
+       Best&auml;tigungscode unten eingeben.
+
+       <div id="resend_link_box">
+               {?resend_link?}
+       </div>
+
+       <div id="confirm_code_box">
+               {?confirm_code?}
+       </div>
+</div>
diff --git a/application/todo/templates/de/code/action_login_welcome.ctp b/application/todo/templates/de/code/action_login_welcome.ctp
new file mode 100644 (file)
index 0000000..538a8d1
--- /dev/null
@@ -0,0 +1,3 @@
+<div id="news_frame">
+       {?todo_login_news?}
+</div>
diff --git a/application/todo/templates/de/code/block_persona_data.ctp b/application/todo/templates/de/code/block_persona_data.ctp
new file mode 100644 (file)
index 0000000..e92df8a
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+// Get a helper instance for the profile link (and maybe later more!)
+$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'profile_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
+
+// Prefetch user instance
+$helperInstance->prefetchValueInstance('user');
+
+// Flush the content out
+$helperInstance->flushContent();
+
+// End of PHP commands
+?>
+<div class="user_name_div">
+       Nickname: <span class="user_name">{?block_username?}</span>
+</div>
+<div class="user_status_div">
+       Account-Status: <span class="user_status">{?block_user_status?}</span>
+</div>
+<div class="user_profile_div">
+       {?profile_link?}
+</div>
+<div class="user_registered_div">
+       Angemeldet seit: <span class="registered">{?block_registered?}</span>
+</div>
diff --git a/application/todo/templates/de/code/captch_graphic_code.ctp b/application/todo/templates/de/code/captch_graphic_code.ctp
new file mode 100644 (file)
index 0000000..400a861
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+// Get a helper instance without a form tag
+$captchaHelper = WebFormHelper::createWebFormHelper($this, 'captcha_code', false, false);
+$captchaHelper->addFieldText('captcha_code', "Bitte wiederhole den Code:");
+$captchaHelper->addInputTextField('c_code');
+$captchaHelper->addInputHiddenField('hash', $this->readVariable('captcha_hash'));
+$captchaHelper->flushContent();
+
+// [EOF]
+?>
+<div class="captcha_image">
+       <img src="$config[base_url]/index.php?app={?app_short_name?}&amp;page=code_captcha&amp;encrypt={?encrypted_code?}&amp;response=image" alt="CAPTCHA-Bild" title="CAPTCHA-Bild" class="captcha_img" />
+</div>
+<div class="captcha_code">
+       {?captcha_code?}
+</div>
diff --git a/application/todo/templates/de/code/confirm_link.ctp b/application/todo/templates/de/code/confirm_link.ctp
new file mode 100644 (file)
index 0000000..eaf8060
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'direct_login_link', 'index.php?app={?app_short_name?}&amp;page=login');
+
+// Set link text
+$helper->addLinkWithTextById('direct_login_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+// [EOF]
+?>
+<div id="content_header">
+       Best&auml;tigung Deiner Email-Adresse:
+</div>
+
+<div id="content_body">
+       Hallo <span class="data_username">{?username?}</span>! Du hast heute deine
+       Email-Addresse best&auml;tigt, wodurch alle Blogfunktionen entsperrt
+       worden sind. Viel Spass beim Bloggen!
+</div>
+
+<div id="content_footer">
+       {?direct_login_link?}
+</div>
diff --git a/application/todo/templates/de/code/footer.ctp b/application/todo/templates/de/code/footer.ctp
new file mode 100644 (file)
index 0000000..aa82e68
--- /dev/null
@@ -0,0 +1,4 @@
+</div> <!-- masterbox //-->
+
+</body>
+</html>
diff --git a/application/todo/templates/de/code/header.ctp b/application/todo/templates/de/code/header.ctp
new file mode 100644 (file)
index 0000000..1c92a39
--- /dev/null
@@ -0,0 +1,20 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
+<head>
+       <title>
+               {?app_full_name?} - {?title?}
+       </title>
+
+       <meta name="author" content="$config[meta_author]" />
+       <meta name="publisher" content="$config[meta_publisher]" />
+       <meta name="keywords" content="$config[meta_keywords]" />
+       <meta name="robots" content="index,follow" />
+       <meta name="description" content="$config[meta_description]" />
+       <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+       <meta http-equiv="content-style-type" content="text/css" />
+       <meta http-equiv="content-script-type" content="text/javascript" />
+       <meta http-equiv="language" content="de" />
+</head>
+
+<body>
+<div id="masterbox">
diff --git a/application/todo/templates/de/code/home.ctp b/application/todo/templates/de/code/home.ctp
new file mode 100644 (file)
index 0000000..d04b0a4
--- /dev/null
@@ -0,0 +1,3 @@
+<div id="content_header">
+       Willkommen zu {?app_full_name?} v{?app_version?}
+</div>
diff --git a/application/todo/templates/de/code/login_failed.ctp b/application/todo/templates/de/code/login_failed.ctp
new file mode 100644 (file)
index 0000000..dc67766
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'login_retry_link', 'index.php?app={?app_short_name?}&amp;page=login');
+
+// Set link text
+$helper->addLinkWithTextById('login_retry_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+// [EOF]
+?>
+<div id="content_header">
+       Du bist nicht mehr im Blog eingeloggt!
+</div>
+
+<div id="content_body">
+       Du bist nicht mehr im {?app_full_name?} Blog eingeloggt. Dies kann verschiedene Gr&uuml;nde haben:
+
+       <ol id="login_failed_list">
+               <li>Dein Browser nimmt keine Cookies an.</li>
+               <li>Du hast den Loginbereich aus deinen Bookmarks/Favoriten aufgerufen
+                       und die Cookies sind gel&ouml;scht.</li>
+               <li>Es besteht ein Problem mit dem Server, wof&uuml;r du meistens nichts
+                       kannst. Bitte kontaktiere den Support, falls dieses Problem
+                       weiterhin besteht.</li>
+       </ol>
+
+       Wenn du den Support kontaktierst, halte bitte s&auml;mtliche relevante
+       Informationen - <span class="important_note">nicht aber dein Passwort</span>
+       - bereit. Du kannst auch einen Screenshot dieser Seite anfertigen und dem
+       Support diesen senden!
+</div>
+
+<div id="content_footer">
+       <div id="login_retry">
+               {?login_retry_link?}
+       </div>
+
+       Vielen Dank f&uuml;r deine Mitarbeit! :-)
+</div>
diff --git a/application/todo/templates/de/code/login_form.ctp b/application/todo/templates/de/code/login_form.ctp
new file mode 100644 (file)
index 0000000..605c2bb
--- /dev/null
@@ -0,0 +1,98 @@
+<?php
+// Get helper instance for web forms. This will add the opening form-tag to
+// the helper's render cache which is simply a small variable in the class
+// BaseHelper.
+$helper = WebFormHelper::createWebFormHelper($this, 'todo_user_login');
+
+// Formular deaktiviert?
+if ($helper->ifLoginIsEnabled()) {
+       // Formular ist aktiv
+       $helper->addFormGroup('login', "Gebe hier deine Logindaten ein:");
+
+       // Welches Loginverfahren wurde konfiguriert?
+       if ($helper->ifLoginWithUsername()) {
+               // Login mit Username
+               $helper->addFormSubGroup('username', "Bitte mit deinem Nickname einloggen.");
+               $helper->addFieldText('username', "Dein Nickname:");
+               $helper->addInputTextField('username');
+       } elseif ($helper->ifLoginWithEmail()) {
+               // Login mit Email
+               $helper->addFormSubGroup('email', "Bitte mit deiner Email-Adresse einloggen.");
+               $helper->addFieldText('email', "Deine Email-Addresse:");
+               $helper->addInputTextField('email');
+       } else {
+               // Login mit Email/Username
+               $helper->addFormSubGroup('user_email', "Bitte mit deinem Nickname oder Email-Adresse einloggen.");
+               $helper->addFieldText('user_email', "Dein Nickname/Email:");
+               $helper->addInputTextField('user_email');
+       }
+
+       $helper->addFormSubGroup('pass', "Gebe dein Passwort von der Anmeldung ein.");
+       $helper->addFieldText('pass', "Dein Passwort:");
+       $helper->addInputPasswordField('pass');
+
+       // CAPTCHA enabled?
+       if ($helper->ifFormSecuredWithCaptcha()) {
+               $helper->addFormGroup('captcha_user', "Unser Benuzter-Login ist durch ein CAPTCHA gesch&uuml;tzt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
+               $helper->addCaptcha();
+       } // END - if
+
+       // Submit buttons
+       $helper->addFormGroup('buttons_user', "Alles richtig eingegeben?");
+       $helper->addInputResetButton("Formular leeren");
+       $helper->addInputSubmitButton("Zum Blog einloggen");
+} else {
+       // Formular deaktiviert
+       $helper->addFormNote('form_deactivated', "Einloggen in diesen Blog ist derzeit administrativ deaktiviert worden. Bitte komme sp&auml;ter noch mal wieder.");
+       $helper->addFormNote('admin_notice', "Nachricht vom Admin: <span id=\"disabled_reason\">".$this->getConfigInstance()->readConfig('login_disabled_reason')."</span>");
+}
+
+// Formular schliessen
+$helper->flushContent();
+
+// Ist Gastlogin erlaubt?
+if ($helper->ifGuestLoginAllowed()) {
+       // Neue Helper-Instanz holen
+       $helper = WebFormHelper::createWebFormHelper($this, 'todo_guest_login');
+       $helper->addInputHiddenConfiguredField('user', 'guest_login');
+       $helper->addInputHiddenConfiguredField('passwd', 'guest_login');
+
+       // CAPTCHA enbaled?
+       if ($helper->ifFormSecuredWithCaptcha()) {
+               $helper->addFormGroup('captcha_guest', "Unser Gast-Login ist durch ein CAPTCHA gesch&uuml;tzt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
+               $helper->addCaptcha();
+       } // END - if
+
+       // Submit button
+       $helper->addFormGroup('buttons_guest', "Gastlogins sind in der Funkionsweise eingeschr&auml;nkt. Mehr dazu unter &quot;Gastlogin&quot;.");
+       $helper->addInputSubmitButton("Als Gast einloggen");
+       $helper->flushContent();
+}
+
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&amp;page=register');
+
+// Set link text
+$helper->addLinkWithTextById('register_login_form_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+?>
+<div id="content_header">
+       Einloggen zu <span class="app_name">{?app_full_name?}</span>
+</div>
+
+<div id="content_body">
+       <div id="login_box">
+               {?todo_user_login?}
+       </div>
+
+       <div id="guest_login">
+               {?todo_guest_login?}
+       </div>
+</div>
+
+<div id="content_footer">
+       Noch kein Loginaccount? {?register_login_form_link?}
+</div>
diff --git a/application/todo/templates/de/code/login_main.ctp b/application/todo/templates/de/code/login_main.ctp
new file mode 100644 (file)
index 0000000..df6c2ba
--- /dev/null
@@ -0,0 +1,96 @@
+<?php
+///////////////////////////////
+// Assign personal user data //
+///////////////////////////////
+
+// Get a new instance for personal data
+$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'persona_data');
+
+// Set the data source instance which must exist in registry
+$blockInstance->prefetchValueInstance('user');
+
+// Assign fields with template variables
+$blockInstance->assignField('username');
+$blockInstance->assignFieldWithFilter('user_status', "user_status_translator");
+
+// Shall we include registration date?
+if ($blockInstance->ifIncludeRegistrationStamp()) {
+       // Then assign it as well!
+       $blockInstance->assignFieldWithFilter('registered', 'formatTimestamp');
+} // END - if
+
+// Flush the content out to a template variable
+$blockInstance->flushContent();
+
+//////////////////////////////////////
+// Assign the shipping company data //
+//////////////////////////////////////
+
+// Get a new instance for personal data
+$blockInstance = WebBlockHelper::createWebBlockHelper($this, 'company_data');
+
+// Set the data source instance
+$blockInstance->prefetchValueInstance('company', 'user');
+
+// Assign the company name
+if ($blockInstance->getValueInstance()->ifUserIsFounder()) {
+       // User is the founder of the company
+       $blockInstance->assignMessageField('company_status', "user_is_company_founder");
+       $blockInstance->assignLinkFieldWithAction('company_link' , "company_overview");
+       $blockInstance->assignMessageField('company_link_text', "link_text_company_overview");
+       $blockInstance->assignMessageField('company_link_title', "link_title_company_overview");
+} elseif ($blockInstance->getValueInstance()->ifUserIsOwner()) {
+       // User owns the company
+       $blockInstance->assignMessageField('company_status', "user_is_company_owner");
+       $blockInstance->assignLinkFieldWithAction('company_link' , "company_overview");
+       $blockInstance->assignMessageField('company_link_text', "link_text_company_overview");
+       $blockInstance->assignMessageField('company_link_title', "link_title_company_overview");
+} elseif ($blockInstance->getValueInstance()->ifUserIsEmployee()) {
+       // User is employed in company
+       $blockInstance->assignMessageField('company_status', "user_is_employed_in_company");
+       $blockInstance->assignLinkFieldWithAction('company_link' , "employee_overview");
+       $blockInstance->assignMessageField('company_link_text', "link_text_employee_overview");
+       $blockInstance->assignMessageField('company_link_title', "link_title_employee_overview");
+} else {
+       // No company participation!
+       $blockInstance->assignMessageField('company_status', "user_not_assigned_company");
+       $blockInstance->assignLinkFieldWithAction('company_link' , "company");
+       $blockInstance->assignMessageField('company_link_text', "link_text_company");
+       $blockInstance->assignMessageField('company_link_title', "link_title_company");
+}
+
+// Flush the content out to a template variable
+$blockInstance->flushContent();
+
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'logout_action_link', 'index.php?app={?app_short_name?}&amp;page=login_area');
+
+// Add action
+$helper->addActionLink('logout', "Ausloggen");
+
+// Flush the content
+$helper->flushContent();
+
+// End of all PHP commands
+?>
+<div id="content_header">
+       Willkommen im Loginbereich  von {?app_full_name?}!
+</div>
+
+<div id="content_body">
+       {?login_content?}
+</div>
+
+<div id="persona_data" title="Informationen zu Deinem Loginaccount">
+       <div id="persona_header">
+               Account-Infos:
+       </div>
+
+       <div id="persona_body">
+               {?persona_data?}
+       </div>
+
+       <div id="logout_link">
+               {?logout_action_link?}
+       </div>
+</div>
diff --git a/application/todo/templates/de/code/logout_done.ctp b/application/todo/templates/de/code/logout_done.ctp
new file mode 100644 (file)
index 0000000..be8a24b
--- /dev/null
@@ -0,0 +1,19 @@
+<?php
+// Get helper instance
+$helper = WebLinkHelper::createWebLinkHelper($this, 'relogin_link', 'index.php?app={?app_short_name?}&amp;page=login');
+
+// Set link text
+$helper->addLinkWithTextById('relogin_link_text');
+
+// Flush the content
+$helper->flushContent();
+
+// [EOF]
+?>
+<div id="content_header">
+       Du bist jetzt aus dem Blog ausgeloggt!
+</div>
+
+<div id="content_body">
+       Du kannst dich nun {?relogin_link}? oder weiter auf unseren Seiten bleiben. ;-)
+</div>
diff --git a/application/todo/templates/de/code/mail_debug.ctp b/application/todo/templates/de/code/mail_debug.ctp
new file mode 100644 (file)
index 0000000..e62dd07
--- /dev/null
@@ -0,0 +1,25 @@
+<div class="debug_header">
+       Mail-Debug-Ausgabe:
+</div>
+
+<div class="mail_header">
+       <div class="mail_header_line">
+               <span class="mail_sender">Von:</span> <span class="mail_info">{?sender?}</span>
+       </div>
+       <div class="mail_header_line">
+               <span class="mail_recipient">An:</span> <span class="mail_info">{?recipient?}</span>
+       </div>
+       <div class="mail_header_line">
+               <span class="mail_subject">Betreff:</span> <span class="mail_info">{?subject?}</span>
+       </div>
+</div>
+
+<div class="mail_text_box">
+       <div class="mail_message">
+               Nachricht:
+       </div>
+
+       <div class="mail_content">
+               {?message?}
+       </div>
+</div>
diff --git a/application/todo/templates/de/code/register_form.ctp b/application/todo/templates/de/code/register_form.ctp
new file mode 100644 (file)
index 0000000..f5b53bf
--- /dev/null
@@ -0,0 +1,115 @@
+<?php
+// Get helper instance for web forms. This will add the opening form-tag to
+// the helper's render cache which is simply a small variable in the class
+// BaseHelper.
+$helper = WebFormHelper::createWebFormHelper($this, 'todo_register');
+
+// Always ask at least for nickname and password
+$helper->addFormGroup('login', "Bitte gebe hier gew&uuml;nschten Nickname und dein Zugangspasswort ein.");
+$helper->addFormSubGroup('username', "Dein Nickname wird erst nach Absenden des Formulares gepr&uuml;ft. Sp&auml;ter bauen wir dann einen automatischen Test ein, der dir sofort zeigt, ob der Nickname bereits vergeben ist.");
+$helper->addFieldText('username', "Nickname im Blog:");
+$helper->addInputTextField('username');
+$helper->addFormSubGroup('pass', "Dein Passwort sollte nicht zu leicht erratbar sein. Sp&auml;ter bauen wir hier noch einen automatischen Test ein, der dir sofort die Passwortst&auml;rke anzeigt.");
+$helper->addFieldText('pass1', "Passwort:");
+$helper->addInputPasswordField('pass1');
+$helper->addFieldText('pass2', "Passwortwiederholung:");
+$helper->addInputPasswordField('pass2');
+
+if ($helper->ifRegisterRequiresEmailVerification()) {
+       $helper->addFormGroup('email', "Bitte gebe deine Email zweimal (ein zweites Mal zur Best&auml;tigung) ein, damit wir dir deinen Freischaltlink zusenden k&ouml;nnen.");
+       $helper->addFieldText('email1', "Email-Adresse:");
+       $helper->addInputTextField('email1');
+       $helper->addFieldText('email2', "Wiederholung Email-Adresse:");
+       $helper->addInputTextField('email2');
+
+       if ($helper->ifEmailMustBeUnique()) {
+               $helper->addFormNote('email', "Die von dir eingegebene Email-Adresse darf nur einmal im Blog verwendet worden sein.");
+       } // END - Unique email addresses
+
+} // END - email verification
+
+if ($helper->ifRegisterIncludesProfile()) {
+       $helper->addFormGroup('profile', "Hier kannst du zus&auml;tzlich deine Profildaten vorweg eingeben, du kannst sie aber auch nach dem Login vervollst&auml;ndigen!");
+
+       if (!$helper->ifRegisterRequiresEmailVerification()) {
+               $helper->addFormSubGroup('email', "Die Angabe deiner Email-Adresse ist nur dann n&ouml;tig, wenn du auch Email-Benachrichtigungen (<span id=\"add_note\">*1</span>) haben m&ouml;chtest.");
+               $helper->addFieldText('email1', "Email-Adresse:");
+               $helper->addInputTextField('email1');
+       } // END - No email verification
+
+       // Persoenliche Daten mit in der Anmeldung abfragen?
+       if ($helper->ifRegisterIncludesPersonaData()) {
+               $helper->addFormSubGroup('persona', "Wenn du magst, dann vervollst&auml;ndige deine komplette Adresse mit deinem Namen.");
+               $helper->addFieldText('surname', "Dein Vorname:");
+               $helper->addInputTextField('surname');
+               $helper->addFieldText('family', "Dein Nachname:");
+               $helper->addInputTextField('family');
+               $helper->addFieldText('street', "Strasse und Hausnummer:");
+               $helper->addInputTextField('street');
+               $helper->addFieldText('city', "Wohnort:");
+               $helper->addInputTextField('city');
+       } // END - Persona data
+
+       $helper->addFormSubGroup('zip', "Magst du uns auch deine Postleitzahl verraten?");
+       $helper->addFieldText('zip', "Postleitzahl:");
+       $helper->addInputTextField('zip');
+
+       $helper->addFormSubGroup('chat', "Gebe hier deine Nicknames bzw. Nummern an:");
+
+       if ($helper->ifChatEnabled('icq')) {
+               $helper->addFieldText('icq', "ICQ-Nummer:");
+               $helper->addInputTextField('icq');
+       } // END - if
+
+       if ($helper->ifChatEnabled('jabber')) {
+               $helper->addFieldText('jabber', "Jabber:");
+               $helper->addInputTextField('jabber');
+       } // END - if
+
+       if ($helper->ifChatEnabled('yahoo')) {
+               $helper->addFieldText('yahoo', "Yahoo!:");
+               $helper->addInputTextField('yahoo');
+       } // END - if
+
+       if ($helper->ifChatEnabled('aol')) {
+               $helper->addFieldText('aol', "AOL-Screenname:");
+               $helper->addInputTextField('aol');
+       } // END - if
+
+       if ($helper->ifChatEnabled('msn')) {
+               $helper->addFieldText('msn', "MSN:");
+               $helper->addInputTextField('msn');
+       } // END - if
+
+       if (!$helper->ifRegisterRequiresEmailVerification()) {
+               $helper->addFormExtraNote(1, "Die Benachrichtigungen per sind im Loginbereich verfeinerbar, welche du genau haben willst.");
+       } // END - Extra note
+
+} // END - ask profile data
+
+// Posting-/Kommentarregeln abfragen
+$helper->addFormGroup('rules', "Bitte lese dir die Blogregeln gut durch und kreuze dann &quot;Ja, ich akzeptiere die aktuellen Blogregeln&quot; an.");
+$helper->addFieldText('rules', "Ja, ich akzeptiere die aktuellen Blogregeln:");
+$helper->addInputCheckboxField('rules', false);
+
+// Add CAPTCHA?
+if ($helper->ifFormSecuredWithCaptcha()) {
+       $helper->addFormGroup('captcha', "Bitte wiederhole den angezeigten Code damit die Anmeldung abgeschlossen werden kann.");
+       $helper->addCaptcha();
+} // END - if
+
+// Final note and submit buttons
+$helper->addFormGroup('buttons', "Wenn du alle ben&ouml;tigten Felder korrekt ausgef&uuml;t hast, kannst du die Anmeldung abschliessen.");
+
+$helper->addInputResetButton("Alles nochmal eingeben");
+$helper->addInputSubmitButton("Anmeldung zum Blog abschliessen");
+$helper->addFormNote('data_protection', "Deine Daten werden nach den g&uuml;ltigen Datenschutzgesetzten gespeichert und werden nicht an Dritte weitergegeben. Weiteres dazu siehe Link &quot;Datenschutz&quot;.");
+$helper->flushContent();
+?>
+<div id="content_header">
+       Anmeldung bei <span class="app_name">{?app_full_name?}</span>
+</div>
+
+<div id="register_box">
+       {?todo_register?}
+</div>
diff --git a/application/todo/templates/de/code/todo_main.ctp b/application/todo/templates/de/code/todo_main.ctp
new file mode 100644 (file)
index 0000000..70a0ed7
--- /dev/null
@@ -0,0 +1,23 @@
+{?header?}
+
+<div id="main_header">
+       {?todo_header?}
+</div>
+
+<div id="navigation">
+       {?navigation?}
+</div>
+
+<div id="advert">
+       {?nav_advert?}
+</div>
+
+<div id="main_content">
+       {?content?}
+</div>
+
+<div id="main_footer">
+       {?todo_footer?}
+</div>
+
+{?footer?}
diff --git a/application/todo/templates/de/emails/.htaccess b/application/todo/templates/de/emails/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/de/emails/text_resend_link.tpl b/application/todo/templates/de/emails/text_resend_link.tpl
new file mode 100644 (file)
index 0000000..e764146
--- /dev/null
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<text-mail>
+       <mail-data>
+               <sender-address value="$config[admin_email]" />
+               <subject-line value="Anforderung deines Best&auml;tigungslinks" />
+               <recipient-address value="{?email?}" />
+               <message>
+               <![CDATA[Hallo {?username?}!
+
+Du (oder ein anderer) hattest soeben deinen Best&auml;tigungslink erneut angefordert. Solltest du dies nicht gewesen sein, bitten wir dich den Vorfall zu entschuldigen.
+
+Hier ist nun dein Best&auml;tigungslink. Der alte aus der Anmeldemail ist somit nicht mehr g&uuml;ltig!
+
+$config[base_url]/index.php?app={?app_short_name?}&page=confirm&username={?username?}&confirm={?confirm_hash?}
+
+Solltest du die URL nicht anklicken k&ouml;nnen, versuche diese in die Adresszeile deines Browsers zu kopieren.
+
+Alternativ kannst du im Loginbereich unter Best&auml;tigungscode den folgenden Code reinkopieren oder eingeben:
+
+{?confirm_hash?}
+
+Solltest du Fragen dazu oder Probleme mit der Best&auml;tigung haben, so melde dich bitte beim Support-Team.
+
+Mit freundlichen Gr&uuml;&szlig;en,
+  Dein {?app_short_name?}-Team
+
+{?mail_footer?}]]>
+               </message>
+       </mail-data>
+</text-mail>
diff --git a/application/todo/templates/de/html/.htaccess b/application/todo/templates/de/html/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/de/html/nav_advert.tpl b/application/todo/templates/de/html/nav_advert.tpl
new file mode 100644 (file)
index 0000000..22da43b
--- /dev/null
@@ -0,0 +1 @@
+<!-- Put your ads code here which shall be shown below the navigation //-->
diff --git a/application/todo/templates/de/html/selector_ship-simu.tpl b/application/todo/templates/de/html/selector_ship-simu.tpl
new file mode 100644 (file)
index 0000000..b96640e
--- /dev/null
@@ -0,0 +1,17 @@
+<div id="selector_content">
+       <div style="text-align: left; padding-top: 15px; padding-left: 10px; padding-right: 10px">
+               Gr&uuml;nden Sie eine virtuelle Reederei an den bedeutestens
+               Welth&auml;fen! Oder treten Sie einer Reederei als Angestellter bei und
+               arbeiten Sie sich bis in die Chef-Etagge hoch!
+       </div>
+
+       <div style="text-align: left; padding-top: 15px; padding-left: 10px; padding-right: 10px">
+               Oder fangen Sie als Matrose auf einem Passagierschiff (virtuell) an zu
+               arbeiten und werden Sie nach wenigen Kreuzfahrten bald Kapit&auml;n!
+       </div>
+
+       <div style="text-align: left; padding-top: 15px; padding-left: 10px; padding-right: 10px">
+               Oder buchen Sie eine virtuelle Kreuzfahrt durch die bekannten Meeren in
+               {!POINTS!} in einer Luxus-Suite!
+       </div>
+</div>
diff --git a/application/todo/templates/images/.htaccess b/application/todo/templates/images/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/images/_cache/.htaccess b/application/todo/templates/images/_cache/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/images/de/.htaccess b/application/todo/templates/images/de/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/images/de/image/.htaccess b/application/todo/templates/images/de/image/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/todo/templates/images/de/image/base_code.itp b/application/todo/templates/images/de/image/base_code.itp
new file mode 100644 (file)
index 0000000..6501b56
--- /dev/null
@@ -0,0 +1,28 @@
+<?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/todo/templates/images/de/image/code_captcha.itp b/application/todo/templates/images/de/image/code_captcha.itp
new file mode 100644 (file)
index 0000000..2e28522
--- /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]
+?>