about summary refs log tree commit diff
path: root/sourcecodes/add_evd_example.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/add_evd_example.php')
-rw-r--r--sourcecodes/add_evd_example.php12
1 files changed, 3 insertions, 9 deletions
diff --git a/sourcecodes/add_evd_example.php b/sourcecodes/add_evd_example.php
index a38d4474..29465fae 100644
--- a/sourcecodes/add_evd_example.php
+++ b/sourcecodes/add_evd_example.php
@@ -1,6 +1,6 @@
 <?php 
-
-$keyval=trim($_GET['My_key']);
+include("input_validate.php");
+$keyval=valid_keyval(trim($_GET['My_key']));
 
 //include("restructuremap.php");
 
@@ -185,14 +185,8 @@ else
 }
 
  
-//  $file1="./data/".$keyval."run_evidencemodified.sh";
-//  $initiallines=file_get_contents("./data/temp_evidence_file");
-//  $all_lines="$initiallines"."$keyval\nfi\nexit";
-   
-//  $fp = fopen($file1,"w"); 
-//  fwrite($fp, "$all_lines\n");
-//  fclose($fp);
   //execute shell script for matlab
+  $keyval = valid_keyval($keyval);
   shell_exec('./run_octave_evd '.$keyval);
 
 ?>