disable usage statistic for now, as there is no more backend

This commit is contained in:
ralf 2023-02-27 12:57:57 +01:00
parent a8dd625a61
commit 40dffb2f91
3 changed files with 8 additions and 10 deletions

View File

@ -103,12 +103,6 @@ class admin_hooks
$file['View Access Log'] = Egw::link('/index.php','menuaction=admin.admin_accesslog.index&ajax=true'); $file['View Access Log'] = Egw::link('/index.php','menuaction=admin.admin_accesslog.index&ajax=true');
} }
/* disable old EGroupware error_log, as it is not used anymore
if (! $GLOBALS['egw']->acl->check('error_log_access',1,'admin'))
{
$file['View Error Log'] = Egw::link('/index.php','menuaction=admin.uilog.list_log');
}*/
if (! $GLOBALS['egw']->acl->check('applications_acc',16,'admin')) if (! $GLOBALS['egw']->acl->check('applications_acc',16,'admin'))
{ {
$file['Clear cache and register hooks'] = array( $file['Clear cache and register hooks'] = array(
@ -141,7 +135,8 @@ class admin_hooks
$file['Custom translation'] = Egw::link('/index.php','menuaction=admin.admin_customtranslation.index'); $file['Custom translation'] = Egw::link('/index.php','menuaction=admin.admin_customtranslation.index');
$file['Changelog and versions'] = Egw::link('/index.php','menuaction=api.EGroupware\\Api\\Framework\\About.index&ajax=true'); $file['Changelog and versions'] = Egw::link('/index.php','menuaction=api.EGroupware\\Api\\Framework\\About.index&ajax=true');
$file['Submit statistic information'] = Egw::link('/index.php','menuaction=admin.admin_statistics.submit'); // disable usage statistic for now, as no more backend
//$file['Submit statistic information'] = Egw::link('/index.php','menuaction=admin.admin_statistics.submit');
if ($location == 'admin') if ($location == 'admin')
{ {

View File

@ -15,6 +15,8 @@ use EGroupware\Api\Etemplate;
/** /**
* Submit statistical data to egroupware.org * Submit statistical data to egroupware.org
*
* Usage statistic is disabled, as there is no more backend currently.
*/ */
class admin_statistics class admin_statistics
{ {

View File

@ -43,12 +43,13 @@ class admin_ui
*/ */
public function index(array $content=null) public function index(array $content=null)
{ {
/* disable usage statistic for now, as no more backend
if (admin_statistics::check(false)) if (admin_statistics::check(false))
{ {
$_GET['load'] = 'admin.admin_statistics.submit'; $_GET['load'] = 'admin.admin_statistics.submit';
$_GET['ajax'] = 'false'; $_GET['ajax'] = 'false';
$_GET['required'] = 'true'; $_GET['required'] = 'true';
} }*/
$tpl = new Etemplate('admin.index'); $tpl = new Etemplate('admin.index');
if (!is_array($content)) $content = array(); if (!is_array($content)) $content = array();