| 1 | <?php
 | 
  
    | 2 | /**
 | 
  
    | 3 |  *
 | 
  
    | 4 |  * @category        frontend
 | 
  
    | 5 |  * @package         account
 | 
  
    | 6 |  * @author          WebsiteBaker Project
 | 
  
    | 7 |  * @copyright       2004-2009, Ryan Djurovich
 | 
  
    | 8 |  * @copyright       2009-2010, Website Baker Org. e.V.
 | 
  
    | 9 |  * @link			http://www.websitebaker2.org/
 | 
  
    | 10 |  * @license         http://www.gnu.org/licenses/gpl.html
 | 
  
    | 11 |  * @platform        WebsiteBaker 2.8.x
 | 
  
    | 12 |  * @requirements    PHP 4.3.4 and higher
 | 
  
    | 13 |  * @version         $Id: login_form.php 1289 2010-02-10 15:13:21Z kweitzel $
 | 
  
    | 14 |  * @filesource		$HeadURL: svn://isteam.dynxs.de/wb-archiv/trunk/wb/account/login_form.php $
 | 
  
    | 15 |  * @lastmodified    $Date: 2010-02-10 16:13:21 +0100 (Wed, 10 Feb 2010) $
 | 
  
    | 16 |  *
 | 
  
    | 17 |  */
 | 
  
    | 18 | 
 | 
  
    | 19 | if(!defined('WB_URL')) die(header('Location: ../../index.php'));
 | 
  
    | 20 | 
 | 
  
    | 21 | $username_fieldname = 'username';
 | 
  
    | 22 | $password_fieldname = 'password';
 | 
  
    | 23 | 	
 | 
  
    | 24 | if(defined('SMART_LOGIN') AND SMART_LOGIN == 'enabled') {
 | 
  
    | 25 | 	// Generate username field name
 | 
  
    | 26 | 	$username_fieldname = 'username_';
 | 
  
    | 27 | 	$password_fieldname = 'password_';
 | 
  
    | 28 | 
 | 
  
    | 29 | 	$temp = array_merge(range('a','z'), range(0,9));
 | 
  
    | 30 | 	shuffle($temp);
 | 
  
    | 31 | 	for($i=0;$i<=7;$i++) {
 | 
  
    | 32 | 		$username_fieldname .= $temp[$i];
 | 
  
    | 33 | 		$password_fieldname .= $temp[$i];
 | 
  
    | 34 | 	}
 | 
  
    | 35 | }
 | 
  
    | 36 | ?>
 | 
  
    | 37 | <h1> Login</h1>
 | 
  
    | 38 |  <?php echo $thisApp->message; ?>
 | 
  
    | 39 | <br />
 | 
  
    | 40 | <br />
 | 
  
    | 41 | 
 | 
  
    | 42 | <form action="<?php echo WB_URL.'/account/login.php'; ?>" method="post">
 | 
  
    | 43 | <p style="display:none;"><input type="hidden" name="username_fieldname" value="<?php echo $username_fieldname; ?>" /></p>
 | 
  
    | 44 | <p style="display:none;"><input type="hidden" name="password_fieldname" value="<?php echo $password_fieldname; ?>" /></p>
 | 
  
    | 45 | <p style="display:none;"><input type="hidden" name="redirect" value="<?php echo $thisApp->redirect_url;?>" /></p>
 | 
  
    | 46 | 
 | 
  
    | 47 | <table cellpadding="5" cellspacing="0" border="0" width="90%">
 | 
  
    | 48 | <tr>
 | 
  
    | 49 | 	<td style="width:100px"><?php echo $TEXT['USERNAME']; ?>:</td>
 | 
  
    | 50 | 	<td class="value_input">
 | 
  
    | 51 | 		<input type="text" name="<?php echo $username_fieldname; ?>" maxlength="30" style="width:220px;"/>
 | 
  
    | 52 |     	<script type="text/javascript">
 | 
  
    | 53 |     	// document.login.<?php echo $username_fieldname; ?>.focus();
 | 
  
    | 54 |     	var ref= document.getElementById("<?php echo $username_fieldname; ?>");
 | 
  
    | 55 |     	if (ref) ref.focus();
 | 
  
    | 56 |     	</script>
 | 
  
    | 57 | 	</td>
 | 
  
    | 58 | </tr>
 | 
  
    | 59 | <tr>
 | 
  
    | 60 | 	<td style="width:100px"><?php echo $TEXT['PASSWORD']; ?>:</td>
 | 
  
    | 61 | 	<td class="value_input">
 | 
  
    | 62 | 		<input type="password" name="<?php echo $password_fieldname; ?>" maxlength="30" style="width:220px;"/>
 | 
  
    | 63 | 	</td>
 | 
  
    | 64 | </tr>
 | 
  
    | 65 | <?php if($username_fieldname != 'username') { ?>
 | 
  
    | 66 | <tr>
 | 
  
    | 67 | 	<td> </td>
 | 
  
    | 68 | 	<td>
 | 
  
    | 69 | 		<input type="checkbox" name="remember" id="remember" value="true"/>
 | 
  
    | 70 | 		<label for="remember"><?php echo $TEXT['REMEMBER_ME']; ?></label>
 | 
  
    | 71 | 	</td>
 | 
  
    | 72 | </tr>
 | 
  
    | 73 | <?php } ?>
 | 
  
    | 74 | <tr>
 | 
  
    | 75 | 	<td> </td>
 | 
  
    | 76 | 	<td>
 | 
  
    | 77 | 		<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>"  />
 | 
  
    | 78 | 		<input type="reset" name="reset" value="<?php echo $TEXT['RESET']; ?>"  />
 | 
  
    | 79 | 	</td>
 | 
  
    | 80 | </tr>
 | 
  
    | 81 | </table>
 | 
  
    | 82 | 
 | 
  
    | 83 | </form>
 | 
  
    | 84 | 
 | 
  
    | 85 | <br />
 | 
  
    | 86 | 
 | 
  
    | 87 | <a href="<?php echo WB_URL; ?>/account/forgot.php"><?php echo $TEXT['FORGOTTEN_DETAILS']; ?></a>
 |