Редакция 646 | Редакция 648 | К новейшей редакции | Только различия | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 646 | Редакция 647 | ||
---|---|---|---|
1 | <?php
|
1 | <?php
|
2 | 2 | ||
3 | /**
|
3 | /**
|
4 | *
|
4 | *
|
5 | * Codename: ant-ng - generator of sources.list for apt-distributives
|
5 | * Codename: ant-ng - generator of sources.list for apt-distributives
|
6 | * http://alex-w.org.ru/p/antng/
|
6 | * http://alex-w.org.ru/p/antng/
|
7 | *
|
7 | *
|
8 | * Copyright (c) 2009 Alexander Wolf
|
8 | * Copyright (c) 2009 Alexander Wolf
|
9 | * Dual licensed under the MIT and GNU LGPL licenses.
|
9 | * Dual licensed under the MIT and GNU LGPL licenses.
|
10 | * http://alex-w.org.ru/p/antng/license
|
10 | * http://alex-w.org.ru/p/antng/license
|
11 | *
|
11 | *
|
12 | */
|
12 | */
|
13 | 13 | ||
14 | require_once dirname(__FILE__)."/init.php"; |
14 | require_once dirname(__FILE__)."/init.php"; |
15 | 15 | ||
16 | $reqID = $_GET["uuid"]; |
16 | $reqID = $_GET["uuid"]; |
17 | $distID = $secure->checkInt($_POST["d"]); |
17 | $distID = $secure->checkInt($_POST["d"]); |
18 | $versID = $secure->checkInt($_POST["v"]); |
18 | $versID = $secure->checkInt($_POST["v"]); |
19 | 19 | ||
- | 20 | phpinfo(); |
|
- | 21 | ||
20 | $request = array(); |
22 | $request = array(); |
21 | $request["dist_id"] = $distID; |
23 | $request["dist_id"] = $distID; |
22 | $request["version_id"] = $versID; |
24 | $request["version_id"] = $versID; |
23 | for ($i=0;$i<count($_POST["section"]);$i++) { |
25 | for ($i=0;$i<count($_POST["section"]);$i++) { |
24 | $request["section"][$i] = $_POST["section"][$i]; |
26 | $request["section"][$i] = $_POST["section"][$i]; |
25 | }
|
27 | }
|
26 | for ($i=0;$i<count($_POST["repository"]);$i++) { |
28 | for ($i=0;$i<count($_POST["repository"]);$i++) { |
27 | $request["repository"][$i] = $_POST["repository"][$i]; |
29 | $request["repository"][$i] = $_POST["repository"][$i]; |
28 | }
|
30 | }
|
29 | 31 | ||
30 | $r = $core->showSourcesList($request); |
32 | $r = $core->showSourcesList($request); |
31 | echo $r; |
33 | echo $r; |
32 | 34 | ||
33 | ?>
|
35 | ?>
|
34 | 36 |