#131 관리자 페이지에서 공식사이트로부터 최신 버전을 확인할 수 있도록 하였고 현재버전/설치된 경로등에 대한 안내를 하도록 하였음.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2533 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-09-05 09:53:38 +00:00
parent 7926e4f851
commit c438b60e68
8 changed files with 77 additions and 1 deletions

View file

@ -54,6 +54,7 @@
if(!file_exists($cache_file) || filemtime($cache_file)+ 60*60 < time()) {
FileHandler::getRemoteFile($newest_news_url, $cache_file);
}
if(file_exists($cache_file)) {
$oXml = new XmlParser();
$buff = $oXml->parse(FileHandler::readFile($cache_file));
@ -71,7 +72,14 @@
}
Context::set('news', $news);
}
Context::set('released_version', $buff->zbxe_news->attrs->released_version);
Context::set('download_link', $buff->zbxe_news->attrs->download_link);
}
Context::set('current_version', __ZBXE_VERSION__);
Context::set('installed_path', realpath('./'));
$this->setTemplateFile('index');
}