Редакция 415 | Редакция 424 | К новейшей редакции | Только различия | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 415 | Редакция 418 | ||
---|---|---|---|
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 = "<form action='./get.php' method='get'>"; |
26 | $result = "<form action='./get.php' method='post'>"; |
27 | $result .= "<input type='hidden' name='d' value='".$distID."'>\n"; |
27 | $result .= "<input type='hidden' name='d' value='".$distID."'>\n"; |
28 | $result .= "<input type='hidden' name='v' value='".$versID."'>\n"; |
28 | $result .= "<input type='hidden' name='v' value='".$versID."'>\n"; |
29 | $result .= $core->showBranchesList($versID, "html"); |
29 | $result .= $core->showBranchesList($versID, "html"); |
30 | $result .= $core->showRepList($versID, 2, "html"); |
30 | $result .= $core->showRepList($versID, 2, "html"); |
31 | $result .= $core->showRepList($versID, 3, "html"); |
31 | $result .= $core->showRepList($versID, 3, "html"); |
32 | $result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>"; |
32 | $result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>"; |
33 | break; |
33 | break; |
34 | }
|
34 | }
|
35 | 35 | ||
36 | print $result; |
36 | print $result; |
37 | 37 | ||
38 | ?>
|
38 | ?>
|
39 | 39 |