Révision e77b752b src/publish_it.php
b/src/publish_it.php | ||
---|---|---|
2 | 2 |
session_start(); |
3 | 3 |
require("headers.php"); |
4 | 4 |
|
5 |
$output = ""; |
|
6 |
|
|
5 | 7 |
if (isset($_REQUEST["action"])) { |
6 | 8 |
// print_r($_REQUEST); |
7 | 9 |
$ids = $_REQUEST["ids"]; |
8 |
$all_ids = explode(" ", preg_replace("/([^0-9]+)/"," ",$ids));
|
|
10 |
$all_ids = preg_split("/([^0-9]+)/",$ids, -1, PREG_SPLIT_NO_EMPTY);
|
|
9 | 11 |
// print("<pre>"); |
10 | 12 |
// print_r($all_ids); |
11 | 13 |
// print("</pre>"); |
... | ... | |
17 | 19 |
// print("<pre>"); |
18 | 20 |
// print_r($strain); |
19 | 21 |
// print("</pre>"); |
20 |
echo dump_genotype($strain);
|
|
22 |
$output .= dump_genotype($strain);
|
|
21 | 23 |
} |
22 | 24 |
} |
23 | 25 |
} |
24 | 26 |
|
25 | 27 |
|
26 |
$output = ""; |
|
27 | 28 |
$output .= "<p>Enter IDs of strains (blank separated) that you want to publish genotypes.</p>"; |
28 | 29 |
$output .= "<form>"; |
29 | 30 |
|
Formats disponibles : Unified diff