From 6d50f289b27a8d55358d4c0f94044e1455fe6c3d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Feb 2004 00:06:47 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20oubli=20initialisation=20de=20i=3D?= =?UTF-8?q?0=20pour=20boucle=20affichant=20la=20liste=20des=20propri=E9t?= =?UTF-8?q?=E9s=20mysql.=20Conditionnement=20de=20l'acc=E8s=20au=20droit?= =?UTF-8?q?=20user->admin.=20Remplacement=20des=20border=3D0/1=20par=20cla?= =?UTF-8?q?ss=3D"noborder/border"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/system/mysql-tables-contraintes.php | 16 ++++++++++++-- htdocs/admin/system/mysql-tables.php | 22 ++++++++++++++++++- htdocs/admin/system/mysql.php | 21 +++++++++++------- 3 files changed, 48 insertions(+), 11 deletions(-) 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(); ?>