/trunk/m-process.php |
---|
42,7 → 42,7 |
switch($status) { |
case '1': |
$result = '[{value:"",text:"Выбрать версию дистрибутива"}'; |
$result = '[{value:"",text:"'._("Choose version of distro").'"}'; |
$query =& $db->query("SELECT * FROM version v JOIN distribution d ON d.dist_id=v.dist_id WHERE v.dist_id='$dist'"); |
while ($query->fetchInto($version, DB_FETCHMODE_ASSOC)) { |
if ($version["vname"]!="") { |
68,7 → 68,7 |
$result .= $core->getSourceList($dist,$vers,$reps,$db); |
break; |
case '4': |
$result = "<a href='./get.php?id=".$dist.",".$vers."'>Получить sources.list файлом</a>"; |
$result = "<a href='./get.php?id=".$dist.",".$vers."'>"._("Get sources.list")."</a>"; |
break; |
} |
print $result; |
/trunk/templates/oops.tpl |
---|
1,7 → 1,7 |
{config_load file=ant.conf section="setup"} |
{include file="header.tpl"} |
<h2>Упс...</h2> |
<h2>{$h1}</h2> |
{$error} |
/trunk/templates/classic.tpl |
---|
7,38 → 7,38 |
<div id='ant'> |
{if $status == 0} |
<h2>Шаг 0: Выбор зеркала</h2> |
<h2>{$stepinfo} 0: {$mirrorselect}</h2> |
<form action='./classic.php' method='get'> |
<p><input type='hidden' name='step' value='1'></p> |
{$mirrors} |
<p><input type='submit' value=' Следующий шаг: Выбор дистрибутива'></p> |
<p><input type='submit' value=' {$nextstep}: {$distrochoose}'></p> |
</form> |
{/if} |
{if $status == 1} |
<h2>Шаг 1: Выбор дистрибутива</h2> |
<h2>{$stepinfo} 1: {$distrochoose}</h2> |
<form action='./classic.php' method='get'> |
<p><input type='hidden' name='step' value='2'></p> |
{$linux} |
<p><input type='submit' value=' Следующий шаг: Выбор версии дистрибутива'></p> |
<p><input type='submit' value=' {$nextstep}: {$distrovchoose}'></p> |
</form> |
{/if} |
{if $status == 2} |
<h2>Шаг 2: Выбор версии дистрибутива</h2> |
<h2>{$stepinfo} 2: {$distrovchoose}</h2> |
<form action='./classic.php' method='get'> |
<p><input type='hidden' name='step' value='3'></p> |
{$version} |
<p><input type='submit' value=' Следующий шаг: Выбор репозиториев'></p> |
<p><input type='submit' value=' {$nextstep}: {$repselect}'></p> |
</form> |
{/if} |
{if $status == 3} |
<h2>Шаг 3: Выбор репозиториев</h2> |
<h2>{$stepinfo} 3: {$repselect}</h2> |
<form action='./classic.php' method='get'> |
<p><input type='hidden' name='step' value='4'></p> |
{$repos} |
<p><input type='submit' value=' Следующий шаг: Получить sources.list '></p> |
<p><input type='submit' value=' {$nextstep}: {$getsourceslist} '></p> |
</form> |
{/if} |
/trunk/templates/signin.tpl |
---|
2,11 → 2,11 |
{include file="header.tpl"} |
<div id='signin'> |
<h1>Вход</h1> |
<h1>{$h1}</h1> |
<form action='./sign-check.php' method='POST'> |
<input type='hidden' name='sign' value='1'> |
<p><span>Логин:</span><input type='text' name='signName'></p> |
<p><span>Пароль:</span><input type='password' name='signPass'></p> |
<p><span>{$login}:</span><input type='text' name='signName'></p> |
<p><span>{$password}:</span><input type='password' name='signPass'></p> |
<input type='submit'> |
</form> |
</div> |
/trunk/oops.php |
---|
39,6 → 39,7 |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('error',$errmsg); |
$smarty->assign('h1',_("Oops...")); |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
/trunk/classic.php |
---|
27,8 → 27,8 |
$vers = $secure->wrapInt($_GET["v"]); |
$reps = $_GET["r"]; |
$info = array( _("Step"), _("Next step"), _("Mirror selection"), _("Choosing a distribution"), _("Choosing a version of distribution"), _("Selection of repositories"), _("Get sources.list") ); |
if (!isset($status)) { $status = 0; }; |
switch ($status) { |
67,7 → 67,7 |
if ($repodata[3][$i]==true){$ch="checked";} else{$ch="";} |
$repos.="<input type='checkbox' name='r[]' ".$ch." value='".$repodata[0][$i]."'>".$repodata[1][$i]." <em>(".$repodata[2][$i].")</em><br>"; |
}; |
$steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> Шаг ".$status."</a> ::"; |
$steps .= "<a href='classic.php?step='".$status."'&d='".$dist."'> ".$info[0]." ".$status."</a> ::"; |
break; |
case 4; |
// Получение sources.list |
88,7 → 88,7 |
$getreps .= "-"; |
} |
} |
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>"._("Get sources.list")."</a></p>"; |
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>".$info[6]."</a></p>"; |
$link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>"; |
break; |
95,12 → 95,19 |
} |
$steps="<a href='classic.php'>"._("Step")." 0</a> ::"; |
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> "._("Step")."1</a> ::"; } else { $steps.=" "._("Step")." 1 ::"; } |
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> "._("Step")." 2</a> ::"; } else{ $steps.=" "._("Step")." 2 ::"; } |
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> "._("Step")." 3</a> ::"; } else { $steps.=" "._("Step")." 3 ::"; } |
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> "._("Step")." 4</a>"; } else { $steps.=" "._("Step")." 4"; } |
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> ".$info[0]."1</a> ::"; } else { $steps.=" ".$info[0]." 1 ::"; } |
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> ".$info[0]." 2</a> ::"; } else{ $steps.=" ".$info[0]." 2 ::"; } |
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 ::"; } |
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> ".$info[0]." 4</a>"; } else { $steps.=" ".$info[0]." 4"; } |
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"])); |
$smarty->assign('stepinfo',$info[0]); |
$smarty->assign('nextstep',$info[1]); |
$smarty->assign('mirrorselect',$info[2]); |
$smarty->assign('distrochoose',$info[3]); |
$smarty->assign('distrovchoose',$info[4]); |
$smarty->assign('repselect',$info[5]); |
$smarty->assign('getsourceslist',$info[6]); |
$smarty->assign('link',$link); |
$smarty->assign('status',$status); |
$smarty->assign('linux',$linux); |
/trunk/signin.php |
---|
26,6 → 26,9 |
$smarty->assign('antversion',$core->getSetting('version',$db)); |
$smarty->assign('title',$core->getSetting('codename',$db)); |
$smarty->assign('theme',$theme->getThemeName($core,$db)); |
$smarty->assign('h1',_("Enter")); |
$smarty->assign('login',_("Login")); |
$smarty->assign('password',_("Password")); |
$smarty->display('signin.tpl'); |
/trunk/telepathy.php |
---|
33,17 → 33,22 |
$cnt = count($info); |
switch ($cnt) { |
case '2': |
$telepathy .= "GNU/Linux, но явно не та, которую мы поддерживаем или дистрибутив и его версия тчательно замаскированы. Если это маскировка, то можно попробовать сгенерировать sources.list “<a href='./modern.php'>вручную</a>”.</p>"; |
$telepathy .= (_"GNU/Linux, but certainly not one that we support or the distribution and its version tchatelno masked. If this is a disguise, you can try to generate a sources.list “<a href='./modern.php'>manually</a>”.</p>"); |
// "GNU/Linux, но явно не та, которую мы поддерживаем или дистрибутив и его версия тчательно замаскированы. Если это маскировка, то можно попробовать сгенерировать sources.list “<a href='./modern.php'>вручную</a>”.</p>"; |
break; |
case '4': |
$telepathy .= "<em>".$info[3]."</em>, а что за версия не могу разобрать. Попробуем создать sources.list “<a href='./modern.php'><b>вручную</b></a>”?</p>"; |
$telepathy .= "<em>".$info[3]."</em>, "._("and that the version I can not disassemble. Let's try to create a sources.list “<a href='./modern.php'><strong>manually</strong></a>”?</p>"); |
// а что за версия не могу разобрать. Попробуем создать sources.list “<a href='./modern.php'><b>вручную</b></a>”?</p>"; |
break; |
case '6': |
$dummyar[0] = "-1"; |
$telepathy .= "<em>".$info[3]." ".$info[5]."</em>. Если это не так, то выберите дистрибутив и версию <a href='./modern.php'>вручную</a>.</p>"; |
$telepathy .= "<p>Для этой версии у нас есть следующие репозитории (список нужно скопировать в файл <span id='sourceslist'>/etc/apt/sources.list</span>):</p>"; |
$telepathy .= "<em>".$info[3]." ".$info[5]."</em>. "._("If not, then select the distribution and version <a href='./modern.php'>manually</a>").".</p>"; |
// Если это не так, то выберите дистрибутив и версию <a href='./modern.php'>вручную</a>.</p>"; |
$telepathy .= "<p>"._("For this version we have the following repository (the list should be placed in the file")."<span id='sourceslist'>/etc/apt/sources.list</span>):</p>"; |
// Для этой версии у нас есть следующие репозитории (список нужно скопировать в файл <span id='sourceslist'>/etc/apt/sources.list</span>):</p>"; |
$telepathy .= "<pre># Ant: sources.list generator :: http://track.altlug.ru/projects/show/ant\n\n".$core->getSourceList($info[2],$info[4],$dummyar,$db)."</pre>"; |
$telepathy .= "<p>В этом списке представленны только базовые репозитории. Добавить дополнительные репозитории (неофициальные) Вы можете <a href='./classic.php?step=2&d=".$info[2]."&v=".$info[4]."'>здесь</a>.</p>"; |
$telepathy .= "<p>"._("The list represented only the basic repositories. Add extra repositories (unofficial) you can")." <a href='./classic.php?step=2&d=".$info[2]."&v=".$info[4]."'>"._("here")."</a>.")."</p>"; |
// В этом списке представленны только базовые репозитории. Добавить дополнительные репозитории (неофициальные) Вы можете <a href='./classic.php?step=2&d=".$info[2]."&v=".$info[4]."'>здесь</a>.</p>"; |
$telepathy .= "<p><a href='./get.php?id=".$info[2].",".$info[4]."'>"._("Get sources.list")."</a></p>"; |
break; |
} |