Skip to content
Snippets Groups Projects
Commit 49eb7769 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

remove delete button

parent 53cfa13f
No related branches found
No related tags found
1 merge request!19remove delete button
......@@ -66,10 +66,12 @@ class cronlogrenderer extends cronlog
return '<div class="accessandage">'
. sprintf($this->t("request-time"), date("Y-m-d H:i:s")) . '<br>'
. sprintf($this->t("last-entry"), $sAge)
/*
.($iAge > 60*24
? " <a href=\"?deleteserverlogs=$this->_sActiveServer\" class=\"btn btn-danger\">Delete server</a>"
: ''
)
*/
. '</div>'
;
}
......
......@@ -147,9 +147,13 @@ class cronlog
$this->_sDataDir = str_replace("__APPDIR__", dirname(dirname(__FILE__)), $this->_sDataDir);
$this->_sDataDir = str_replace('\\', '/', $this->_sDataDir);
/*
see delete button _renderAccessAndAge in cronlogrenderer class
if (isset($_GET['deleteserverlogs']) && $_GET['deleteserverlogs']){
$this->_deleteServerlogs($_GET['deleteserverlogs']);
}
*/
$this->getServers();
}
......@@ -158,7 +162,12 @@ class cronlog
// private
// ----------------------------------------------------------------------
/**
* UNUSED: delete serverlogs and cache files
*
* @param string $sServer
* @return bool
*/
protected function _deleteServerlogs(string $sServer): bool
{
$dirCronlog="$this->_sDataDir/$sServer";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment