Dotclear

source: plugins/private/_prepend.php @ 611

Revision 611, 1.3 KB checked in by Osku, 15 years ago (diff)

Private : almost final shot :)

Line 
1<?php /* -*- tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */
2/***************************************************************\
3 *  This is 'Private', a plugin for Dotclear 2                 *
4 *                                                             *
5 *  Copyright (c) 2008                                         *
6 *  Osku and contributors.                                     *
7 *                                                             *
8 *  This is an open source software, distributed under the GNU *
9 *  General Public License (version 2) terms and  conditions.  *
10 *                                                             *
11 *  You should have received a copy of the GNU General Public  *
12 *  License along with 'Private blog' (see LICENSE);           *
13 *  if not, write to the Free Software Foundation, Inc.,       *
14 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    *
15\***************************************************************/
16if (!defined('DC_RC_PATH')) { return; }
17
18require dirname(__FILE__).'/_widgets.php';
19
20if ($core->blog->settings->private_flag)
21{
22     $privatefeed = md5($core->blog->settings->blog_private_pwd);
23     $core->url->register('feed',sprintf('%s-feed',$privatefeed),sprintf('^%s-feed/(.+)$',$privatefeed),array('urlPrivate','privateFeed'));
24}
25?>
Note: See TracBrowser for help on using the repository browser.

Sites map