Хранилища Subversion ant

Редакция

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

<?php

/**
 *  
 *  Codename: ant-ng - generator of sources.list for apt-distributives
 *  http://alex-w.org.ru/p/antng/
 *
 *  Copyright (c) 2009 Alexander Wolf
 *  Dual licensed under the MIT and GNU LGPL licenses.
 *  http://alex-w.org.ru/p/antng/license
 *
 */


require_once dirname(__FILE__)."/init.php";

$reqID  = $_GET["uuid"];
$distID = $secure->checkInt($_POST["d"]);
$versID = $secure->checkInt($_POST["v"]);

$request = array();
$request["dist_id"]     = $distID;
$request["version_id"]  = $versID;
for ($i=0;$i<count($_POST["section"]);$i++) {
    $request["section"][$i] = $_POST["section"][$i];
}
for ($i=0;$i<count($_POST["repository"]);$i++) {
    $request["repository"][$i] = $_POST["repository"][$i];
}

header("content-type: text/plain\n\n");
$r = $core->showSourcesList($request);
echo $r;

?>