25,6 → 25,7 |
$status = $secure->wrapInt($_GET["step"]); |
$dist = $secure->wrapInt($_GET["d"]); |
$vers = $secure->wrapInt($_GET["v"]); |
$reps = $_GET["r"]; |
|
$query =& $db->query("SELECT * FROM distribution"); |
while ($query->fetchInto($data, DB_FETCHMODE_ASSOC)) { |
48,7 → 49,13 |
|
if ($status==2) |
{ |
$repos=$core->getAddsRepList($dist,$vers,$db); |
$repos = ""; |
$repoz=$core->getRepList($dist,$vers,$db); |
for($i=0;$i<count($repoz[0]);$i++) { |
$repos.="<input type='hidden' name='d' value='".$dist."'><input type='hidden' name='v' value='".$vers."'>"; |
if ($resinfo["defaultrep"]==true){$ch="checked";} else{$ch="";} |
$repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repoz[0][$i]."'>".$repoz[1][$i]." <em>(".$repoz[2][$i].")</em><br>"; |
}; |
} |
|
if ($status==3) { |
59,9 → 66,9 |
if ($infodist["vname"]!="") { |
$distname = "“".$secure->stripStr($infodist["vname"])."”"; |
} |
$info = "<h2>Доступные репозитории для <em class='".$secure->stripStr($infodist["distua"])."-em'>".$secure->stripStr($infodist["distname"])." ".$secure->stripStr($infodist["version"])." ".$distname."</em></h2>"; |
$info = "<h2>Репозитории для <em class='".$secure->stripStr($infodist["distua"])."-em'>".$secure->stripStr($infodist["distname"])." ".$secure->stripStr($infodist["version"])." ".$distname."</em></h2>"; |
$result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>"; |
$result .= $core->getRepList($dist,$vers,$db); |
$result .= $core->getSourceList($dist,$vers,$reps,$db); |
$result .= "</pre>"; |
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a></p>"; |
} |