Редакция 404 | Редакция 411 | К новейшей редакции | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 404 | Редакция 405 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | 2 | ||
3 | /**
|
3 | /**
|
4 | *
|
4 | *
|
5 | * Codename: ant-ng - generator of sources.list for Debian and
|
5 | * Codename: ant-ng - generator of sources.list for Debian and
|
6 | * distributives, based on Debian
|
6 | * distributives, based on Debian
|
7 | * http://alex-w.org.ru/p/antng/
|
7 | * http://alex-w.org.ru/p/antng/
|
8 | *
|
8 | *
|
9 | * Copyright (c) 2009 Alexander Wolf
|
9 | * Copyright (c) 2009 Alexander Wolf
|
10 | * Dual licensed under the MIT and GNU LGPL licenses.
|
10 | * Dual licensed under the MIT and GNU LGPL licenses.
|
11 | * http://alex-w.org.ru/p/antng/license
|
11 | * http://alex-w.org.ru/p/antng/license
|
12 | *
|
12 | *
|
13 | */
|
13 | */
|
14 | 14 | ||
15 | require_once dirname(__FILE__)."/init.php"; |
15 | require_once dirname(__FILE__)."/init.php"; |
16 | 16 | ||
17 | $stepID = $secure->checkInt($_GET["step"]); |
17 | $stepID = $secure->checkInt($_GET["step"]); |
18 | $distID = $secure->checkInt($_GET["d"]); |
18 | $distID = $secure->checkInt($_GET["d"]); |
19 | $versID = $secure->checkInt($_GET["v"]); |
19 | $versID = $secure->checkInt($_GET["v"]); |
20 | 20 | ||
21 | switch($stepID) { |
21 | switch($stepID) { |
22 | case '1': |
22 | case '1': |
23 | $result = $core->showDistVersionsList("version", $distID, "json"); |
23 | $result = $core->showDistVersionsList("version", $distID, "json"); |
24 | break; |
24 | break; |
25 | case '2': |
25 | case '2': |
26 | $result = "<div class='mrg'>"; |
- | |
27 | $result .= $core->showBranchesList($versID, "html"); |
26 | $result = $core->showBranchesList($versID, "html"); |
28 | $result .= "</div><div class='mrg'>"; |
- | |
29 | $result .= $core->showRepList($versID, 2, "html"); |
27 | $result .= $core->showRepList($versID, 2, "html"); |
30 | $result .= "</div><div class='mrg'>"; |
- | |
31 | $result .= $core->showRepList($versID, 3, "html"); |
28 | $result .= $core->showRepList($versID, 3, "html"); |
32 | $result .= "</div>"; |
- | |
33 | break; |
29 | break; |
34 | }
|
30 | }
|
35 | 31 | ||
36 | print $result; |
32 | print $result; |
37 | 33 | ||
38 | ?>
|
34 | ?>
|
39 | 35 |