- 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:
@@ -357,7 +357,8 @@ export const costanti = {
|
||||
|
||||
FILTER_NESSUNO: 0,
|
||||
FILTER_TUTTI: -100,
|
||||
TABLES_ARRAY: ['mygroups', 'circuits'],
|
||||
// TABLES_ARRAY: ['mygroups', 'circuits'],
|
||||
TABLES_ARRAY: ['circuits'],
|
||||
TABLES_USERNAME_DATE: ['friends', 'friendsandme'],
|
||||
TABLES_IMG_USERNAME: ['friends', 'friendsandme'],
|
||||
FILTER_SEP: '_',
|
||||
|
||||
@@ -1882,6 +1882,8 @@ export const colTableSites = [
|
||||
AddCol({ name: 'host_testapi_ip', label_trans: 'sites.host_testapi_ip', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'cf_token', label_trans: 'sites.cf_token', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'cf_zoneId', label_trans: 'sites.cf_zoneId', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'servermail', label_trans: 'sites.servermail', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'enable_servermail', label_trans: 'sites.enable_servermail', fieldtype: costanti.FieldType.boolean }),
|
||||
AddCol({ name: 'portapp', label_trans: 'sites.portapp', fieldtype: costanti.FieldType.string }),
|
||||
AddCol({ name: 'dir', label_trans: 'sites.dir' }),
|
||||
AddCol({ name: 'dir_test', label_trans: 'sites.dir_test', fieldtype: costanti.FieldType.string }),
|
||||
@@ -3141,6 +3143,11 @@ export const colTableUsersISP = [
|
||||
label_trans: 'reg.verified_by_aportador',
|
||||
fieldtype: costanti.FieldType.boolean
|
||||
}),
|
||||
AddCol({
|
||||
name: 'idMyGroup',
|
||||
label_trans: 'reg.idMyGroup',
|
||||
fieldtype: costanti.FieldType.string
|
||||
}),
|
||||
AddCol({
|
||||
name: 'notask_verif',
|
||||
label_trans: 'reg.notAsk_ToVerify',
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user