]> git.sur5r.net Git - u-boot/blobdiff - tools/bddb/edlog.php
Merge branch 'master' of git://git.denx.de/u-boot-usb
[u-boot] / tools / bddb / edlog.php
index f819b46a0dee525843f28942ed798f489ce33354..8befd35b92475592958d021508b0bad615215318 100644 (file)
@@ -1,7 +1,7 @@
 <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
 <?php
        // (C) Copyright 2001
-       // Murray Jensen <Murray.Jensen@cmst.csiro.au>
+       // Murray Jensen <Murray.Jensen@csiro.au>
        // CSIRO Manufacturing Science and Technology, Preston Lab
 
        // edit page (hymod_bddb / boards)
 
        pg_head("$bddb_label - Edit Board Log Entry");
 
-       if ($serno == 0)
+       if (!isset($_REQUEST['serno']) || $_REQUEST['serno'] == '')
                die("serial number 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']);
 
        $pserno = sprintf("%010d", $serno);
        $plogno = sprintf("%010d", $logno);
@@ -41,6 +43,9 @@
        // date date
        print_field("date", $row);
 
+       // who char(20)
+       print_field("who", $row);
+
        // details text
        print_field_multiline("details", $row, 60, 10, 'text_filter');