Редакция 324 | Редакция 326 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 324 | Редакция 325 | ||
---|---|---|---|
Строка 53... | Строка 53... | ||
53 | $infomsg = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") ); |
53 | $infomsg = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") ); |
54 | 54 | ||
55 | if (!isset($status)) { $status = 0; }; |
55 | if (!isset($status)) { $status = 0; }; |
56 | 56 | ||
57 | switch ($status) { |
57 | switch ($status) { |
58 | case 1: |
58 | case 0: |
59 | // Выбор дистрибутива
|
59 | // Выбор дистрибутива
|
60 | $query =& $db->query("SELECT * FROM distribution"); |
60 | $query =& $db->query("SELECT * FROM distribution"); |
61 | $linux .= "<input type='hidden' name='m' value='".$mirror."'>"; |
61 | $linux .= "<input type='hidden' name='m' value='".$mirror."'>"; |
62 | while ($query->fetchInto($data, DB_FETCHMODE_ASSOC)) { |
62 | while ($query->fetchInto($data, DB_FETCHMODE_ASSOC)) { |
63 | $linux .= "<p><input type='radio' name='d' value='".$data["dist_id"]."'><span class='".$secure->stripStr($data["distua"])."'>".$secure->stripStr($data["distname"])."</span></p>\n"; |
63 | $linux .= "<p><input type='radio' name='d' value='".$data["dist_id"]."'><span class='".$secure->stripStr($data["distua"])."'>".$secure->stripStr($data["distname"])."</span></p>\n"; |
64 | }
|
64 | }
|
65 | break; |
65 | break; |
66 | case 2: |
66 | case 1: |
67 | // Выбор версии
|
67 | // Выбор версии
|
68 | $query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id WHERE v.dist_id='$dist'"); |
68 | $query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id WHERE v.dist_id='$dist'"); |
69 | $distvers = "<input type='hidden' name='m' value='".$mirror."'>"; |
69 | $distvers = "<input type='hidden' name='m' value='".$mirror."'>"; |
70 | $distvers .= "<p><input type='hidden' name='d' value='".$dist."'></p>\n"; |
70 | $distvers .= "<p><input type='hidden' name='d' value='".$dist."'></p>\n"; |
71 | while ($query->fetchInto($version, DB_FETCHMODE_ASSOC)) { |
71 | while ($query->fetchInto($version, DB_FETCHMODE_ASSOC)) { |
Строка 74... | Строка 74... | ||
74 | } else { |
74 | } else { |
75 | $distname = ""; |
75 | $distname = ""; |
76 | }
|
76 | }
|
77 | $distvers .= "<p><input type='radio' name='v' value='".$version["version_id"]."' /><span class='".$secure->stripStr($version["distua"])."'>".$secure->stripStr($version["distname"])." ".$secure->stripStr($version["version"])." ".$distname."</span></p>\n"; |
77 | $distvers .= "<p><input type='radio' name='v' value='".$version["version_id"]."' /><span class='".$secure->stripStr($version["distua"])."'>".$secure->stripStr($version["distname"])." ".$secure->stripStr($version["version"])." ".$distname."</span></p>\n"; |
78 | } break; |
78 | } break; |
79 | case 3; |
79 | case 2; |
80 | // Выбор репозиториев
|
80 | // Выбор репозиториев
|
81 | $repos = "<input type='hidden' name='m' value='".$mirror."'>"; |
81 | $repos = "<input type='hidden' name='m' value='".$mirror."'>"; |
82 | $repodata=$core->getRepList($dist,$vers,$db); |
82 | $repodata=$core->getRepList($dist,$vers,$db); |
83 | $repos.="<input type='hidden' name='d' value='".$dist."'><input type='hidden' name='v' value='".$vers."'>"; |
83 | $repos.="<input type='hidden' name='d' value='".$dist."'><input type='hidden' name='v' value='".$vers."'>"; |
84 | for($i=0;$i<count($repodata[0]);$i++) { |
84 | for($i=0;$i<count($repodata[0]);$i++) { |
85 | if ($repodata[3][$i]==true){$ch="checked";} else{$ch="";} |
85 | if ($repodata[3][$i]==true){$ch="checked";} else{$ch="";} |
86 | $repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>"; |
86 | $repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>"; |
87 | }; |
87 | }; |
88 | $steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> ".$info[0]." ".$status."</a> ::"; |
88 | $steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> ".$info[0]." ".$status."</a> ::"; |
89 | break; |
89 | break; |
90 | case 4; |
90 | case 3; |
91 | // Получение sources.list
|
91 | // Получение sources.list
|
92 | $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'"); |
92 | $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'"); |
93 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
93 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
94 | 94 | ||
95 | $distname = ""; |
95 | $distname = ""; |