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