]> git.mxchange.org Git - shipsimu.git/commitdiff
Login form now links to registration
authorRoland Häder <roland@mxchange.org>
Sun, 22 Jun 2008 09:42:41 +0000 (09:42 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 22 Jun 2008 09:42:41 +0000 (09:42 +0000)
application/ship-simu/templates/de/code/login_form.ctp
inc/classes/main/commands/web/class_WebLoginCommand.php

index 31688ccc3d0bc22abb0543fdf3e4acf1637c9df5..8c9414864e1749a3d8be32de97556d05c486803f 100644 (file)
@@ -58,10 +58,16 @@ if ($helper->ifGuestLoginAllowed()) {
        Einloggen zu <span class="app_name">{?app_full_name?}</span>
 </div>
 
-<div id="login_box">
-       {?shipsimu_user_login?}
+<div id="content_body">
+       <div id="login_box">
+               {?shipsimu_user_login?}
+       </div>
+
+       <div id="guest_login">
+               {?shipsimu_guest_login?}
+       </div>
 </div>
 
-<div id="guest_login">
-       {?shipsimu_guest_login?}
+<div id="content_footer">
+       Noch kein Spieleaccount? [<a href="$config[base_url]/index.php?app=ship-simu&page=register">Dann hier kostenlos anmelden!</a>]
 </div>
index a37949dd99008b12c79ba9261a0e5ef1c2917106..b1dd364c7b7def57d81519655613ee7388d7c1f4 100644 (file)
@@ -75,6 +75,9 @@ class WebLoginCommand extends BaseCommand implements Commandable {
                // Assign application data with template engine
                $templateInstance->assignApplicationData($appInstance);
 
+               // Assign base URL
+               $templateInstance->assignConfigVariable('base_url');
+
                // Load the master template
                $masterTemplate = $appInstance->getMasterTemplate();