about summary refs log tree commit diff
path: root/sourcecodes/add_inv.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/add_inv.php')
-rw-r--r--sourcecodes/add_inv.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/sourcecodes/add_inv.php b/sourcecodes/add_inv.php
index c2953f85..25b7b7ba 100644
--- a/sourcecodes/add_inv.php
+++ b/sourcecodes/add_inv.php
@@ -1,6 +1,7 @@
 <?php 
   //include("restructuremap.php");
-$keyval=$_GET["My_key"];
+include("input_validate.php");
+$keyval=valid_keyval($_GET["My_key"]);
 
 function discretemap($textdata,$sym,$dmapdata)
 {
@@ -181,6 +182,7 @@ else
 }
 
 include("mat_structure.php");
+$keyval = valid_keyval($keyval);
 structure_change($keyval);
 
 
@@ -197,6 +199,7 @@ structure_change($keyval);
   //execute shell script for matlab
  // $cmd="./runmat_inv.sh $keyval";
 //  system($cmd);
+
 shell_exec('./run_octave_inv '.$keyval);