2022-12-17 16:38:59 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @brief saba, 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
|
|
|
|
*/
|
|
|
|
if (!defined('DC_RC_PATH')) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (defined('ACTIVITY_REPORT_V2')) {
|
2022-12-22 22:27:12 +00:00
|
|
|
dcCore::app()->__get('activityReport')->addAction(
|
2022-12-17 16:38:59 +00:00
|
|
|
'blog',
|
|
|
|
'saba404',
|
|
|
|
__('404 error (saba)'),
|
|
|
|
__('New 404 error page at "%s"'),
|
|
|
|
'sabaBeforeErrorDocument',
|
|
|
|
function () {
|
|
|
|
$logs = [dcCore::app()->blog->url . urldecode($_SERVER['QUERY_STRING'])];
|
2022-12-22 22:27:12 +00:00
|
|
|
dcCore::app()->__get('activityReport')->addLog('blog', 'saba404', $logs);
|
2022-12-17 16:38:59 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|