X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=_public.php;h=adc2d8b27312120484bf48a6dd2ca67c0d5398ef;hb=refs%2Fheads%2Fmaster;hp=882432bcbd205fdce66d041ec6c9a92f75b57446;hpb=d387689d86ca355ae76932d5002ef29017eb94ca;p=dotclear.git diff --git a/_public.php b/_public.php index 882432b..adc2d8b 100644 --- a/_public.php +++ b/_public.php @@ -1,9 +1,22 @@ url->register('xorgAuth', 'XorgAuth', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth')); -$core->url->register('xorgAuth', 'Xorg', '^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')); ?>