Rev | Line | |
---|
[1] | 1 | <?php if($env->pun_user['is_guest']) : ?> |
---|
| 2 | <form id="pun_login_form" |
---|
| 3 | action="<?= $env->url(array("e" => $env->e, "login" => "in", "from" => urlencode($_SERVER["REQUEST_URI"]))) ?>" |
---|
| 4 | method="post"> |
---|
| 5 | <input type="hidden" name="form_sent" value="1" /> |
---|
| 6 | <table> |
---|
| 7 | <tr> |
---|
| 8 | <th>login</th> |
---|
| 9 | <td><input class="txt" type="text" name="req_username" /></td> |
---|
| 10 | </tr> |
---|
| 11 | <tr> |
---|
| 12 | <th>pass</th> |
---|
| 13 | <td><input class="txt" type="password" name="req_password" /></td> |
---|
| 14 | </tr> |
---|
| 15 | <tr> |
---|
| 16 | <td colspan="2" style="text-align: right"><input class="submit" type="submit" name="login" value="Login" /></td> |
---|
| 17 | </tr> |
---|
| 18 | </table> |
---|
| 19 | <div class="clear"><!-- --></div> |
---|
| 20 | <p> |
---|
| 21 | <a href="<?= $env->path("punbb") ?>login.php?action=forget">mot de passe oublié</a> |
---|
| 22 | | <a href="<?= $env->path("punbb") ?>register.php?from=<?= urlencode($_SERVER["REQUEST_URI"]) ?>">s'inscrire</a> |
---|
| 23 | </p> |
---|
| 24 | </form> |
---|
| 25 | |
---|
| 26 | <?php else : ?> |
---|
| 27 | <div id="pun_login_menu"> |
---|
| 28 | Bienvenue <b><?= $env->pun_user["username"] ?></b> |
---|
| 29 | <ul class="menu"> |
---|
| 30 | <li><a href="<?= $env->path("punbb")."profile.php?id=".$env->pun_user["id"] ?>">mon compte</a></li> |
---|
| 31 | <li>| <a href="<?= $env->url(array("e" => "accueil", "login" => "out", "id" => $env->pun_user["id"])) ?>">deconnexion</a></li> |
---|
| 32 | <?php if($env->data->is_admin($env->pun_user["id"])) : ?> |
---|
| 33 | <li>| <a href="<?= $env->url(array("e" => "set_config")) ?>">admin</a></li> |
---|
| 34 | <?php endif; ?> |
---|
| 35 | </ul> |
---|
| 36 | </div> |
---|
| 37 | <?php endif; ?> |
---|
| 38 | <div class="clear"><!-- --></div> |
---|
Note: See
TracBrowser
for help on using the repository browser.