mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-08 06:06:53 +02:00
Imformation Plugin: add new tab "Server" with common server information.
This commit is contained in:
@@ -12,8 +12,16 @@
|
|||||||
*/
|
*/
|
||||||
public static function main() {
|
public static function main() {
|
||||||
|
|
||||||
|
// Init vars
|
||||||
|
$php_modules = array();
|
||||||
|
|
||||||
|
// Get array with the names of all modules compiled and loaded
|
||||||
|
$php_modules = get_loaded_extensions();
|
||||||
|
|
||||||
// Display view
|
// Display view
|
||||||
View::factory('box/information/views/backend/index')->display();
|
View::factory('box/information/views/backend/index')
|
||||||
|
->assign('php_modules', $php_modules)
|
||||||
|
->display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
<div class="tabbable">
|
<div class="tabbable">
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li class="active"><a href="#system" data-toggle="tab"><?php echo __('System', 'information'); ?></a></li>
|
<li class="active"><a href="#system" data-toggle="tab"><?php echo __('System', 'information'); ?></a></li>
|
||||||
|
<li><a href="#server" data-toggle="tab"><?php echo __('Server', 'information'); ?></a></li>
|
||||||
<li><a href="#security" data-toggle="tab"><?php echo __('Security', 'information'); ?></a></li>
|
<li><a href="#security" data-toggle="tab"><?php echo __('Security', 'information'); ?></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -40,6 +41,46 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="tab-pane" id="server">
|
||||||
|
|
||||||
|
<table class="table table-bordered">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo __('Name', 'information'); ?></td>
|
||||||
|
<td><?php echo __('Value', 'information'); ?></td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo __('PHP version', 'information'); ?></td>
|
||||||
|
<td><?php echo PHP_VERSION; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo __('SimpleXML module', 'information'); ?></td>
|
||||||
|
<td><?php if (in_array('SimpleXML', $php_modules)) { echo __('Installed', 'information'); } else { echo __('Not Installed', 'information'); } ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo __('DOM module', 'information'); ?></td>
|
||||||
|
<td><?php if (in_array('dom', $php_modules)) { echo __('Installed', 'information'); } else { echo __('Not Installed', 'information'); } ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if (function_exists('apache_get_modules')) {
|
||||||
|
if ( ! in_array('mod_rewrite',apache_get_modules())) {
|
||||||
|
echo '<tr><td>'.__('Apache Mod Rewrite', 'information').'</td><td>'.__('Not Installed', 'information').'</td></tr>';
|
||||||
|
} else {
|
||||||
|
echo '<tr><td>'.__('Apache Mod Rewrite', 'information').'</td><td>'.__('Installed', 'information').'</td></tr>';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo '<tr><td>'.__('Apache Mod Rewrite', 'information').'</td><td>'.__('Installed', 'information').'</td></tr>';
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="security">
|
<div class="tab-pane" id="security">
|
||||||
|
|
||||||
<?php clearstatcache(); ?>
|
<?php clearstatcache(); ?>
|
||||||
|
Reference in New Issue
Block a user