Хранилища Subversion ant

Сравнить редакции

Не учитывать пробелы Редакция 264 → Редакция 265

/trunk/classic.php
78,8 → 78,8
if ($infodist["vname"]!="") {
$distname = "“".$secure->stripStr($infodist["vname"])."”";
}
$info = "<h2>Репозитории для <em class='".$secure->stripStr($infodist["distua"])."-em'>".$secure->stripStr($infodist["distname"])." ".$secure->stripStr($infodist["version"])." ".$distname."</em></h2>";
$result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>";
$info = "<h2>"._("Repositories for")." <em class='".$secure->stripStr($infodist["distua"])."-em'>".$secure->stripStr($infodist["distname"])." ".$secure->stripStr($infodist["version"])." ".$distname."</em></h2>";
$result = "<p>"._("Copy this strings into file")." <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>";
$result .= $core->getSourceList($dist,$vers,$reps,$db);
$result .= "</pre>";
for ($i=0;$i<count($reps);$i++) {
88,17 → 88,17
$getreps .= "-";
}
}
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>Получить sources.list файлом</a></p>";
$result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>"._("Get sources.list")."</a></p>";
$link="<div class='sllink'><a title='Ссылка на этот source.list' href='".$_SERVER['php_self']."'>#</a></div>";
$link="<div class='sllink'><a title='"._("Link to this sources.list")."' href='".$_SERVER['php_self']."'>#</a></div>";
break;
}
 
$steps="<a href='classic.php'>Шаг 0</a> ::";
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> Шаг 1</a> ::"; } else { $steps.=" Шаг 1 ::"; }
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> Шаг 2</a> ::"; } else{ $steps.=" Шаг 2 ::"; }
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> Шаг 3</a> ::"; } else { $steps.=" Шаг 3 ::"; }
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> Шаг 4</a>"; } else { $steps.=" Шаг 4"; }
$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"; }
 
$smarty->assign('feedaddr',$_SERVER["HTTP_HOST"].dirname($_SERVER["PHP_SELF"]));
$smarty->assign('link',$link);
111,7 → 111,7
$smarty->assign('result',$result);
$smarty->assign('antversion',$core->getSetting('version',$db));
$smarty->assign('title',$core->getSetting('codename',$db));
$smarty->assign('interface'," &bull; <a href='./changelog.php'>Изменения</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
$smarty->assign('interface'," &bull; <a href='./changelog.php'>"._("Changes")."</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
$smarty->assign('style',$core->getCSSList($db));
$smarty->assign('theme',$theme->getThemeName($core,$db));
 
/trunk/modern.php
112,13 → 112,13
$linux .= "<option value='".$data["dist_id"]."'>".$secure->stripStr($data["distname"])."</option>\n";
}
 
$modern .= "<h2>Генератор sources.list</h2>";
$modern .= "<h2>"._("Generator of sources.list")."</h2>";
$modern .= "<div class='border'>";
$modern .= "<label>Дистрибутив</label><br>";
$modern .= "<select id='distro'>\n<option value=''>Выбрать дистрибутив</option>\n";
$modern .= "<label>"._("Distributive")."</label><br>";
$modern .= "<select id='distro'>\n<option value=''>"._("Choose distro")."</option>\n";
$modern .= $linux."</select>";
$modern .= "</div><div class='border'>";
$modern .= "<label>Версия дистрибутива</label><br>";
$modern .= "<label>"._("Version of distro")."</label><br>";
$modern .= "<select id='distver' disabled='disabled'><option></option>";
$modern .= "</select></div>";
 
134,7 → 134,7
$smarty->assign('scripts',$scripts);
$smarty->assign('antversion',$core->getSetting('version',$db));
$smarty->assign('title',$core->getSetting('codename',$db));
$smarty->assign('interface'," &bull; <a href='./changelog.php'>Изменения</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
$smarty->assign('interface'," &bull; <a href='./changelog.php'>"._("Changes")."</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
$smarty->assign('style',$core->getCSSList($db));
$smarty->assign('theme',$theme->getThemeName($core,$db));
 
/trunk/telepathy.php
27,7 → 27,7
 
$info = $core->getInfo($_SERVER["HTTP_USER_AGENT"],$db);
 
$telepathy = "<h2>Генератор sources.list</h2><p>".$info[1];
$telepathy = "<h2>"._("Generator of sources.list")."</h2><p>".$info[1];
 
if ($info[0]!="unknown") {
$cnt = count($info);
44,7 → 44,7
$telepathy .= "<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><a href='./get.php?id=".$info[2].",".$info[4]."'>Получить sources.list файлом</a></p>";
$telepathy .= "<p><a href='./get.php?id=".$info[2].",".$info[4]."'>"._("Get sources.list")."</a></p>";
break;
}
} else {
55,7 → 55,7
$smarty->assign('modern',$telepathy);
$smarty->assign('antversion',$core->getSetting('version',$db));
$smarty->assign('title',$core->getSetting('codename',$db));
$smarty->assign('interface'," &bull; <a href='./changelog.php'>Изменения</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
$smarty->assign('interface'," &bull; <a href='./changelog.php'>"._("Changes")."</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
$smarty->assign('theme',$theme->getThemeName($core,$db));
 
$smarty->display('modern.tpl');