Хранилища Subversion ant

Редакция

Редакция 405 | Редакция 412 | К новейшей редакции | Только различия | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

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