]> git.sur5r.net Git - u-boot/blobdiff - tools/bddb/donewlog.php
Update Hymod Board Database PHP code in "tools" directory
[u-boot] / tools / bddb / donewlog.php
index c3b960650f2b0a3da536d5345f6123f06ff8d462..7635d2992d9d3c471c79cced9ef0e3c0f33fe858 100644 (file)
 
        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";
 
                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";