27,8 → 27,8 |
$vers = $secure->wrapInt($_GET["v"]); |
$reps = $_GET["r"]; |
|
$info = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") ); |
|
|
if (!isset($status)) { $status = 0; }; |
|
switch ($status) { |
67,7 → 67,7 |
if ($repodata[3][$i]==true){$ch="checked";} else{$ch="";} |
$repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>"; |
}; |
$steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> Шаг ".$status."</a> ::"; |
$steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> ".$info[0]." ".$status."</a> ::"; |
break; |
case 4; |
// Получение sources.list |
88,7 → 88,7 |
$getreps .= "-"; |
} |
} |
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>"._("Get sources.list")."</a></p>"; |
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>".$info[6]."</a></p>"; |
|
$link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>"; |
break; |
95,12 → 95,19 |
} |
|
$steps="<a href='classic.php'>"._("Step")." 0</a> ::"; |
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> "._("Step")."1</a> ::"; } else { $steps.=" "._("Step")." 1 ::"; } |
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> "._("Step")." 2</a> ::"; } else{ $steps.=" "._("Step")." 2 ::"; } |
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> "._("Step")." 3</a> ::"; } else { $steps.=" "._("Step")." 3 ::"; } |
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> "._("Step")." 4</a>"; } else { $steps.=" "._("Step")." 4"; } |
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> ".$info[0]."1</a> ::"; } else { $steps.=" ".$info[0]." 1 ::"; } |
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> ".$info[0]." 2</a> ::"; } else{ $steps.=" ".$info[0]." 2 ::"; } |
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> ".$info[0]." 3</a> ::"; } else { $steps.=" ".$info[0]." 3 ::"; } |
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> ".$info[0]." 4</a>"; } else { $steps.=" ".$info[0]." 4"; } |
|
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('stepinfo',$info[0]); |
$smarty->assign('nextstep',$info[1]); |
$smarty->assign('mirrorselect',$info[2]); |
$smarty->assign('distrochoose',$info[3]); |
$smarty->assign('distrovchoose',$info[4]); |
$smarty->assign('repselect',$info[5]); |
$smarty->assign('getsourceslist',$info[6]); |
$smarty->assign('link',$link); |
$smarty->assign('status',$status); |
$smarty->assign('linux',$linux); |