/*function updateWhitelistInputValue() {
//var val = [];
document.getElementsByName('whitelist')[0].value = JSON.stringify(window.whitelist);
}
function setPassword(i) {
var password = window.prompt('Enter password' + i);
window.whitelist[i]['password_hashed'] = '';
window.whitelist[i]['new_password'] = password;
setWhitelistHTML();
}
*/
function setAuthorizedSitesHTML() {
var s = '';
if (window.authorizedSites && window.authorizedSites.length > 0) {
s+='
';
s+='
';
s+='
Site
'
//s+='
Salt
'
//s+='
Limit
'
s+='
';
s=='';
for (var i=0; i
';
s+=window.authorizedSites[i]['id']
s+='
';
}
} else {
s+='No sites have been authorized to use this server yet.';
}
s+='
';
s+='';
/*
s+='
';
s+='';
s+='
';
s+='';*/
document.getElementById('authorized_sites_div').innerHTML = s;
}
/*
function whitelistAdd() {
window.whitelist.push({
site: '',
password_hashed: '',
new_password: '',
//quota: 60
});
setWhitelistHTML();
}
function whitelistRemoveRow(i) {
window.whitelist.splice(i, 1);
setWhitelistHTML();
}
*/
document.addEventListener('DOMContentLoaded', function() {
setAuthorizedSitesHTML();
});
{"id":35,"date":"2023-03-24T15:29:50","date_gmt":"2023-03-24T15:29:50","guid":{"rendered":"https:\/\/dailytechpost.us\/?p=35"},"modified":"2023-03-24T15:30:03","modified_gmt":"2023-03-24T15:30:03","slug":"how-purple-rock-dubai-became-a-leading-it-infrastructure-solutions-company-in-the-uae","status":"publish","type":"post","link":"https:\/\/dailytechpost.us\/how-purple-rock-dubai-became-a-leading-it-infrastructure-solutions-company-in-the-uae\/","title":{"rendered":"How Purple Rock Dubai Became a Leading IT Infrastructure Solutions Company in the UAE"},"content":{"rendered":"