Хранилища Subversion ant

Редакция

Редакция 401 | Содержимое файла | Сравнить с предыдущей | Последнее изменение | Открыть журнал | 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;
401 alex-w 25
    case '2':
402 alex-w 26
        $result  = "<div class='mrg'>";
27
        $result .= $core->showBranchesList($versID, "html");
28
        $result  = "</div><div class='mrg'>";
29
        $result .= $core->showRepList($versID, 2, "html");
30
        $result  = "</div><div class='mrg'>";
31
        $result .= $core->showRepList($versID, 3, "html");
32
        $result  = "</div>";
401 alex-w 33
        break;
390 alex-w 34
}
35
 
36
print $result;
37
 
38
?>