Редакция 392 | Редакция 401 | К новейшей редакции | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 392 | Редакция 399 | ||
---|---|---|---|
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 | $ID = $_GET["reqID"]; |
17 | $stepID = $secure->checkInt($_GET["step"]); |
- | 18 | $distID = $secure->checkInt($_GET["d"]); |
|
- | 19 | $versID = $secure->checkInt($_GET["v"]); |
|
18 | 20 | ||
19 | list($step,$dist,$vers,$reps) = split(":",$ID); |
- | |
20 | $stepId = $secure->checkInt($step); |
- | |
21 | $distId = $secure->checkInt($dist); |
- | |
22 | $versId = $secure->checkInt($vers); |
- | |
23 | if ($reps!="") { |
- | |
24 | $repsIDs = array(); |
- | |
25 | $repsIDs = split("-",$reps); |
- | |
26 | }
|
- | |
27 | - | ||
28 | switch($stepId) { |
21 | switch($stepID) { |
29 | case '1': |
22 | case '1': |
30 | $result = $core->showDistributionList("dist","Дистрибутивы","Выберите дистрибутив"); |
23 | $result = $core->showDistVersionsList("version", $distID, "json"); |
31 | break; |
24 | break; |
32 | }
|
25 | }
|
33 | 26 | ||
34 | print $result; |
27 | print $result; |
35 | 28 | ||
36 | ?>
|
29 | ?>
|
37 | 30 |