Хранилища Subversion ant

Редакция

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

Редакция Автор № строки Строка
390 alex-w 1
<?php
2
 
3
/**
4
 *  
5
 *  Codename: ant-ng - generator of sources.list for Debian and
6
 *  distributives, based on Debian
7
 *  http://alex-w.org.ru/p/antng/
8
 *
9
 *  Copyright (c) 2009 Alexander Wolf
10
 *  Dual licensed under the MIT and GNU LGPL licenses.
11
 *  http://alex-w.org.ru/p/antng/license
12
 *
13
 */
14
 
15
require_once dirname(__FILE__)."/init.php";
16
 
399 alex-w 17
$stepID = $secure->checkInt($_GET["step"]);
18
$distID = $secure->checkInt($_GET["d"]);
19
$versID = $secure->checkInt($_GET["v"]);
390 alex-w 20
 
399 alex-w 21
switch($stepID) {
390 alex-w 22
    case '1':
399 alex-w 23
        $result = $core->showDistVersionsList("version", $distID, "json");
390 alex-w 24
        break;
411 alex-w 25
    case '2':
418 alex-w 26
        $result  = "<form action='./get.php' method='post'>";
415 alex-w 27
        $result .= "<input type='hidden' name='d' value='".$distID."'>\n";
28
        $result .= "<input type='hidden' name='v' value='".$versID."'>\n";
411 alex-w 29
        $result .= $core->showBranchesList($versID, "html");
405 alex-w 30
        $result .= $core->showRepList($versID, 2, "html");        
411 alex-w 31
        $result .= $core->showRepList($versID, 3, "html");
412 alex-w 32
        $result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>";
401 alex-w 33
        break;
390 alex-w 34
}
35
 
36
print $result;
37
 
38
?>