Revision 1768,
825 bytes
checked in by Osku, 14 years ago
(diff) |
Private mode 1.1RC1 :
- should fixe some tickets bugs (closes #140, #296)
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # |
---|
4 | # This file is part of Private mode, a plugin for Dotclear 2. |
---|
5 | # |
---|
6 | # Copyright (c) 2008-2009 Osku and contributors |
---|
7 | ## Licensed under the GPL version 2.0 license. |
---|
8 | # A copy of this license is available in LICENSE file or at |
---|
9 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
10 | # |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_RC_PATH')) { return; } |
---|
14 | |
---|
15 | require dirname(__FILE__).'/_widgets.php'; |
---|
16 | |
---|
17 | if ($core->blog->settings->private_flag) |
---|
18 | { |
---|
19 | $privatefeed = md5($core->blog->settings->blog_private_pwd); |
---|
20 | $core->url->register('feed',sprintf('%s-feed',$privatefeed),sprintf('^%s-feed/(.+)$',$privatefeed),array('urlPrivate','privateFeed')); |
---|
21 | $core->url->register('pubfeed','feed','^feed/(.+)$',array('urlPrivate','publicFeed')); |
---|
22 | } |
---|
23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.