Override current blog id by the DC_BLOG_ID var
[dotclear.git] / _admin.php
1 <?php
2 require_once dirname(__FILE__) . '/widget.auth.php';
3 require_once dirname(__FILE__) . '/widget.post.perms.php';
4 require_once dirname(__FILE__) . '/widget.blog.owner.php';
5
6 $core->addBehavior('coreBlogConstruct', array('xorgAuth', 'behavior_coreBlogConstruct'));
7
8
9 /* Declare the authentication widget on public page */
10 $core->addBehavior('initWidgets', array('xorgAuthWidget', 'behavior_initWidgets'));
11
12
13 /* Declare stuff to set permissions on each post */
14 $core->addBehavior('adminPostFormSidebar', array('xorgPostPermsWidget', 'behavior_adminPostFormSidebar'));
15 $core->addBehavior('adminBeforePostCreate', array('xorgPostPermsWidget', 'behavior_adminBeforePostCreate'));
16 $core->addBehavior('adminBeforePostUpdate', array('xorgPostPermsWidget', 'behavior_adminBeforePostUpdate'));
17
18 /* Stuff to set user preferences about post permissions */
19 $core->addBehavior('adminPreferencesForm', array('xorgPostPermsWidget', 'behavior_adminPreferencesForm'));
20 $core->addBehavior('adminBeforeUserUpdate', array('xorgPostPermsWidget', 'behavior_adminBeforeUserUpdate'));
21
22
23 /* Declare the form to assign the ownership of the blog */
24 $core->addBehavior('adminBlogPreferencesForm', array('xorgBlogOwnerWidget', 'behavior_adminBlogPreferencesForm'));
25 $core->addBehavior('adminBeforeBlogSettingsUpdate', array('xorgBlogOwnerWidget', 'behavior_adminBeforeBlogSettingsUpdate'));
26 ?>