Update Hymod Board Database PHP code in "tools" directory

Patch by Murray Jensen, 01 Jul 2005
This commit is contained in:
Wolfgang Denk
2005-08-12 23:27:18 +02:00
parent f9d77ed380
commit d992daf99d
16 changed files with 251 additions and 154 deletions

View File

@@ -10,11 +10,14 @@
pg_head("$bddb_label - Add Log Entry Results");
if ($serno == 0)
if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '')
die("serial number not specified!");
$serno=intval($_REQUEST['serno']);
if (isset($logno))
if (isset($_REQUEST['logno'])) {
$logno=$_REQUEST['logno'];
die("log number must not be set ($logno) when Creating!");
}
$query="update log set serno=$serno";
@@ -23,11 +26,15 @@
die("date is invalid (input '$date', yyyy-mm-dd '$y-$m-$d')");
$query.=", date='$date'";
if (isset($who))
if (isset($_REQUEST['who'])) {
$who=$_REQUEST['who'];
$query.=", who='" . $who . "'";
}
if (isset($details))
if (isset($_REQUEST['details'])) {
$details=$_REQUEST['details'];
$query.=", details='" . rawurlencode($details) . "'";
}
// echo "final query = '$query'<br>\n";