- Mail in a Box: comandi per aggiungere/modificare/rimuovere le caselle di posta

- aggiunto idMyGroup: ospiti siti di gruppi (AbitareGliIblei)
This commit is contained in:
Surya Paolo
2024-09-12 14:49:30 +02:00
parent 16ddb8095e
commit 791e18f167
39 changed files with 647 additions and 88 deletions

View File

@@ -8747,22 +8747,29 @@ export const tools = {
}
},
getHostPuntamento(arrDNS: any, tofind: string, paramsulServer: string): any {
getHostPuntamento(arrDNS: any, tofind: string, paramsulServer: string, type: string): any {
let checkDomain = ''
let indrec = arrDNS.findIndex((rec: any) => rec.name === tofind && rec.type === 'A')
let color = 'red'
let ok = false
if (indrec >= 0) {
checkDomain = tofind + ' -> ' + arrDNS[indrec].content
let giusto = (paramsulServer === arrDNS[indrec].content)
color = giusto ? 'green' : 'red'
if (!giusto) {
checkDomain += ' (<strong>al posto di -> ' + paramsulServer + '</strong>)'
} else {
ok = true
try {
if (arrDNS) {
let indrec = arrDNS.findIndex((rec: any) => rec.name === tofind && rec.type === type)
if (indrec >= 0) {
checkDomain = tofind + ' -> ' + arrDNS[indrec].content
let giusto = (paramsulServer === arrDNS[indrec].content)
color = giusto ? 'green' : 'red'
if (!giusto) {
checkDomain += ' (<strong>al posto di -> ' + paramsulServer + '</strong>)'
} else {
ok = true
}
} else {
checkDomain = tofind + ' N/A'
}
}
} else {
checkDomain = tofind + ' N/A'
} catch (e) {
console.log('Error: ', e)
}
return { text: '<span style="color: ' + color + ';">' + checkDomain + '</span><br>', ok }