aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-08-12 20:43:56 +0000
committervdigital <vdigital@piwigo.org>2008-08-12 20:43:56 +0000
commit8ab0da7da22a84b735aff05f40ac57f347a739bd (patch)
tree81a6f643da62c108e7b8d87849d93b812e46f744 /admin
parent5d407384638b33be92cf77c01a82842cf205520c (diff)
Admin advices can be easily extended to new advices.
Admin advices plugin can be translated like any other plugins. Admin advices plugin has been extended with External summary (a technical and non translated part). Some template cleaning. git-svn-id: http://piwigo.org/svn/trunk@2472 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/include/functions.php23
-rw-r--r--admin/template/yoga/theme/admin/theme.css5
2 files changed, 21 insertions, 7 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 328a36ab7..2a7214974 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -1576,7 +1576,7 @@ DELETE
*/
function do_maintenance_all_tables()
{
- global $prefixeTable;
+ global $prefixeTable, $page;
$all_tables = array();
@@ -1590,7 +1590,7 @@ function do_maintenance_all_tables()
// Repair all tables
$query = 'REPAIR TABLE '.implode(', ', $all_tables).';';
- pwg_query($query);
+ $mysql_rc = pwg_query($query);
// Re-Order all tables
foreach ($all_tables as $table_name)
@@ -1610,14 +1610,27 @@ function do_maintenance_all_tables()
if (count($all_primary_key) != 0)
{
$query = 'ALTER TABLE '.$table_name.' ORDER BY '.implode(', ', $all_primary_key).';';
- pwg_query($query);
+ $mysql_rc = $mysql_rc && pwg_query($query);
}
}
// Optimize all tables
$query = 'OPTIMIZE TABLE '.implode(', ', $all_tables).';';
- pwg_query($query);
-
+ $mysql_rc = $mysql_rc && pwg_query($query);
+ if ($mysql_rc)
+ {
+ array_push(
+ $page['infos'],
+ l10n('Optimization completed')
+ );
+ }
+ else
+ {
+ array_push(
+ $page['errors'],
+ l10n('Optimizations errors')
+ );
+ }
}
/**
diff --git a/admin/template/yoga/theme/admin/theme.css b/admin/template/yoga/theme/admin/theme.css
index 3f05818f8..e4eb6a6d8 100644
--- a/admin/template/yoga/theme/admin/theme.css
+++ b/admin/template/yoga/theme/admin/theme.css
@@ -3,7 +3,7 @@
body, h3, dt, h2, .throw, .content,
input.rateButtonSelected /* <= why IE doesn't inherit this ? */ { color:#ccc; }
input.text, input.button, input.submit, input.reset, input.file, select, textarea {
-color:#444; }
+color:#111; }
input.rateButton, legend, #theAdminPage h3 { color: #777; }
#theAdminPage h2 { color: #333; }
@@ -71,11 +71,12 @@ right:0; text-align:right; top:0; width:770px; }
.HelpActions a { border:0; margin:4px 14px 0 0; position:absolute; right:0; }
.HelpActions li {list-style-image:none; list-style-position:outside;
list-style-type:none; text-align:center; text-indent:0pt; }
-fieldset#uploadConf input { margin-left:5%; width:160px; }
+fieldset#uploadConf input { margin:0 5px 0 110px; width:160px; }
table.table2 th { padding:3px 30px; }
table.table2 tr.throw { text-align: center; }
table.table2 { margin:0pt auto; }
.sort { display:block; padding:8px 5px 0px 1px; }
+
/* tabsheets are often used in admin pages => No specific css files */
.tabsheet {
background-color:transparent; border:0; display:table;