mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
show info about installed seeddms and php extensions
This commit is contained in:
parent
1964f1dfd6
commit
dcb7a775eb
|
@ -47,9 +47,13 @@ if(@ini_get('allow_url_fopen') == '1') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$reposurl = $settings->_repositoryUrl;
|
||||||
|
$extmgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir, $reposurl);
|
||||||
|
|
||||||
if($view) {
|
if($view) {
|
||||||
$view->setParam('version', $v);
|
$view->setParam('version', $v);
|
||||||
$view->setParam('availversions', $versions);
|
$view->setParam('availversions', $versions);
|
||||||
|
$view->setParam('extmgr', $extmgr);
|
||||||
$view($_GET);
|
$view($_GET);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,6 +36,7 @@ class SeedDMS_View_Info extends SeedDMS_Bootstrap_Style {
|
||||||
$user = $this->params['user'];
|
$user = $this->params['user'];
|
||||||
$version = $this->params['version'];
|
$version = $this->params['version'];
|
||||||
$availversions = $this->params['availversions'];
|
$availversions = $this->params['availversions'];
|
||||||
|
$extmgr = $this->params['extmgr'];
|
||||||
|
|
||||||
$this->htmlStartPage(getMLText("admin_tools"));
|
$this->htmlStartPage(getMLText("admin_tools"));
|
||||||
$this->globalNavigation();
|
$this->globalNavigation();
|
||||||
|
@ -53,6 +54,66 @@ class SeedDMS_View_Info extends SeedDMS_Bootstrap_Style {
|
||||||
} else {
|
} else {
|
||||||
$this->warningMsg(getMLText('no_version_check'));
|
$this->warningMsg(getMLText('no_version_check'));
|
||||||
}
|
}
|
||||||
|
?>
|
||||||
|
<div class="row-fluid">
|
||||||
|
<div class="span6">
|
||||||
|
<?php
|
||||||
|
$this->contentHeading(getMLText("seeddms_info"));
|
||||||
|
$seedextensions = $extmgr->getExtensionConfiguration();
|
||||||
|
echo "<table class=\"table table-condensed\">\n";
|
||||||
|
echo "<thead>\n<tr>\n";
|
||||||
|
echo "<th>".getMLText("name");
|
||||||
|
echo "</th>\n";
|
||||||
|
echo "</tr>\n</thead>\n<tbody>\n";
|
||||||
|
$dbversion = $dms->getDBVersion();
|
||||||
|
echo "<tr><td>".getMLText('seeddms_version')."</td><td>".$version->version()."</td></tr>\n";
|
||||||
|
if($user->isAdmin()) {
|
||||||
|
echo "<tr><td>".getMLText('database_schema_version')."</td><td>".$dbversion['major'].".".$dbversion['minor'].".".$dbversion['subminor']."</td></tr>\n";
|
||||||
|
foreach($seedextensions as $extname=>$extconf)
|
||||||
|
echo "<tr><td>".$extname."<br />".$extconf['title']."</td><td>".$extconf['version']."</td></tr>\n";
|
||||||
|
}
|
||||||
|
echo "</tbody>\n</table>\n";
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="span6">
|
||||||
|
<?php
|
||||||
|
if($user->isAdmin()) {
|
||||||
|
$this->contentHeading(getMLText("php_info"));
|
||||||
|
echo "<table class=\"table table-condensed\">\n";
|
||||||
|
echo "<thead>\n<tr>\n";
|
||||||
|
echo "<th>".getMLText("name");
|
||||||
|
echo "</th>\n";
|
||||||
|
echo "</tr>\n</thead>\n<tbody>\n";
|
||||||
|
echo "<tr><td>PHP</td><td>".phpversion()."</td></tr>\n";
|
||||||
|
echo "<tr><td>Path to php.ini</td><td>".php_ini_loaded_file()."</td></tr>\n";
|
||||||
|
echo "</tbody>\n</table>\n";
|
||||||
|
|
||||||
|
$this->contentHeading(getMLText("installed_php_extensions"));
|
||||||
|
$phpextensions = get_loaded_extensions(false);
|
||||||
|
echo "<table class=\"table table-condensed\">\n";
|
||||||
|
echo "<thead>\n<tr>\n";
|
||||||
|
echo "<th>".getMLText("name");
|
||||||
|
echo "</th>\n";
|
||||||
|
echo "</tr>\n</thead>\n<tbody>\n";
|
||||||
|
foreach($phpextensions as $extname)
|
||||||
|
echo "<tr><td>".$extname."</td><td>"."</td></tr>\n";
|
||||||
|
echo "</tbody>\n</table>\n";
|
||||||
|
|
||||||
|
$this->contentHeading(getMLText("missing_php_extensions"));
|
||||||
|
echo "<table class=\"table table-condensed\">\n";
|
||||||
|
echo "<thead>\n<tr>\n";
|
||||||
|
echo "<th>".getMLText("name");
|
||||||
|
echo "</th>\n";
|
||||||
|
echo "</tr>\n</thead>\n<tbody>\n";
|
||||||
|
$requiredext = array('zip', 'xml', 'xsl', 'json', 'intl', 'fileinfo', 'mbstring', 'curl');
|
||||||
|
foreach(array_diff($requiredext, $phpextensions) as $extname)
|
||||||
|
echo "<tr><td>".$extname."</td><td>"."</td></tr>\n";
|
||||||
|
echo "</tbody>\n</table>\n";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
$this->contentContainerStart();
|
$this->contentContainerStart();
|
||||||
echo $version->banner();
|
echo $version->banner();
|
||||||
$this->contentContainerEnd();
|
$this->contentContainerEnd();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user