mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 13:16:54 +02:00
Monstra Library: basic core improvments
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
<div class="tabbable">
|
||||
<ul class="nav nav-tabs">
|
||||
<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="#server" data-toggle="tab"><?php echo __('Server', 'information'); ?></a></li>
|
||||
<li><a href="#directory-permissions" data-toggle="tab"><?php echo __('Directory Permissions', '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>
|
||||
|
||||
<div class="tab-content">
|
||||
|
||||
|
||||
<div class="tab-pane active" id="system">
|
||||
|
||||
<table class="table table-bordered">
|
||||
@@ -25,11 +25,11 @@
|
||||
<td><?php echo __('Monstra version', 'information'); ?></td>
|
||||
<td><?php echo Core::VERSION; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><?php echo __('GZIP', 'information'); ?></td>
|
||||
<td><?php if (MONSTRA_GZIP) { echo __('on', 'information'); } else { echo __('off', 'information'); } ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><?php echo __('Debugging', 'information'); ?></td>
|
||||
<td><?php if (Core::$environment == Core::DEVELOPMENT) { echo __('on', 'information'); } else { echo __('off', 'information'); } ?></td>
|
||||
</tr>
|
||||
@@ -48,27 +48,27 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><?php echo __('PHP version', 'information'); ?></td>
|
||||
<td><?php echo PHP_VERSION; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><?php echo __('PHP Built On', 'information'); ?></td>
|
||||
<td><?php echo php_uname(); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><?php echo __('Web Server', 'information'); ?></td>
|
||||
<td><?php echo (isset($_SERVER['SERVER_SOFTWARE'])) ? $_SERVER['SERVER_SOFTWARE'] : @getenv('SERVER_SOFTWARE'); ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><?php echo __('WebServer to PHP Interface', 'information'); ?></td>
|
||||
<td><?php echo php_sapi_name(); ?></td>
|
||||
</tr>
|
||||
<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>
|
||||
<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>
|
||||
@@ -132,7 +132,7 @@
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tab-pane" id="security">
|
||||
|
||||
<?php clearstatcache(); ?>
|
||||
@@ -144,33 +144,33 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (File::writable(MONSTRA . DS)) { ?>
|
||||
<tr>
|
||||
<td><span class="badge badge-error" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<tr>
|
||||
<td><span class="badge badge-error" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<td><?php echo __('The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>', 'information', array(':path' => MONSTRA . DS)); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (File::writable(ROOT . DS . '.htaccess')) { ?>
|
||||
<tr>
|
||||
<td><span class="badge badge-error" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<tr>
|
||||
<td><span class="badge badge-error" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<td><?php echo __('The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>', 'information', array(':path' => ROOT . DS . '.htaccess')); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (File::writable(ROOT . DS . 'index.php')) { ?>
|
||||
<tr>
|
||||
<td><span class="badge badge-error" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<tr>
|
||||
<td><span class="badge badge-error" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<td><?php echo __('The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>', 'information', array(':path' => ROOT . DS . 'index.php')); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if (Core::$environment == Core::DEVELOPMENT) { ?>
|
||||
<tr>
|
||||
<td><span class="badge badge-warning" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<td><span class="badge badge-warning" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<td><?php echo __('Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.', 'information'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user