Редакция 265 | Редакция 275 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 265 | Редакция 268 | ||
---|---|---|---|
Строка 25... | Строка 25... | ||
25 | $status = $secure->wrapInt($_GET["step"]); |
25 | $status = $secure->wrapInt($_GET["step"]); |
26 | $dist = $secure->wrapInt($_GET["d"]); |
26 | $dist = $secure->wrapInt($_GET["d"]); |
27 | $vers = $secure->wrapInt($_GET["v"]); |
27 | $vers = $secure->wrapInt($_GET["v"]); |
28 | $reps = $_GET["r"]; |
28 | $reps = $_GET["r"]; |
29 | 29 | ||
30 | - | ||
- | 30 | $info = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") ); |
|
31 | 31 | ||
32 | if (!isset($status)) { $status = 0; }; |
32 | if (!isset($status)) { $status = 0; }; |
33 | 33 | ||
34 | switch ($status) { |
34 | switch ($status) { |
35 | case 0: |
35 | case 0: |
Строка 65... | Строка 65... | ||
65 | for($i=0;$i<count($repodata[0]);$i++) { |
65 | for($i=0;$i<count($repodata[0]);$i++) { |
66 | $repos.="<input type='hidden' name='d' value='".$dist."'><input type='hidden' name='v' value='".$vers."'>"; |
66 | $repos.="<input type='hidden' name='d' value='".$dist."'><input type='hidden' name='v' value='".$vers."'>"; |
67 | if ($repodata[3][$i]==true){$ch="checked";} else{$ch="";} |
67 | if ($repodata[3][$i]==true){$ch="checked";} else{$ch="";} |
68 | $repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>"; |
68 | $repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>"; |
69 | }; |
69 | }; |
70 | $steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> Шаг ".$status."</a> ::"; |
70 | $steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> ".$info[0]." ".$status."</a> ::"; |
71 | break; |
71 | break; |
72 | case 4; |
72 | case 4; |
73 | // Получение sources.list
|
73 | // Получение sources.list
|
74 | $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'"); |
74 | $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'"); |
75 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
75 | $query->fetchInto($infodist, DB_FETCHMODE_ASSOC); |
Строка 86... | Строка 86... | ||
86 | $getreps .= $reps[$i]; |
86 | $getreps .= $reps[$i]; |
87 | if ($i<count($reps)-1) { |
87 | if ($i<count($reps)-1) { |
88 | $getreps .= "-"; |
88 | $getreps .= "-"; |
89 | }
|
89 | }
|
90 | }
|
90 | }
|
91 | $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>"._("Get sources.list")."</a></p>"; |
91 | $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>".$info[6]."</a></p>"; |
92 | 92 | ||
93 | $link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>"; |
93 | $link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>"; |
94 | break; |
94 | break; |
95 | }
|
95 | }
|
96 | 96 | ||
97 | $steps="<a href='classic.php'>"._("Step")." 0</a> ::"; |
97 | $steps="<a href='classic.php'>"._("Step")." 0</a> ::"; |
98 | if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> "._("Step")."1</a> ::"; } else { $steps.=" "._("Step")." 1 ::"; } |
98 | if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> ".$info[0]."1</a> ::"; } else { $steps.=" ".$info[0]." 1 ::"; } |
99 | if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> "._("Step")." 2</a> ::"; } else{ $steps.=" "._("Step")." 2 ::"; } |
99 | if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> ".$info[0]." 2</a> ::"; } else{ $steps.=" ".$info[0]." 2 ::"; } |
100 | if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> "._("Step")." 3</a> ::"; } else { $steps.=" "._("Step")." 3 ::"; } |
100 | if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> ".$info[0]." 3</a> ::"; } else { $steps.=" ".$info[0]." 3 ::"; } |
101 | if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> "._("Step")." 4</a>"; } else { $steps.=" "._("Step")." 4"; } |
101 | if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> ".$info[0]." 4</a>"; } else { $steps.=" ".$info[0]." 4"; } |
102 | 102 | ||
103 | $smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
103 | $smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
- | 104 | $smarty->assign('stepinfo',$info[0]); |
|
- | 105 | $smarty->assign('nextstep',$info[1]); |
|
- | 106 | $smarty->assign('mirrorselect',$info[2]); |
|
- | 107 | $smarty->assign('distrochoose',$info[3]); |
|
- | 108 | $smarty->assign('distrovchoose',$info[4]); |
|
- | 109 | $smarty->assign('repselect',$info[5]); |
|
- | 110 | $smarty->assign('getsourceslist',$info[6]); |
|
104 | $smarty->assign('link',$link); |
111 | $smarty->assign('link',$link); |
105 | $smarty->assign('status',$status); |
112 | $smarty->assign('status',$status); |
106 | $smarty->assign('linux',$linux); |
113 | $smarty->assign('linux',$linux); |
107 | $smarty->assign('mirrors',$mirrors); |
114 | $smarty->assign('mirrors',$mirrors); |
108 | $smarty->assign('steps',$steps); |
115 | $smarty->assign('steps',$steps); |