/branches/ant-ng/init.php |
---|
48,4 → 48,9 |
$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')); |
?> |
/branches/ant-ng/custom-index.php |
---|
14,9 → 14,6 |
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 getCodeName() { |
$cname = $this->getOption("codename"); |
// Получение названия программы, ее версии и описания |
public function getEngineAttr($attr = 'codename') { |
$cname = $this->getOption($attr); |
return $this->secure->checkStr($cname["OptValue"],1); |
} |