Хранилища Subversion ant

Редакция

Редакция 251 | Весь файл | Не учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS

Редакция 251 Редакция 265
Строка 76... Строка 76...
76
       
76
       
77
        $distname = "";
77
        $distname = "";
78
        if ($infodist["vname"]!="") {
78
        if ($infodist["vname"]!="") {
79
                $distname = "“".$secure->stripStr($infodist["vname"])."”";
79
                $distname = "“".$secure->stripStr($infodist["vname"])."”";
80
        }
80
        }
81
        $info = "<h2>Репозитории для <em class='".$secure->stripStr($infodist["distua"])."-em'>".$secure->stripStr($infodist["distname"])." ".$secure->stripStr($infodist["version"])." ".$distname."</em></h2>";
81
        $info = "<h2>"._("Repositories for")." <em class='".$secure->stripStr($infodist["distua"])."-em'>".$secure->stripStr($infodist["distname"])." ".$secure->stripStr($infodist["version"])." ".$distname."</em></h2>";
82
        $result = "<p>Скопируйте эти строки в файл <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>";
82
        $result = "<p>"._("Copy this strings into file")." <span id='sourceslist'>/etc/apt/sources.list</span>:</p><pre>";
83
        $result .= $core->getSourceList($dist,$vers,$reps,$db);
83
        $result .= $core->getSourceList($dist,$vers,$reps,$db);
84
        $result .= "</pre>";
84
        $result .= "</pre>";
85
        for ($i=0;$i<count($reps);$i++) {
85
        for ($i=0;$i<count($reps);$i++) {
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."'>Получить sources.list файлом</a></p>";
91
        $result = $info.$result."<p><a href='./get.php?id=".$dist.",".$vers.",".$getreps."'>"._("Get sources.list")."</a></p>";
92
       
92
       
93
        $link="<div class='sllink'><a title='Ссылка на этот source.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'>Шаг 0</a> ::";
97
$steps="<a href='classic.php'>"._("Step")." 0</a> ::";
98
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> Шаг 1</a> ::"; } else { $steps.=" Шаг 1 ::"; }
98
if ($status>0){ $steps .= "<a href='classic.php?step=1&m=".$mirr."'> "._("Step")."1</a> ::"; } else { $steps.=" "._("Step")." 1 ::"; }
99
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> Шаг 2</a> ::"; } else{ $steps.=" Шаг 2 ::"; }
99
if ($status>1){ $steps .= "<a href='classic.php?step=2&m=".$mirr."&d=".$dist."'> "._("Step")." 2</a> ::"; } else{ $steps.=" "._("Step")." 2 ::"; }
100
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> Шаг 3</a> ::"; } else { $steps.=" Шаг 3 ::"; }
100
if ($status>2){ $steps .= "<a href='classic.php?step=3&m=".$mirr."&d=".$dist."&v=".$vers."'> "._("Step")." 3</a> ::"; } else { $steps.=" "._("Step")." 3 ::"; }
101
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> Шаг 4</a>"; } else { $steps.=" Шаг 4"; }
101
if ($status>3){ $steps .= "<a href='".$_SERVER["php_self"]."'> "._("Step")." 4</a>"; } else { $steps.=" "._("Step")." 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('link',$link);
104
$smarty->assign('link',$link);
105
$smarty->assign('status',$status);
105
$smarty->assign('status',$status);
106
$smarty->assign('linux',$linux);
106
$smarty->assign('linux',$linux);
Строка 109... Строка 109...
109
$smarty->assign('repos',$repos);
109
$smarty->assign('repos',$repos);
110
$smarty->assign('version',$distvers);
110
$smarty->assign('version',$distvers);
111
$smarty->assign('result',$result);
111
$smarty->assign('result',$result);
112
$smarty->assign('antversion',$core->getSetting('version',$db));
112
$smarty->assign('antversion',$core->getSetting('version',$db));
113
$smarty->assign('title',$core->getSetting('codename',$db));
113
$smarty->assign('title',$core->getSetting('codename',$db));
114
$smarty->assign('interface'," &bull; <a href='./changelog.php'>Изменения</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
114
$smarty->assign('interface'," &bull; <a href='./changelog.php'>"._("Changes")."</a> &bull; ".$core->getInterfacesList($_SERVER["REQUEST_URI"],$db));
115
$smarty->assign('style',$core->getCSSList($db));
115
$smarty->assign('style',$core->getCSSList($db));
116
$smarty->assign('theme',$theme->getThemeName($core,$db));
116
$smarty->assign('theme',$theme->getThemeName($core,$db));
117
117
118
$smarty->display('classic.tpl');
118
$smarty->display('classic.tpl');
119
119