whiteListCom/_prepend.php

23 lines
540 B
PHP
Raw Normal View History

2021-08-17 19:06:58 +00:00
<?php
2023-01-07 23:42:34 +00:00
/**
* @brief whiteListCom, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and Contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2023-01-07 22:52:09 +00:00
declare(strict_types=1);
2021-08-17 19:06:58 +00:00
2023-01-07 22:52:09 +00:00
$prepend = implode('\\', ['Dotclear', 'Plugin', basename(__DIR__), 'Prepend']);
if (!class_exists($prepend)) {
require implode(DIRECTORY_SEPARATOR, [__DIR__, 'inc', 'Prepend.php']);
2021-08-17 19:06:58 +00:00
2023-01-07 22:52:09 +00:00
if ($prepend::init()) {
$prepend::process();
2023-01-07 22:28:40 +00:00
}
2023-01-07 23:42:34 +00:00
}