* [ADD] Added OP cache info at the information tab

This commit is contained in:
nuxsmin
2017-02-02 18:11:52 +01:00
parent 6c6b5fc034
commit 0e1d06a3fb

View File

@@ -13,7 +13,7 @@
<td class="valField">
<div class="lowres-title"><?php echo __('Versión sysPass'); ?></div>
<?php printf('%s (%s)', \SP\Util\Util::getVersionString() ,\SP\Html\Html::strongText(implode('.', \SP\Util\Util::getVersion(true)))); ?>
<?php printf('%s (%s)', \SP\Util\Util::getVersionString(), \SP\Html\Html::strongText(implode('.', \SP\Util\Util::getVersion(true)))); ?>
</td>
</tr>
<tr>
@@ -44,6 +44,13 @@
<?php printf('%s: %d KB', \SP\Html\Html::strongText(__('Memoria Usada')), (memory_get_usage(true) / 1024)); ?>
<br>
<?php printf('%s: %s', \SP\Html\Html::strongText(__('Usuario')), (!$isDemoMode) ? get_current_user() : '***'); ?>
<?php if (version_compare(PHP_VERSION, '5.6.0', '>=')): ?>
<br>
<?php echo \SP\Html\Html::strongText(__('OP Cache')); ?>
<?php foreach (opcache_get_status(false)['opcache_statistics'] as $key => $value): ?>
<br><?php printf('%s : %s', $key, $value); ?>
<?php endforeach; ?>
<?php endif; ?>
</td>
</tr>
<tr>