Хранилища Subversion ant

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

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

/trunk/templates/classic.tpl
1,9 → 1,6
{config_load file=ant.conf section="setup"}
{include file="header.tpl"}
 
{if $status == 3}
{/if}
 
<div id='ant'>
 
{if $status == 1}
/trunk/classic.php
25,21 → 25,19
$status = $secure->wrapInt($_GET["step"]);
$dist = $secure->wrapInt($_GET["d"]);
$vers = $secure->wrapInt($_GET["v"]);
$mirror = $secure->wrapInt($_GET["m"]);
$reps = $_GET["r"];
$ID = $_GET["id"];
if(isset($ID)){
list($mirror,$dist,$vers,$repstring) = split(",",$ID);
if(!empty($mirror)){$status=1;};
if(!empty($dist)){$status=2;};
if(!empty($vers)){$status=3;};
list($dist,$vers,$repstring) = split(",",$ID);
if(!empty($dist)){$status=1;};
if(!empty($vers)){$status=2;};
if(!empty($repstring)){
$status=4;
$reps = split("-",$repstring);
};
}elseif(!empty($mirror)){
$location="./classic.php?id=".$mirror;
if(!empty($dist)){$location.=",".$dist;}
$location="./classic.php";
if(!empty($dist)){$location.="?id=".$dist;}
if(!empty($vers)){$location.=",".$vers;}
if(!empty($reps)){
for ($i=0;$i<count($reps);$i++) {
110,16 → 108,14
}
 
if ($status==3){$link='<div class="sllink"><a title="Ссылка на этот source.list" href=./classic.php?id='.$dist.",".$vers.",".$repstring.'>#</a></div>';}
$steps="<a href='classic.php'>".$infomsg[0]." 0</a> ::";
if ($status>0){ $steps .= "<a href='classic.php?id=".$mirror."'> ".$infomsg[0]." 1</a> ::"; } else { $steps.=" ".$infomsg[0]." 1 ::"; }
if ($status>1){ $steps .= "<a href='classic.php?id=".$mirror.",".$dist."'> ".$infomsg[0]." 2</a> ::"; } else{ $steps.=" ".$infomsg[0]." 2 ::"; }
if ($status>2){ $steps .= "<a href='classic.php?id=".$mirror.",".$dist.",".$vers."'> ".$infomsg[0]." 3</a> ::"; } else { $steps.=" ".$infomsg[0]." 3 ::"; }
if ($status>3){ $steps .= '<a href=./classic.php?id='.$mirror.','.$dist.','.$vers.','.$repstring.'>'.$infomsg[0].' 4</a>'; } else { $steps.=" ".$infomsg[0]." 4"; }
$steps="<a href='classic.php'>".$infomsg[0]." 1</a> ::";
if ($status>0){ $steps .= "<a href='classic.php?id=".$dist."'> ".$infomsg[0]." 2</a> ::"; } else { $steps.=" ".$infomsg[0]." 2 ::"; }
if ($status>1){ $steps .= "<a href='classic.php?id=".$dist.",".$vers."'> ".$infomsg[0]." 3</a> ::"; } else{ $steps.=" ".$infomsg[0]." 3 ::"; }
if ($status>2){ $steps .= '<a href=./classic.php?id='.$dist.','.$vers.','.$repstring.'>'.$infomsg[0].' 4</a>'; } else { $steps.=" ".$infomsg[0]." 4"; }
 
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]));
$smarty->assign('stepinfo',$infomsg[0]);
$smarty->assign('nextstep',$infomsg[1]);
$smarty->assign('mirrorselect',$infomsg[2]);
$smarty->assign('distrochoose',$infomsg[3]);
$smarty->assign('distrovchoose',$infomsg[4]);
$smarty->assign('repselect',$infomsg[5]);