about summary refs log tree commit diff
path: root/sourcecodes/network_layout_inv_2.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/network_layout_inv_2.php')
-rw-r--r--sourcecodes/network_layout_inv_2.php26
1 files changed, 19 insertions, 7 deletions
diff --git a/sourcecodes/network_layout_inv_2.php b/sourcecodes/network_layout_inv_2.php
index 550fdf4a..65451727 100644
--- a/sourcecodes/network_layout_inv_2.php
+++ b/sourcecodes/network_layout_inv_2.php
@@ -1,6 +1,7 @@
 <?php 
   //include("structuremap.php");
-
+include("header_batchsearch.inc");
+include("input_validate.php");
 
 function levelmap($inx,$name,$mapdata)
 {
@@ -23,7 +24,7 @@ foreach($leve_l as $l)
 
 
 
-$keyval=$_GET["My_key"];
+$keyval=valid_keyval($_GET["My_key"]);
 
 $dir="./data/";
 
@@ -753,9 +754,14 @@ else
             var topping = data.getValue(selectedItem.row, 0);
             
             var s = window.prompt('Selected evidence ' + topping + ' for ' + cnode + '. Enter new evidence ', topping );
-            
-            window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv;
-           
+	    if (input_check(s))
+	      {            
+		window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv;
+	      }
+	    else
+	      {
+		window.location.href = "input_error_no_menu.php";
+	      }
 
   
               //alert('The user selected ' + topping + topname);
@@ -949,8 +955,14 @@ else
            
             var topping = data.getValue(selectedItem.row, 0);
             var s = window.prompt('Selected evidence ' + topping + ' for ' + cnode + '. Enter new evidence ', topping );
-            window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv;  
-
+	    if (input_check(s))
+	      {
+		window.location.href = "add_inv.php?name=" + cnode + "&evidence=" + s + "&My_key=" + keyv;  
+	      }
+	    else
+	      {
+		window.location.href = "input_error_no_menu.php";
+	      }
           }
         }
             chart.draw(data, {curveType: "function",