Advertisement
Guest User

Untitled

a guest
Sep 13th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.18 KB | None | 0 0
  1. <?php if (!defined('FLUX_ROOT')) exit; ?>
  2. <h2><?php echo htmlspecialchars(Flux::message('AccountCreateHeading')) ?></h2>
  3. <p><?php printf(htmlspecialchars(Flux::message('AccountCreateInfo')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?></p>
  4. <?php if (Flux::config('RequireEmailConfirm')): ?>
  5. <p><strong>Note:</strong> You will need to provide a working e-mail address to confirm your account before you can log-in.</p>
  6. <?php endif ?>
  7. <p><strong>Note:</strong> <?php echo sprintf("Your password must be between %d and %d characters.", Flux::config('MinPasswordLength'), Flux::config('MaxPasswordLength')) ?></p>
  8. <?php if (Flux::config('PasswordMinUpper') > 0): ?>
  9. <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedUpper'), Flux::config('PasswordMinUpper')) ?></p>
  10. <?php endif ?>
  11. <?php if (Flux::config('PasswordMinLower') > 0): ?>
  12. <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedLower'), Flux::config('PasswordMinLower')) ?></p>
  13. <?php endif ?>
  14. <?php if (Flux::config('PasswordMinNumber') > 0): ?>
  15. <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedNumber'), Flux::config('PasswordMinNumber')) ?></p>
  16. <?php endif ?>
  17. <?php if (Flux::config('PasswordMinSymbol') > 0): ?>
  18. <p><strong>Note:</strong> <?php echo sprintf(Flux::message('PasswordNeedSymbol'), Flux::config('PasswordMinSymbol')) ?></p>
  19. <?php endif ?>
  20. <?php if (!Flux::config('AllowUserInPassword')): ?>
  21. <p><strong>Note:</strong> <?php echo Flux::message('PasswordContainsUser') ?></p>
  22. <?php endif ?>
  23. <?php if (isset($errorMessage)): ?>
  24. <p class="red" style="font-weight: bold"><?php echo htmlspecialchars($errorMessage) ?></p>
  25. <?php endif ?>
  26. <form action="<?php echo $this->url ?>" method="post" class="generic-form">
  27.     <?php if (count($serverNames) === 1): ?>
  28.     <input type="hidden" name="server" value="<?php echo htmlspecialchars($session->loginAthenaGroup->serverName) ?>">
  29.     <?php endif ?>
  30.     <table class="generic-form-table">
  31.         <?php if (count($serverNames) > 1): ?>
  32.         <tr>
  33.             <th><label for="register_server"><?php echo htmlspecialchars(Flux::message('AccountServerLabel')) ?></label></th>
  34.             <td>
  35.                 <select name="server" id="register_server"<?php if (count($serverNames) === 1) echo ' disabled="disabled"' ?>>
  36.                 <?php foreach ($serverNames as $serverName): ?>
  37.                     <option value="<?php echo htmlspecialchars($serverName) ?>"<?php if ($params->get('server') == $serverName) echo ' selected="selected"' ?>><?php echo htmlspecialchars($serverName) ?></option>
  38.                 <?php endforeach ?>
  39.                 </select>
  40.             </td>
  41.         </tr>
  42.         <?php endif ?>
  43.        
  44.         <tr>
  45.             <th><label for="register_username"><?php echo htmlspecialchars(Flux::message('AccountUsernameLabel')) ?></label></th>
  46.             <td><input type="text" name="username" id="register_username" value="<?php echo htmlspecialchars($params->get('username')) ?>" /></td>
  47.         </tr>
  48.        
  49.         <tr>
  50.             <th><label for="register_password"><?php echo htmlspecialchars(Flux::message('AccountPasswordLabel')) ?></label></th>
  51.             <td><input type="password" name="password" id="register_password" /></td>
  52.         </tr>
  53.        
  54.         <tr>
  55.             <th><label for="register_confirm_password"><?php echo htmlspecialchars(Flux::message('AccountPassConfirmLabel')) ?></label></th>
  56.             <td><input type="password" name="confirm_password" id="register_confirm_password" /></td>
  57.         </tr>
  58.        
  59.         <tr>
  60.             <th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel')) ?></label></th>
  61.             <td><input type="text" name="email_address" id="register_email_address" value="<?php echo htmlspecialchars($params->get('email_address')) ?>" /></td>
  62.         </tr>
  63.        
  64.         <tr>
  65.             <th><label for="register_email_address"><?php echo htmlspecialchars(Flux::message('AccountEmailLabel2')) ?></label></th>
  66.             <td><input type="text" name="email_address2" id="register_email_address2" value="<?php echo htmlspecialchars($params->get('email_address2')) ?>" /></td>
  67.         </tr>
  68.         <tr>
  69.             <th><label for="new_field">Custom Field</label></th>
  70.             <td><input type="text" name="new_field" id="new_field" value="new_field" /></td>
  71.         </tr>
  72.         <tr>
  73.             <th><label><?php echo htmlspecialchars(Flux::message('AccountGenderLabel')) ?></label></th>
  74.             <td>
  75.                 <p>
  76.                     <label><input type="radio" name="gender" id="register_gender_m" value="M"<?php if ($params->get('gender') === 'M') echo ' checked="checked"' ?> /> <?php echo $this->genderText('M') ?></label>
  77.                     <label><input type="radio" name="gender" id="register_gender_f" value="F"<?php if ($params->get('gender') === 'F') echo ' checked="checked"' ?> /> <?php echo $this->genderText('F') ?></label>
  78.                     <strong title="<?php echo htmlspecialchars(Flux::message('AccountCreateGenderInfo')) ?>">?</strong>
  79.                 </p>
  80.             </td>
  81.         </tr>
  82.        
  83.         <tr>
  84.             <th><label><?php echo htmlspecialchars(Flux::message('AccountBirthdateLabel')) ?></label></th>
  85.             <td><?php echo $this->dateField('birthdate',null,0) ?></td>
  86.         </tr>
  87.        
  88.         <?php if (Flux::config('UseCaptcha')): ?>
  89.         <tr>
  90.             <?php if (Flux::config('EnableReCaptcha')): ?>
  91.             <th><label for="register_security_code"><?php echo htmlspecialchars(Flux::message('AccountSecurityLabel')) ?></label></th>
  92.             <td><?php echo $recaptcha ?></td>
  93.             <?php else: ?>
  94.             <th><label for="register_security_code"><?php echo htmlspecialchars(Flux::message('AccountSecurityLabel')) ?></label></th>
  95.             <td>
  96.                 <div class="security-code">
  97.                     <img src="<?php echo $this->url('captcha') ?>" />
  98.                 </div>
  99.                
  100.                 <input type="text" name="security_code" id="register_security_code" />
  101.                 <div style="font-size: smaller;" class="action">
  102.                     <strong><a href="javascript:refreshSecurityCode('.security-code img')"><?php echo htmlspecialchars(Flux::message('RefreshSecurityCode')) ?></a></strong>
  103.                 </div>
  104.             </td>
  105.             <?php endif ?>
  106.         </tr>
  107.         <?php endif ?>
  108.        
  109.         <tr>
  110.             <td></td>
  111.             <td>
  112.                 <div style="margin-bottom: 5px">
  113.                     <?php printf(htmlspecialchars(Flux::message('AccountCreateInfo2')), '<a href="'.$this->url('service', 'tos').'">'.Flux::message('AccountCreateTerms').'</a>') ?>
  114.                 </div>
  115.                 <div>
  116.                     <button type="submit"><strong><?php echo htmlspecialchars(Flux::message('AccountCreateButton')) ?></strong></button>
  117.                 </div>
  118.             </td>
  119.         </tr>
  120.     </table>
  121. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement