From b061945f0e716a026fe722d5f0ba04f86982d3fc Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 12 Mar 2016 09:52:00 -0500 Subject: Show server configuration in settings page --- app/Controller/Config.php | 2 ++ app/Template/config/about.php | 48 ++++++++++++++++++++++++++++++++++--------- 2 files changed, 40 insertions(+), 10 deletions(-) (limited to 'app') diff --git a/app/Controller/Config.php b/app/Controller/Config.php index e811f870..a1b8c2af 100644 --- a/app/Controller/Config.php +++ b/app/Controller/Config.php @@ -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'), ))); } diff --git a/app/Template/config/about.php b/app/Template/config/about.php index 75d1320e..5c1f4b39 100644 --- a/app/Template/config/about.php +++ b/app/Template/config/about.php @@ -7,10 +7,6 @@ http://kanboard.net/ -
  • - - -
  • Frédéric Guillot () @@ -23,15 +19,47 @@
      +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • +
    • + + +
    • - text->e(DB_DRIVER) ?> + +
    • +
    • + + text->e($db_version) ?> +
    • +
    • + + text->e($user_agent) ?>
    • - +
    +
    + + + +
    +
    • text->bytes($db_size) ?> @@ -44,9 +72,9 @@ url->link(t('Optimize the database'), 'config', 'optimizeDb', array(), true) ?> 
    • - -
    -
    + + + render('config/keyboard_shortcuts') ?> -- cgit v1.2.3