From 25b843f6bbacb1937bdb960777b73acbece64115 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 24 Feb 2021 14:36:59 -0600 Subject: GENENET8 update --- sourcecodes/bn_file_load_gom.php | 154 +++++++++++++++++++++++---------------- 1 file changed, 90 insertions(+), 64 deletions(-) (limited to 'sourcecodes/bn_file_load_gom.php') diff --git a/sourcecodes/bn_file_load_gom.php b/sourcecodes/bn_file_load_gom.php index 3f3ef195..d2480cd4 100644 --- a/sourcecodes/bn_file_load_gom.php +++ b/sourcecodes/bn_file_load_gom.php @@ -1,15 +1,19 @@ + + + + include("header_new.inc"); include("header_batchsearch.inc"); include("runtime_check.php"); include("input_validate.php"); $searchID=""; $UploadValue="NO"; -$TextFile=$HTTP_POST_FILES["MyFile"]["name"]; +$TextFile=$_FILES["MyFile"]["name"]; /////////////Generate a random key///////////////////// @@ -29,14 +33,18 @@ if($_POST["My_key"]!="") $keyval=valid_keyval($keyval); $sid=$keyval."continuous_input"; -$dir="./data/"; +//$dir="./data/"; +//$dir="/tmp/bnw/"; +$dir="/var/lib/genenet/bnw/"; +//$input_table_file="./data/".$keyval."input_table.txt"; +$input_table_file=$dir.$keyval."input_table.txt"; $TextinFile=$dir.$sid."_orig.txt"; -if(isset($HTTP_POST_VARS["searchkey"])) +if(isset($_POST["searchkey"])) { - $searchID=$HTTP_POST_VARS["searchkey"]; + $searchID=$_POST["searchkey"]; } @@ -45,8 +53,10 @@ if($searchID=="") ?> -