aboutsummaryrefslogtreecommitdiff
path: root/public/w/index.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-03-20 14:37:49 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-03-20 14:37:49 +0100
commit552dd49b00cedb168c95cdf841971e93b0ad678d (patch)
tree350b824cba024ad65eb186110d36b9dc275f2f59 /public/w/index.php
parent1654358ea4e4c0a100d7e58b1001ece1f908b7b3 (diff)
downloadwcms-552dd49b00cedb168c95cdf841971e93b0ad678d.tar.gz
wcms-552dd49b00cedb168c95cdf841971e93b0ad678d.zip
get tag
Diffstat (limited to 'public/w/index.php')
-rw-r--r--public/w/index.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/public/w/index.php b/public/w/index.php
index f12e7f4..93d9f46 100644
--- a/public/w/index.php
+++ b/public/w/index.php
@@ -83,7 +83,7 @@ if (isset($_GET['id'])) {
if (isset($_GET['edit']) and $_GET['edit'] == 1) {
$aff->edit($art);
- $aff->aside($app->list());
+ $aff->aside($app->lister());
} else {
$aff->lecture($art);
@@ -92,8 +92,7 @@ if (isset($_GET['id'])) {
if (isset($_POST['action'])) {
if ($_POST['action'] == 'new') {
$art = new Art($_GET);
- $art->default();
- var_dump($art);
+ $art->reset();
$app->add($art);
header('Location: ?id=' . $_GET['id'] . '&edit=1');
}
@@ -107,9 +106,13 @@ if (isset($_GET['id'])) {
}
}
+} elseif (isset($_GET['tag'])) {
+ echo '<h4>' . $_GET['tag'] . '</h4>';
+ $aff->tag($app->getlister(), $_GET['tag']);
+
} else {
echo "<h4>Bienvenue sur ce site.</h4>";
- $aff->home($app->list());
+ $aff->home($app->lister());
}
echo '</body>';