auth.html 915 B

1234567891011121314151617181920212223
  1. <?php if($Doomguy->isSignedIn() === true) { ?>
  2. <h3><?php echo $I18n->t('auth.logout'); ?></h3>
  3. <form method="get" action="index.php">
  4. <input type="hidden" name="p" value="auth" />
  5. <input type="hidden" name="m" value="logout" />
  6. <input type="submit" value="<?php echo $I18n->t('auth.logout'); ?>" />
  7. </form>
  8. <?php } else { ?>
  9. <h3><?php echo $I18n->t('global.login'); ?></h3>
  10. <form method="post">
  11. <div class="field-row">
  12. <label for="username"><?php echo $I18n->t('global.username'); ?></label>
  13. <input id="username" type="text" autocomplete="off" name="fdata[login]">
  14. </div>
  15. <div class="field-row">
  16. <label for="password"><?php echo $I18n->t('global.password'); ?></label>
  17. <input id="password" type="password" autocomplete="off" name="fdata[password]">
  18. </div>
  19. <div class="field-row">
  20. <input type="submit" value="<?php echo $I18n->t('global.login'); ?>" name="submitForm" />
  21. </div>
  22. </form>
  23. <?php } ?>