]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/templates/de/code/login_form.ctp
Rewritten for updated core
[shipsimu.git] / application / ship-simu / templates / de / code / login_form.ctp
index 86f81d35824ef6c9cdbdc6d12a14a80d325a9360..6b0110df88c384c2d23cf20295cdb52e961bbf82 100644 (file)
@@ -2,7 +2,7 @@
 // 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.
-$helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_user_login');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_user_login'));
 
 // Formular deaktiviert?
 if ($helperInstance->ifLoginIsEnabled()) {
@@ -33,7 +33,7 @@ if ($helperInstance->ifLoginIsEnabled()) {
 
        // CAPTCHA enabled?
        if ($helperInstance->ifFormSecuredWithCaptcha()) {
-               $helperInstance->addFormGroup('captcha_user', "Unser Benuzter-Login ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
+               $helperInstance->addFormGroup('captcha_user', "Das Benutzer-Login ist durch ein CAPTCHA geschützt. Bitte wiederhole den angezeigten Code, damit du dich einloggen kannst.");
                $helperInstance->addCaptcha();
        } // END - if
 
@@ -53,7 +53,7 @@ $helperInstance->flushContent();
 // Ist Gastlogin erlaubt?
 if ($helperInstance->ifGuestLoginAllowed()) {
        // Neue Helper-Instanz holen
-       $helperInstance = WebFormHelper::createWebFormHelper($this, 'shipsimu_guest_login');
+       $helperInstance = ObjectFactory::createObjectByConfiguredName('web_form_helper', array($this, 'shipsimu_guest_login'));
        $helperInstance->addInputHiddenConfiguredField('user', 'guest_login');
        $helperInstance->addInputHiddenConfiguredField('passwd', 'guest_login');
 
@@ -70,14 +70,15 @@ if ($helperInstance->ifGuestLoginAllowed()) {
 }
 
 // Get helper instance
-$helperInstance = WebLinkHelper::createWebLinkHelper($this, 'register_login_form_link', 'index.php?app={?app_short_name?}&page=register');
+$helperInstance = ObjectFactory::createObjectByConfiguredName('web_link_helper', array($this, 'register_login_form', 'index.php?app={?app_short_name?}&page=register'));
 
 // Set link text
-$helperInstance->addLinkWithTextById('register_login_form_link_text');
+$helperInstance->addLinkWithTextById('register_login');
 
 // Flush the content
 $helperInstance->flushContent();
 
+// [EOC]
 ?>
 <div id="content_header">
        Einloggen zu <span class="app_name">{?app_full_name?}</span>
@@ -94,5 +95,5 @@ $helperInstance->flushContent();
 </div>
 
 <div id="content_footer">
-       Noch kein Spieleaccount? {?register_login_form_link?}
+       Noch kein Spieleaccount? {?register_login_form?}
 </div>