Version 1.0

Ce module permet de connecter un script sur votre site afin de surveiller le numéro de version installé..
This commit is contained in:
Fred Tempez 2024-08-16 16:37:30 +02:00
parent 9957d86037
commit 60ad986924
3 changed files with 38 additions and 0 deletions

1
version/enum.json Normal file
View File

@ -0,0 +1 @@
{"name":"version","realName":"Version","version":"1.0","update":"0.0","delete":true,"dataDirectory":""}

36
version/version.php Normal file
View File

@ -0,0 +1,36 @@
<?php
/**
* This file is part of Zwii.
*
* For full copyright and license information, please see the LICENSE
* file that was distributed with this source code.
*
* @license GNU General Public License, version 3
* @author : Frédéric Tempez <frederic.tempez@outlook.com> *
* @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);
}
}

View File

@ -0,0 +1 @@
<?php // Dummy file