From 8071794ae2c31c9803c3f31a710ec731f1934a3e Mon Sep 17 00:00:00 2001 From: Frank Fegert Date: Fri, 19 Jun 2009 21:40:25 +0000 Subject: [PATCH] - Database changes: - Fixed wrong beta release version. - Changed 'archives_24h' query from append to update to match 'backups_24h'. - Removed example server entries. - Workaround for cases where PHP-option 'magic_quotes_gpc = on' messes up quoted data in POSTs. - Workaround for truncated single line input fields. If strlen > 150, use textbox instead of input/text. Might be browser dependent, adjust limit as needed. --- admin.php | 36 +++++++++++++++++++++--------------- includes/global.php | 2 +- scripts/tsmmonitor.sql | 8 ++------ 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/admin.php b/admin.php index fa46961..a383e52 100644 --- a/admin.php +++ b/admin.php @@ -163,7 +163,6 @@ if ($_POST["css"] != "") { echo ""; echo ""; foreach ($sqlresth as $col) { - echo "TEST: ".$col['Field']." -> $colval
\n"; if ($col['Field'] != "id") { if ($i == 0) { echo ""; @@ -201,12 +200,18 @@ if ($_POST["css"] != "") { $i = 0; } if ($keycell == "password") { - echo ""; + echo "\n"; } else if ($keycell == "id") { $id = $valcell; } else { - echo ""; - } + echo "\n"; + } } } echo "
KeyValue
".$keycell."
".$keycell."
".$keycell."
".$keycell.""; + if (strlen($valcell) < 150) { + echo ""; + } else { + echo ""; + } + echo "