1 | <?php |
---|
2 | # ***** BEGIN LICENSE BLOCK ***** |
---|
3 | # |
---|
4 | # This file is part of DL Manager, a plugin for Dotclear 2 |
---|
5 | # Copyright (C) 2008,2010 Moe (http://gniark.net/) and Tomtom (http://blog.zenstyle.fr) |
---|
6 | # |
---|
7 | # DL Manager is free software; you can redistribute it and/or |
---|
8 | # modify it under the terms of the GNU General Public License v2.0 |
---|
9 | # as published by the Free Software Foundation. |
---|
10 | # |
---|
11 | # DL Manager is distributed in the hope that it will be useful, |
---|
12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | # GNU General Public License for more details. |
---|
15 | # |
---|
16 | # You should have received a copy of the GNU General Public License |
---|
17 | # along with this program; if not, write to the Free Software Foundation, |
---|
18 | # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
19 | # |
---|
20 | # Images are from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ |
---|
21 | # |
---|
22 | # ***** END LICENSE BLOCK ***** |
---|
23 | |
---|
24 | if (!defined('DC_RC_PATH')) {return;} |
---|
25 | |
---|
26 | $__autoload['dlManager'] = dirname(__FILE__).'/inc/lib.dlManager.php'; |
---|
27 | |
---|
28 | require_once(dirname(__FILE__).'/_widget.php'); |
---|
29 | |
---|
30 | if ($core->blog->settings->dlmanager_active) |
---|
31 | { |
---|
32 | $core->url->register('media','media', |
---|
33 | '^media(/.+)?$',array('dlManagerPageDocument','page')); |
---|
34 | $core->url->register('mediaplayer','mediaplayer', |
---|
35 | '^mediaplayer/([0-9]+)$',array('dlManagerPageDocument','player')); |
---|
36 | $core->url->register('download','download', |
---|
37 | '^download/([0-9]+)$',array('dlManagerPageDocument','download')); |
---|
38 | $core->url->register('viewfile','viewfile', |
---|
39 | '^viewfile/(.+)$',array('dlManagerPageDocument','viewfile')); |
---|
40 | } |
---|