<td> <input type="text" onkeypress="return trapEnter(event,'addExcludedIP();');" id="excluded_ip_text" style="width:120px"/> <button class="button" onclick="addExcludedIP()"><?php fs_e('Add'); ?> </button> <button class="button" onclick="removeExcludedIP()"><?php fs_e('Remove'); ?> </button> </td> </tr> <tr> <td> <div id="exclude_ip_placeholder"><?php echo fs_get_excluded_ips_list(); ?> </div> </td> </tr> </table> </td> </tr> <?php } ?> </table> <!-- config_table --> </div> <!-- configuration area --> <?php function fs_get_archive_method_dropbox() {
function fs_ajax_removeExcludedIP(&$response) { $ip = $_POST['ip']; $res = fs_remove_excluded_ip($ip); if ($res == '') { $response['message'] = sprintf(fs_r('Removed %s from exclude list'), $ip); $response['fields']['exclude_ip_placeholder'] = addslashes(fs_get_excluded_ips_list()); $response['fields']['num_excluded'] = fs_get_num_excluded(); } else { ajax_error($response, $res); } }