Tools: new function -> PHP Settings

This commit is contained in:
bergware
2023-01-17 22:23:44 +01:00
parent 7651c1f62b
commit 193bf84eff
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ function viewLog() {
}
function clearLog() {
$.post('/webGui/include/PHPsettings.php',{cmd:'clear'},function(){
swal({title:"_(PHP Log File)_",text:"_(Log file cleared)_<br>_(You must reopen an existing LOG window)_",type:'success',html:true,confirmButtonText:"_(Ok)_"});
swal({title:"_(PHP Log File)_",text:"_(Log file cleared)_",type:'success',html:true,confirmButtonText:"_(Ok)_"},function(){if (tty_window!=null && !tty_window.closed) viewLog();});
});
}
function PHPinfo() {
@@ -111,6 +111,9 @@ var before = new Date();
const timers = {};
timers.bannerWarning = null;
// tty window
var tty_window = null;
const addAlert = {};
addAlert.text = $.cookie('addAlert-text');
addAlert.cmd = $.cookie('addAlert-cmd');
@@ -400,7 +403,6 @@ function escapeQuotes(form) {
}
// Banner warning system
var bannerWarnings = [];
var currentBannerWarning = 0;
var osUpgradeWarning = false;