Révision 49db860c src/headers.php
b/src/headers.php | ||
---|---|---|
48 | 48 |
|
49 | 49 |
<?php |
50 | 50 |
|
51 |
function dump_genotype($strain) { |
|
52 |
$geno = "<p>$strain->Name_ Genotype: ". |
|
53 |
"<I>". |
|
54 |
"<B>". |
|
55 |
$strain->Mating_Type ." ". |
|
56 |
"</B>" . |
|
57 |
$strain->ADE2 ." ". |
|
58 |
$strain->HIS3 ." ". |
|
59 |
$strain->LEU2 ." ". |
|
60 |
$strain->LYS2 ." ". |
|
61 |
$strain->MET15 ." ". |
|
62 |
$strain->TRP1 ." ". |
|
63 |
$strain->URA3 ." ". |
|
64 |
$strain->HO_ ." ". |
|
65 |
$strain->locus1 ." ". |
|
66 |
$strain->locus2 ." ". |
|
67 |
$strain->locus3 ." ". |
|
68 |
$strain->locus4 ." ". |
|
69 |
$strain->locus5 ." ". |
|
70 |
"</I>". |
|
71 |
" [" . |
|
72 |
$strain->Cytoplasmic_Character ." ". |
|
73 |
"] (" . |
|
74 |
$strain->extrachromosomal_plasmid ." ". |
|
75 |
")" . |
|
76 |
"</p>"; |
|
77 |
return($geno); |
|
78 |
} |
|
79 |
|
|
80 |
|
|
51 | 81 |
$to_be_post_list_content = ""; |
52 | 82 |
$to_be_pre_list_content = ""; |
53 | 83 |
// print($_SERVER["SCRIPT_FILENAME"]); |
... | ... | |
88 | 118 |
// to pass to phpMyEdit |
89 | 119 |
// |
90 | 120 |
//check that visitor is allowed to use this table |
91 |
if (($tb == "admin" || $tb == "add_box") && $session->mode != "super") { |
|
121 |
if (($tb == "admin" || $tb == "add_box" || $tb == "publish_it") && $session->mode != "super") {
|
|
92 | 122 |
echo "<p>Sorry, your session is not granted access to admin panel. Please logout and try again with appropriate login...</p>"; |
93 | 123 |
exit; |
94 | 124 |
} else if ($session->target_table != $tb && $session->target_table != "all") { |
Formats disponibles : Unified diff