diff options
| author | ziejd2 | 2021-02-24 23:57:02 -0600 |
|---|---|---|
| committer | GitHub | 2021-02-24 23:57:02 -0600 |
| commit | 446c9c784710f65e5a03d036e4fff164b57a1d29 (patch) | |
| tree | b24264d1b52be36c8ff6475b6852c23682adbc29 /sourcecodes | |
| parent | e196b0a7cbbec60f2ce2ce361adc7eea8fdd9aed (diff) | |
| download | BNW-446c9c784710f65e5a03d036e4fff164b57a1d29.tar.gz | |
Update upload_structure_file.php
Diffstat (limited to 'sourcecodes')
| -rw-r--r-- | sourcecodes/upload_structure_file.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sourcecodes/upload_structure_file.php b/sourcecodes/upload_structure_file.php index f0c9fc7d..0b980b25 100644 --- a/sourcecodes/upload_structure_file.php +++ b/sourcecodes/upload_structure_file.php @@ -13,7 +13,7 @@ include("input_validate.php"); $searchID=""; $UploadValue="NO"; -$TextFile=$HTTP_POST_FILES["MyFile"]["name"]; +$TextFile=$_FILES["MyFile"]["name"]; /////////////Generate a random key///////////////////// @@ -43,9 +43,9 @@ $input_table_file="./data/".$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"]; } @@ -62,14 +62,14 @@ if($searchID=="") <?php } -if(isset($HTTP_POST_VARS["MyUpload"])) +if(isset($_POST["MyUpload"])) { - $UploadValue=$HTTP_POST_VARS["MyUpload"]; + $UploadValue=$_POST["MyUpload"]; if ($UploadValue=="YES") { if($TextFile!="") { - $sta=move_uploaded_file($HTTP_POST_FILES['MyFile']['tmp_name'],$TextinFile); + $sta=move_uploaded_file($_FILES['MyFile']['tmp_name'],$TextinFile); if(!$sta) { echo "<script type='text/javascript'> window.alert ('Sorry, error uploading $TextFile.')</script>"; |
