diff options
| author | ziejd2 | 2021-02-24 15:19:03 -0600 |
|---|---|---|
| committer | ziejd2 | 2021-02-24 15:19:03 -0600 |
| commit | 1427e9bf4f85823164b4573a3bcf1ba3ba6b04d0 (patch) | |
| tree | d4356879a9b0a3d44063a6b292ef0197173697af /sourcecodes/net_structure.php | |
| parent | a2b306b10fb07f07c63235861ccfe460153e8609 (diff) | |
| download | BNW-1427e9bf4f85823164b4573a3bcf1ba3ba6b04d0.tar.gz | |
Moving final GENENET8 version to master
Diffstat (limited to 'sourcecodes/net_structure.php')
| -rw-r--r-- | sourcecodes/net_structure.php | 23 |
1 files changed, 11 insertions, 12 deletions
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=="") <?php } -if(isset($_POST["MyUpload"])) +if(isset($HTTP_POST_VARS["MyUpload"])) { - $UploadValue=$_POST["MyUpload"]; + $UploadValue=$HTTP_POST_VARS["MyUpload"]; if ($UploadValue=="YES") { if($TextFile!="") { - $sta=move_uploaded_file($_FILES['MyFile']['tmp_name'],$TextinFile); + $sta=move_uploaded_file($HTTP_POST_FILES['MyFile']['tmp_name'],$TextinFile); if(!$sta) { echo "<script type='text/javascript'> window.alert ('Sorry, error uploading $TextFile.')</script>"; |
