Редакция 192 | Редакция 194 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 192 | Редакция 193 | ||
---|---|---|---|
Строка 44... | Строка 44... | ||
44 | }
|
44 | }
|
45 | $distvers .= "<p><input type='radio' name='v' value='".$version["version_id"]."' /><span class='".stripslashes($version["distua"])."'>".stripslashes($version["distname"])." ".stripslashes($version["version"])." ".$distname."</span></p>\n"; |
45 | $distvers .= "<p><input type='radio' name='v' value='".$version["version_id"]."' /><span class='".stripslashes($version["distua"])."'>".stripslashes($version["distname"])." ".stripslashes($version["version"])." ".$distname."</span></p>\n"; |
46 | }
|
46 | }
|
47 | }
|
47 | }
|
48 | 48 | ||
- | 49 | if ($status==2) |
|
- | 50 | {
|
|
- | 51 | $repos=$core->getAddsRepList($dist,$vers,$db); |
|
- | 52 | }
|
|
- | 53 | ||
49 | if (isset($vers)) { |
54 | if ($status==3) { |
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'"); |
55 | $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); |
56 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
52 | 57 | ||
53 | $distname = ""; |
58 | $distname = ""; |
54 | if ($infodist["vname"]!="") { |
59 | if ($infodist["vname"]!="") { |
Строка 56... | Строка 61... | ||
56 | }
|
61 | }
|
57 | $info = "<h2>Доступные репозитории для <em class='".stripslashes($infodist["distua"])."-em'>".stripslashes($infodist["distname"])." ".stripslashes($infodist["version"])." ".$distname."</em></h2>"; |
62 | $info = "<h2>Доступные репозитории для <em class='".stripslashes($infodist["distua"])."-em'>".stripslashes($infodist["distname"])." ".stripslashes($infodist["version"])." ".$distname."</em></h2>"; |
58 | $result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>"; |
63 | $result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>"; |
59 | $result .= $core->getRepList($dist,$vers,$db); |
64 | $result .= $core->getRepList($dist,$vers,$db); |
60 | $result .= "</pre>"; |
65 | $result .= "</pre>"; |
61 | $result .= $core->getAddsRepList($dist,$vers,$db); |
- | |
62 | $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a></p>"; |
66 | $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a></p>"; |
63 | }
|
67 | }
|
64 | 68 | ||
65 | $smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
69 | $smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
66 | $smarty->assign('status',$status); |
70 | $smarty->assign('status',$status); |
67 | $smarty->assign('linux',$linux); |
71 | $smarty->assign('linux',$linux); |
- | 72 | $smarty->assign('repos',$repos); |
|
68 | $smarty->assign('version',$distvers); |
73 | $smarty->assign('version',$distvers); |
69 | $smarty->assign('result',$result); |
74 | $smarty->assign('result',$result); |
70 | $smarty->assign('antversion',$core->getSetting('version',$db)); |
75 | $smarty->assign('antversion',$core->getSetting('version',$db)); |
71 | $smarty->assign('title',$core->getSetting('codename',$db)); |
76 | $smarty->assign('title',$core->getSetting('codename',$db)); |
72 | $smarty->assign('interface'," • <a href='./changelog.php'>Изменения</a> • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |
77 | $smarty->assign('interface'," • <a href='./changelog.php'>Изменения</a> • ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db)); |