From 60ad9869247b047b6972449e00e21d9f408b1c30 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 16 Aug 2024 16:37:30 +0200 Subject: [PATCH] =?UTF-8?q?Version=201.0=20Ce=20module=20permet=20de=20con?= =?UTF-8?q?necter=20un=20script=20sur=20votre=20site=20afin=20de=20surveil?= =?UTF-8?q?ler=20le=20num=C3=A9ro=20de=20version=20install=C3=A9..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- version/enum.json | 1 + version/version.php | 36 ++++++++++++++++++++++++++++++++++++ version/view/index/index.php | 1 + 3 files changed, 38 insertions(+) create mode 100644 version/enum.json create mode 100644 version/version.php create mode 100644 version/view/index/index.php diff --git a/version/enum.json b/version/enum.json new file mode 100644 index 0000000..6bff241 --- /dev/null +++ b/version/enum.json @@ -0,0 +1 @@ +{"name":"version","realName":"Version","version":"1.0","update":"0.0","delete":true,"dataDirectory":""} \ No newline at end of file diff --git a/version/version.php b/version/version.php new file mode 100644 index 0000000..284675e --- /dev/null +++ b/version/version.php @@ -0,0 +1,36 @@ + * + * @copyright Copyright (C) 2018-2020, Frédéric Tempez + * @link http://zwiicms.com/ + */ + +class version extends common { + + const VERSION = '1.0'; + const REALNAME = 'Version'; + const DELETE = true; + const UPDATE = '0.0'; + const DATADIRECTORY = ''; // Contenu localisé inclus par défaut (page.json et module.json) + + public static $actions = [ + 'index'=> self::GROUP_VISITOR + + ]; + + /** + * Retourne le numéro de version + */ + + public function index() { + exit( common::ZWII_VERSION); + } + +} diff --git a/version/view/index/index.php b/version/view/index/index.php new file mode 100644 index 0000000..2263730 --- /dev/null +++ b/version/view/index/index.php @@ -0,0 +1 @@ +