25,12 → 25,13 |
$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($dist,$vers,$repstring) = split(",",$ID); |
list($mirror,$dist,$vers,$repstring) = split(",",$ID); |
if(isset($repstring)){ |
$status=3; |
$status=4; |
$reps = split("-",$repstring); |
} |
} |
49,6 → 50,7 |
case 1: |
// Выбор дистрибутива |
$query =& $db->query("SELECT * FROM distribution"); |
$linux .= "<input type='hidden' name='m' value='".$mirror."'>"; |
while ($query->fetchInto($data, DB_FETCHMODE_ASSOC)) { |
$linux .= "<p><input type='radio' name='d' value='".$data["dist_id"]."'><span class='".$secure->stripStr($data["distua"])."'>".$secure->stripStr($data["distname"])."</span></p>\n"; |
} |
56,7 → 58,8 |
case 2: |
// Выбор версии |
$query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id WHERE v.dist_id='$dist'"); |
$distvers = "<p><input type='hidden' name='d' value='".$dist."'></p>\n"; |
$distvers = "<input type='hidden' name='m' value='".$mirror."'>"; |
$distvers .= "<p><input type='hidden' name='d' value='".$dist."'></p>\n"; |
while ($query->fetchInto($version, DB_FETCHMODE_ASSOC)) { |
if ($version["vname"]!="") { |
$distname = "“".$secure->stripStr($version["vname"])."”"; |
67,7 → 70,7 |
} break; |
case 3; |
// Выбор репозиториев |
$repos = ""; |
$repos = "<input type='hidden' name='m' value='".$mirror."'>"; |
$repodata=$core->getRepList($dist,$vers,$db); |
for($i=0;$i<count($repodata[0]);$i++) { |
$repos.="<input type='hidden' name='d' value='".$dist."'><input type='hidden' name='v' value='".$vers."'>"; |
97,7 → 100,7 |
} |
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>".$infomsg[6]."</a></p>"; |
|
$link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>"; |
$link="<div class='sllink'><a title='"._("Link to this sources.list")."' href=./classic.php?id=".$mirror.",".$dist.",".$vers.",".$getreps.">#</a></div>"; |
break; |
} |
|
106,7 → 109,7 |
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> ".$infomsg[0]." 1</a> ::"; } else { $steps.=" ".$infomsg[0]." 1 ::"; } |
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> ".$infomsg[0]." 2</a> ::"; } else{ $steps.=" ".$infomsg[0]." 2 ::"; } |
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 ::"; } |
if ($status>3){ $steps .= "<a href=./classic.php?id='.$dist.','.$vers.','.$getreps.'>' ".$infomsg[0]." 4</a>"; } else { $steps.=" ".$infomsg[0]." 4"; } |
if ($status>3){ $steps .= '<a href=./classic.php?id='.$mirror.','.$dist.','.$vers.','.$getreps.'>'.$infomsg[0].' 4</a>'; } else { $steps.=" ".$infomsg[0]." 4"; } |
|
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('stepinfo',$infomsg[0]); |