Revision 1471,
752 bytes
checked in by pep, 14 years ago
(diff) |
Getting ready for 2.1.6
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # |
---|
4 | # This file is part of WFWComment, a plugin for DotClear2. |
---|
5 | # |
---|
6 | # Copyright (c) 2006-2009 Pep and contributors. |
---|
7 | # Licensed under the GPL version 2.0 license. |
---|
8 | # See LICENSE file or |
---|
9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
10 | # |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | if (!defined('DC_RC_PATH')) { return; } |
---|
13 | |
---|
14 | $core->url->register('wfwcomment','wfwcomment','^wfwcomment/(.+)$',array('wfwcommentUrl','wfwcomment')); |
---|
15 | |
---|
16 | class wfwcommentUrl extends dcUrlHandlers |
---|
17 | { |
---|
18 | public static function wfwcomment($args) |
---|
19 | { |
---|
20 | if (!preg_match('/^[0-9]+$/',$args)) { |
---|
21 | self::p404(); |
---|
22 | } else { |
---|
23 | $wfwc = new dcWFWComment($GLOBALS['core']); |
---|
24 | $wfwc->receive($args); |
---|
25 | } |
---|
26 | } |
---|
27 | } |
---|
28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.