From f536990fba898ec0302b31e32512dc6471ab9e1b Mon Sep 17 00:00:00 2001 From: dMetzger Date: Mon, 13 Aug 2012 15:19:37 +0000 Subject: [PATCH] // Added informations to AdminInformation tab (memory limit and max execution time) --- .../information/helpers/view/view.tpl | 16 ++++++++++------ controllers/admin/AdminInformationController.php | 4 +++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl index 9f2a3ca69..933c0de35 100644 --- a/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl @@ -77,23 +77,24 @@
{l s='Information about your configuration'} -

{l s='Server information'}

-

- {l s='Prestashop version'}: {$version.ps|escape:'htmlall':'UTF-8'} -

- +

{l s='Server information'}

{if count($uname)}

{l s='Server information'}: {$uname|escape:'htmlall':'UTF-8'}

{/if} -

{l s='Server software version'}: {$version.server|escape:'htmlall':'UTF-8'}

{l s='PHP version'}: {$version.php|escape:'htmlall':'UTF-8'}

+

+ {l s='Memory limit'}: {$version.memory_limit|escape:'htmlall':'UTF-8'} +

+

+ {l s='Max execution time'}: {$version.max_execution_time|escape:'htmlall':'UTF-8'} +

{if $apache_instaweb}

{l s='PageSpeed module for Apache installed (mod_instaweb)'}

{/if} @@ -112,6 +113,9 @@

{l s='Store information'}

+

+ {l s='Prestashop version'}: {$shop.ps|escape:'htmlall':'UTF-8'} +

{l s='Shop URL'}: {$shop.url|escape:'htmlall':'UTF-8'}

diff --git a/controllers/admin/AdminInformationController.php b/controllers/admin/AdminInformationController.php index 4b5524c11..097fcb62e 100644 --- a/controllers/admin/AdminInformationController.php +++ b/controllers/admin/AdminInformationController.php @@ -38,8 +38,9 @@ class AdminInformationControllerCore extends AdminController $this->tpl_view_vars = array( 'version' => array( 'php' => phpversion(), - 'ps' => _PS_VERSION_, 'server' => $_SERVER['SERVER_SOFTWARE'], + 'memory_limit' => ini_get('memory_limit'), + 'max_execution_time' => ini_get('max_execution_time') ), 'database' => array( 'version' => Db::getInstance()->getVersion(), @@ -49,6 +50,7 @@ class AdminInformationControllerCore extends AdminController 'uname' => function_exists('php_uname') ? php_uname('s').' '.php_uname('v').' '.php_uname('m') : '', 'apache_instaweb' => Tools::apacheModExists('mod_instaweb'), 'shop' => array( + 'ps' => _PS_VERSION_, 'url' => Tools::getHttpHost(true).__PS_BASE_URI__, 'theme' => _THEME_NAME_, ),