-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript_example.php
More file actions
46 lines (40 loc) · 1.58 KB
/
script_example.php
File metadata and controls
46 lines (40 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php echo file_get_contents("html/header.html"); ?>
<div class="trasparenza">
<fieldset id="searchs">
<br>
Below is shown the selection of the best one hundred alignments.
<section>
<p class="top_output">
<span class=" centra-contenuto row">
<a href="database/selection.txt" download="alignment.txt"><input type="submit" class="btn btn-primary" value="Download this file"></a>
</span>
<span class=" centra-contenuto row">
<a href="database/out.txt" download="alignment_total.txt"><input type="submit" class="btn btn-primary" value="Download all the alignments"></a>
</span>
<span class=" centra-contenuto row">
<form method="post" class="example" action="include/mailer.php">
<input type="email" placeholder="Enter your email address" id="email" name="email" required>
<button type="submit" value="Submit" class="my-tooltip">
<span> Send mail </span>
<i class="fa fa-envelope"></i>
<span class="my-tooltiptext tool_sendmail tool_text_send">To receive file with alignments showed in this page and file with all alignments</span>
</button>
</form>
</span>
</p>
</section>
<br>
</fieldset>
</div>
<?php
$miranda= 'miranda database/example.fasta database/reduced_database.dat -out database/out.txt';
exec($miranda);
$ruby= 'ruby output_selection_on_best.rb';
exec($ruby);
$selection= 'database/selection.txt';
$testo= file_get_contents ($selection);
echo "<pre>", htmlspecialchars($testo), "</pre>";
?>
<?php echo file_get_contents("html/footer.html"); ?>