aboutsummaryrefslogtreecommitdiff
path: root/app/view/templates/connect.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-01-29 13:39:28 +0100
committervincent-peugnet <v.peugnet@free.fr>2019-01-29 13:39:28 +0100
commit5e1ca86211da0439003303cf3e0741edf31bced4 (patch)
tree99fb2548f6eab18b510c9e5850af2459b05d1401 /app/view/templates/connect.php
parentbd2ddfda3a922766ea2165963f2b2386066deeb2 (diff)
downloadwcms-5e1ca86211da0439003303cf3e0741edf31bced4.tar.gz
wcms-5e1ca86211da0439003303cf3e0741edf31bced4.zip
home redirect
Diffstat (limited to 'app/view/templates/connect.php')
-rw-r--r--app/view/templates/connect.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/view/templates/connect.php b/app/view/templates/connect.php
index 5d7ee5c..608a557 100644
--- a/app/view/templates/connect.php
+++ b/app/view/templates/connect.php
@@ -15,7 +15,11 @@
<form action="<?= $this->url('log') ?>" method="post">
<input type="hidden" name="route" value="<?= $route ?>">
-<input type="hidden" name="id" value="<?= $id ?>">
+<?php
+if(in_array($route, ['artedit', 'artread', 'artread/'])) {
+ echo '<input type="hidden" name="id" value="'. $id .'">';
+}
+?>
<input type="password" name="pass" id="loginpass" placeholder="password">
<input name="log" type="submit" value="login">
</form>