3 require_once dirname(__FILE__
) . '/page.auth.php';
4 require_once dirname(__FILE__
) . '/widget.auth.php';
5 require_once dirname(__FILE__
) . '/widget.copyright.php';
6 require_once dirname(__FILE__
) . '/widget.post.perms.php';
7 require_once dirname(__FILE__
) . '/class.xorg.auth.php';
8 require_once dirname(__FILE__
) . '/page.webservice.php';
11 $core->url
->register('xorgAuth', 'XorgAuth', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth'));
13 /* Declare the authentication widget on public page */
14 $core->addBehavior('initWidgets', array('xorgAuthWidget', 'behavior_initWidgets'));
15 $core->addBehavior('initWidgets', array('xorgCopyrightWidget', 'behavior_initWidgets'));
17 /* Post permission handling */
18 $core->addBehavior('coreBlogGetPosts', array('xorgPostPermsWidget', 'behavior_coreBlogGetPosts'));
20 /* Webservice to create new blog */
21 $core->url
->register('xorgWebservice', 'XorgWebservice', '^xorgservice/(.*)$', array('XorgWebservice', 'handle'));