2012-12-14 07:53:13 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Implementation of Info view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @license GPL 2
|
|
|
|
* @version @version@
|
|
|
|
* @author Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Include parent class
|
|
|
|
*/
|
|
|
|
require_once("class.Bootstrap.php");
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class which outputs the html page for Info view
|
|
|
|
*
|
|
|
|
* @category DMS
|
2013-02-14 11:10:53 +00:00
|
|
|
* @package SeedDMS
|
2012-12-14 07:53:13 +00:00
|
|
|
* @author Markus Westphal, Malcolm Cowe, Uwe Steinmann <uwe@steinmann.cx>
|
|
|
|
* @copyright Copyright (C) 2002-2005 Markus Westphal,
|
|
|
|
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
|
|
|
|
* 2010-2012 Uwe Steinmann
|
|
|
|
* @version Release: @package_version@
|
|
|
|
*/
|
2013-02-14 11:10:53 +00:00
|
|
|
class SeedDMS_View_Info extends SeedDMS_Bootstrap_Style {
|
2012-12-14 07:53:13 +00:00
|
|
|
|
|
|
|
function show() { /* {{{ */
|
|
|
|
$dms = $this->params['dms'];
|
|
|
|
$user = $this->params['user'];
|
|
|
|
$version = $this->params['version'];
|
2014-04-10 09:19:45 +00:00
|
|
|
$availversions = $this->params['availversions'];
|
2012-12-14 07:53:13 +00:00
|
|
|
|
2012-12-17 08:44:52 +00:00
|
|
|
$this->htmlStartPage(getMLText("admin_tools"));
|
2012-12-14 07:53:13 +00:00
|
|
|
$this->globalNavigation();
|
|
|
|
$this->contentStart();
|
2012-12-17 08:44:52 +00:00
|
|
|
$this->pageNavigation(getMLText("admin_tools"), "admin_tools");
|
2014-04-10 09:19:45 +00:00
|
|
|
if($availversions) {
|
|
|
|
$newversion = '';
|
|
|
|
foreach($availversions as $availversion) {
|
|
|
|
if($availversion[0] == 'stable')
|
|
|
|
$newversion = $availversion[1];
|
|
|
|
}
|
|
|
|
if($newversion > $version->_number) {
|
|
|
|
$this->warningMsg(getMLText('no_current_version', array('latestversion'=>$newversion)));
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$this->warningMsg(getMLText('no_version_check'));
|
|
|
|
}
|
2012-12-17 08:44:52 +00:00
|
|
|
$this->contentContainerStart();
|
|
|
|
echo $version->banner();
|
|
|
|
$this->contentContainerEnd();
|
2013-02-13 20:08:15 +00:00
|
|
|
// $this->contentContainerStart();
|
|
|
|
// phpinfo();
|
|
|
|
// $this->contentContainerEnd();
|
2014-03-25 17:51:57 +00:00
|
|
|
// $this->contentEnd();
|
2012-12-14 07:53:13 +00:00
|
|
|
$this->htmlEndPage();
|
|
|
|
} /* }}} */
|
|
|
|
}
|
|
|
|
?>
|