]> git.mxchange.org Git - shipsimu.git/commitdiff
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 38eab89450719619c1a8366873fe1b04bdb7fc59..5edfb43b396784dc12c5c5a25dff6490254b51a6 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 1a71aea51e7c6a882b916188f1eb3d8a7c6c51b2..52e75e3b54e3cbb9a5d847a4c84939bb479a8651 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 9986c919adc14c8d5ffa75ed95e6ee855a80b55e..9d61748040789a81eec21cfd61263ca3a1ff4d9b 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 2561392fea64f0287ce845fe5016b13b74b8ca8f..7da5dba4493d01afbacb5e9d9aee5154781931b3 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]" />