Dotclear

source: plugins/agora/_prepend.php @ 2145

Revision 2145, 2.9 KB checked in by Osku, 14 years ago (diff)

Plugin agora: minor fixes, thx Tom²

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# This file is part of agora, a plugin for Dotclear 2.
5#
6# Copyright (c) 2009-2010 Osku ,Tomtom and contributors
7#
8# Licensed under the GPL version 2.0 license.
9# A copy of this license is available in LICENSE file or at
10# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
11#
12# -- END LICENSE BLOCK ------------------------------------
13
14if (!defined('DC_RC_PATH')) { return; }
15
16require dirname(__FILE__).'/_widgets.php';
17if ($core->blog->settings->agora_flag)
18{
19     $core->url->register('agora','agora','^agora(.*)$',array('urlAgora','agora'));
20     $core->url->register('place','place','^place/(.+)$',array('urlAgora','place'));
21     $core->url->register('newthread','newthread','^newthread(.*)$',array('urlAgora','newthread'));
22     $core->url->register('thread','thread','^thread/(.+)$',array('urlAgora','thread'));
23     $core->url->register('threadpreview','threadpreview','^threadpreview/(.+)$',array('urlAgora','threadpreview'));
24     //$core->url->register('answer','agora/answer','^agora/answer/(.+)$',array('urlAgora','answer'));
25     $core->url->register('editthread','thread/edit','^thread/edit/(.+)$',array('urlAgora','editthread'));
26     $core->url->register('removethread','thread/remove','^thread/remove/(.+)$',array('urlAgora','removethread'));
27     $core->url->register('editmessage','message/edit','^message/edit/(.+)$',array('urlAgora','editmessage'));
28     $core->url->register('removemessage','message/remove','^message/remove/(.+)$',array('urlAgora','removemessage'));
29     $core->url->register('register','register','^register$',array('urlAgora','register'));
30     $core->url->register('login','login','^login$',array('urlAgora','login'));
31     $core->url->register('logout','logout','^logout$',array('urlAgora','logout'));
32     $core->url->register('profile','profile','^profile/(.+)$',array('urlAgora','profile'));
33     //$core->url->register('userlist','agora/userlist','^agora/userlist/(.+)$',array('urlAgora','userlist'));
34     //$core->url->register('recovery','agora/recovery','^agora/recovery(.*)$',array('urlAgora','recovery'));
35     $core->url->register('agora_feed','feed/agora','^feed/agora/(.+)$',array('urlAgora','feed'));
36}
37
38$core->setPostType('thread','plugin.php?p=agora&act=thread&id=%d',$core->url->getBase('thread').'/%s');
39
40$__autoload['agora']               = dirname(__FILE__).'/inc/class.agora.php';
41$__autoload['dcPublicAuth']        = dirname(__FILE__).'/inc/class.agora.auth.php';
42$__autoload['dcLog']               = dirname(__FILE__).'/inc/class.agora.log.php';
43$__autoload['agoraTemplate']       = dirname(__FILE__).'/inc/class.agora.template.php';
44$__autoload['agoraBehaviors']      = dirname(__FILE__).'/inc/class.agora.behaviors.php';
45//$__autoload['mail']                   = CLEARBRICKS_PATH.'/mail/class.mail.php';
46$__autoload['agoraTools']          = dirname(__FILE__).'/inc/class.agora.utils.php';
47$__autoload['rsExtMessage']        = dirname(__FILE__).'/inc/class.rs.agora.php';
48
49$core->blog->agora = new agora($core,false);
50?>
Note: See TracBrowser for help on using the repository browser.

Sites map