Хранилища Subversion ant

Редакция

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

Редакция 418 Редакция 424
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
//TODO Написать заплатку для корректной обработки параметров из Konqueror 3.x (jQuery bug)
-
 
22
21
switch($stepID) {
23
switch($stepID) {
22
    case '1':
24
    case '1':
23
        $result = $core->showDistVersionsList("version", $distID, "json");
25
        $result = $core->showDistVersionsList("version", $distID, "json");
24
        break;
26
        break;
25
    case '2':
27
    case '2':
26
        $result  = "<form action='./get.php' method='post'>";
28
        $result  = "<form action='./get.php' method='post'>";
27
        $result .= "<input type='hidden' name='d' value='".$distID."'>\n";
29
        $result .= "<input type='hidden' name='d' value='".$distID."'>\n";
28
        $result .= "<input type='hidden' name='v' value='".$versID."'>\n";
30
        $result .= "<input type='hidden' name='v' value='".$versID."'>\n";
29
        $result .= $core->showBranchesList($versID, "html");
31
        $result .= $core->showBranchesList($versID, "html");
30
        $result .= $core->showRepList($versID, 2, "html");        
32
        $result .= $core->showRepList($versID, 2, "html");        
31
        $result .= $core->showRepList($versID, 3, "html");
33
        $result .= $core->showRepList($versID, 3, "html");
32
        $result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>";
34
        $result .= "<input type='submit' value=' Сгенерировать файл sources.list '>\n</form>";
33
        break;
35
        break;
34
}
36
}
35
37
36
print $result;
38
print $result;
37
39
38
?>
40
?>
39
 
41