From 31e3ee1dc2dc23c735f34ce3f308d8c5c27f485f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 3 Dec 2009 09:48:21 +0000 Subject: [PATCH] "added epl version and fixed detection of debian/ubuntu version" --- admin/inc/class.admin_statistics.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_statistics.inc.php b/admin/inc/class.admin_statistics.inc.php index e121ff54e4..1f8dd3c289 100644 --- a/admin/inc/class.admin_statistics.inc.php +++ b/admin/inc/class.admin_statistics.inc.php @@ -166,7 +166,11 @@ return true;"; // api version $data['version'] = $GLOBALS['egw_info']['apps']['phpgwapi']['version']; - + // append EPL version + if (isset($GLOBALS['egw_info']['apps']['stylite'])) + { + $data['version'] .= ' '.$GLOBALS['egw_info']['apps']['stylite']['version'].'EPL'; + } // sessions in the last 30 days $data['sessions'] = $GLOBALS['egw']->db->query('SELECT COUNT(*) FROM egw_access_log WHERE li > '.(time()-30*24*3600))->fetchColumn(); @@ -179,7 +183,7 @@ return true;"; $data['php'] = PHP_VERSION.': '.PHP_SAPI; $data['os'] = PHP_OS; - if (file_exists($file = '/etc/SuSE-release') || file_exists($file = '/etc/redhat-release') || file_exists('debian_version')) + if (file_exists($file = '/etc/SuSE-release') || file_exists($file = '/etc/redhat-release') || file_exists($file = '/etc/debian_version')) { $data['os'] .= ': '.str_replace(array("\n","\r"),'',implode(',',file($file))); }