Version 4.7.8
This commit is contained in:
1 parent
7b7404e741
commit
fd22d99e69
688 files changed
+19814
-10890
No files matched your search
@@ -1020,7 +1020,23 @@ class _support extends \IPS\Dispatcher\Controller
|
||||
'recommendedIssues' => $requirements['advice']
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return all IPS log tables which can become quite large
|
||||
*
|
||||
* @return array<string, \IPS\Http\Url>
|
||||
*/
|
||||
public function getLogTables(): array
|
||||
{
|
||||
return [
|
||||
'core_log' => \IPS\Http\Url::internal( 'app=core&module=support&controller=systemLogs&do=logSettings' ),
|
||||
'core_error_logs' => \IPS\Http\Url::internal( 'app=core&module=support&controller=errorLogs&do=settings&searchResult=prune_log_error' ),
|
||||
'core_mail_error_logs' => \IPS\Http\Url::internal( 'app=core&module=settings&controller=email&do=errorLogSettings' ),
|
||||
'core_edit_history' => \IPS\Http\Url::internal( 'app=core&module=settings&controller=posting&tab=general&searchResult=edit_log_prune' ),
|
||||
'core_api_logs' => \IPS\Http\Url::internal( 'app=core&module=applications&controller=apiLogs&do=settings' ),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get block: Logs
|
||||
*
|
||||
@@ -1029,15 +1045,8 @@ class _support extends \IPS\Dispatcher\Controller
|
||||
protected function _showBlockLogs()
|
||||
{
|
||||
$requirements = array( 'advice' => 0, 'failures' => 0, 'list' => array() );
|
||||
|
||||
$logTables = array(
|
||||
'core_log' => \IPS\Http\Url::internal( 'app=core&module=support&controller=systemLogs&do=logSettings' ),
|
||||
'core_error_logs' => \IPS\Http\Url::internal( 'app=core&module=support&controller=errorLogs&do=settings&searchResult=prune_log_error' ),
|
||||
'core_mail_error_logs' => \IPS\Http\Url::internal( 'app=core&module=settings&controller=email&do=errorLogSettings' ),
|
||||
'core_edit_history' => \IPS\Http\Url::internal( 'app=core&module=settings&controller=posting&tab=general&searchResult=edit_log_prune' ),
|
||||
);
|
||||
|
||||
foreach( $logTables as $table => $url )
|
||||
|
||||
foreach( $this->getLogTables() as $table => $url )
|
||||
{
|
||||
$size = $this->_getLogTableSize( $table );
|
||||
|
||||
|
||||
Reference in new issue
Block a user