Skip to content
Snippets Groups Projects

OP#7365 PHP-8.1 - Upgrade - cronlog Viewer (monitors.ascii)https://projects.iml.unibe.ch/work_packages/7365

Merged Hahn Axel (hahn) requested to merge freshup-php into master
2 files
+ 35
1
Compare changes
  • Side-by-side
  • Inline

Files

+ 5
1
@@ -66,6 +66,10 @@ 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>'
;
}
@@ -594,7 +598,7 @@ class cronlogrenderer extends cronlog
var timeline = new vis.Timeline(container, items, options);
// set focus to newest jobs
timeline.moveTo("'.date("Y-m-d H:i:s", time()-60*60*24*4).'");
// timeline.moveTo("'.date("Y-m-d H:i:s", time()-60*60*24*4).'");
// fix: some timelines do not properly work ... but I make them visible
$(\'#' . $sDivId . ' .vis-timeline\').css(\'visibility\', \'visible\');
Loading