more logging to debug pholus issues

This commit is contained in:
Jokob-sk
2023-01-01 15:33:41 +11:00
parent 5ed57780a3
commit 7aa61e142e
4 changed files with 49 additions and 9 deletions

View File

@@ -609,6 +609,7 @@ height: 50px;
/*settings*/
@media (max-width: 767px) {
/* hide on mobile */
.setting_description {
/* color: red; */
display: none;
@@ -623,13 +624,13 @@ height: 50px;
}
}
@media (min-width: 768px) {
.setting_description {
/* color: rgb(0, 255, 106); */
.setting_description {
/* color: green; */
display: block;
}
.setting_input{
width:35%;
/* background-color: rgb(0, 255, 106); */
width:35%;
/* background-color: green; */
}
.setting_name
{

View File

@@ -51,6 +51,7 @@ CommitDB();
<h1 id="pageTitle">
<?php echo lang('Navigation_Settings');?>
</h1>
<span id="lastImportedTime"></span>
</section>
<div class="content">
<?php
@@ -247,12 +248,34 @@ CommitDB();
// number of settings has to be equal to
var settingsNumber = 53;
// Wrong number of settings processing
if(<?php echo count($settings)?> != settingsNumber)
{
showModalOk('WARNING', '<?php echo lang("settings_missing")?>');
}
// ---------------------------------------------------------
function getParam(targetId, key, skipCache = false) {
skipCacheQuery = "";
if(skipCache)
{
skipCacheQuery = "&skipcache";
}
// get parameter value
$.get('php/server/parameters.php?action=get&parameter='+ key + skipCacheQuery, function(data) {
var result = data;
document.getElementById(targetId).innerHTML = result.replaceAll('"', '');
});
}
// ---------------------------------------------------------
function addInterface()
{
ipMask = $('#ipMask').val();
@@ -273,11 +296,13 @@ CommitDB();
}
}
// ---------------------------------------------------------
function removeInterfaces()
{
$('#SCAN_SUBNETS').empty();
}
// ---------------------------------------------------------
function collectSettings()
{
var settingsArray = [];
@@ -315,6 +340,7 @@ CommitDB();
return settingsArray;
}
// ---------------------------------------------------------
function saveSettings() {
if(<?php echo count($settings)?> != settingsNumber)
{
@@ -331,7 +357,16 @@ CommitDB();
showModalOk ('Result', data );
}
});
}
}
}
</script>
<script defer>
// ---------------------------------------------------------
// Show last time settings have been imported
getParam("lastImportedTime", "Back_Settings_Imported", skipCache = true);
</script>