Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 227 → Редакция 228

/trunk/m-process.php
25,9 → 25,10
$dist = $secure->wrapInt($_GET["d"]);
$vers = $secure->wrapInt($_GET["v"]);
$status = $secure->wrapInt($_GET["status"]);
$reps = $_GET["r"];
 
header('Content-Type: text/html; charset=utf-8');
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
//if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
 
// hacks for Konqueror's error on jQuery
if (preg_match("/konqueror/i",$_SERVER["HTTP_USER_AGENT"])) {
54,14 → 55,21
$result .= ']';
break;
case '2':
$result="<form action='#' method='get'>";
$repodata=$core->getRepList($dist,$vers,$db);
for($i=0;$i<count($repodata[0]);$i++) {
$result.="<input type='checkbox' class='repbox' name='r[]' value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>";
}
$result.="</form>";
break;
case '3':
$result = "# Ant: sources.list generator :: http://track.altlug.ru/projects/show/ant\n\n";
$result .= $core->getRepListLegacy($dist,$vers,$db);
$result .= $core->getSourceList($dist,$vers,$reps,$db);
break;
case '3':
case '4':
$result = "<a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a>";
break;
}
print $result;
}
 
//}
?>