Хранилища Subversion ant

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

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

/branches/ant-ng/custom-index.php
14,6 → 14,9
 
require_once dirname(__FILE__)."/init.php";
 
$tmpl->assign('host',$webroot);
$tmpl->assign('header',$core->getCodeName());
$tmpl->assign('description',"Генератор sources.list для apt-дистрибутивов Linux");
$tmpl->assign('body',$core->showDistributionForm());
 
$tmpl->display('default.tpl');
/branches/ant-ng/lib/core.php
120,9 → 120,9
return $result;
}
 
// Получение названия программы, ее версии и описания
public function getEngineAttr($attr = 'codename') {
$cname = $this->getOption($attr);
// Получение названия программы
public function getCodeName() {
$cname = $this->getOption("codename");
return $this->secure->checkStr($cname["OptValue"],1);
}
 
/branches/ant-ng/init.php
48,9 → 48,4
$core = new Core($db, PREFIX, $secure, $cookie);
$tmpl = new Template(ROOT."/templates/");
 
$tmpl->assign('host',$webroot);
$tmpl->assign('header',$core->getEngineAttr('codename'));
$tmpl->assign('engine',$core->getEngineAttr('codename')." ".$core->getEngineAttr('version'));
$tmpl->assign('description',$core->getEngineAttr('description'));
 
?>