diff options
| author | ziejd2 | 2021-02-24 23:42:41 -0600 |
|---|---|---|
| committer | GitHub | 2021-02-24 23:42:41 -0600 |
| commit | 45169c8319f0825f619dcf97f2231fcb2e28275e (patch) | |
| tree | 9f899bd57002c2e70f8d7ec0df96652108c02d36 /sourcecodes/bn_file_load_gom.php | |
| parent | 1427e9bf4f85823164b4573a3bcf1ba3ba6b04d0 (diff) | |
| download | BNW-45169c8319f0825f619dcf97f2231fcb2e28275e.tar.gz | |
Update bn_file_load_gom.php
Diffstat (limited to 'sourcecodes/bn_file_load_gom.php')
| -rw-r--r-- | sourcecodes/bn_file_load_gom.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sourcecodes/bn_file_load_gom.php b/sourcecodes/bn_file_load_gom.php index 6509cdeb..7aa6f77a 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=$HTTP_POST_FILES["MyFile"]["name"]; +$TextFile=$_FILES["MyFile"]["name"]; /////////////Generate a random key///////////////////// @@ -40,9 +40,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"]; } @@ -70,7 +70,7 @@ if(isset($HTTP_POST_VARS["MyUpload"])) if($TextFile!="") { // $TextFile = valid_input($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>"; |
