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

Merge branch 'freshup-php' into 'master'

remove delete button

See merge request !19
parents 4788caf6 49eb7769
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