Index: branches/2.8.x/wb/account/template.html
===================================================================
--- branches/2.8.x/wb/account/template.html	(revision 1718)
+++ branches/2.8.x/wb/account/template.html	(nonexistent)
@@ -1,138 +0,0 @@
-<!-- begin settings_modify.html -->
-<!-- BEGIN main_block -->
-<!-- BEGIN success_block -->
-<p class="mod_preferences_success">
-	{SUCCESS_VALUE}
-</p>
-<!-- END success_block -->
-<!-- BEGIN error_block -->
-<p class="mod_preferences_error">
-	{ERROR_VALUE}
-</p>
-<!-- END error_block -->
-<div style="margin: 1em auto;">
-	<button type="button" value="cancel" onClick="javascript: window.location = '{HTTP_REFERER}';">{TEXT_CANCEL}</button>
-</div>
-<hr />
-<form name="details" action="" method="post">
-	<h3>{HEADING_MY_SETTINGS}</h3>
-	<table summary="" cellpadding="5" cellspacing="0" border="0" width="100%">
-		<tr>
-			<td width="160">{TEXT_DISPLAY_NAME}:</td>
-			<td>
-				<input type="text" name="display_name" value="{DISPLAY_NAME}" style="width: 98%;" readonly="readonly" />
-			</td>
-		</tr>
-		<tr>
-			<td>{TEXT_LANGUAGE}:</td>
-			<td>
-				<select name="language" id="language">
-					<!-- BEGIN language_list_block -->
-						<option value="{CODE}"{SELECTED} style="background: url({FLAG}.png) no-repeat center left; padding-left: 20px;">{NAME} ({CODE})</option>
-					<!-- END language_list_block -->
-				</select>
-			</td>
-		</tr>
-		<tr>
-			<td>{TEXT_TIMEZONE}:</td>
-			<td>
-				<select name="timezone" style="width: 98%;">
-					<option value="-20">{MOD_PREFERENCE_PLEASE_SELECT}</option>
-<!-- BEGIN timezone_list_block -->
-					<option value="{VALUE}" {SELECTED}>{NAME}</option>
-<!-- END timezone_list_block -->
-				</select>
-			</td>
-		</tr>
-		<tr>
-			<td>{TEXT_DATE_FORMAT}:</td>
-			<td>
-				<select name="date_format" style="width: 98%;">
-					<option value="">{MOD_PREFERENCE_PLEASE_SELECT}</option>
-<!-- BEGIN date_format_list_block -->
-					<option value="{VALUE}" {SELECTED}>{NAME}</option>
-<!-- END date_format_list_block -->
-				</select>
-			</td>
-		</tr>
-		<tr>
-			<td>{TEXT_TIME_FORMAT}:</td>
-			<td>
-				<select name="time_format" style="width: 98%;">
-					<option value="">{MOD_PREFERENCE_PLEASE_SELECT}</option>
-<!-- BEGIN time_format_list_block -->
-					<option value="{VALUE}" {SELECTED}>{NAME}</option>
-<!-- END time_format_list_block -->
-				</select>
-			</td>
-		</tr>
-		<tr>
-			<td>&nbsp;</td>
-			<td>
-				<button type="reset" name="reset" value="reset">{TEXT_RESET}</button>
-				<button type="submit" name="action" value="details">{MOD_PREFERENCE_SAVE_SETTINGS}</button>
-			</td>
-		</tr>
-	</table>
-</form>
-<hr />
-<form name="email" action="" method="post">
-	<h3>{HEADING_MY_EMAIL}</h3>
-	<table summary="" cellpadding="5" cellspacing="0" border="0" width="100%">
-		<tr>
-			<td>{TEXT_EMAIL}:</td>
-			<td>
-				<input type="text" name="email" value="{EMAIL}" style="width: 98%;" />
-			</td>
-		</tr>
-		<tr>
-			<td width="160">{TEXT_CURRENT_PASSWORD}:</td>
-			<td>
-				<input type="password" name="current_password" style="width: 98%;" />
-			</td>
-		</tr>
-		<tr>
-			<td>&nbsp;</td>
-			<td>
-				<button type="reset" name="reset" value="reset">{TEXT_RESET}</button>
-				<button type="submit" name="action" value="email">{MOD_PREFERENCE_SAVE_EMAIL}</button>
-			</td>
-		</tr>
-	</table>
-</form>
-<hr />
-<form name="password" action="" method="post">
-	<h3>{HEADING_MY_PASSWORD}</h3>
-	<table summary="" cellpadding="5" cellspacing="0" border="0" width="100%">
-		<tr>
-			<td width="160">{TEXT_CURRENT_PASSWORD}:</td>
-			<td>
-				<input type="password" name="current_password" style="width: 98%;" />
-			</td>
-		</tr>
-		<tr>
-			<td width="160">{TEXT_NEW_PASSWORD}:</td>
-			<td>
-				<input type="password" name="new_password" style="width: 98%;" />
-			</td>
-		</tr>
-		<tr>
-			<td width="160">{TEXT_RETYPE_NEW_PASSWORD}:</td>
-			<td>
-				<input type="password" name="new_password2" style="width: 98%;" />
-			</td>
-		</tr>
-		<tr>
-			<td>&nbsp;</td>
-			<td>
-				<button type="reset" name="reset" value="reset">{TEXT_RESET}</button>
-				<button type="submit" name="action" value="password">{MOD_PREFERENCE_SAVE_PASSWORD}</button>
-			</td>
-		</tr>
-	</table>
-</form>
-<div style="margin: 1em auto;">
-	<button type="button" value="cancel" onClick="javascript: window.location = '{HTTP_REFERER}';">{TEXT_CANCEL}</button>
-</div>
-<!-- END main_block -->
-<!-- end settings_modify.html -->

Property changes on: branches/2.8.x/wb/account/template.html
___________________________________________________________________
Deleted: svn:eol-style
## -1 +0,0 ##
-native
\ No newline at end of property
Deleted: svn:keywords
## -1 +0,0 ##
-Date Revision
\ No newline at end of property
Deleted: svn:mime-type
## -1 +0,0 ##
-text/html
\ No newline at end of property
Index: branches/2.8.x/wb/account/login_form.php
===================================================================
--- branches/2.8.x/wb/account/login_form.php	(revision 1718)
+++ branches/2.8.x/wb/account/login_form.php	(revision 1719)
@@ -4,8 +4,7 @@
  * @category        frontend
  * @package         account
  * @author          WebsiteBaker Project
- * @copyright       2004-2009, Ryan Djurovich
- * @copyright       2009-2011, Website Baker Org. e.V.
+ * @copyright       2009-2012, WebsiteBaker Org. e.V.
  * @link			http://www.websitebaker2.org/
  * @license         http://www.gnu.org/licenses/gpl.html
  * @platform        WebsiteBaker 2.8.x
@@ -16,16 +15,22 @@
  *
  */
 
-// Must include code to stop this file being access directly
-if(defined('WB_PATH') == false) { die("Cannot access this file directly"); }
+/* -------------------------------------------------------- */
+// Must include code to stop this file being accessed directly
+if(defined('WB_PATH') == false)
+{
+	// Stop this file being access directly
+		die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
+}
+/* -------------------------------------------------------- */
 
+	// Generate username field name
 $username_fieldname = 'username';
 $password_fieldname = 'password';
+$output = '';
+msgQueue::clear();
 
-if(defined('SMART_LOGIN') AND SMART_LOGIN == 'enabled') {
-	// Generate username field name
-	$username_fieldname = 'username_';
-	$password_fieldname = 'password_';
+if(defined('SMART_LOGIN') AND SMART_LOGIN == 'true') {
 
 	$temp = array_merge(range('a','z'), range(0,9));
 	shuffle($temp);
@@ -36,58 +41,55 @@
 }
 
 $thisApp->redirect_url = (isset($thisApp->redirect_url) && ($thisApp->redirect_url!='')  ? $thisApp->redirect_url : $_SESSION['HTTP_REFERER'] );
-?>
-<div style="margin: 1em auto;">
-	<button type="button" value="cancel" onClick="javascript: window.location = '<?php print $_SESSION['HTTP_REFERER'] ?>';"><?php print $TEXT['CANCEL'] ?></button>
-</div>
-<h1>&nbsp;Login</h1>
-&nbsp;<?php echo $thisApp->message; ?>
-<br />
-<br />
 
-<form class="login-box" action="<?php echo WB_URL.'/account/login.php'; ?>" method="post">
-<input type="hidden" name="username_fieldname" value="<?php echo $username_fieldname; ?>" />
-<input type="hidden" name="password_fieldname" value="<?php echo $password_fieldname; ?>" />
-<input type="hidden" name="redirect" value="<?php echo $thisApp->redirect_url;?>" />
+// set template file and assign module and template block
+	$oTpl = new Template(dirname(__FILE__).'/htt','keep');
+	$oTpl->set_file('page', 'login.htt');
+	$oTpl->debug = false; // false, true
+	$oTpl->set_block('page', 'main_block', 'main');
 
-<table cellpadding="5" cellspacing="0" border="0" width="90%">
-<tr>
-	<td style="width:100px"><?php echo $TEXT['USERNAME']; ?>:</td>
-	<td class="value_input">
-		<input type="text" name="<?php echo $username_fieldname; ?>" maxlength="30" style="width:220px;"/>
-    	<script type="text/javascript">
-    	// document.login.<?php echo $username_fieldname; ?>.focus();
-    	var ref= document.getElementById("<?php echo $username_fieldname; ?>");
-    	if (ref) ref.focus();
-    	</script>
-	</td>
-</tr>
-<tr>
-	<td style="width:100px"><?php echo $TEXT['PASSWORD']; ?>:</td>
-	<td class="value_input">
-		<input type="password" name="<?php echo $password_fieldname; ?>" maxlength="30" style="width:220px;"/>
-	</td>
-</tr>
-<?php if($username_fieldname != 'username') { ?>
-<tr>
-	<td>&nbsp;</td>
-	<td>
-		<input type="checkbox" name="remember" id="remember" value="true"/>
-		<label for="remember"><?php echo $TEXT['REMEMBER_ME']; ?></label>
-	</td>
-</tr>
-<?php } ?>
-<tr>
-	<td>&nbsp;</td>
-	<td>
-		<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>"  />
-		<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>"  />
-	</td>
-</tr>
-</table>
+	$oTpl->set_block('main_block', 'message_block', 'message');
+	$oTpl->set_block('message', '');
 
-</form>
+// generell vars
+	$oTpl->set_var(array(
+		'FTAN' => $wb->getFTAN(),
+		'ACTION_URL' => WB_URL.'/account/login.php',
+		'FORGOT_URL' => WB_URL.'/account/forgot.php',
+		'REDIRECT_URL' => $thisApp->redirect_url,
+		'WB_URL' => WB_URL,
+		'THEME_URL' => THEME_URL,
+		'HTTP_REFERER' => $_SESSION['HTTP_REFERER'],
+		'MESSAGE_VALUE' => '',
+		'ERROR_VALUE' => '',
+		'THISAPP_MESSAGE_VALUE' => $thisApp->message,
+		'TEXT_FORGOTTEN_DETAILS' => $TEXT['FORGOTTEN_DETAILS'],
+		'TEXT_USERNAME' => $TEXT['USERNAME'],
+		'TEXT_PASSWORD' => $TEXT['PASSWORD'],
+		'USER_FIELDNAME' => $username_fieldname,
+		'PASSWORD_FIELDNAME' => $password_fieldname,
+		'TEXT_LOGIN' => $TEXT['LOGIN'],
+		'TEXT_RESET' => $TEXT['RESET'],
+		'TEXT_CANCEL' => $TEXT['CANCEL'],
+		)
+	);
 
-<br />
+	$oTpl->set_block('main_block', 'show_smart_login_block', 'show_smart_login');
+//	$oTpl->parse('show_smart_login', '');
+	if($username_fieldname != 'username') {
+		$oTpl->set_var(array(
+		'TEXT_REMEMBER_ME' => $TEXT['REMEMBER_ME'],
+			)
+		);
 
-<a href="<?php echo WB_URL; ?>/account/forgot.php"><?php echo $TEXT['FORGOTTEN_DETAILS']; ?></a>
\ No newline at end of file
+		$oTpl->parse('smart_login', 'show_smart_login_block', true);
+	} else {
+		$oTpl->set_block('show_smart_login', '');
+	}
+
+	//$oTpl->parse('message', 'message_block', true);
+	$oTpl->parse('main', 'main_block', false);
+	$output = $oTpl->finish($oTpl->parse('output', 'page'));
+	unset($oTpl);
+	print $output;
+
Index: branches/2.8.x/wb/account/preferences.php
===================================================================
--- branches/2.8.x/wb/account/preferences.php	(revision 1718)
+++ branches/2.8.x/wb/account/preferences.php	(revision 1719)
@@ -3,9 +3,8 @@
  *
  * @category        frontend
  * @package         account
- * @author          WebsiteBaker Project
- * @copyright       2004-2009, Ryan Djurovich
- * @copyright       2009-2011, Website Baker Org. e.V.
+ * @author          Ryan Djurovich, WebsiteBaker Project
+ * @copyright       2009-2012, WebsiteBaker Org. e.V.
  * @link			http://www.websitebaker2.org/
  * @license         http://www.gnu.org/licenses/gpl.html
  * @platform        WebsiteBaker 2.8.x
@@ -19,16 +18,19 @@
 require_once('../config.php');
 
 if(!FRONTEND_LOGIN) {
-	if(INTRO_PAGE) {
-		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
-		exit(0);
-	} else {
 		header('Location: '.WB_URL.'/index.php');
 		exit(0);
-	}
+//	if(INTRO_PAGE) {
+//		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
+//		exit(0);
+//	} else {
+//		header('Location: '.WB_URL.'/index.php');
+//		exit(0);
+//	}
 }
 
 require_once(WB_PATH.'/framework/class.frontend.php');
+
 $wb_inst = new wb();
 if ($wb_inst->is_authenticated()==false) {
 	header('Location: '.WB_URL.'/account/login.php');
Index: branches/2.8.x/wb/account/login.php
===================================================================
--- branches/2.8.x/wb/account/login.php	(revision 1718)
+++ branches/2.8.x/wb/account/login.php	(revision 1719)
@@ -3,9 +3,8 @@
  *
  * @category        frontend
  * @package         account
- * @author          WebsiteBaker Project
- * @copyright       2004-2009, Ryan Djurovich
- * @copyright       2009-2011, Website Baker Org. e.V.
+ * @author          Ryan Djurovich, WebsiteBaker Project
+ * @copyright       2009-2012, WebsiteBaker Org. e.V.
  * @link			http://www.websitebaker2.org/
  * @license         http://www.gnu.org/licenses/gpl.html
  * @platform        WebsiteBaker 2.8.x
@@ -20,13 +19,13 @@
 
 // Make sure the login is enabled
 if(!FRONTEND_LOGIN) {
-	if(INTRO_PAGE) {
-		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
-		exit(0);
-	} else {
 		header('Location: '.WB_URL.'/index.php');
 		exit(0);
-	}
+//	if(INTRO_PAGE) {
+//		header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
+//		exit(0);
+//	} else {
+//	}
 }
 
 $page_id = !empty($_SESSION['PAGE_ID']) ? $_SESSION['PAGE_ID'] : 0;
@@ -62,7 +61,7 @@
 
 $ThemeUrl  = WB_URL.$wb->correct_theme_source('warning.html');
 // Setup template object, parse vars to it, then parse it
-$ThemePath = realpath(WB_PATH.$wb->correct_theme_source('login.htt'));
+$ThemePath = realpath(WB_PATH.$wb->correct_theme_source('loginBox.htt'));
 
 $thisApp = new Login(
 				array(
@@ -76,7 +75,7 @@
 						"MAX_USERNAME_LEN" => "30",
 						"MAX_PASSWORD_LEN" => "30",
 						"LOGIN_URL" => $loginUrl,
-						"DEFAULT_URL" => WB_URL.PAGES_DIRECTORY."/index.php",
+						"DEFAULT_URL" => WB_URL."/index.php",
 						"TEMPLATE_DIR" => $ThemePath,
 						"TEMPLATE_FILE" => "login.htt",
 						"FRONTEND" => true,
Index: branches/2.8.x/wb/account/preferences.htt
===================================================================
--- branches/2.8.x/wb/account/preferences.htt	(nonexistent)
+++ branches/2.8.x/wb/account/preferences.htt	(revision 1719)
@@ -0,0 +1,137 @@
+<!-- BEGIN main_block -->
+<!-- BEGIN success_block -->
+<p class="mod_preferences_success">
+	{SUCCESS_VALUE}
+</p>
+<!-- END success_block -->
+<!-- BEGIN error_block -->
+<p class="mod_preferences_error">
+	{ERROR_VALUE}
+</p>
+<!-- END error_block -->
+<div style="margin: 1em auto;">
+	<button type="button" value="cancel" onclick="javascript:window.location = '{HTTP_REFERER}';">{TEXT_CANCEL}</button>
+</div>
+<hr />
+<form name="details" action="" method="post">
+	<h3>{HEADING_MY_SETTINGS}</h3>
+	<table summary="" cellpadding="5" cellspacing="0" border="0" width="100%">
+		<tr>
+			<td width="160">{TEXT_DISPLAY_NAME}:</td>
+			<td>
+				<input class="button" type="button" name="display_name" value="{DISPLAY_NAME}" disabled="disabled" readonly="readonly"
+				 style="border :1px solid #666666; color :#000000; text-align :left; font-weight :bold; background-color :#dddddd; margin : 2px auto; padding :2px 0px 2px 6px; width :71%;"/>
+			</td>
+		</tr>
+		<tr>
+			<td>{TEXT_LANGUAGE}:</td>
+			<td>
+				<select name="language" id="language">
+					<!-- BEGIN language_list_block -->
+						<option value="{CODE}"{SELECTED} style="background: url({FLAG}.png) no-repeat center left; padding-left: 20px;">{NAME} ({CODE})</option>
+					<!-- END language_list_block -->
+				</select>
+			</td>
+		</tr>
+		<tr>
+			<td>{TEXT_TIMEZONE}:</td>
+			<td>
+				<select name="timezone" style="width: 98%;">
+					<option value="-20">{MOD_PREFERENCE_PLEASE_SELECT}</option>
+<!-- BEGIN timezone_list_block -->
+					<option value="{VALUE}" {SELECTED}>{NAME}</option>
+<!-- END timezone_list_block -->
+				</select>
+			</td>
+		</tr>
+		<tr>
+			<td>{TEXT_DATE_FORMAT}:</td>
+			<td>
+				<select name="date_format" style="width: 98%;">
+					<option value="">{MOD_PREFERENCE_PLEASE_SELECT}</option>
+<!-- BEGIN date_format_list_block -->
+					<option value="{VALUE}" {SELECTED}>{NAME}</option>
+<!-- END date_format_list_block -->
+				</select>
+			</td>
+		</tr>
+		<tr>
+			<td>{TEXT_TIME_FORMAT}:</td>
+			<td>
+				<select name="time_format" style="width: 98%;">
+					<option value="">{MOD_PREFERENCE_PLEASE_SELECT}</option>
+<!-- BEGIN time_format_list_block -->
+					<option value="{VALUE}" {SELECTED}>{NAME}</option>
+<!-- END time_format_list_block -->
+				</select>
+			</td>
+		</tr>
+		<tr>
+			<td>&nbsp;</td>
+			<td>
+				<button type="reset" name="reset" value="reset">{TEXT_RESET}</button>
+				<button type="submit" name="action" value="details">{MOD_PREFERENCE_SAVE_SETTINGS}</button>
+			</td>
+		</tr>
+	</table>
+</form>
+<hr />
+<form name="email" action="" method="post">
+	<h3>{HEADING_MY_EMAIL}</h3>
+	<table summary="" cellpadding="5" cellspacing="0" border="0" width="100%">
+		<tr>
+			<td>{TEXT_EMAIL}:</td>
+			<td>
+				<input type="text" name="email" value="{EMAIL}" style="width: 98%;" />
+			</td>
+		</tr>
+		<tr>
+			<td width="160">{TEXT_CURRENT_PASSWORD}:</td>
+			<td>
+				<input type="password" name="current_password" style="width: 98%;" />
+			</td>
+		</tr>
+		<tr>
+			<td>&nbsp;</td>
+			<td>
+				<button type="reset" name="reset" value="reset">{TEXT_RESET}</button>
+				<button type="submit" name="action" value="email">{MOD_PREFERENCE_SAVE_EMAIL}</button>
+			</td>
+		</tr>
+	</table>
+</form>
+<hr />
+<form name="password" action="" method="post">
+	<h3>{HEADING_MY_PASSWORD}</h3>
+	<table summary="" cellpadding="5" cellspacing="0" border="0" width="100%">
+		<tr>
+			<td width="160">{TEXT_CURRENT_PASSWORD}:</td>
+			<td>
+				<input type="password" name="current_password" style="width: 98%;" />
+			</td>
+		</tr>
+		<tr>
+			<td width="160">{TEXT_NEW_PASSWORD}:</td>
+			<td>
+				<input type="password" name="new_password" style="width: 98%;" />
+			</td>
+		</tr>
+		<tr>
+			<td width="160">{TEXT_RETYPE_NEW_PASSWORD}:</td>
+			<td>
+				<input type="password" name="new_password2" style="width: 98%;" />
+			</td>
+		</tr>
+		<tr>
+			<td>&nbsp;</td>
+			<td>
+				<button type="reset" name="reset" value="reset">{TEXT_RESET}</button>
+				<button type="submit" name="action" value="password">{MOD_PREFERENCE_SAVE_PASSWORD}</button>
+			</td>
+		</tr>
+	</table>
+</form>
+<div style="margin: 1em auto;">
+	<button type="button" value="cancel" onclick="javascript:window.location = '{HTTP_REFERER}';">{TEXT_CANCEL}</button>
+</div>
+<!-- END main_block -->
\ No newline at end of file

Property changes on: branches/2.8.x/wb/account/preferences.htt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Revision
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/html
\ No newline at end of property
Index: branches/2.8.x/wb/account/htt/login.htt
===================================================================
--- branches/2.8.x/wb/account/htt/login.htt	(nonexistent)
+++ branches/2.8.x/wb/account/htt/login.htt	(revision 1719)
@@ -0,0 +1,62 @@
+<!-- BEGIN main_block -->
+<!-- BEGIN message_block -->
+{MESSAGE_VALUE}
+<!-- END message_block -->
+
+<hr />
+<form class="login-box" action="{ACTION_URL}" method="post">
+	<input type="hidden" name="action" value="login" />
+	<input type="hidden" name="username_fieldname" value="{USER_FIELDNAME}" />
+	<input type="hidden" name="password_fieldname" value="{PASSWORD_FIELDNAME}" />
+	<input type="hidden" name="redirect" value="{REDIRECT_URL}" />
+
+<table summary="" style="width: 60%; font-size: 1em;">
+		<tr>
+			<td height="10" colspan="2" style="text-align: center;"><h1>{TEXT_LOGIN}</h1></td>
+		</tr>
+		<tr>
+			<td height="40" style="text-align: center;" colspan="2">
+			<strong style="text-align: center;">{THISAPP_MESSAGE_VALUE}</strong>
+			</td>
+		</tr>
+<tr>
+	<td style="width:100px">{TEXT_USERNAME}:</td>
+	<td class="value_input">
+		<input type="text" name="{USER_FIELDNAME}" maxlength="30" style="width:220px;"/>
+    	<script type="text/javascript">
+    	// document.login.{USER_FIELDNAME}.focus();
+    	var ref= document.getElementById("{USER_FIELDNAME}");
+    	if (ref) ref.focus();
+    	</script>
+	</td>
+</tr>
+<tr>
+	<td style="width:100px">{TEXT_PASSWORD}:</td>
+	<td class="value_input">
+		<input type="password" name="{PASSWORD_FIELDNAME}" maxlength="30" style="width:220px;"/>
+	</td>
+</tr>
+<!-- BEGIN show_smart_login_block -->
+<tr>
+	<td>&nbsp;</td>
+	<td>
+		<input type="checkbox" name="remember" id="remember" value="true"/>
+		<label for="remember">{TEXT_REMEMBER_ME}</label>
+	</td>
+</tr>
+<!-- END show_smart_login_block -->
+<tr>
+	<td colspan="2" style="text-align: center;">
+		<input type="submit" name="submit" value="{TEXT_LOGIN}" style="padding: 3px;"  />
+		<input type="reset" name="reset" value="{TEXT_RESET}" style="padding: 3px;"  />
+	<button type="button" value="cancel" onclick="javascript:window.location = '{HTTP_REFERER}';" style="padding: 3px;" >{TEXT_CANCEL}</button>
+	</td>
+</tr>
+<tr>
+	<td colspan="2" style="text-align: center;">
+	<p class="link"><a href="{FORGOT_URL}">{TEXT_FORGOTTEN_DETAILS}</a></p>
+	</td>
+</tr>
+</table>
+</form>
+<!-- END main_block -->
\ No newline at end of file

Property changes on: branches/2.8.x/wb/account/htt/login.htt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision HeadURL
\ No newline at end of property
Index: branches/2.8.x/wb/account/htt/success.htt
===================================================================
--- branches/2.8.x/wb/account/htt/success.htt	(nonexistent)
+++ branches/2.8.x/wb/account/htt/success.htt	(revision 1719)
@@ -0,0 +1,9 @@
+<!-- BEGIN main_block -->
+<div class="msg-box info">
+<!-- BEGIN show_registration_block -->
+	<p>{MESSAGE_VALUE}</p>
+<!-- END show_registration_block -->
+	<p>{MESSAGE}</p>
+<input type="button" name="submit" value="{BACK}" onclick="javascript:window.location='{HTTP_REFERER}';" style="padding: 0 3px;" />
+</div>
+<!-- END main_block -->
\ No newline at end of file

Property changes on: branches/2.8.x/wb/account/htt/success.htt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision HeadURL
\ No newline at end of property
Index: branches/2.8.x/wb/account/htt/forgot.htt
===================================================================
--- branches/2.8.x/wb/account/htt/forgot.htt	(nonexistent)
+++ branches/2.8.x/wb/account/htt/forgot.htt	(revision 1719)
@@ -0,0 +1,46 @@
+<!-- BEGIN main_block -->
+<!-- BEGIN message_block -->
+{MESSAGE_VALUE}
+<!-- END message_block -->
+
+<hr />
+<form class="forgot-box" action="{ACTION_URL}" method="post">
+	<input type="hidden" name="action" value="forgot" />
+	<input type="hidden" name="url" value="{URL}" />
+
+<table summary="" style="width: 60%; font-size: 1em;">
+<tr>
+	<td height="10" colspan="2" style="text-align: center;"><h1>{MENU_FORGOT}</h1></td>
+</tr>
+<tr>
+	<td height="40" style="text-align: center;" colspan="2">
+	<strong style="text-align: center;">{THISAPP_MESSAGE_VALUE}</strong>
+	</td>
+</tr>
+		<tr>
+			<td height="10" colspan="2">&nbsp;</td>
+		</tr>
+<tr>
+	<td style="width:100px">{TEXT_EMAIL}:</td>
+	<td class="value_input">
+		<input type="text" name="email" maxlength="255" style="width:220px;"/>
+	</td>
+</tr>
+		<tr>
+			<td height="10" colspan="2">&nbsp;</td>
+		</tr>
+<tr>
+	<td colspan="2" style="text-align: center;">
+		<input type="submit" name="submit" value="{TEXT_SEND_DETAILS}" style="padding: 3px;"  />
+		<input type="reset" name="reset" value="{TEXT_RESET}" style="padding: 3px;"  />
+	<button type="button" value="cancel" onclick="javascript:window.location = '{HTTP_REFERER}';" style="padding: 3px;" >{TEXT_CANCEL}</button>
+	</td>
+</tr>
+<tr>
+	<td colspan="2" style="text-align: center;">
+	<p class="link"><a href="{LOGIN_URL}">{TEXT_NEED_TO_LOGIN}</a></p>
+	</td>
+</tr>
+</table>
+</form>
+<!-- END main_block -->
\ No newline at end of file

Property changes on: branches/2.8.x/wb/account/htt/forgot.htt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Date Author Id Revision HeadURL
\ No newline at end of property
Index: branches/2.8.x/wb/account/htt
===================================================================
--- branches/2.8.x/wb/account/htt	(nonexistent)
+++ branches/2.8.x/wb/account/htt	(revision 1719)

Property changes on: branches/2.8.x/wb/account/htt
___________________________________________________________________
Added: svn:ignore
## -0,0 +1 ##
+kopie_forgott.php
Index: branches/2.8.x/wb/account/logout.php
===================================================================
--- branches/2.8.x/wb/account/logout.php	(revision 1718)
+++ branches/2.8.x/wb/account/logout.php	(revision 1719)
@@ -3,9 +3,8 @@
  *
  * @category        frontend
  * @package         account
- * @author          WebsiteBaker Project
- * @copyright       2004-2009, Ryan Djurovich
- * @copyright       2009-2011, Website Baker Org. e.V.
+ * @author          Ryan Djurovich, WebsiteBaker Project
+ * @copyright       2009-2012, WebsiteBaker Org. e.V.
  * @link			http://www.websitebaker2.org/
  * @license         http://www.gnu.org/licenses/gpl.html
  * @platform        WebsiteBaker 2.8.x
@@ -22,7 +21,7 @@
 	setcookie('REMEMBER_KEY', '', time()-3600, '/');
 }
 
-$redirect = ((isset($_SESSION['HTTP_REFERER']) && $_SESSION['HTTP_REFERER'] != '') ?  $_SESSION['HTTP_REFERER'] : WB_URL.'/index.php');
+$redirect = ((isset($_SESSION['HTTP_REFERER']) && $_SESSION['HTTP_REFERER'] != '' && basename($_SESSION['HTTP_REFERER']) != 'logout.php') ?  $_SESSION['HTTP_REFERER'] : WB_URL.'/index.php');
 
 $_SESSION['USER_ID'] = null;
 $_SESSION['GROUP_ID'] = null;
@@ -37,7 +36,7 @@
 session_destroy();
 
 if(INTRO_PAGE) {
-	header('Location: '.WB_URL.PAGES_DIRECTORY.'/index.php');
+	header('Location: '.WB_URL.'/index.php');
 } else {
 	header('Location: '.$redirect);
 }
Index: branches/2.8.x/wb/account/languages/DE.php
===================================================================
--- branches/2.8.x/wb/account/languages/DE.php	(revision 1718)
+++ branches/2.8.x/wb/account/languages/DE.php	(revision 1719)
@@ -17,6 +17,8 @@
   DEUTSCHE SPRACHDATEI FUER DAS PREFERENCES MODUL
  -----------------------------------------------------------------------------------------
 	UPDATE HISTORY:
+	Luisehahne; 11.06.2012
+	 + release der Deutschen Sprachdatei
 	Werner von der Decken; 17.05.2008
 	 + erstes release der Deutschen Sprachdatei
  -----------------------------------------------------------------------------------------
@@ -31,4 +33,114 @@
 	'SAVE_EMAIL' => 'Email speichern',
 	'SAVE_PASSWORD' => 'Passwort speichern',
 );
-?>
\ No newline at end of file
+
+$HEADING['SIGNUP2_CONFIMED_REGISTRATION'] = 'Kontofreischaltung';
+$HEADING['MESSAGE_WELCOME'] = 'Herzlich willkomen zur Freischaltung Ihres Konto';
+
+$HELP['SIGNUP_REMEMBER_PASSWORD'] = '<i>Bitte merken Sie sich Ihr Kennwort! Sie ben&ouml;tigen das Kennwort um die Aktivierung abzuschliessen!</i>';
+$HELP['CONFIRM_PASSWORD'] = '<i>Geben Sie bitte Ihr Kennwort ein um die Aktivierung abzuschliessen!</i>';
+
+$MESSAGE['ACTIVATED_NEW_USER'] = '<b>Das Konto wurde freigeschaltet. Sie können sich einloggen</b>';
+$MESSAGE['FAILED_NEW_USER'] = '<b>Aktiverung abgelaufen oder Kennwort verkehrt</b>';
+$MESSAGE['SIGNUP2_ADMIN_INFO'] = '
+Es wurde ein neuer User regisriert.
+
+Loginname: {LOGIN_NAME}
+UserId: {LOGIN_ID}
+E-Mail: {LOGIN_EMAIL}
+IP-Adresse: {LOGIN_IP}
+Anmeldedatum: {SIGNUP_DATE}
+----------------------------------------
+Diese E-Mail wurde automatisch erstellt!
+
+';
+$MESSAGE['SIGNUP2_BODY_LOGIN_FORGOT'] = '
+Hallo {LOGIN_DISPLAY_NAME},
+
+Sie erhalten diese E-Mail, weil sie ein neues Passwort angefordert haben.
+
+Ihre neuen Logindaten für {LOGIN_WEBSITE_TITLE} lauten:
+
+Loginname: {LOGIN_NAME}
+Passwort: {LOGIN_PASSWORD}
+
+Das bisherige Passwort wurde durch das neue Passwort oben ersetzt.
+
+Aus Sicherheitsgründen sollten Sie dieses Kennwort sofort ändern.
+
+Mit freundlichen Grüssen
+----------------------------------------
+Diese E-Mail wurde automatisch erstellt!
+';
+$MESSAGE['SIGNUP2_BODY_LOGIN_INFO'] = '
+Hallo {LOGIN_DISPLAY_NAME},
+
+Herzlich willkommen bei \'{LOGIN_WEBSITE_TITLE}\'
+
+Ihre Logindaten für \'{LOGIN_WEBSITE_TITLE}\' lauten:
+Loginname: {LOGIN_NAME}
+Kennwort: {LOGIN_PASSWORD}
+
+Vielen Dank für Ihre Registrierung.
+Aus Sicherheitsgründen sollten Sie dieses Kennwort sofort ändern.
+
+';
+
+$MESSAGE['SUCCESS_EMAIL_TEXT_GENERATED'] = "\n"
+."***********************************************************************\n"
+."Dies ist eine automatisch generierte E-Mail. Die Absenderadresse dieser\n"
+."E-Mail ist nur zum Versand, und nicht zum Empfang von Nachrichten\n"
+."eingerichtet! Falls Sie diese E-Mail versehentlich erhalten haben,\n"
+."löschen diese Nachricht bitte von Ihrem Computer.\n"
+."***********************************************************************\n";
+
+$MESSAGE['INCORRECT_CAPTCHA'] = 'Die eingegebene Pr&uuml;fziffer stimmt nicht &uuml;berein. Wenn Sie Probleme mit dem Lesen der Pr&uuml;fziffer haben, bitte schreiben Sie eine E-Mail an den <a href="mailto:{{webmaster_email}}">Webmaster</a>';
+
+$MESSAGE['CONFIRMED']  = 'Ihr Kennwort finden Sie weiter unten. Verwenden Sie sie, um Ihre Softwareeinstellungen und -Funktionen zu verwalten. Ändern Sie aus Sicherheitsgründen umgehend Ihr Kennwort.';
+$MESSAGE['CONFIRMED'] .= 'Kennwort: ';
+$MESSAGE['CONFIRMED'] .= 'Vielen Dank!';
+$MESSAGE['CHANGE_PASSWORD'] = 'Aus Sicherheitsgründen sollten Sie dieses Kennwort sofort ändern. Besuchen Sie dazu folgende Website:';
+
+$MESSAGE['LOGIN_BOTH_BLANK'] = 'Bitte geben Sie unten Ihren Loginnamen und Passwort ein';
+$MESSAGE['LOGIN_PASSWORD_BLANK'] = 'Bitte geben Sie Ihr Passwort ein';
+$MESSAGE['LOGIN_PASSWORD_TOO_LONG'] = 'Das angegebene Passwort ist zu lang';
+$MESSAGE['LOGIN_PASSWORD_TOO_SHORT'] = 'Das angegebene Passwort ist zu kurz';
+$MESSAGE['LOGIN_USERNAME_BLANK'] = 'Bitte geben Sie Ihren Loginnamen ein';
+$MESSAGE['LOGIN_USERNAME_TOO_LONG'] = 'Der angegebene Loginname ist zu lang';
+$MESSAGE['LOGIN_USERNAME_TOO_SHORT'] = 'Der angegebene Loginname ist zu kurz';
+$MESSAGE['MAIL_GENERATED'] = 'Diese Nachricht wurde automatisch erstellt und kann nicht beantwortet werden. Wenn Sie Fragen haben oder Hilfe benötigen, wenden Sie sich bitte an <a href="mailto:{{webmaster_email}}">Webmaster</a>';
+
+$MESSAGE['SEND_CONFIRMED_REGISTRATION'] = "
+
+Hallo {LOGIN_DISPLAY_NAME},
+
+Herzlich willkommen bei {LOGIN_WEBSITE_TITLE}!
+
+Bitte aktivieren Sie Ihren kostenlosen Account und klicken Sie auf folgenden Link um die Aktivierung abzuschließen:
+
+{LINK}
+Sollte der Link nicht anklickbar sein, so kopieren Sie ihn bitte in die Adresszeile Ihres Browsers!
+
+Der Aktivierungslink ist gültig bis {CONFIRMED_REGISTRATION_ENDTIME}
+
+Mit freundlichen Grüßen,
+Ihr Support Team
+
+";
+$MESSAGE['SIGNUP2_SUBJECT_NEW_USER'] = 'Vielen Dank f&uuml;r Ihre Registrierung!';
+$MESSAGE['SIGNUP2_NEW_USER'] = 'Es wurde ein neuer User regisriert';
+$MESSAGE['SIGNUP2_SUBJECT_LOGIN_INFO'] = 'Deine WB Logindaten ...';
+$MESSAGE['SIGNUP_NO_EMAIL'] = 'Bitte geben Sie Ihre E-Mail Adresse an';
+
+$MESSAGE['SIGNUP_CONFIRMED_REGISTRATION'] = "Um Ihr Konto zu nutzen zu k&ouml;nnen, erhalten Sie eine E-Mail mit einem Link, um Ihr Konto zu aktivieren.
+<br /><b>Aktivierung muss innerhalb 24 Stunden erfolgen, da ansonsten das Konto wieder gel&ouml;scht wird.</b>
+";
+$MESSAGE['SIGNUP_REGISTRATION'] = 'Sie erhalten Ihre Zugangsdaten per E-Mail!!';
+$MESSAGE['SIGNUP_NEW_USER'] = '<b>Das Konto wurde angelegt.</b>';
+$MESSAGE['SIGNUP_ACTIVATION'] = 'Kontoaktivierung';
+
+$TEXT['NEED_CURRENT_PASSWORD'] = 'mit aktuellem Passwort best&auml;tigen';
+$TEXT['NEED_TO_LOGIN'] = 'M&uuml;ssen Sie sich einloggen?';
+$TEXT['NEW_PASSWORD'] = 'Neues Passwort';
+$TEXT['PASSWORD'] = 'Kennwort';
+$TEXT['ACTIVATION'] = 'Freischalten';
Index: branches/2.8.x/wb/account/forgot_form.php
===================================================================
--- branches/2.8.x/wb/account/forgot_form.php	(revision 1718)
+++ branches/2.8.x/wb/account/forgot_form.php	(revision 1719)
@@ -4,7 +4,7 @@
  * @category        frontend
  * @package         account
  * @author          WebsiteBaker Project
- * @copyright       2009-2011, Website Baker Org. e.V.
+ * @copyright       2009-2012, WebsiteBaker Org. e.V.
  * @link			http://www.websitebaker2.org/
  * @license         http://www.gnu.org/licenses/gpl.html
  * @platform        WebsiteBaker 2.8.x
@@ -15,11 +15,18 @@
  *
  */
 
-// Must include code to stop this file being access directly
-if(defined('WB_PATH') == false) { die("Cannot access this file directly"); }
+/* -------------------------------------------------------- */
+// Must include code to stop this file being accessed directly
+if(defined('WB_PATH') == false)
+{
+	// Stop this file being access directly
+		die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
+}
+/* -------------------------------------------------------- */
 // Check if the user has already submitted the form, otherwise show it
 $message = $MESSAGE['FORGOT_PASS_NO_DATA'];
 $errMsg ='';
+$redirect_url = (isset($redirect_url) && ($redirect_url!='')  ? $redirect_url : $_SESSION['HTTP_REFERER'] );
 if(isset($_POST['email']) && $_POST['email'] != "" )
 {
 	$email = strip_tags($_POST['email']);
@@ -100,28 +107,41 @@
 	$message = $errMsg;
 	$message_color = 'ff0000';
 }
-?>
-<div style="margin: 1em auto;">
-	<button type="button" value="cancel" onClick="javascript: window.location = '<?php print $_SESSION['HTTP_REFERER'] ?>';"><?php print $TEXT['CANCEL'] ?></button>
-</div>
-<h1 style="text-align: center;"><?php echo $MENU['FORGOT']; ?></h1>
-<form name="forgot_pass" action="<?php echo WB_URL.'/account/forgot.php'; ?>" method="post">
-	<input type="hidden" name="url" value="{URL}" />
-		<table summary="" cellpadding="5" cellspacing="0" border="0" align="center" width="500">
-		<tr>
-			<td height="40" align="center" style="color: #<?php echo $message_color; ?>;" colspan="3">
-			<strong><?php echo $message; ?></strong>
-			</td>
-		</tr>
-<?php if(!isset($display_form) OR $display_form != false) { ?>
-		<tr>
-			<td height="10" colspan="2"></td>
-		</tr>
-		<tr>
-			<td width="165" height="30" align="right"><?php echo $TEXT['EMAIL']; ?>:</td>
-			<td><input type="text" maxlength="255" name="email" value="<?php echo $email; ?>" style="width: 180px;" /></td>
-			<td><input type="submit" name="submit" value="<?php echo $TEXT['SEND_DETAILS']; ?>" style="width: 180px; font-size: 10px; color: #003366; border: 1px solid #336699; background-color: #DDDDDD; padding: 3px; text-transform: uppercase;" /></td>
-		</tr>
-<?php } ?>
-		</table>
-</form>
\ No newline at end of file
+
+// set template file and assign module and template block
+	$oTpl = new Template(dirname(__FILE__).'/htt','keep');
+	$oTpl->set_file('page', 'forgot.htt');
+	$oTpl->debug = false; // false, true
+	$oTpl->set_block('page', 'main_block', 'main');
+
+	$oTpl->set_block('main_block', 'message_block', 'message');
+	$oTpl->set_block('message', '');
+	if(!isset($display_form) OR $display_form != false) {}
+// generell vars
+	$oTpl->set_var(array(
+		'FTAN' => $wb->getFTAN(),
+		'ACTION_URL' => WB_URL.'/account/forgot.php',
+		'LOGIN_URL' => WB_URL.'/account/login.php',
+		'REDIRECT_URL' => $redirect_url,
+		'WB_URL' => WB_URL,
+		'THEME_URL' => THEME_URL,
+		'HTTP_REFERER' => $_SESSION['HTTP_REFERER'],
+		'MESSAGE_VALUE' => '',
+		'ERROR_VALUE' => '',
+		'THISAPP_MESSAGE_VALUE' => $message,
+		'TEXT_USERNAME' => $TEXT['USERNAME'],
+		'TEXT_EMAIL' => $TEXT['EMAIL'],
+//		'USER_FIELDNAME' => $username_fieldname,
+		'TEXT_SEND_DETAILS' => $TEXT['SEND_DETAILS'],
+		'TEXT_NEED_TO_LOGIN' => $TEXT['NEED_TO_LOGIN'],
+		'MENU_FORGOT' => $MENU['FORGOT'],
+		'TEXT_RESET' => $TEXT['RESET'],
+		'TEXT_CANCEL' => $TEXT['CANCEL'],
+		)
+	);
+
+	//$oTpl->parse('message', 'message_block', true);
+	$oTpl->parse('main', 'main_block', false);
+	$output = $oTpl->finish($oTpl->parse('output', 'page'));
+	unset($oTpl);
+	print $output;
Index: branches/2.8.x/wb/account/preferences_form.php
===================================================================
--- branches/2.8.x/wb/account/preferences_form.php	(revision 1718)
+++ branches/2.8.x/wb/account/preferences_form.php	(revision 1719)
@@ -4,8 +4,7 @@
  * @category        frontend
  * @package         account
  * @author          WebsiteBaker Project
- * @copyright       2004-2009, Ryan Djurovich
- * @copyright       2009-2011, Website Baker Org. e.V.
+ * @copyright       2009-2012, WebsiteBaker Org. e.V.
  * @link			http://www.websitebaker2.org/
  * @license         http://www.gnu.org/licenses/gpl.html
  * @platform        WebsiteBaker 2.8.x
@@ -16,8 +15,14 @@
  *
  */
 
-// prevent this file from being accesses directly
-if(defined('WB_PATH') == false) {	exit("Cannot access this file directly"); }
+/* -------------------------------------------------------- */
+// Must include code to stop this file being accessed directly
+if(defined('WB_PATH') == false)
+{
+	// Stop this file being access directly
+		die('<h2 style="color:red;margin:3em auto;text-align:center;">Cannot access this file directly</h2>');
+}
+/* -------------------------------------------------------- */
 
 	if($wb->is_authenticated() === false) {
 // User needs to login first
@@ -41,7 +46,7 @@
 	require(ADMIN_PATH.'/interface/time_formats.php');
 	$error = array();
 	$success = array();
-	$template = new Template(WB_PATH .'/account','remove');
+	$template = new Template(WB_PATH .'/account','keep');
 
 	switch($wb->get_post('action')):
 		case 'details':
@@ -59,7 +64,7 @@
 	endswitch; // switch
 
 // show template
-	$template->set_file('page', 'template.html');
+	$template->set_file('page', 'preferences.htt');
 	$template->set_block('page', 'main_block', 'main');
 // get existing values from database
 	$sql = "SELECT display_name,email FROM ".TABLE_PREFIX."users WHERE user_id = '".$wb->get_user_id()."'";
@@ -173,19 +178,25 @@
 						);
 // Insert error and/or success messages
 	$template->set_block('main_block', 'error_block', 'error_list');
+	$template->set_var('ERROR_VALUE', '');
 	if(sizeof($error)>0){
 		foreach($error AS $value){
 			$template->set_var('ERROR_VALUE', $value);
 			$template->parse('error_list', 'error_block', true);
 		}
+	} else {
+		$template->parse('error_list', '');
 	}
 
 	$template->set_block('main_block', 'success_block', 'success_list');
+	$template->set_var('SUCCESS_VALUE', '');
 	if(sizeof($success)!=0){
 		foreach($success AS $value){
 			$template->set_var('SUCCESS_VALUE', $value);
 			$template->parse('success_list', 'success_block', true);
 		}
+	} else {
+		$template->parse('success_list', '');
 	}
 // Parse template for preferences form
 	$template->parse('main', 'main_block', false);
