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/net_structure.php | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'sourcecodes/net_structure.php') diff --git a/sourcecodes/net_structure.php b/sourcecodes/net_structure.php index 12126e45..dfe14b99 100644 --- a/sourcecodes/net_structure.php +++ b/sourcecodes/net_structure.php @@ -9,30 +9,29 @@ include("input_validate.php"); $searchID=""; $UploadValue="NO"; -$TextFile=$_FILES["MyFile"]["name"]; - -if($_GET["My_key"]!="") - $keyval=$_GET["My_key"]; +$TextFile=$HTTP_POST_FILES["MyFile"]["name"]; if($_POST["My_key"]!="") $keyval=$_POST["My_key"]; +if($_GET["My_key"]!="") + $keyval=$_GET["My_key"]; + $keyval=valid_keyval($keyval); $sid="structure_input"; //$dir="./data/"; -//$dir="/tmp/bnw/".$keyval; -$dir="/var/lib/genenet/bnw/"; +$dir="/tmp/bnw/".$keyval; -$TextinFile=$dir.$keyval.$sid.".txt"; +$TextinFile=$dir.$sid.".txt"; //$TextinFileFinal=$dir.$sid.".txt"; //$TextinFile=$dir.$sid."_temp.txt"; -if(isset($_POST["searchkey"])) +if(isset($HTTP_POST_VARS["searchkey"])) { - $searchID=$_POST["searchkey"]; + $searchID=$HTTP_POST_VARS["searchkey"]; } @@ -49,14 +48,14 @@ if($searchID=="") window.alert ('Sorry, error uploading $TextFile.')"; -- cgit 1.4.1