Missing email template added, updated config and other updated scripts now included
authorRoland Häder <roland@mxchange.org>
Sat, 28 Jun 2008 19:31:00 +0000 (19:31 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 28 Jun 2008 19:31:00 +0000 (19:31 +0000)
.gitattributes
application/ship-simu/config.php
application/ship-simu/templates/de/emails/.htaccess [new file with mode: 0644]
application/ship-simu/templates/de/emails/text_resend_link.tpl [new file with mode: 0644]
index.php
templates/de/code/header.ctp

index 38eab89..5edfb43 100644 (file)
@@ -156,6 +156,8 @@ application/ship-simu/templates/de/code/login_main.ctp -text
 application/ship-simu/templates/de/code/logout_done.ctp -text
 application/ship-simu/templates/de/code/register_form.ctp -text
 application/ship-simu/templates/de/code/shipsimu_main.ctp -text
+application/ship-simu/templates/de/emails/.htaccess -text
+application/ship-simu/templates/de/emails/text_resend_link.tpl -text
 application/ship-simu/templates/de/html/.htaccess -text
 application/ship-simu/templates/de/html/nav_advert.tpl -text
 application/ship-simu/templates/de/html/selector_ship-simu.tpl -text
index 1a71aea..52e75e3 100644 (file)
@@ -217,5 +217,8 @@ $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");
+
 // [EOF]
 ?>
diff --git a/application/ship-simu/templates/de/emails/.htaccess b/application/ship-simu/templates/de/emails/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/application/ship-simu/templates/de/emails/text_resend_link.tpl b/application/ship-simu/templates/de/emails/text_resend_link.tpl
new file mode 100644 (file)
index 0000000..aae1ddc
--- /dev/null
@@ -0,0 +1,28 @@
+<mail>
+       <subject value="Anforderung deines Best&auml;tigunglinks" />
+       <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=ship-simu&page=confirm&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 Spielebereich oder im Gastbereich unter Best&auml;tigungscode eingeben den folgenden Code reinkopieren:
+
+{?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>
+       <text-converter>
+               html_entity_decode
+       </text-converter>
+</mail>
index 9986c91..9d61748 100644 (file)
--- a/index.php
+++ b/index.php
@@ -83,7 +83,7 @@ class ApplicationEntryPoint {
                        // Use the template engine for putting out (nicer look) the message
                        try {
                                // Get the template instance from our object factory
-                               $tplEngine = ObjectFactory::createObjectByName($tpl, array(FrameworkConfiguration::getInstance()->readConfig('tpl_base_path'), $lang, $io));
+                               $templateInstance = ObjectFactory::createObjectByName($tpl, array(FrameworkConfiguration::getInstance()->readConfig('tpl_base_path'), $lang, $io));
                        } catch (FrameworkException $e) {
                                die(sprintf("[Main:] Could not initialize template engine for reason: <strong>%s</strong>",
                                        $e->getMessage()
@@ -101,25 +101,25 @@ class ApplicationEntryPoint {
                        } // END - foreach
 
                        // Assign variables
-                       $tplEngine->assignVariable('message', $message);
-                       $tplEngine->assignVariable('code', $code);
-                       $tplEngine->assignVariable('extra', $extraData);
-                       $tplEngine->assignVariable('backtrace', $backtrace);
-                       $tplEngine->assignVariable('total_includes', ClassLoader::getInstance()->getTotal());
-                       $tplEngine->assignVariable('total_objects', ObjectFactory::getTotal());
-                       $tplEngine->assignVariable('title', $lang->getMessage('emergency_exit_title'));
+                       $templateInstance->assignVariable('message', $message);
+                       $templateInstance->assignVariable('code', $code);
+                       $templateInstance->assignVariable('extra', $extraData);
+                       $templateInstance->assignVariable('backtrace', $backtrace);
+                       $templateInstance->assignVariable('total_includes', ClassLoader::getInstance()->getTotal());
+                       $templateInstance->assignVariable('total_objects', ObjectFactory::getTotal());
+                       $templateInstance->assignVariable('title', $lang->getMessage('emergency_exit_title'));
 
                        // Load the template
-                       $tplEngine->loadCodeTemplate('emergency_exit');
+                       $templateInstance->loadCodeTemplate('emergency_exit');
 
                        // Compile the template
-                       $tplEngine->compileTemplate();
+                       $templateInstance->compileTemplate();
 
                        // Compile all variables
-                       $tplEngine->compileVariables();
+                       $templateInstance->compileVariables();
 
                        // Transfer data to response
-                       $tplEngine->transferToResponse($responseInstance);
+                       $templateInstance->transferToResponse($responseInstance);
 
                        // Flush the response
                        $responseInstance->flushBuffer();
index 2561392..7da5dba 100644 (file)
@@ -2,7 +2,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
 <head>
        <title>
-               $content[title]
+               {?title?}
        </title>
 
        <meta name="author" content="$config[meta_author]" />