Хранилища Subversion ant

Редакция

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