Хранилища Subversion ant

Редакция

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

Редакция 399 Редакция 401
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':
-
 
26
        $result = $core->showBranchesList($versID, "html");
-
 
27
        break;
25
}
28
}
26
29
27
print $result;
30
print $result;
28
31
29
?>
32
?>
30
 
33