Хранилища Subversion ant

Редакция

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

Редакция 322 Редакция 323
Строка 23... Строка 23...
23
23
24
require_once dirname(__FILE__)."/lib/init.php";
24
require_once dirname(__FILE__)."/lib/init.php";
25
$status = $secure->wrapInt($_GET["step"]);
25
$status = $secure->wrapInt($_GET["step"]);
26
$dist   = $secure->wrapInt($_GET["d"]);
26
$dist   = $secure->wrapInt($_GET["d"]);
27
$vers   = $secure->wrapInt($_GET["v"]);
27
$vers   = $secure->wrapInt($_GET["v"]);
28
$mirror = $secure->wrapInt($_GET["m"]);
-
 
29
$reps   = $_GET["r"];
28
$reps   = $_GET["r"];
30
$ID     = $_GET["id"];
29
$ID     = $_GET["id"];
31
if(isset($ID)){    
30
if(isset($ID)){    
32
    list($mirror,$dist,$vers,$repstring) = split(",",$ID);
31
    list($dist,$vers,$repstring) = split(",",$ID);
33
    if(!empty($mirror)){$status=1;};
-
 
34
    if(!empty($dist)){$status=2;};
32
    if(!empty($dist)){$status=1;};
35
    if(!empty($vers)){$status=3;};
33
    if(!empty($vers)){$status=2;};
36
    if(!empty($repstring)){
34
    if(!empty($repstring)){
37
        $status=4;
35
        $status=4;
38
        $reps = split("-",$repstring);
36
        $reps = split("-",$repstring);
39
    };
37
    };
40
}elseif(!empty($mirror)){
38
}elseif(!empty($mirror)){
41
    $location="./classic.php?id=".$mirror;
39
    $location="./classic.php";
42
    if(!empty($dist)){$location.=",".$dist;}
40
    if(!empty($dist)){$location.="?id=".$dist;}
43
    if(!empty($vers)){$location.=",".$vers;}
41
    if(!empty($vers)){$location.=",".$vers;}
44
    if(!empty($reps)){
42
    if(!empty($reps)){
45
        for ($i=0;$i<count($reps);$i++) {
43
        for ($i=0;$i<count($reps);$i++) {
46
            $shortreps .= $reps[$i];
44
            $shortreps .= $reps[$i];
47
            if ($i<count($reps)-1) {
45
            if ($i<count($reps)-1) {
Строка 108... Строка 106...
108
        $link="<div class='sllink'><a title='"._("Link to this sources.list")."' href=./classic.php?id=".$mirror.",".$dist.",".$vers.",".$repstring.">#</a></div>";
106
        $link="<div class='sllink'><a title='"._("Link to this sources.list")."' href=./classic.php?id=".$mirror.",".$dist.",".$vers.",".$repstring.">#</a></div>";
109
    break;
107
    break;
110
}
108
}
111
109
112
if ($status==3){$link='<div class="sllink"><a title="Ссылка на этот source.list" href=./classic.php?id='.$dist.",".$vers.",".$repstring.'>#</a></div>';}
110
if ($status==3){$link='<div class="sllink"><a title="Ссылка на этот source.list" href=./classic.php?id='.$dist.",".$vers.",".$repstring.'>#</a></div>';}
113
$steps="<a href='classic.php'>".$infomsg[0]." 0</a> ::";
111
$steps="<a href='classic.php'>".$infomsg[0]." 1</a> ::";
114
if ($status>0){ $steps .= "<a href='classic.php?id=".$mirror."'> ".$infomsg[0]." 1</a> ::"; } else { $steps.=" ".$infomsg[0]." 1 ::"; }
112
if ($status>0){ $steps .= "<a href='classic.php?id=".$dist."'> ".$infomsg[0]." 2</a> ::"; } else { $steps.=" ".$infomsg[0]." 2 ::"; }
115
if ($status>1){ $steps .= "<a href='classic.php?id=".$mirror.",".$dist."'> ".$infomsg[0]." 2</a> ::"; } else{ $steps.=" ".$infomsg[0]." 2 ::"; }
113
if ($status>1){ $steps .= "<a href='classic.php?id=".$dist.",".$vers."'> ".$infomsg[0]." 3</a> ::"; } else{ $steps.=" ".$infomsg[0]." 3 ::"; }
116
if ($status>2){ $steps .= "<a href='classic.php?id=".$mirror.",".$dist.",".$vers."'> ".$infomsg[0]." 3</a> ::"; } else { $steps.=" ".$infomsg[0]." 3 ::"; }
-
 
117
if ($status>3){ $steps .= '<a href=./classic.php?id='.$mirror.','.$dist.','.$vers.','.$repstring.'>'.$infomsg[0].' 4</a>'; } else { $steps.=" ".$infomsg[0]." 4"; }
114
if ($status>2){ $steps .= '<a href=./classic.php?id='.$dist.','.$vers.','.$repstring.'>'.$infomsg[0].' 4</a>'; } else { $steps.=" ".$infomsg[0]." 4"; }
118
115
119
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]));
116
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]));
120
$smarty->assign('stepinfo',$infomsg[0]);
117
$smarty->assign('stepinfo',$infomsg[0]);
121
$smarty->assign('nextstep',$infomsg[1]);
118
$smarty->assign('nextstep',$infomsg[1]);
122
$smarty->assign('mirrorselect',$infomsg[2]);
-
 
123
$smarty->assign('distrochoose',$infomsg[3]);
119
$smarty->assign('distrochoose',$infomsg[3]);
124
$smarty->assign('distrovchoose',$infomsg[4]);
120
$smarty->assign('distrovchoose',$infomsg[4]);
125
$smarty->assign('repselect',$infomsg[5]);
121
$smarty->assign('repselect',$infomsg[5]);
126
$smarty->assign('getsourceslist',$infomsg[6]);
122
$smarty->assign('getsourceslist',$infomsg[6]);
127
$smarty->assign('link',$link);
123
$smarty->assign('link',$link);