diff options
author | plegall <plg@piwigo.org> | 2004-11-13 13:43:53 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2004-11-13 13:43:53 +0000 |
commit | 88e4e1e60adf660651f9276ab2b19bffcc72d9d3 (patch) | |
tree | c5ee67d2ba4ee38b2864cf136787d187d12a2c07 /admin.php | |
parent | 234b7463520902a62e0c3e4e35c00a9e27f14278 (diff) |
- admin/cat_options page added : manage options for the whole categories
tree (uploadable, commentable). status and visible will be soon added
- admin.php : $conf_link var to avoid lines longer than 79 characters
- config.upload_available configuration parameter disappear : it's simpler
to manage with cat_options
- config.show_comments idem : new column categories.commentable, each
categories can be commentable or not
- categories.site_id becomes a nullable column : a virtual category does
belong to no site
- function display_select_categories has a new argument : $CSS_classes array
to optionnaly assign a CSS class to each category in the select field
- added informations in include/config.inc.php for setting default value of :
- categories.visible
- categories.status
- categories.uploadable
- categories.commentable
- 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best
rated and most visited categories
git-svn-id: http://piwigo.org/svn/trunk@602 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -132,6 +132,12 @@ switch ( $_GET['page'] ) $page_valide = true; break; } + case 'cat_options' : + { + $title = $lang['title_cat_options']; + $page_valide = true; + break; + } default: $title = $lang['title_default']; break; } @@ -159,6 +165,7 @@ if ( mysql_num_rows( $result ) > 0 ) } $link_start = PHPWG_ROOT_PATH.'admin.php?page='; +$conf_link = $link_start.'configuration&section='; //----------------------------------------------------- template initialization include(PHPWG_ROOT_PATH.'include/page_header.php'); $template->set_filenames( array('admin'=>'admin.tpl') ); @@ -192,13 +199,14 @@ $template->assign_vars(array( 'L_GROUPS'=>$lang['groups'], 'L_AUTH'=>$lang['permissions'], 'L_UPDATE'=>$lang['update'], + 'L_CAT_OPTIONS'=>$lang['cat_options_menu'], - 'U_CONFIG_GENERAL'=>add_session_id($link_start.'configuration&section=general' ), - 'U_CONFIG_COMMENTS'=>add_session_id($link_start.'configuration&section=comments' ), - 'U_CONFIG_DISPLAY'=>add_session_id($link_start.'configuration&section=default' ), - 'U_CONFIG_UPLOAD'=>add_session_id($link_start.'configuration&section=upload' ), - 'U_CONFIG_SESSION'=>add_session_id($link_start.'configuration&section=session' ), - 'U_CONFIG_METADATA'=>add_session_id($link_start.'configuration&section=metadata' ), + 'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ), + 'U_CONFIG_COMMENTS'=>add_session_id($conf_link.'comments' ), + 'U_CONFIG_DISPLAY'=>add_session_id($conf_link.'default' ), + 'U_CONFIG_UPLOAD'=>add_session_id($conf_link.'upload' ), + 'U_CONFIG_SESSION'=>add_session_id($conf_link.'session' ), + 'U_CONFIG_METADATA'=>add_session_id($conf_link.'metadata' ), 'U_SITES'=>add_session_id($link_start.'remote_site'), 'U_PHPINFO'=>add_session_id($link_start.'admin_phpinfo' ), 'U_USERS'=>add_session_id($link_start.'user_search' ), @@ -211,6 +219,7 @@ $template->assign_vars(array( 'U_THUMBNAILS'=>add_session_id($link_start.'thumbnail' ), 'U_HISTORY'=>add_session_id($link_start.'stats' ), 'U_FAQ'=>add_session_id($link_start.'help' ), + 'U_CAT_OPTIONS'=>add_session_id($link_start.'cat_options'), 'U_RETURN'=>add_session_id(PHPWG_ROOT_PATH.'category.php') )); |