Révision d0d66954
b/admin/admin.php | ||
---|---|---|
73 | 73 |
if ($_POST['saison'] && $_POST['div1']) { |
74 | 74 |
$path = (IamAdmin()) ? "../datas" : "datas"; |
75 | 75 |
$path .= "/".$_POST['saison']."/".$_POST['div1']; |
76 |
if (isset($_POST['div2'])) $path .= $SEP_DIV.$_POST['div2']; |
|
77 |
if (isset($_POST['poule']) || isset($_POST['phase'])) $path .= "/"; |
|
78 |
if (isset($_POST['poule'])) $path .= $_POST['poule']; |
|
79 |
if (isset($_POST['phase'])) $path .= $SEP_DIV.$_POST['phase']; |
|
76 |
if ($_POST['div2'] != "") $path .= $SEP_DIV.$_POST['div2']; |
|
77 |
if ($_POST['poule'] != "" || $_POST['phase'] != "") $path .= "/"; |
|
78 |
if ($_POST['poule'] != "") $path .= $_POST['poule']; |
|
79 |
if ($_POST['phase'] != "") $path .= $SEP_DIV.$_POST['phase']; |
|
80 | 80 |
} |
81 | 81 |
|
82 | 82 |
if ($_POST['exporter'] == "exporter") { |
b/index.php | ||
---|---|---|
40 | 40 |
$division = $_POST['division']; // PROA, N1, PN, R2, PR ou D4, ... |
41 | 41 |
$poule = $_POST['poule']; // A, B, ... |
42 | 42 |
$phase = $_POST['phase']; // 1, 2, ... |
43 |
if (!isset($division)) $division = $div1; if (isset($div2)) $division .= $SEP_DIV.$div2; |
|
44 |
$subdiv = $poule; if (isset($phase)) $subdiv .= $SEP_DIV.$phase; |
|
43 |
if ($division == "") $division = $div1; if ($div2 != "") $division .= $SEP_DIV.$div2; |
|
44 |
$subdiv = $poule; if ($phase != "") $subdiv .= $SEP_DIV.$phase; |
|
45 | 45 |
|
46 | 46 |
$path = (IamAdmin()) ? "../datas" : "datas"; |
47 | 47 |
getDirs($path, $saisons); |
Formats disponibles : Unified diff