Zwii-Modules/version/version.php
Fred Tempez aa5ee8d531 Version 1.1
Retourne une variable JSON
2024-08-16 16:44:07 +02:00

39 lines
842 B
PHP

<?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.1';
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() {
header('Content-Type: application/json');
echo(json_encode(common::ZWII_VERSION));
exit;
}
}