aboutsummaryrefslogtreecommitdiffstats
path: root/admin.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-08-13 23:09:54 +0000
committerplegall <plg@piwigo.org>2005-08-13 23:09:54 +0000
commit1549745402270b86d2116b8f2a498fddf28ea2e8 (patch)
tree5a6b29e9ef9d7a98d58725685f4170d0a892a793 /admin.php
parent273884a65274e2688df1b2d3dc37103a46117772 (diff)
- 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
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/admin.php b/admin.php
index d56602854..75710773d 100644
--- a/admin.php
+++ b/admin.php
@@ -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