* @copyright Copyright (C) 2013 Uwe Steinmann * @version Release: @package_version@ */ /** * Include parent class */ require_once("class.Bootstrap.php"); /** * Class which outputs the html page for ExtensionMgr view * * @category DMS * @package SeedDMS * @author Uwe Steinmann * @copyright Copyright (C) 2013 Uwe Steinmann * @version Release: @package_version@ */ class SeedDMS_View_ExtensionMgr extends SeedDMS_Bootstrap_Style { function show() { /* {{{ */ $dms = $this->params['dms']; $user = $this->params['user']; $httproot = $this->params['httproot']; $version = $this->params['version']; $this->htmlStartPage(getMLText("admin_tools")); $this->globalNavigation(); $this->contentStart(); $this->pageNavigation(getMLText("admin_tools"), "admin_tools"); $this->contentContainerStart(); echo "\n"; print "\n\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; $errmsgs = array(); foreach($GLOBALS['EXT_CONF'] as $extname=>$extconf) { if(!isset($extconf['disable']) || $extconf['disable'] == false) { /* check dependency on specific seeddms version */ if(isset($extconf['constraints']['depends']['seeddms'])) { $tmp = explode('-', $extconf['constraints']['depends']['seeddms'], 2); if(cmpVersion($tmp[0], $version->version()) > 0 || ($tmp[1] && cmpVersion($tmp[1], $version->version()) < 0)) $errmsgs[] = sprintf("Incorrect SeedDMS version (needs version %s)", $extconf['constraints']['depends']['seeddms']); } else { $errmsgs[] = "Missing dependency on SeedDMS"; } /* check dependency on specific php version */ if(isset($extconf['constraints']['depends']['php'])) { $tmp = explode('-', $extconf['constraints']['depends']['php'], 2); if(cmpVersion($tmp[0], phpversion()) > 0 || ($tmp[1] && cmpVersion($tmp[1], phpversion()) < 0)) $errmsgs[] = sprintf("Incorrect PHP version (needs version %s)", $extconf['constraints']['depends']['php']); } else { $errmsgs[] = "Missing dependency on PHP"; } if($errmsgs) echo ""; else echo ""; } else echo ""; echo ""; echo ""; echo ""; echo ""; echo "\n"; } echo "
".getMLText('name')."".getMLText('version')."".getMLText('author')."
"; if($extconf['icon']) echo ""; echo "".$extconf['title']."
".$extconf['description'].""; if($errmsgs) echo "
getImgPath("attention.gif")."\"> ".implode('
', $errmsgs)."
"; echo "
".$extconf['version']."
".$extconf['releasedate']."
".$extconf['author']['name']."
".$extconf['author']['company']."
\n"; ?>

contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ } ?>