- Cloudflare e configurazione dominio DNS (host, host_test, host_ip, ecc...)
This commit is contained in:
@@ -5235,6 +5235,16 @@ export const tools = {
|
||||
return (site.confpages.enableDebugOn)
|
||||
},
|
||||
|
||||
getDomainSite(): string {
|
||||
const globalStore = useGlobalStore()
|
||||
const site = globalStore.site
|
||||
|
||||
if (site) {
|
||||
return site.host!
|
||||
}
|
||||
return ''
|
||||
},
|
||||
|
||||
isVerified(): boolean {
|
||||
const globalStore = useGlobalStore()
|
||||
const site = globalStore.site
|
||||
@@ -8735,6 +8745,28 @@ export const tools = {
|
||||
return `Coordinate: ${lng}, Lat: ${lat}`
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
getHostPuntamento(arrDNS: any, tofind: string, paramsulServer: 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
|
||||
}
|
||||
} else {
|
||||
checkDomain = tofind + ' N/A'
|
||||
}
|
||||
|
||||
return { text: '<span style="color: ' + color + ';">' + checkDomain + '</span><br>', ok }
|
||||
|
||||
}
|
||||
|
||||
// FINE !
|
||||
|
||||
Reference in New Issue
Block a user