Хранилища Subversion ant

Редакция

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

Редакция Автор № строки Строка
416 alex-w 1
<?php
2
 
3
/**
4
 *  
554 alex-w 5
 *  Codename: ant-ng - generator of sources.list for apt-distributives
416 alex-w 6
 *  http://alex-w.org.ru/p/antng/
7
 *
8
 *  Copyright (c) 2009 Alexander Wolf
9
 *  Dual licensed under the MIT and GNU LGPL licenses.
10
 *  http://alex-w.org.ru/p/antng/license
11
 *
12
 */
13
 
14
require_once dirname(__FILE__)."/init.php";
15
 
419 alex-w 16
$reqID  = $_GET["uuid"];
418 alex-w 17
$distID = $secure->checkInt($_POST["d"]);
18
$versID = $secure->checkInt($_POST["v"]);
416 alex-w 19
 
646 alex-w 20
$request = array();
21
$request["dist_id"]     = $distID;
22
$request["version_id"]  = $versID;
23
for ($i=0;$i<count($_POST["section"]);$i++) {
24
    $request["section"][$i] = $_POST["section"][$i];
25
}
26
for ($i=0;$i<count($_POST["repository"]);$i++) {
27
    $request["repository"][$i] = $_POST["repository"][$i];
28
}
416 alex-w 29
 
663 alex-w 30
header("content-type: text/plain\n\n");
646 alex-w 31
$r = $core->showSourcesList($request);
32
echo $r;
33
 
416 alex-w 34
?>