Dotclear

source: plugins/activityReport/_prepend.php @ 1519

Revision 1519, 902 bytes checked in by JcDenis, 14 years ago (diff)

activityReport 0.3:

  • Added atom/rss2 feeds
  • Moved some class
Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3# This file is part of activityReport, a plugin for Dotclear 2.
4#
5# Copyright (c) 2009 JC Denis and contributors
6# jcdenis@gdwd.com
7#
8# Licensed under the GPL version 2.0 license.
9# A copy of this license is available in LICENSE file or at
10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11# -- END LICENSE BLOCK ------------------------------------
12
13if (!defined('DC_RC_PATH')){return;}
14
15global $__autoload, $core;
16
17$__autoload['activityReport'] = 
18     dirname(__FILE__).'/inc/class.activity.report.php';
19
20try
21{
22     $core->activityReport = new activityReport($core);
23
24     $core->url->register(
25          'activityReport',
26          'reports',
27          '^reports/(atom|rss2)$',
28          array('activityReportPublicUrl','feed')
29     );
30
31     require_once dirname(__FILE__).'/inc/class.activity.report.behaviors.php';
32}
33catch (Exception $e) {}
34?>
Note: See TracBrowser for help on using the repository browser.

Sites map