summaryrefslogtreecommitdiff
path: root/tools/bddb/doedlog.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/doedlog.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/doedlog.php')
-rw-r--r--tools/bddb/doedlog.php17
1 files changed, 12 insertions, 5 deletions
diff --git a/tools/bddb/doedlog.php b/tools/bddb/doedlog.php
index 21e50b0..7009aa7 100644
--- a/tools/bddb/doedlog.php
+++ b/tools/bddb/doedlog.php
@@ -10,15 +10,18 @@
pg_head("$bddb_label - Edit Log Entry Results");
- if ($serno == 0)
+ if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '')
die("the board serial number was not specified");
+ $serno=intval($_REQUEST['serno']);
- if (!isset($logno) || $logno == 0)
+ if (!isset($_REQUEST['logno']) || $_REQUEST['logno'] == '')
die("log number not specified!");
+ $logno=intval($_REQUEST['logno']);
$query="update log set";
- if (isset($date)) {
+ if (isset($_REQUEST['date'])) {
+ $date=$_REQUEST['date'];
list($y, $m, $d) = split("-", $date);
if (!checkdate($m, $d, $y) || $y < 1999)
die("date is invalid (input '$date', " .
@@ -26,11 +29,15 @@
$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) . "'";
+ }
$query.=" where serno=$serno and logno=$logno";