Advertisement
Guest User

Untitled

a guest
Mar 17th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.34 KB | None | 0 0
  1. <?php if (!defined('FLUX_ROOT')) exit; ?>
  2. <?php if (!$session->isLoggedIn()): ?>
  3.     <h2><?php echo htmlspecialchars(Flux::message('LoginHeading')) ?></h2>
  4.    
  5.     <?php if (isset($errorMessage)): ?>
  6.     <p class="red"><?php echo htmlspecialchars($errorMessage) ?></p>
  7.     <?php else: ?>
  8.  
  9.     <?php endif ?>
  10.     <form action="<?php echo $this->url('account', 'login', array('return_url' => $params->get('return_url'))) ?>" method="post" class="generic-form">
  11.        
  12.         <?php if (count($serverNames) === 1): ?>
  13.             <input type="hidden" name="server" value="<?php echo htmlspecialchars($session->loginAthenaGroup->serverName) ?>">
  14.         <?php endif ?>
  15.        
  16.         <label for="login_username"><?php echo htmlspecialchars(Flux::message('AccountUsernameLabel')) ?></label></th>
  17.         <input type="text" name="username" id="login_username" value="<?php echo htmlspecialchars($params->get('username')) ?>" /></td>
  18.         <label for="login_password"><?php echo htmlspecialchars(Flux::message('AccountPasswordLabel')) ?></label></th>
  19.         <input type="password" name="password" id="login_password" /></td>
  20.         <input type="submit" value="<?php echo htmlspecialchars(Flux::message('LoginButton')) ?>" />
  21.     </form>
  22.    
  23.     <?php if ($auth->actionAllowed('account', 'create')): ?>
  24.         <p><?php printf(Flux::message('LoginPageMakeAccount'), $this->url('account', 'create')); ?></p>
  25.     <?php endif ?>
  26.    
  27. <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement