diff --git a/htdocs/admin/system/mysql-tables-contraintes.php b/htdocs/admin/system/mysql-tables-contraintes.php index c55a7115214..7bb7339f132 100644 --- a/htdocs/admin/system/mysql-tables-contraintes.php +++ b/htdocs/admin/system/mysql-tables-contraintes.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,11 +21,21 @@ */ require("./pre.inc.php"); +if (!$user->admin) + accessforbidden(); + + llxHeader(); print_titre("Tables Mysql - Contraintes"); -print ''; +print '
'; +print '
'; +print ''; +print ''; +print ''; +print ''; +print "\n"; $sql = "SHOW TABLE STATUS"; @@ -38,7 +49,7 @@ if ($result) { $row = $db->fetch_row($i); $var=!$var; - print ""; + print ""; print ''; print ''; @@ -49,5 +60,6 @@ if ($result) } } print '
TablesTypeContraintes
'.$row[0].''.$row[1].'
'; + llxFooter(); ?> diff --git a/htdocs/admin/system/mysql-tables.php b/htdocs/admin/system/mysql-tables.php index 8f68d3870e2..8125f047db4 100644 --- a/htdocs/admin/system/mysql-tables.php +++ b/htdocs/admin/system/mysql-tables.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,6 +21,10 @@ */ require("./pre.inc.php"); +if (!$user->admin) + accessforbidden(); + + if ($_GET["action"] == 'convert') { $db->query("alter table ".$_GET["table"]." type=INNODB"); @@ -29,7 +34,19 @@ llxHeader(); print_titre("Tables Mysql"); -print ''; +print '
'; +print '
'; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print ''; +print "\n"; $sql = "SHOW TABLE STATUS"; @@ -59,11 +76,14 @@ if ($result) print ''; print ''; print ''; + print ''; print ''; + print ''; print ''; $i++; } } print '
Nom de la tableTypeFormat lignesNb enr.Avg_row_lengthData_lengthMax_Data_lengthIndex_lengthLast check
'.$row[3].''.$row[4].''.$row[5].''.$row[6].''.$row[7].''.$row[12].'
'; + llxFooter(); ?> diff --git a/htdocs/admin/system/mysql.php b/htdocs/admin/system/mysql.php index 3d14734de85..466713eafa6 100644 --- a/htdocs/admin/system/mysql.php +++ b/htdocs/admin/system/mysql.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,26 +21,34 @@ */ require("./pre.inc.php"); +if (!$user->admin) + accessforbidden(); + + llxHeader(); print_titre("Configuration Mysql"); -print ''; +print '
'; +print '
'; +print ''; +print ''; +print ''; +print "\n"; $sql = "SHOW VARIABLES"; $result = $db->query($sql); if ($result) { + $i=0; $num = $db->num_rows(); - $var=True; while ($i < $num) { $objp = $db->fetch_object( $i); $var=!$var; - print ""; - + print ""; print ''; print ''; @@ -48,9 +57,5 @@ if ($result) } print '
Propriétés du serveurValeur
'.$objp->Variable_name.''.$objp->Value.'
'; - - - - llxFooter(); ?>