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:
parent
9957d86037
commit
60ad986924
1
version/enum.json
Normal file
1
version/enum.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"name":"version","realName":"Version","version":"1.0","update":"0.0","delete":true,"dataDirectory":""}
|
36
version/version.php
Normal file
36
version/version.php
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
1
version/view/index/index.php
Normal file
1
version/view/index/index.php
Normal file
@ -0,0 +1 @@
|
|||||||
|
<?php // Dummy file
|
Loading…
Reference in New Issue
Block a user