aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/navart.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/view/templates/navart.php')
-rw-r--r--app/view/templates/navart.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/view/templates/navart.php b/app/view/templates/navart.php
index f747eca..9ce932d 100644
--- a/app/view/templates/navart.php
+++ b/app/view/templates/navart.php
@@ -33,17 +33,19 @@ div#dropmenu {
<?php if($user->isvisitor()) { ?>
<li>
- <form action="./?action=login<?= $art->id() !== null ? '&id=' . $art->id() : '' ?>" method="post">
+ <form action="<?= $this->url('log') ?>" method="post">
<input type="password" name="pass" id="loginpass" placeholder="password">
- <input type="submit" value="login">
+ <input type="hidden" name="id" value="<?= $art->id() ?>">
+ <input type="submit" name="log" value="login">
</form>
</li>
<?php } else { ?>
<li>
- <form action="./?action=logout<?= $art->id() !== null ? '&id=' . $art->id() : '' ?>" method="post">
- <input type="submit" value="logout">
+ <form action="<?= $this->url('log') ?>" method="post">
+ <input type="hidden" name="id" value="<?= $art->id() ?>">
+ <input type="submit" name="log" value="logout">
</form>
</li>