2024-08-16 16:37:30 +02:00
|
|
|
<?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 {
|
|
|
|
|
2024-08-16 16:44:07 +02:00
|
|
|
const VERSION = '1.1';
|
2024-08-16 16:37:30 +02:00
|
|
|
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() {
|
2024-08-16 16:44:07 +02:00
|
|
|
header('Content-Type: application/json');
|
|
|
|
echo(json_encode(common::ZWII_VERSION));
|
|
|
|
exit;
|
2024-08-16 16:37:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|