2021-09-02 22:04:20 +00:00
|
|
|
<?php
|
2021-09-02 22:18:08 +00:00
|
|
|
/**
|
|
|
|
* @brief activityReport, 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
|
|
|
|
*/
|
2021-09-02 22:04:20 +00:00
|
|
|
|
2021-09-02 22:51:23 +00:00
|
|
|
if (!defined('DC_RC_PATH')) {
|
|
|
|
return null;
|
|
|
|
}
|
2021-09-02 22:04:20 +00:00
|
|
|
|
2021-09-03 08:01:27 +00:00
|
|
|
$d = dirname(__FILE__) . '/inc/';
|
|
|
|
$__autoload['activityReport'] = $d . 'class.activity.report.php';
|
|
|
|
$__autoload['activityReportBehaviors'] = $d . 'class.activity.report.behaviors.php';
|
|
|
|
$__autoload['activityReportLib'] = $d . 'lib.activity.report.index.php';
|
2021-09-02 22:04:20 +00:00
|
|
|
|
2021-09-02 22:51:23 +00:00
|
|
|
try {
|
2021-09-02 22:18:08 +00:00
|
|
|
$core->activityReport = new activityReport($core);
|
2021-09-02 22:04:20 +00:00
|
|
|
|
2021-09-02 22:18:08 +00:00
|
|
|
$core->url->register(
|
|
|
|
'activityReport',
|
|
|
|
'reports',
|
|
|
|
'^reports/((atom|rss2)/(.+))$',
|
2021-09-02 22:51:23 +00:00
|
|
|
['activityReportPublicUrl', 'feed']
|
2021-09-02 22:18:08 +00:00
|
|
|
);
|
2021-09-02 22:04:20 +00:00
|
|
|
|
2021-09-02 22:51:23 +00:00
|
|
|
define('ACTIVITY_REPORT', true);
|
2021-09-02 22:04:20 +00:00
|
|
|
|
2021-09-03 08:01:27 +00:00
|
|
|
activityReportBehaviors::registerBehaviors($core);
|
2021-09-02 22:51:23 +00:00
|
|
|
} catch (Exception $e) {
|
2021-09-02 22:18:08 +00:00
|
|
|
//throw new Exception('Failed to launch activityReport');
|
|
|
|
}
|