diff options
| author | ziejd2 | 2021-03-02 11:18:13 -0600 |
|---|---|---|
| committer | GitHub | 2021-03-02 11:18:13 -0600 |
| commit | 04135fc2736fec7b8ec24c1d03c98ccdc8a9347e (patch) | |
| tree | 69b0b4b1f670d39e3f4fc578fc7ad037aa7ecdb6 /sourcecodes/net_structure.php.bk | |
| parent | a4388f1e8b73ce2f627360ce004da28255aaef7e (diff) | |
| download | BNW-04135fc2736fec7b8ec24c1d03c98ccdc8a9347e.tar.gz | |
Delete net_structure.php.bk
Diffstat (limited to 'sourcecodes/net_structure.php.bk')
| -rw-r--r-- | sourcecodes/net_structure.php.bk | 132 |
1 files changed, 0 insertions, 132 deletions
diff --git a/sourcecodes/net_structure.php.bk b/sourcecodes/net_structure.php.bk deleted file mode 100644 index 395c6112..00000000 --- a/sourcecodes/net_structure.php.bk +++ /dev/null @@ -1,132 +0,0 @@ -<?php -include("header_new.inc"); -include("header_batchsearch.inc"); -include("input_validate.php"); -////////////////continuous/////////////// -$searchID=""; -$UploadValue="NO"; -$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/$keyval"; -$dir="/tmp/bnw/$keyval"; - -$TextinFileFinal=$dir.$sid.".txt"; - -$TextinFile=$dir.$sid."_temp.txt"; - -$TextinFilenamelist=$dir."name.txt"; - -if(isset($HTTP_POST_VARS["searchkey"])) -{ - $searchID=$HTTP_POST_VARS["searchkey"]; -} - -if(isset($HTTP_POST_VARS["MyUpload"])) -{ - $UploadValue=$HTTP_POST_VARS["MyUpload"]; - if ($UploadValue=="YES") - { - if($TextFile!="") - { - $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>"; - flush(); - exit(); - } - else - { - $searchID=file_get_contents("$TextinFile"); - //fclose($fh); - unlink($TextinFile); - - } - - } - - else - { - echo "<script type='text/javascript'> window.alert ('Sorry, please select upload file.')</script>"; - } - } -} - -if($searchID!="") -{ -?> - -<!-- Site navigation menu --> -<ul class="navbar"> - <li><a href="graphviz_structure.php?My_key=<?php print($keyval);?>">Display structure</a> -</ul> -<ul class="navbar"> - <li><a href="help.php#file_format" target="_blank">Data formatting guidelines</a> - <li><a href="help.php" target="_blank">Help</a> - <li><a href="home.php">Home</a> -</ul> -<div id="outernew_load"> -</div> -<?php -} -else -{ - -?> -<!-- Site navigation menu --> -<ul class="navbar2"> - <li><a href="help.php#file_format" target="_blank">Data formatting guidelines</a> - <li><a href="help.php" target='_blank'>Help</a> - <li><a href="home.php">Home</a> -</ul> -<?php -} -?> - -<div id="outernew"> - -<h2>Upload network structure</h2> -<FORM name="key_search" id="in_form" enctype="multipart/form-data" ACTION="net_structure.php" METHOD=POST> -<INPUT style="background-color:#FFFFFF;color:#0000FF" type="file" name="MyFile" id="MyFile_id" class="inputfile" onchange="upload_submit()" > -<INPUT TYPE="hidden" NAME="My_key" value=<?php print($keyval) ?> > -<INPUT TYPE="hidden" name="MyUpload" value="NO"> -<textarea name="searchkey" style="display:none"><?PHP print($searchID)?> </textarea> -<br><br> -<INPUT TYPE="submit" value=" Load example structure " onclick="return demo_str();">    -<INPUT TYPE="hidden" NAME="My_key" value=<?php print($keyval) ?> > -</FORM> - -</div> -<script> - function upload_submit() { - Upload(); - document.getElementById("in_form").submit(); -} -</script> - - -<?php - $str_arr=array(); - $searchID=trim($searchID); - $str_arr=explode("\n",$searchID); - $data=array(); - - $fpmain = fopen($TextinFileFinal,"w"); - - foreach($str_arr as $line) - { - $line=trim($line); - fwrite($fpmain, "$line\n"); - - } - -?> |
