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 @@ +