Редакция 424 | Редакция 449 | К новейшей редакции | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | 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 | |||
448 | alex-w | 17 | // for index.php |
399 | alex-w | 18 | $stepID = $secure->checkInt($_GET["step"]); |
19 | $distID = $secure->checkInt($_GET["d"]); |
||
20 | $versID = $secure->checkInt($_GET["v"]); |
||
448 | alex-w | 21 | // for manager.php |
22 | $modeID = $secure->checkInt($_GET["mode"]); |
||
23 | $actID = $secure->checkInt($_GET["action"]); |
||
390 | alex-w | 24 | |
424 | alex-w | 25 | //TODO Написать заплатку для корректной обработки параметров из Konqueror 3.x (jQuery bug) |
26 | |||
399 | alex-w | 27 | switch($stepID) { |
390 | alex-w | 28 | case '1': |
399 | alex-w | 29 | $result = $core->showDistVersionsList("version", $distID, "json"); |
390 | alex-w | 30 | break; |
411 | alex-w | 31 | case '2': |
418 | alex-w | 32 | $result = "<form action='./get.php' method='post'>"; |
415 | alex-w | 33 | $result .= "<input type='hidden' name='d' value='".$distID."'>\n"; |
34 | $result .= "<input type='hidden' name='v' value='".$versID."'>\n"; |
||
411 | alex-w | 35 | $result .= $core->showBranchesList($versID, "html"); |
405 | alex-w | 36 | $result .= $core->showRepList($versID, 2, "html"); |
411 | alex-w | 37 | $result .= $core->showRepList($versID, 3, "html"); |
412 | alex-w | 38 | $result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>"; |
401 | alex-w | 39 | break; |
390 | alex-w | 40 | } |
41 | |||
448 | alex-w | 42 | switch($modeID) { |
43 | case '1': |
||
44 | break; |
||
45 | } |
||
46 | |||
390 | alex-w | 47 | print $result; |
48 | |||
49 | ?> |