diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 13:55:40 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 13:55:40 +0100 |
commit | e4768cd0647d934eff424f73bfd9f5c8f6223c94 (patch) | |
tree | b36029a8152d79108e0dd57aacd73f80b7232b33 /app/view/templates | |
parent | 0f44c6d918a2932b68019c02de5bc55e7057600a (diff) | |
download | wcms-e4768cd0647d934eff424f73bfd9f5c8f6223c94.tar.gz wcms-e4768cd0647d934eff424f73bfd9f5c8f6223c94.zip |
link+log
Diffstat (limited to 'app/view/templates')
-rw-r--r-- | app/view/templates/connect.php | 8 | ||||
-rw-r--r-- | app/view/templates/navart.php | 10 |
2 files changed, 10 insertions, 8 deletions
diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php index a4d58e7..06fe9c8 100644 --- a/app/view/templates/connect.php +++ b/app/view/templates/connect.php @@ -11,16 +11,16 @@ <?php if($user->isvisitor()) { ?> -<form action="./?action=login" method="post"> +<form action="<?= $this->url('log') ?>" method="post"> <input type="password" name="pass" id="loginpass" placeholder="password"> -<input type="submit" value="login"> +<input name="log" type="submit" value="login"> </form> <?php } else { ?> -<form action="./?action=logout" method="post"> -<input type="submit" value="logout"> +<form action="<?= $this->url('log') ?>" method="post"> +<input name="log" type="submit" value="logout"> </form> 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> |