Хранилища Subversion ant

Редакция

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

Редакция 276 Редакция 278
Строка 24... Строка 24...
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
$reps   = $_GET["r"];
28
$reps   = $_GET["r"];
-
 
29
$ID     = $_GET["id"];
-
 
30
if(isset($ID)){    
-
 
31
    list($dist,$vers,$repstring) = split(",",$ID);
-
 
32
    if(isset($repstring)){
-
 
33
        $status=3;
-
 
34
        $reps = split("-",$repstring);
-
 
35
    }
29
36
}
30
$infomsg = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") );
37
$infomsg = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") );
31
38
32
if (!isset($status)) { $status = 0; };
39
if (!isset($status)) { $status = 0; };
33
40
34
switch ($status) {
41
switch ($status) {
Строка 92... Строка 99...
92
       
99
       
93
        $link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>";
100
        $link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>";
94
    break;
101
    break;
95
}
102
}
96
103
-
 
104
if ($status==3){$link='<div class="sllink"><a title="Ссылка на этот source.list" href=./classic.php?id='.$dist.",".$vers.",".$getreps.'>#</a></div>';}
97
$steps="<a href='classic.php'>".$infomsg[0]." 0</a> ::";
105
$steps="<a href='classic.php'>".$infomsg[0]." 0</a> ::";
98
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> ".$infomsg[0]." 1</a> ::"; } else { $steps.=" ".$infomsg[0]." 1 ::"; }
106
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> ".$infomsg[0]." 1</a> ::"; } else { $steps.=" ".$infomsg[0]." 1 ::"; }
99
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> ".$infomsg[0]." 2</a> ::"; } else{ $steps.=" ".$infomsg[0]." 2 ::"; }
107
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> ".$infomsg[0]." 2</a> ::"; } else{ $steps.=" ".$infomsg[0]." 2 ::"; }
100
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> ".$infomsg[0]." 3</a> ::"; } else { $steps.=" ".$infomsg[0]." 3 ::"; }
108
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> ".$infomsg[0]." 3</a> ::"; } else { $steps.=" ".$infomsg[0]." 3 ::"; }
101
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> ".$infomsg[0]." 4</a>"; } else { $steps.=" ".$infomsg[0]." 4"; }
109
if ($status>3){ $steps .= "<a href=./classic.php?id='.$dist.','.$vers.','.$getreps.'>' ".$infomsg[0]." 4</a>"; } else { $steps.=" ".$infomsg[0]." 4"; }
102
110
103
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]));
111
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]));
104
$smarty->assign('stepinfo',$infomsg[0]);
112
$smarty->assign('stepinfo',$infomsg[0]);
105
$smarty->assign('nextstep',$infomsg[1]);
113
$smarty->assign('nextstep',$infomsg[1]);
106
$smarty->assign('mirrorselect',$infomsg[2]);
114
$smarty->assign('mirrorselect',$infomsg[2]);