From 393709dcf84776c760146722560816172167fe98 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 12 Jan 2019 14:53:41 +0100 Subject: visit counter --- app/view/templates/home.php | 10 +++++----- app/view/templates/homeopt.php | 32 ++++++++++++++++++++++++++++++-- app/view/templates/user.php | 16 ++++++++++++++-- 3 files changed, 49 insertions(+), 9 deletions(-) (limited to 'app/view/templates') diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 6fcb0c8..5860975 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -22,7 +22,7 @@
- insert('homeopt', ['opt' => $opt]) ?> + insert('homeopt', ['opt' => $opt, 'user' => $user]) ?> @@ -63,12 +63,12 @@ date of creation date privacy - affcount + visit - - + + 👁 @@ -80,7 +80,7 @@ datecreation('hrdi') ?> date('dmy') ?> secure('string') ?> - affcount() ?> + visitcount() ?> diff --git a/app/view/templates/homeopt.php b/app/view/templates/homeopt.php index a37e65b..5dab881 100644 --- a/app/view/templates/homeopt.php +++ b/app/view/templates/homeopt.php @@ -51,9 +51,9 @@ foreach ($opt->taglist() as $tagfilter => $count) { if (in_array($tagfilter, $opt->tagfilter())) { - echo '
  • '; + echo '
  • '; } else { - echo '
  • '; + echo '
  • '; } } if ($in = true || $out = true) { @@ -78,5 +78,33 @@ if ($in = true || $out = true) { +isadmin()) { ?> + + +

    Columns

    + +
    + +
      + +col() as $col) { + ?> +
    • + + +
    • + + +
    + +
    + + +
    diff --git a/app/view/templates/user.php b/app/view/templates/user.php index 957f17f..d97cc31 100644 --- a/app/view/templates/user.php +++ b/app/view/templates/user.php @@ -11,12 +11,22 @@
    -

    User : id() ?>

    -
    +
    + +

    Connexion Options

    + + + + + + +
    + +

    Admin panel

    @@ -88,6 +98,8 @@ foreach ($userlist as $user ) {
    + +
    -- cgit v1.2.3