Редакция 143 | Редакция 193 | К новейшей редакции | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 143 | Редакция 192 | ||
---|---|---|---|
Строка 47... | Строка 47... | ||
47 | }
|
47 | }
|
48 | 48 | ||
49 | if (isset($vers)) { |
49 | if (isset($vers)) { |
50 | $query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id JOIN dtype p ON d.disttype=p.type_id WHERE v.dist_id='$dist' AND v.version_id='$vers'"); |
50 | $query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id JOIN dtype p ON d.disttype=p.type_id WHERE v.dist_id='$dist' AND v.version_id='$vers'"); |
51 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
51 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
- | 52 | ||
52 | $distname = ""; |
53 | $distname = ""; |
53 | if ($infodist["vname"]!="") { |
54 | if ($infodist["vname"]!="") { |
54 | $distname = "“".stripslashes($infodist["vname"])."”"; |
55 | $distname = "“".stripslashes($infodist["vname"])."”"; |
55 | }
|
56 | }
|
56 | $info = "<h2>Доступные репозитории для <em class='".stripslashes($infodist["distua"])."-em'>".stripslashes($infodist["distname"])." ".stripslashes($infodist["version"])." ".$distname."</em></h2>"; |
57 | $info = "<h2>Доступные репозитории для <em class='".stripslashes($infodist["distua"])."-em'>".stripslashes($infodist["distname"])." ".stripslashes($infodist["version"])." ".$distname."</em></h2>"; |
57 | $result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>"; |
58 | $result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>"; |
58 | $result .= $core->getRepList($dist,$vers,$db); |
59 | $result .= $core->getRepList($dist,$vers,$db); |
59 | $result .= "</pre>"; |
60 | $result .= "</pre>"; |
- | 61 | $result .= $core->getAddsRepList($dist,$vers,$db); |
|
60 | $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a></p>"; |
62 | $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a></p>"; |
61 | }
|
63 | }
|
62 | 64 | ||
63 | $smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
65 | $smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
64 | $smarty->assign('status',$status); |
66 | $smarty->assign('status',$status); |