* @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 * @package SeedDMS * @author Markus Westphal, Malcolm Cowe, Uwe Steinmann * @copyright Copyright (C) 2002-2005 Markus Westphal, * 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli, * 2010-2012 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_Info extends SeedDMS_Theme_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $settings = $this->params['settings']; $version = $this->params['version']; $availversions = $this->params['availversions']; $extmgr = $this->params['extmgr']; $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); if($availversions) { $newversion = ''; foreach($availversions as $availversion) { if($availversion[0] == 'stable') $newversion = $availversion[1]; } if($newversion > $version->version()) { $this->warningMsg(getMLText('no_current_version', array('latestversion'=>$newversion))); } } else { $this->warningMsg(getMLText('no_version_check')); } $this->rowStart(); $this->columnStart(6); $this->contentHeading(getMLText("seeddms_info")); $seedextensions = $extmgr->getExtensionConfiguration(); echo "\n"; echo "\n\n"; echo ""; echo "\n"; echo "\n\n\n"; $dbversion = $dms->getDBVersion(); echo "\n"; if($user->isAdmin()) { echo "\n"; foreach($seedextensions as $extname=>$extconf) { echo ""; echo "\n"; } } echo "\n
".getMLText("name"); echo "
".getMLText('seeddms_version')."".$version->version()."
".getMLText('database_schema_version')."".$dbversion['major'].".".$dbversion['minor'].".".$dbversion['subminor']."
"; if(!$settings->extensionIsDisabled($extname)) echo " "; else echo " "; echo "".$extname."
".$extconf['title']."
".$extconf['version']."
\n"; $this->columnEnd(); $this->columnStart(6); if($user->isAdmin()) { $this->contentHeading(getMLText("php_info")); echo "\n"; echo "\n\n"; echo "\n"; echo "\n\n\n"; echo "\n"; echo "\n"; echo "\n
".getMLText("name"); echo "
PHP".phpversion()."
Path to php.ini".php_ini_loaded_file()."
\n"; $this->contentHeading(getMLText("installed_php_extensions")); $phpextensions = get_loaded_extensions(false); echo "\n"; echo "\n\n"; echo "\n"; echo "\n\n\n"; foreach($phpextensions as $extname) echo "\n"; echo "\n
".getMLText("name"); echo "
".$extname.""."
\n"; $this->contentHeading(getMLText("missing_php_extensions")); echo "\n"; echo "\n\n"; echo "\n"; echo "\n\n\n"; $requiredext = array('zip', 'xml', 'xsl', 'json', 'intl', 'fileinfo', 'mbstring', 'curl', 'sqlite'); foreach(array_diff($requiredext, $phpextensions) as $extname) echo "\n"; echo "\n
".getMLText("name"); echo "
".$extname.""."
\n"; $this->contentHeading(getMLText("missing_php_functions_and_classes")); echo "\n"; echo "\n\n"; echo "\n"; echo "\n\n\n"; foreach(array('proc_open') as $funcname) { if(!function_exists($funcname)) { echo ""; } } foreach(array('finfo') as $classname) { if(!class_exists($classname)) { echo ""; } } echo "\n
".getMLText("name"); echo "".getMLText("missing_func_class_note"); echo "
".$funcname."".getMLText('func_'.$funcname."_missing")."
".$classname."".getMLText('class_'.$classname."_missing")."
\n"; if(function_exists('apache_get_modules')) { $this->contentHeading(getMLText("installed_apache_extensions")); $apacheextensions = apache_get_modules(); echo "\n"; echo "\n\n"; echo "\n"; echo "\n\n\n"; foreach($apacheextensions as $extname) echo "\n"; echo "\n
".getMLText("name"); echo "
".$extname.""."
\n"; } } $this->columnEnd(); $this->rowEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ }