diff options
author | plegall <plg@piwigo.org> | 2004-12-12 21:06:39 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-12-12 21:06:39 +0000 |
commit | 391fac78a80c9317e764a13d742c88d8fe0866fc (patch) | |
tree | 178c3f72dd0356c4c6ad05adae9d974dedbfa506 /include/config.inc.php | |
parent | 9037726f5a658dc156ef444f2d90271ee2102711 (diff) |
- in admin menu, status option for categories is not "permissions" but
"private or public" choice = different language item
- get_cat_display_name changed : use $conf['level_separator'] to unify
presentation
- default values for category properties commentable, uploadable, status and
visible (set in include/config.inc.php) used for category creation
(admin/update, admin/remote_site, admin/cat_list)
- use mass_inserts in admin/update for inserting new categories
- only one query for counting the number of sub categories in admin/cat_list
git-svn-id: http://piwigo.org/svn/trunk@642 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/config.inc.php | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/include/config.inc.php b/include/config.inc.php index 4d9d0428d..9b6a552ee 100644 --- a/include/config.inc.php +++ b/include/config.inc.php @@ -76,7 +76,7 @@ $conf['picture_ext'] = array('jpg','JPG','png','PNG','gif','GIF'); // top_number : number of element to display for "best rated" and "most // visited" categories -$conf['top_number'] = 10; +$conf['top_number'] = 15; // anti-flood_time : number of seconds between 2 comments : 0 to disable $conf['anti-flood_time'] = 60; @@ -168,18 +168,25 @@ $conf['show_queries'] = false; // show_gt : display generation time at the bottom of each page $conf['show_gt'] = true; -// Default options for new categories. -// -// Some options for categories (commentable, uploadable, status, visible) -// must be set directly in the database by changing the corresponding -// default values of the column. Examples : -// -// ALTER TABLE phpwebgallery_categories ALTER visible SET DEFAULT 'true'; -// ALTER TABLE phpwebgallery_categories ALTER status SET DEFAULT 'private'; -// ALTER TABLE phpwebgallery_categories ALTER uploadable SET DEFAULT 'true'; -// ALTER TABLE phpwebgallery_categories ALTER commentable SET DEFAULT 'false'; -// -// MySQL default values are used when inserting a row and that no value is -// given for the column. In PhpWebGallery, the above columns are not valued -// during categories insertion, so default values are important. +// newcat_default_commentable : at creation, must a category be commentable +// or not ? +$conf['newcat_default_commentable'] = 'true'; + +// newcat_default_uploadable : at creation, must a category be uploadable or +// not ? +$conf['newcat_default_uploadable'] = 'true'; + +// newcat_default_visible : at creation, must a category be visible or not ? +// Warning : if the parent category is invisible, the category is +// automatically create invisible. (invisible = locked) +$conf['newcat_default_visible'] = 'true'; + +// newcat_default_status : at creation, must a category be public or private +// ? Warning : if the parent category is private, the category is +// automatically create private. +$conf['newcat_default_status'] = 'public'; + +// level_separator : character string used for separating a category level +// to the sub level +$conf['level_separator'] = ' / '; ?> |