2001-06-12 03:03:06 +02:00
|
|
|
<?php
|
2016-04-27 21:12:20 +02:00
|
|
|
/**
|
|
|
|
* EGgroupware administration
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @package admin
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2003-08-28 16:16:30 +02:00
|
|
|
|
2016-07-08 12:09:37 +02:00
|
|
|
use EGroupware\Api;
|
|
|
|
|
2016-04-27 21:12:20 +02:00
|
|
|
$GLOBALS['egw_info']['flags'] = array(
|
|
|
|
'noheader' => True,
|
|
|
|
'nonavbar' => True,
|
|
|
|
'currentapp' => 'admin'
|
|
|
|
);
|
|
|
|
include('../header.inc.php');
|
2001-06-12 03:03:06 +02:00
|
|
|
|
2016-04-27 21:12:20 +02:00
|
|
|
if ($GLOBALS['egw']->acl->check('info_access',1,'admin'))
|
|
|
|
{
|
|
|
|
$GLOBALS['egw']->redirect_link('/index.php');
|
|
|
|
}
|
2004-01-22 03:33:03 +01:00
|
|
|
|
2016-07-08 12:09:37 +02:00
|
|
|
$cache_provider = Api\Cache::getProvider();
|
|
|
|
$cache_info = '<table><tbody><tr>';
|
|
|
|
$cache_info .= '<td class="e">EGroupware caching provider</td><td class="v">'.Api\Cache::getProvider();
|
|
|
|
if ($cache_provider == 'EGroupware\\Api\\Cache\\Apcu')
|
|
|
|
{
|
|
|
|
$cache_info .= ' <a href="'.htmlspecialchars(Api\Egw::link('/admin/apcu.php')).'">View APCu stats</a>';
|
|
|
|
}
|
|
|
|
$cache_info .= '</td></tr></tbody></table>'."\n";
|
|
|
|
|
|
|
|
ob_start();
|
2016-04-27 21:12:20 +02:00
|
|
|
phpinfo();
|
2016-07-08 12:09:37 +02:00
|
|
|
$phpinfo = ob_get_clean();
|
|
|
|
|
|
|
|
$info = str_ireplace('<body><div class="center">', '<body><div class="center">'."\n".$cache_info, $phpinfo);
|
|
|
|
if ($info == $phpinfo)
|
|
|
|
{
|
|
|
|
echo $cache_info;
|
|
|
|
}
|
|
|
|
echo $info;
|