Редакция 647 |
Редакция 662 |
К новейшей редакции |
Авторство |
Сравнить с предыдущей |
Последнее изменение |
Открыть журнал
| Скачать
| 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];
}
$r = $core->showSourcesList($request);
echo $r;
?>