From 1427e9bf4f85823164b4573a3bcf1ba3ba6b04d0 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Wed, 24 Feb 2021 15:19:03 -0600 Subject: Moving final GENENET8 version to master --- sourcecodes/bn_file_load_gom.php | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 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 d2480cd4..6509cdeb 100644 --- a/sourcecodes/bn_file_load_gom.php +++ b/sourcecodes/bn_file_load_gom.php @@ -13,7 +13,7 @@ include("runtime_check.php"); include("input_validate.php"); $searchID=""; $UploadValue="NO"; -$TextFile=$_FILES["MyFile"]["name"]; +$TextFile=$HTTP_POST_FILES["MyFile"]["name"]; /////////////Generate a random key///////////////////// @@ -34,17 +34,15 @@ if($_POST["My_key"]!="") $sid=$keyval."continuous_input"; //$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"; +$dir="/tmp/bnw/"; +$input_table_file="./data/".$keyval."input_table.txt"; $TextinFile=$dir.$sid."_orig.txt"; -if(isset($_POST["searchkey"])) +if(isset($HTTP_POST_VARS["searchkey"])) { - $searchID=$_POST["searchkey"]; + $searchID=$HTTP_POST_VARS["searchkey"]; } @@ -64,15 +62,15 @@ if($searchID=="") } -if(isset($_POST["MyUpload"])) +if(isset($HTTP_POST_VARS["MyUpload"])) { - $UploadValue=$_POST["MyUpload"]; + $UploadValue=$HTTP_POST_VARS["MyUpload"]; if ($UploadValue=="YES") { if($TextFile!="") { // $TextFile = valid_input($TextFile); - $sta=move_uploaded_file($_FILES['MyFile']['tmp_name'],$TextinFile); + $sta=move_uploaded_file($HTTP_POST_FILES['MyFile']['tmp_name'],$TextinFile); if(!$sta) { echo ""; @@ -167,17 +165,12 @@ if($searchID!="")

The uploaded data file has the following properties:

-