Changeset 602 for trunk/admin.php


Ignore:
Timestamp:
Nov 13, 2004, 2:43:53 PM (19 years ago)
Author:
plg
Message:
  • 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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin.php

    r593 r602  
    133133   break;
    134134 }
     135 case 'cat_options' :
     136 {
     137   $title = $lang['title_cat_options'];
     138   $page_valide = true;
     139   break;
     140 }
    135141 default:
    136142   $title = $lang['title_default']; break;
     
    160166
    161167$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
     168$conf_link = $link_start.'configuration&section=';
    162169//----------------------------------------------------- template initialization
    163170include(PHPWG_ROOT_PATH.'include/page_header.php');
     
    193200  'L_AUTH'=>$lang['permissions'],
    194201  'L_UPDATE'=>$lang['update'],
     202  'L_CAT_OPTIONS'=>$lang['cat_options_menu'],
    195203 
    196   'U_CONFIG_GENERAL'=>add_session_id($link_start.'configuration&section=general' ),
    197   'U_CONFIG_COMMENTS'=>add_session_id($link_start.'configuration&section=comments' ),
    198   'U_CONFIG_DISPLAY'=>add_session_id($link_start.'configuration&section=default' ),
    199   'U_CONFIG_UPLOAD'=>add_session_id($link_start.'configuration&section=upload' ),
    200   'U_CONFIG_SESSION'=>add_session_id($link_start.'configuration&section=session' ),
    201   'U_CONFIG_METADATA'=>add_session_id($link_start.'configuration&section=metadata' ),
     204  'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ),
     205  'U_CONFIG_COMMENTS'=>add_session_id($conf_link.'comments' ),
     206  'U_CONFIG_DISPLAY'=>add_session_id($conf_link.'default' ),
     207  'U_CONFIG_UPLOAD'=>add_session_id($conf_link.'upload' ),
     208  'U_CONFIG_SESSION'=>add_session_id($conf_link.'session' ),
     209  'U_CONFIG_METADATA'=>add_session_id($conf_link.'metadata' ),
    202210  'U_SITES'=>add_session_id($link_start.'remote_site'),
    203211  'U_PHPINFO'=>add_session_id($link_start.'admin_phpinfo' ),
     
    212220  'U_HISTORY'=>add_session_id($link_start.'stats' ),
    213221  'U_FAQ'=>add_session_id($link_start.'help' ),
     222  'U_CAT_OPTIONS'=>add_session_id($link_start.'cat_options'),
    214223  'U_RETURN'=>add_session_id(PHPWG_ROOT_PATH.'category.php')
    215224  ));
Note: See TracChangeset for help on using the changeset viewer.