aboutsummaryrefslogtreecommitdiffstats
path: root/admin/maintenance.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-07-10 21:58:24 +0000
committerrvelices <rv-github@modusoptimus.com>2007-07-10 21:58:24 +0000
commitb21a954e293862cd6d893c887c777fc5b500d766 (patch)
treefddccf82fc025c53fcd455978592cc254c05a0ae /admin/maintenance.php
parentc83520ffe18421d539bb02404dfaff08881c2c15 (diff)
719 : Split purge history link into Purge summary and Purge details.
- add a confirmation box when purging history git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2061 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/maintenance.php')
-rw-r--r--admin/maintenance.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/admin/maintenance.php b/admin/maintenance.php
index 49d97d8ce..7ee5f84e5 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -59,16 +59,20 @@ switch ($action)
update_average_rate();
break;
}
- case 'history' :
+ case 'history_detail' :
{
$query = '
DELETE
- FROM '.HISTORY_SUMMARY_TABLE.'
+ FROM '.HISTORY_TABLE.'
;';
pwg_query($query);
+ break;
+ }
+ case 'history_summary' :
+ {
$query = '
DELETE
- FROM '.HISTORY_TABLE.'
+ FROM '.HISTORY_SUMMARY_TABLE.'
;';
pwg_query($query);
break;
@@ -111,7 +115,8 @@ $template->assign_vars(
array(
'U_MAINT_CATEGORIES' => $start_url.'categories',
'U_MAINT_IMAGES' => $start_url.'images',
- 'U_MAINT_HISTORY' => $start_url.'history',
+ 'U_MAINT_HISTORY_DETAIL' => $start_url.'history_detail',
+ 'U_MAINT_HISTORY_SUMMARY' => $start_url.'history_summary',
'U_MAINT_SESSIONS' => $start_url.'sessions',
'U_MAINT_FEEDS' => $start_url.'feeds',
'U_MAINT_DATABASE' => $start_url.'database',