Commit | Line | Data |
---|---|---|
1edd3efc | 1 | <?php |
9b56dd4e | 2 | |
b519995b | 3 | require_once dirname(__FILE__) . '/page.auth.php'; |
b519995b | 4 | require_once dirname(__FILE__) . '/widget.auth.php'; |
db4de47e | 5 | require_once dirname(__FILE__) . '/widget.copyright.php'; |
d387689d | 6 | require_once dirname(__FILE__) . '/widget.post.perms.php'; |
f525ba66 | 7 | require_once dirname(__FILE__) . '/class.xorg.auth.php'; |
5322432c | 8 | require_once dirname(__FILE__) . '/page.webservice.php'; |
b519995b | 9 | |
5322432c FB |
10 | /* Xorg auth */ |
11 | $core->url->register('xorgAuth', 'XorgAuth', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth')); | |
1edd3efc | 12 | |
a6ed9229 RB |
13 | /* Declare the authentication widget on public page */ |
14 | $core->addBehavior('initWidgets', array('xorgAuthWidget', 'behavior_initWidgets')); | |
15 | $core->addBehavior('initWidgets', array('xorgCopyrightWidget', 'behavior_initWidgets')); | |
16 | ||
5322432c | 17 | /* Post permission handling */ |
d387689d | 18 | $core->addBehavior('coreBlogGetPosts', array('xorgPostPermsWidget', 'behavior_coreBlogGetPosts')); |
5322432c FB |
19 | |
20 | /* Webservice to create new blog */ | |
21 | $core->url->register('xorgWebservice', 'XorgWebservice', '^xorgservice/(.*)$', array('XorgWebservice', 'handle')); | |
1edd3efc | 22 | ?> |