Редакция 411 |
Редакция 415 |
К новейшей редакции |
Авторство |
Сравнить с предыдущей |
Последнее изменение |
Открыть журнал
| Скачать
| RSS
<?php
/**
*
* Codename: ant-ng - generator of sources.list for Debian and
* distributives, based on Debian
* 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";
$stepID = $secure->checkInt($_GET["step"]);
$distID = $secure->checkInt($_GET["d"]);
$versID = $secure->checkInt($_GET["v"]);
switch($stepID) {
case '1':
$result = $core->showDistVersionsList("version", $distID, "json");
break;
case '2':
$result = "<form action='./get.php' method='get'>";
$result .= $core->showBranchesList($versID, "html");
$result .= $core->showRepList($versID, 2, "html");
$result .= $core->showRepList($versID, 3, "html");
$result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>";
break;
}
print $result;
?>