-
Notifications
You must be signed in to change notification settings - Fork 0
/
_public.php
22 lines (17 loc) · 972 Bytes
/
_public.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require_once dirname(__FILE__) . '/page.auth.php';
require_once dirname(__FILE__) . '/widget.auth.php';
require_once dirname(__FILE__) . '/widget.copyright.php';
require_once dirname(__FILE__) . '/widget.post.perms.php';
require_once dirname(__FILE__) . '/class.xorg.auth.php';
require_once dirname(__FILE__) . '/page.webservice.php';
/* Xorg auth */
$core->url->register('xorgAuth', 'XorgAuth', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth'));
/* Declare the authentication widget on public page */
$core->addBehavior('initWidgets', array('xorgAuthWidget', 'behavior_initWidgets'));
$core->addBehavior('initWidgets', array('xorgCopyrightWidget', 'behavior_initWidgets'));
/* Post permission handling */
$core->addBehavior('coreBlogGetPosts', array('xorgPostPermsWidget', 'behavior_coreBlogGetPosts'));
/* Webservice to create new blog */
$core->url->register('xorgWebservice', 'XorgWebservice', '^xorgservice/(.*)$', array('XorgWebservice', 'handle'));
?>