Хранилища Subversion ant

Редакция

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

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