2021-08-23 11:24:19 +00:00
|
|
|
<?php
|
2021-09-02 12:56:02 +00:00
|
|
|
/**
|
|
|
|
* @brief periodical, a plugin for Dotclear 2
|
2022-11-14 21:08:00 +00:00
|
|
|
*
|
2021-09-02 12:56:02 +00:00
|
|
|
* @package Dotclear
|
|
|
|
* @subpackage Plugin
|
2022-11-14 21:08:00 +00:00
|
|
|
*
|
2021-09-02 12:56:02 +00:00
|
|
|
* @author Jean-Christian Denis and contributors
|
2022-11-14 21:08:00 +00:00
|
|
|
*
|
2021-09-02 12:56:02 +00:00
|
|
|
* @copyright Jean-Christian Denis
|
|
|
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
|
|
|
*/
|
2021-08-23 11:24:19 +00:00
|
|
|
if (!defined('DC_CONTEXT_ADMIN')) {
|
2021-08-23 22:52:29 +00:00
|
|
|
return null;
|
2021-08-23 11:24:19 +00:00
|
|
|
}
|
|
|
|
|
2021-10-24 07:43:26 +00:00
|
|
|
$part = !empty($_REQUEST['part']) ? $_REQUEST['part'] : 'periods';
|
2021-08-23 11:24:19 +00:00
|
|
|
|
2021-10-24 07:43:26 +00:00
|
|
|
if ($part == 'period') {
|
2022-11-14 19:55:22 +00:00
|
|
|
include __DIR__ . '/inc/index.period.php';
|
2021-08-23 22:52:29 +00:00
|
|
|
} else {
|
2022-11-14 19:55:22 +00:00
|
|
|
include __DIR__ . '/inc/index.periods.php';
|
2022-11-14 21:08:00 +00:00
|
|
|
}
|