<?php
  /**
   * Copyright 2011 Zazavi - http://www.zazavi.com
   * Zazavi is free software released under the terms of the GNU General Public License.
   * You should have received a copy of the license.  If not, see <http://www.gnu.org/licenses/>.
   */
  if (!defined("_VALID_PHP"))
      die('Direct access to this location is not allowed.');
?>
<!-- Full Layout -->
<div id="main-col">
  <div class="wrap">
    <div class="main-col-inner">
      <?php switch($core->action): case "activate": ?>
      <h1><?php echo _UA_TITLE5;?></h1>
      <p class="info"><?php echo _UA_INFO5;?></p>
      <div class="box">
        <form action="" method="post" id="admin_form" name="admin_form">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
              <td colspan="2"><div style="position:relative"><div id="msgholder"></div><h3><?php echo _UA_SUBTITLE5;?></h3></div></td>
            </tr>
            <tr>
              <td width="200"><strong><?php echo _UR_EMAIL;?>: <?php echo required();?></strong></td>
              <td><input name="email" type="text" size="45" maxlength="40" class="inputbox" /></td>
            </tr>
            <tr>
              <td><strong><?php echo _UA_TOKEN;?>: <?php echo required();?></strong></td>
              <td><input name="token" type="text" size="45" maxlength="40" class="inputbox" /></td>
            </tr>
            <tr>
              <td colspan="2"><input name="submit" value="<?php echo _UA_ACTIVATE_ACC;?>" type="submit" class="button"/></td>
            </tr>
          </table>
        </form>
      </div>
      <?php echo $core->doForm("accActivate","ajax/user.php");?>
      <?php break;?>
      <?php default: ?>
      <h1><?php echo _UA_INFO2;?></h1>
      <p class="info"><?php echo _UA_SUBTITLE2. _REQ1. required() . _REQ2;?></p>
      <div class="box">
        <form action="" method="post" id="login_form" name="login_form">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
              <td colspan="2"><div style="position:relative">
                  <div id="msgholder-alt"><?php print $core->showMsg;?></div>
                  <h3><?php echo _UA_TITLE2;?></h3>
                </div></td>
            </tr>
            <tr>
              <td width="200"><strong><?php echo _USERNAME;?>: <?php echo required();?></strong></td>
              <td><input name="username" type="text" size="45" maxlength="20" class="inputbox" /></td>
            </tr>
            <tr>
              <td><strong><?php echo _PASSWORD;?>: <?php echo required();?></strong></td>
              <td><input name="password" type="password" size="45" maxlength="20" class="inputbox" /></td>
            </tr>
            <tr>
              <td><input name="submit" value="<?php echo _UA_LOGINNOW;?>" type="submit" class="button"/></td>
              <td align="right"><a class="button" href="register.php"><?php echo _UA_CLICKTOREG;?></a></td>
            </tr>
          </table>
          <input name="doLogin" type="hidden" value="1" />
        </form>
      </div>
      <br />
      <p class="info"><?php echo _UA_SUBTITLE3;?></p>
      <div class="box">
        <form action="" method="post" id="admin_form" name="admin_form">
          <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
              <td colspan="2"><div style="position:relative">
                  <div id="msgholder"></div>
                  <h3><?php echo _UA_TITLE3;?></h3>
                </div></td>
            </tr>
            <tr>
              <td width="200"><strong><?php echo _USERNAME;?>: <?php echo required();?></strong></td>
              <td><input name="uname" type="text" size="45" maxlength="20" class="inputbox" /></td>
            </tr>
            <tr>
              <td><strong><?php echo _UR_EMAIL;?>:</strong> <?php echo required();?></td>
              <td><input name="email" type="text" size="45" maxlength="60" class="inputbox" /></td>
            </tr>
            <tr>
              <td><strong><?php echo _UA_PASS_RTOTAL;?> <?php echo required();?></strong></td>
              <td><input name="captcha" type="text" size="10" maxlength="2" class="inputbox" /></td>
            </tr>
            <tr>
              <td colspan="2"><input  name="submit" value="<?php echo _UA_PASS_RSUBMIT;?>" type="submit" class="button"/></td>
            </tr>
          </table>
        </form>
      </div>
      <?php echo $core->doForm("passReset","ajax/user.php");?>
      <?php break;?>
      <?php endswitch;?>
    </div>
  </div>
</div>
<!-- Full Layout /--> 