diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-29 13:39:28 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-29 13:39:28 +0100 |
commit | 5e1ca86211da0439003303cf3e0741edf31bced4 (patch) | |
tree | 99fb2548f6eab18b510c9e5850af2459b05d1401 /app/view/templates/connect.php | |
parent | bd2ddfda3a922766ea2165963f2b2386066deeb2 (diff) | |
download | wcms-5e1ca86211da0439003303cf3e0741edf31bced4.tar.gz wcms-5e1ca86211da0439003303cf3e0741edf31bced4.zip |
home redirect
Diffstat (limited to 'app/view/templates/connect.php')
-rw-r--r-- | app/view/templates/connect.php | 6 |
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> |