mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 20:57:49 +02:00
Monstra Library: basic core improvments
This commit is contained in:
@@ -6,25 +6,23 @@
|
||||
/**
|
||||
* Information Admin Class
|
||||
*/
|
||||
class InformationAdmin extends Backend {
|
||||
|
||||
|
||||
class InformationAdmin extends Backend
|
||||
{
|
||||
/**
|
||||
* Information main function
|
||||
*/
|
||||
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')
|
||||
->assign('php_modules', $php_modules)
|
||||
->display();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@@ -11,21 +11,19 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
// Register plugin
|
||||
Plugin::register( __FILE__,
|
||||
Plugin::register( __FILE__,
|
||||
__('Information', 'information'),
|
||||
__('Information plugin', 'information'),
|
||||
__('Information plugin', 'information'),
|
||||
'1.0.0',
|
||||
'Awilum',
|
||||
'Awilum',
|
||||
'http://monstra.org/',
|
||||
null,
|
||||
'box');
|
||||
|
||||
|
||||
if (Session::exists('user_role') && in_array(Session::get('user_role'), array('admin'))) {
|
||||
|
||||
|
||||
// Include Information Admin
|
||||
Plugin::Admin('information', 'box');
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -8,4 +8,4 @@
|
||||
<plugin_version>1.0.0</plugin_version>
|
||||
<plugin_author>Awilum</plugin_author>
|
||||
<plugin_author_uri>http://monstra.org/</plugin_author_uri>
|
||||
</root>
|
||||
</root>
|
||||
|
@@ -1,40 +1,40 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'information' => array(
|
||||
'Information' => 'Informationen',
|
||||
'Debuging' => 'Debugging',
|
||||
'Name' => 'Name',
|
||||
'Value' => 'Wert',
|
||||
'Security' => 'Sicherheit',
|
||||
'System' => 'System',
|
||||
'on' => 'An',
|
||||
'off'=> 'Aus',
|
||||
'Server' => 'Server',
|
||||
'PHP version' => 'PHP Version',
|
||||
'SimpleXML module' => 'SimpleXML Modul',
|
||||
'DOM module' => 'DOM Modul',
|
||||
'Installed' => 'Installiert',
|
||||
'Not Installed' => 'Nicht Installiert',
|
||||
'Security check results' => 'Sicherheits-Check Ergebnisse',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Die Konfigurationsdatei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte für defines.php auf Produktionssystemen zu entfernen.',
|
||||
'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>' =>
|
||||
'Das Monstra-Core-Verzeichnis (":path") und/oder Dateien unterhalb des Verzeichnisses wurden als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod -R a-w :path</code> erledigen.',
|
||||
'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>' =>
|
||||
'Die Monstra .htaccess Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
|
||||
'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>' =>
|
||||
'Die Monstra index.php Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
|
||||
'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.' =>
|
||||
'Aufgrund der Art und Menge der Informationen kann ein Fehler Eindringlinge ergeben wenn Core::$environment = Core::DEVELOPMENT, wir raten dringend dazu folgendermaßen Core::PRODUCTION in Produktionssystemen einzustellen.',
|
||||
'Monstra version' => 'Monstra version',
|
||||
'Directory Permissions' => 'Directory Berechtigungen',
|
||||
'Directory' => 'Verzeichnis',
|
||||
'Writable' => 'Writable',
|
||||
'Unwritable' => 'Nicht beschreibbar',
|
||||
'Status' => 'Status',
|
||||
'PHP Built On' => 'PHP Built On',
|
||||
'Web Server' => 'Web Server',
|
||||
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
|
||||
)
|
||||
);
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'information' => array(
|
||||
'Information' => 'Informationen',
|
||||
'Debuging' => 'Debugging',
|
||||
'Name' => 'Name',
|
||||
'Value' => 'Wert',
|
||||
'Security' => 'Sicherheit',
|
||||
'System' => 'System',
|
||||
'on' => 'An',
|
||||
'off'=> 'Aus',
|
||||
'Server' => 'Server',
|
||||
'PHP version' => 'PHP Version',
|
||||
'SimpleXML module' => 'SimpleXML Modul',
|
||||
'DOM module' => 'DOM Modul',
|
||||
'Installed' => 'Installiert',
|
||||
'Not Installed' => 'Nicht Installiert',
|
||||
'Security check results' => 'Sicherheits-Check Ergebnisse',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Die Konfigurationsdatei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte für defines.php auf Produktionssystemen zu entfernen.',
|
||||
'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>' =>
|
||||
'Das Monstra-Core-Verzeichnis (":path") und/oder Dateien unterhalb des Verzeichnisses wurden als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod -R a-w :path</code> erledigen.',
|
||||
'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>' =>
|
||||
'Die Monstra .htaccess Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
|
||||
'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>' =>
|
||||
'Die Monstra index.php Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
|
||||
'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.' =>
|
||||
'Aufgrund der Art und Menge der Informationen kann ein Fehler Eindringlinge ergeben wenn Core::$environment = Core::DEVELOPMENT, wir raten dringend dazu folgendermaßen Core::PRODUCTION in Produktionssystemen einzustellen.',
|
||||
'Monstra version' => 'Monstra version',
|
||||
'Directory Permissions' => 'Directory Berechtigungen',
|
||||
'Directory' => 'Verzeichnis',
|
||||
'Writable' => 'Writable',
|
||||
'Unwritable' => 'Nicht beschreibbar',
|
||||
'Status' => 'Status',
|
||||
'PHP Built On' => 'PHP Built On',
|
||||
'Web Server' => 'Web Server',
|
||||
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
|
||||
)
|
||||
);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
'Security' => 'Security',
|
||||
'System' => 'System',
|
||||
'on' => 'on',
|
||||
'off'=> 'off',
|
||||
'off'=> 'off',
|
||||
'Server' => 'Server',
|
||||
'PHP version' => 'PHP version',
|
||||
'SimpleXML module' => 'SimpleXML module',
|
||||
@@ -17,9 +17,9 @@
|
||||
'Installed' => 'Installed',
|
||||
'Not Installed' => 'Not Installed',
|
||||
'Security check results' => 'Security check results',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.',
|
||||
'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>' =>
|
||||
'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>' =>
|
||||
'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>',
|
||||
'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>' =>
|
||||
'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>',
|
||||
@@ -37,4 +37,4 @@
|
||||
'Web Server' => 'Web Server',
|
||||
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
|
||||
)
|
||||
);
|
||||
);
|
||||
|
@@ -17,9 +17,9 @@
|
||||
'Installed' => 'Installato',
|
||||
'Not Installed' => 'Non installato',
|
||||
'Security check results' => 'Risultato del controllo di sicurezza',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Il file di configurazione è scrivibile. Si consiglia di rimuovere le autorizzazioni di scrittura per defines.php file sul sito funzionante.',
|
||||
'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>' =>
|
||||
'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>' =>
|
||||
'Directory Monstra (":path") è scrivibile. Si consiglia di rimuovere le autorizzazioni di scrittura per la directory (":path") sul sito funzionante. <br/> È possibile eseguire questa operazione su sistemi UNIX così: <code>chmod -R a-w :path</code>',
|
||||
'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>' =>
|
||||
'Principale file .htaccess è scrivibile. Si consiglia di rimuovere le autorizzazioni di scrittura per il file principale .htaccess. <br/> È possibile eseguire questa operazione su sistemi UNIX così: <code>chmod -R a-w :path</code>',
|
||||
@@ -37,4 +37,4 @@
|
||||
'Web Server' => 'Web Server',
|
||||
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
|
||||
)
|
||||
);
|
||||
);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
'Security' => 'Saugumas',
|
||||
'System' => 'Systema',
|
||||
'on' => 'Įjungta',
|
||||
'off'=> 'Išjungta',
|
||||
'off'=> 'Išjungta',
|
||||
'Server' => 'Serveris',
|
||||
'PHP version' => 'PHP versija',
|
||||
'SimpleXML module' => 'SimpleXML modulis',
|
||||
@@ -17,9 +17,9 @@
|
||||
'Installed' => 'Įdiegta',
|
||||
'Not Installed' => 'Neįdiegta',
|
||||
'Security check results' => 'Saugumo patikrinimo rezultatai',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Leidžiama perrašyti nustatymų bylą. Siūlome pašalinti visus rašymo leidimus sistemos bylai defines.php.',
|
||||
'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>' =>
|
||||
'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>' =>
|
||||
'Monstra pagrindinį aplanką (":path") ir/arba jo bylas leidžiama perrašyti. Siūlome pašalinti visus rašymo leidimus. <br/>Tai galite padaryti Unix sistemoje su: <code>chmod -R a-w :path</code>',
|
||||
'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>' =>
|
||||
'Monstra .htaccess bylą galima perrašyti. Siūlome pašalinti visus rašymo leidimus. <br/>Tai galite padaryti Unix sistemoje su: <code>chmod a-w :path</code>',
|
||||
@@ -37,4 +37,4 @@
|
||||
'Web Server' => 'Serverio prog. įranga',
|
||||
'WebServer to PHP Interface' => 'PHP naudoja šį SAPI',
|
||||
)
|
||||
);
|
||||
);
|
||||
|
@@ -17,9 +17,9 @@
|
||||
'Installed' => 'Instalado',
|
||||
'Not Installed' => 'Não instalado',
|
||||
'Security check results' => 'Resultados da verificação de segurança',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'O arquivo de configuração está com permissões de escrita. Para melhor segurança, você deve remover as permissões de escrita do arquivo defines.php em sistemas de produções.',
|
||||
'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>' =>
|
||||
'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>' =>
|
||||
'O diretório núcleo do Monstra (":path") e/ou arquivos dentro do diretório estão com permissões de escrita. Para melhor segurança, você deve remover as permissões de escritas. <br/>Você pode fazer isso em sistemas UNIX com: <code>chmod -R a-w :path</code>',
|
||||
'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>' =>
|
||||
'O arquivo .htaccess da pasta de instalação do Monstra está com permissões de escrita. Para sua melhor segurança, você deve remover as permissões de escritas. <br/>Você pode fazer isso em sistemas UNIX com: <code>chmod a-w :path</code>',
|
||||
@@ -37,4 +37,4 @@
|
||||
'Web Server' => 'Web Server',
|
||||
'WebServer to PHP Interface' => 'WebServer to PHP Interface',
|
||||
)
|
||||
);
|
||||
);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
'Security' => 'Безопасность',
|
||||
'System' => 'Система',
|
||||
'on' => 'включен',
|
||||
'off'=> 'выключен',
|
||||
'off'=> 'выключен',
|
||||
'Server' => 'Сервер',
|
||||
'PHP version' => 'Версия PHP',
|
||||
'SimpleXML module' => 'SimpleXML модуль',
|
||||
@@ -17,9 +17,9 @@
|
||||
'Installed' => 'Установлен',
|
||||
'Not Installed' => 'Не установлен',
|
||||
'Security check results' => 'Результаты проверки безопасности',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Конфигурационный файл доступен для записи. Мы рекомендуем вам удалить права записи на файл defines.php на живом сайте.',
|
||||
'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>' =>
|
||||
'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>' =>
|
||||
'Директория Monstra (":path") доступна для записи. Мы рекомендуем вам удалить права записи на директорию (":path") на живом сайте. <br/> Вы можете сделать это на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
'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>' =>
|
||||
'Главный .htaccess доступен для записи. Мы рекомендуем вам удалить права записи на главный .htaccess файл. <br/> Вы можете сделать это на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
@@ -37,4 +37,4 @@
|
||||
'Web Server' => 'Веб сервер',
|
||||
'WebServer to PHP Interface' => 'Веб сервер для PHP интерфейса',
|
||||
)
|
||||
);
|
||||
);
|
||||
|
@@ -9,7 +9,7 @@
|
||||
'Security' => 'Безпека',
|
||||
'System' => 'Система',
|
||||
'on' => 'включений',
|
||||
'off'=> 'вимкнено',
|
||||
'off'=> 'вимкнено',
|
||||
'Server' => 'Сервер',
|
||||
'PHP version' => 'Версія PHP',
|
||||
'SimpleXML module' => 'SimpleXML модуль',
|
||||
@@ -17,9 +17,9 @@
|
||||
'Installed' => 'Встановлено',
|
||||
'Not Installed' => 'Не встановлено',
|
||||
'Security check results' => 'Результати перевірки безпеки',
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Конфігураційний файл доступен для запису. Ми рекомендуємо вам видалити права запису на файл defines.php на живому сайті.',
|
||||
'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>' =>
|
||||
'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>' =>
|
||||
'Директорія Monstra (":path") доступна для запису. Ми рекомендуємо вам видалити права запису на директорію (":path") на живому сайті. <br/> Ви можете зробити це на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
'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>' =>
|
||||
'Головный .htaccess доступен для запису. Ми рекомендуємо вам видалити права запису на головний .htaccess файл. <br/>Ви можете зробити це на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
@@ -36,4 +36,4 @@
|
||||
'PHP Built On' => 'PHP построен на',
|
||||
'Web Server' => 'Веб сервер',
|
||||
'WebServer to PHP Interface' => 'Веб сервер для PHP интерфейса', )
|
||||
);
|
||||
);
|
||||
|
@@ -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