aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;