Хранилища Subversion ant

Редакция

Редакция 668 | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 668 Редакция 701
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
$request = array();
20
$request = array();
21
$request["dist_id"]     = $distID;
21
$request["dist_id"]     = $distID;
22
$request["version_id"]  = $versID;
22
$request["version_id"]  = $versID;
23
for ($i=0;$i<count($_POST["section"]);$i++) {
23
for ($i=0;$i<count($_POST["section"]);$i++) {
24
    $request["section"][$i] = $_POST["section"][$i];
24
    $request["section"][$i] = $_POST["section"][$i];
25
}
25
}
26
for ($i=0;$i<count($_POST["repository"]);$i++) {
26
for ($i=0;$i<count($_POST["repository"]);$i++) {
27
    $request["repository"][$i] = $_POST["repository"][$i];
27
    $request["repository"][$i] = $_POST["repository"][$i];
28
}
28
}
29
29
30
header("content-type: text/plain\n\n");
30
header("content-type: text/plain\n\n");
31
$r = $core->showSourcesList($request);
31
$r = $core->showSourcesList($request);
32
echo $r;
32
echo $r;
33
33
34
?>
34
?>
35
 
35