Show server configuration in settings page
This commit is contained in:
@@ -61,6 +61,8 @@ class Config extends Base
|
||||
{
|
||||
$this->response->html($this->helper->layout->config('config/about', array(
|
||||
'db_size' => $this->config->getDatabaseSize(),
|
||||
'db_version' => $this->db->getDriver()->getDatabaseVersion(),
|
||||
'user_agent' => $this->request->getServerVariable('HTTP_USER_AGENT'),
|
||||
'title' => t('Settings').' > '.t('About'),
|
||||
)));
|
||||
}
|
||||
|
||||
@@ -7,10 +7,6 @@
|
||||
<?= t('Official website:') ?>
|
||||
<a href="http://kanboard.net/" target="_blank" rel="noreferer">http://kanboard.net/</a>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Application version:') ?>
|
||||
<strong><?= APP_VERSION ?></strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Author:') ?>
|
||||
<strong>Frédéric Guillot</strong> (<a href="https://github.com/fguillot/kanboard/blob/master/CONTRIBUTORS.md" target="_blank"><?= t('contributors') ?></a>)
|
||||
@@ -23,15 +19,47 @@
|
||||
</div>
|
||||
|
||||
<div class="page-header">
|
||||
<h2><?= t('Database') ?></h2>
|
||||
<h2><?= t('Configuration') ?></h2>
|
||||
</div>
|
||||
<div class="listing">
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Database driver:') ?>
|
||||
<strong><?= $this->text->e(DB_DRIVER) ?></strong>
|
||||
<?= t('Application version:') ?>
|
||||
<strong><?= APP_VERSION ?></strong>
|
||||
</li>
|
||||
<?php if (DB_DRIVER === 'sqlite'): ?>
|
||||
<li>
|
||||
<?= t('PHP version:') ?>
|
||||
<strong><?= PHP_VERSION ?></strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('PHP SAPI:') ?>
|
||||
<strong><?= PHP_SAPI ?></strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('OS version:') ?>
|
||||
<strong><?= php_uname('s').' '.php_uname('r') ?></strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Database driver:') ?>
|
||||
<strong><?= DB_DRIVER ?></strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Database version:') ?>
|
||||
<strong><?= $this->text->e($db_version) ?></strong>
|
||||
</li>
|
||||
<li>
|
||||
<?= t('Browser:') ?>
|
||||
<strong><?= $this->text->e($user_agent) ?></strong>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if (DB_DRIVER === 'sqlite'): ?>
|
||||
<div class="page-header">
|
||||
<h2><?= t('Database') ?></h2>
|
||||
</div>
|
||||
<div class="listing">
|
||||
<ul>
|
||||
<li>
|
||||
<?= t('Database size:') ?>
|
||||
<strong><?= $this->text->bytes($db_size) ?></strong>
|
||||
@@ -44,9 +72,9 @@
|
||||
<?= $this->url->link(t('Optimize the database'), 'config', 'optimizeDb', array(), true) ?>
|
||||
<?= t('(VACUUM command)') ?>
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?= $this->render('config/keyboard_shortcuts') ?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user