X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=_public.php;h=adc2d8b27312120484bf48a6dd2ca67c0d5398ef;hb=HEAD;hp=392f5578e7c1355ac29bd72fb3ebb19a6bb98e8f;hpb=001b27af17869b43a0c64ff82fa1679adbd10ff8;p=dotclear.git diff --git a/_public.php b/_public.php index 392f557..adc2d8b 100644 --- a/_public.php +++ b/_public.php @@ -1,7 +1,22 @@ 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')); -$core->url->register('xorgAuth', 'Xorg', '^auth/(.*)$', array('xorgAuthentifier', 'doAuth')); +/* Post permission handling */ +$core->addBehavior('coreBlogGetPosts', array('xorgPostPermsWidget', 'behavior_coreBlogGetPosts')); +/* Webservice to create new blog */ +$core->url->register('xorgWebservice', 'XorgWebservice', '^xorgservice/(.*)$', array('XorgWebservice', 'handle')); ?>