summaryrefslogtreecommitdiff
path: root/tools/bddb/donewlog.php
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-08-12 23:27:18 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-08-12 23:27:18 +0200
commitd992daf99d1ce39ee18b353b67fdfa181d83fbff (patch)
treea9b5f98b73706e024bc7cd7a14ca2674bd75a55c /tools/bddb/donewlog.php
parentf9d77ed38031fa29d1495bf3cfee385450463f5b (diff)
downloadu-boot-imx-d992daf99d1ce39ee18b353b67fdfa181d83fbff.zip
u-boot-imx-d992daf99d1ce39ee18b353b67fdfa181d83fbff.tar.gz
u-boot-imx-d992daf99d1ce39ee18b353b67fdfa181d83fbff.tar.bz2
Update Hymod Board Database PHP code in "tools" directory
Patch by Murray Jensen, 01 Jul 2005
Diffstat (limited to 'tools/bddb/donewlog.php')
-rw-r--r--tools/bddb/donewlog.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/tools/bddb/donewlog.php b/tools/bddb/donewlog.php
index c3b9606..7635d29 100644
--- a/tools/bddb/donewlog.php
+++ b/tools/bddb/donewlog.php
@@ -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";