ZwiiCMS/module/version/version.php

37 lines
778 B
PHP
Raw Normal View History

2021-03-03 14:22:58 +01: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
2021-03-04 13:30:38 +01:00
* @author : Frédéric Tempez <frederic.tempez@outlook.com> *
2021-03-03 14:22:58 +01:00
* @copyright Copyright (C) 2018-2020, Frédéric Tempez
* @link http://zwiicms.com/
*/
class version extends common {
2021-03-04 13:30:38 +01:00
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)
2021-03-03 14:22:58 +01:00
public static $actions = [
'index'=> self::GROUP_VISITOR
];
2021-03-04 13:30:38 +01:00
2021-03-03 14:22:58 +01:00
/**
* Retourne le numéro de version
*/
public function index() {
exit( common::ZWII_VERSION);
2021-03-04 13:30:38 +01:00
}
2021-03-03 14:22:58 +01:00
}