1 | <?php |
---|
2 | # ***** BEGIN LICENSE BLOCK ***** |
---|
3 | # This file is part of DotClear REST plugin. |
---|
4 | # Copyright (c) 2007 Bruno Hondelatte, and contributors. |
---|
5 | # Many, many thanks to Olivier Meunier and the Dotclear Team. |
---|
6 | # All rights reserved. |
---|
7 | # |
---|
8 | # DotClear is free software; you can redistribute it and/or modify |
---|
9 | # it under the terms of the GNU General Public License as published by |
---|
10 | # the Free Software Foundation; either version 2 of the License, or |
---|
11 | # (at your option) any later version. |
---|
12 | # |
---|
13 | # DotClear is distributed in the hope that it will be useful, |
---|
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | # GNU General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with DotClear; if not, write to the Free Software |
---|
20 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
21 | # |
---|
22 | # ***** END LICENSE BLOCK ***** |
---|
23 | |
---|
24 | $this->registerModule( |
---|
25 | /* Name */ "dotajax", |
---|
26 | /* Description*/ "Ajax/JSON interface for Dotclear2", |
---|
27 | /* Author */ "Bruno Hondelatte", |
---|
28 | /* Version */ '1.0.1', |
---|
29 | /* Permissions */ 'usage,contentadmin', |
---|
30 | /* Priority */ 500 |
---|
31 | ); |
---|
32 | |
---|
33 | /* URL Handlers for REST API */ |
---|
34 | $GLOBALS['core']->url->register('rest','rest','^rest/(.+)$',array('urlRest','rest')); |
---|
35 | |
---|
36 | ?> |
---|