- new : maintenance screen in administration. There you can update

categories informations (number of images, date of the last added
  element), update images informations (path, average rate), purge obsolete
  sessions, purge history.

- new : ability to have random representative for categories. This
  configuration parameter is set to false by default.

- new : ability to set an element as representative of a category without
  belonging to the category. Thus, administrator can choose representative
  even for empty categories.

- improvement : semantically superior design for category edition screen by
  regrouping fields in fieldsets. The improved screen contains action
  buttons as in category list screen.

- new : ability to move a virtual category (ie change its parent category).

- bug fixed : the sync_users function checks all user children tables
  (access, cache, group association).


git-svn-id: http://piwigo.org/svn/trunk@809 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2005-08-13 23:09:54 +00:00
parent 273884a652
commit 1549745402
14 changed files with 920 additions and 187 deletions
+23
View File
@@ -168,6 +168,18 @@ switch ( $_GET['page'] )
$page_valide = true;
break;
}
case 'maintenance' :
{
$title = l10n('Maintenance');
$page_valide = true;
break;
}
case 'representative' :
{
$title = l10n('Representative');
$page_valide = true;
break;
}
// case 'element_set_unit' :
// {
// $title = 'batch management';
@@ -244,6 +256,7 @@ $template->assign_vars(array(
'U_FAQ'=>add_session_id($link_start.'help' ),
'U_SITES'=>add_session_id($link_start.'remote_site'),
'U_PHPINFO'=>add_session_id($link_start.'admin_phpinfo' ),
'U_MAINTENANCE'=>add_session_id($link_start.'maintenance'),
'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' ),
@@ -269,6 +282,16 @@ $template->assign_vars(array(
'U_RETURN'=>add_session_id(PHPWG_ROOT_PATH.'category.php')
));
if ($conf['allow_random_representative'])
{
$template->assign_block_vars(
'representative',
array(
'URL' => add_session_id($opt_link.'representative')
)
);
}
//--------------------------------------------------------------------- summary
$link_start = PHPWG_ROOT_PATH.'admin.php?page=';
//------------------------------------------------------------- content display