//"); } else { var params = 'action=' + 'removeBot' + '&bot_ids=' +selected; sendRequest(params); } } FS.addExcludedURL = function() { var url = ""; FS.createWindowUrl(400,270,'center','center',url); } FS.removeExcludedURL = function() { var selected = FS.getMultipleSelectionIndex('exclude_urls_table').join(','); if (selected.length == 0) { showError(""); } else { var params = 'action=' + 'removeExcludedUrl' + '&ids=' +selected; sendRequest(params); } } FS.editExcludedURL = function() { var index = $('exclude_urls_table').selectedIndex; if (index == -1) { showError(""); } else { var id = $F('exclude_urls_table'); var url = "" + id; FS.createWindowUrl(400,270,'center','center',url); } } FS.addExcludedIP = function() { var url = ""; FS.createWindowUrl(400,270,'center','center',url); } FS.removeExcludedIP = function() { var selected = FS.getMultipleSelectionIndex('exclude_ip_table').join(','); if (selected.length == 0) { showError(""); } else { var params = 'action=' + 'removeExcludedIP' + '&ids=' +selected; sendRequest(params); } } FS.editExcludedIP = function() { var index = $('exclude_ip_table').selectedIndex; if (index == -1) { showError(""); } else { var id = $F('exclude_ip_table'); var url = "" + id; FS.createWindowUrl(400,270,'center','center',url); } } FS.saveExcludedIP = function(parentWindow, edit_id, start_ip, end_ip) { var params = 'action=addOrEditExcludedIP&start_ip=' +start_ip + (end_ip != undefined ? "&end_ip=" + end_ip : "") + (edit_id != -1 ? "&edit_id="+edit_id : ""); sendRequest(params, function(response) { if (response.status != 'error') { closeParentWindow(parentWindow); } }); } FS.saveExcludedUrl = function(parentWindow, edit_id, url) { var params; if (edit_id != "-1") { params = 'action=editExcludedUrl&url=' + url +"&edit_id="+edit_id; } else { params = 'action=addExcludedUrl&url=' + url; } sendRequest(params, function(response) { if (response.status != 'error') { closeParentWindow(parentWindow); } }); } function changeLanguage() { sendRequest('action=changeLanguage&language=' + $F('language_code')); } function changeTimeZone() { saveOption('firestats_user_timezone','firestats_user_timezone','string','records_table'); } function toggleArchiveOldData() { if (!FS.archivingOldData) { FS.archiveOldData(); } else { FS.archiveCleanup(); } } function openImportBots() { FS.openWindow('',300,300); } //]]>