| 137 | | ### Function: Ban Options |
|---|
| 138 | | function ban_options() { |
|---|
| 139 | | global $wpdb, $current_user; |
|---|
| 140 | | $admin_login = trim($current_user->user_login); |
|---|
| 141 | | // Form Processing |
|---|
| 142 | | if(!empty($_POST['do'])) { |
|---|
| 143 | | switch($_POST['do']) { |
|---|
| 144 | | // Credits To Joe (Ttech) - http://blog.fileville.net/ |
|---|
| 145 | | case __('Reset Ban Stats', 'wp-ban'): |
|---|
| 146 | | if($_POST['reset_ban_stats'] == 'yes') { |
|---|
| 147 | | $banned_stats = array('users' => array(), 'count' => 0); |
|---|
| 148 | | update_option('banned_stats', $banned_stats); |
|---|
| 149 | | $text = '<font color="green">'.__('All IP Ban Stats And Total Ban Stat Reseted', 'wp-ban').'</font>'; |
|---|
| 150 | | } else { |
|---|
| 151 | | $banned_stats = get_option('banned_stats'); |
|---|
| 152 | | $delete_ips = $_POST['delete_ips']; |
|---|
| 153 | | foreach($delete_ips as $delete_ip) { |
|---|
| 154 | | unset($banned_stats['users'][$delete_ip]); |
|---|
| 155 | | } |
|---|
| 156 | | update_option('banned_stats', $banned_stats); |
|---|
| 157 | | $text = '<font color="green">'.__('Selected IP Ban Stats Reseted', 'wp-ban').'</font>'; |
|---|
| 158 | | } |
|---|
| 159 | | break; |
|---|
| 160 | | } |
|---|
| 161 | | } |
|---|
| 162 | | if($_POST['Submit']) { |
|---|
| 163 | | $text = ''; |
|---|
| 164 | | $update_ban_queries = array(); |
|---|
| 165 | | $update_ban_text = array(); |
|---|
| 166 | | $banned_ips_post = explode("\n", trim($_POST['banned_ips'])); |
|---|
| 167 | | $banned_ips_range_post = explode("\n", trim($_POST['banned_ips_range'])); |
|---|
| 168 | | $banned_hosts_post = explode("\n", trim($_POST['banned_hosts'])); |
|---|
| 169 | | $banned_referers_post = explode("\n", trim($_POST['banned_referers'])); |
|---|
| 170 | | $banned_exclude_ips_post = explode("\n", trim($_POST['banned_exclude_ips'])); |
|---|
| 171 | | $banned_message = trim($_POST['banned_template_message']); |
|---|
| 172 | | if(!empty($banned_ips_post)) { |
|---|
| 173 | | $banned_ips = array(); |
|---|
| 174 | | foreach($banned_ips_post as $banned_ip) { |
|---|
| 175 | | if($admin_login == 'admin' && ($banned_ip == get_IP() || is_admin_ip($banned_ip))) { |
|---|
| 176 | | $text .= '<font color="blue">'.sprintf(__('This IP \'%s\' Belongs To The Admin And Will Not Be Added To Ban List', 'wp-ban'),$banned_ip).'</font><br />'; |
|---|
| 177 | | } else { |
|---|
| 178 | | $banned_ips[] = trim($banned_ip); |
|---|
| 179 | | } |
|---|
| 180 | | } |
|---|
| 181 | | } |
|---|
| 182 | | if(!empty($banned_ips_range_post)) { |
|---|
| 183 | | $banned_ips_range = array(); |
|---|
| 184 | | foreach($banned_ips_range_post as $banned_ip_range) { |
|---|
| 185 | | $range = explode('-', $banned_ip_range); |
|---|
| 186 | | $range_start = trim($range[0]); |
|---|
| 187 | | $range_end = trim($range[1]); |
|---|
| 188 | | if($admin_login == 'admin' && (check_ip_within_range(get_IP(), $range_start, $range_end))) { |
|---|
| 189 | | $text .= '<font color="blue">'.sprintf(__('The Admin\'s IP \'%s\' Fall Within This Range (%s - %s) And Will Not Be Added To Ban List', 'wp-ban'), get_IP(), $range_start, $range_end).'</font><br />'; |
|---|
| 190 | | } else { |
|---|
| 191 | | $banned_ips_range[] = trim($banned_ip_range); |
|---|
| 192 | | } |
|---|
| 193 | | } |
|---|
| 194 | | } |
|---|
| 195 | | if(!empty($banned_hosts_post)) { |
|---|
| 196 | | $banned_hosts = array(); |
|---|
| 197 | | foreach($banned_hosts_post as $banned_host) { |
|---|
| 198 | | if($admin_login == 'admin' && ($banned_host == @gethostbyaddr(get_IP()) || is_admin_hostname($banned_host))) { |
|---|
| 199 | | $text .= '<font color="blue">'.sprintf(__('This Hostname \'%s\' Belongs To The Admin And Will Not Be Added To Ban List', 'wp-ban'), $banned_host).'</font><br />'; |
|---|
| 200 | | } else { |
|---|
| 201 | | $banned_hosts[] = trim($banned_host); |
|---|
| 202 | | } |
|---|
| 203 | | } |
|---|
| 204 | | } |
|---|
| 205 | | if(!empty($banned_referers_post)) { |
|---|
| 206 | | $banned_referers = array(); |
|---|
| 207 | | foreach($banned_referers_post as $banned_referer) { |
|---|
| 208 | | if(is_admin_referer($banned_referer)) { |
|---|
| 209 | | $text .= '<font color="blue">'.sprintf(__('This Referer \'%s\' Belongs To This Site And Will Not Be Added To Ban List', 'wp-ban'), $banned_referer).'</font><br />'; |
|---|
| 210 | | } else { |
|---|
| 211 | | $banned_referers[] = trim($banned_referer); |
|---|
| 212 | | } |
|---|
| 213 | | } |
|---|
| 214 | | } |
|---|
| 215 | | if(!empty($banned_exclude_ips_post)) { |
|---|
| 216 | | $banned_exclude_ips = array(); |
|---|
| 217 | | foreach($banned_exclude_ips_post as $banned_exclude_ip) { |
|---|
| 218 | | $banned_exclude_ips[] = trim($banned_exclude_ip); |
|---|
| 219 | | } |
|---|
| 220 | | } |
|---|
| 221 | | $update_ban_queries[] = update_option('banned_ips', $banned_ips); |
|---|
| 222 | | $update_ban_queries[] = update_option('banned_ips_range', $banned_ips_range); |
|---|
| 223 | | $update_ban_queries[] = update_option('banned_hosts', $banned_hosts); |
|---|
| 224 | | $update_ban_queries[] = update_option('banned_referers', $banned_referers); |
|---|
| 225 | | $update_ban_queries[] = update_option('banned_exclude_ips', $banned_exclude_ips); |
|---|
| 226 | | $update_ban_queries[] = update_option('banned_message', $banned_message); |
|---|
| 227 | | $update_ban_text[] = __('Banned IPs', 'wp-ban'); |
|---|
| 228 | | $update_ban_text[] = __('Banned IP Range', 'wp-ban'); |
|---|
| 229 | | $update_ban_text[] = __('Banned Host Names', 'wp-ban'); |
|---|
| 230 | | $update_ban_text[] = __('Banned Referers', 'wp-ban'); |
|---|
| 231 | | $update_ban_text[] = __('Banned Excluded IPs', 'wp-ban'); |
|---|
| 232 | | $update_ban_text[] = __('Banned Message', 'wp-ban'); |
|---|
| 233 | | $i=0; |
|---|
| 234 | | foreach($update_ban_queries as $update_ban_query) { |
|---|
| 235 | | if($update_ban_query) { |
|---|
| 236 | | $text .= '<font color="green">'.$update_ban_text[$i].' '.__('Updated', 'wp-ban').'</font><br />'; |
|---|
| 237 | | } |
|---|
| 238 | | $i++; |
|---|
| 239 | | } |
|---|
| 240 | | if(empty($text)) { |
|---|
| 241 | | $text = '<font color="red">'.__('No Ban Option Updated', 'wp-ban').'</font>'; |
|---|
| 242 | | } |
|---|
| 243 | | } |
|---|
| 244 | | // Get Banned IPs/Hosts |
|---|
| 245 | | $banned_ips = get_option('banned_ips'); |
|---|
| 246 | | $banned_ips_range = get_option('banned_ips_range'); |
|---|
| 247 | | $banned_hosts = get_option('banned_hosts'); |
|---|
| 248 | | $banned_referers = get_option('banned_referers'); |
|---|
| 249 | | $banned_exclude_ips = get_option('banned_exclude_ips'); |
|---|
| 250 | | $banned_ips_display = ''; |
|---|
| 251 | | $banned_ips_range_display = ''; |
|---|
| 252 | | $banned_hosts_display = ''; |
|---|
| 253 | | $banned_referers_display = ''; |
|---|
| 254 | | $banned_exclude_ips_display = ''; |
|---|
| 255 | | if(!empty($banned_ips)) { |
|---|
| 256 | | foreach($banned_ips as $banned_ip) { |
|---|
| 257 | | $banned_ips_display .= $banned_ip."\n"; |
|---|
| 258 | | } |
|---|
| 259 | | } |
|---|
| 260 | | if(!empty($banned_ips_range)) { |
|---|
| 261 | | foreach($banned_ips_range as $banned_ip_range) { |
|---|
| 262 | | $banned_ips_range_display .= $banned_ip_range."\n"; |
|---|
| 263 | | } |
|---|
| 264 | | } |
|---|
| 265 | | if(!empty($banned_hosts)) { |
|---|
| 266 | | foreach($banned_hosts as $banned_host) { |
|---|
| 267 | | $banned_hosts_display .= $banned_host."\n"; |
|---|
| 268 | | } |
|---|
| 269 | | } |
|---|
| 270 | | if(!empty($banned_referers)) { |
|---|
| 271 | | foreach($banned_referers as $banned_referer) { |
|---|
| 272 | | $banned_referers_display .= $banned_referer."\n"; |
|---|
| 273 | | } |
|---|
| 274 | | } |
|---|
| 275 | | if(!empty($banned_exclude_ips)) { |
|---|
| 276 | | foreach($banned_exclude_ips as $banned_exclude_ip) { |
|---|
| 277 | | $banned_exclude_ips_display .= $banned_exclude_ip."\n"; |
|---|
| 278 | | } |
|---|
| 279 | | } |
|---|
| 280 | | $banned_ips_display = trim($banned_ips_display); |
|---|
| 281 | | $banned_ips_range_display = trim($banned_ips_range_display); |
|---|
| 282 | | $banned_hosts_display = trim($banned_hosts_display); |
|---|
| 283 | | $banned_referers_display = trim($banned_referers_display); |
|---|
| 284 | | $banned_exclude_ips_display = trim($banned_exclude_ips_display); |
|---|
| 285 | | // Get Banned Stats |
|---|
| 286 | | $banned_stats = get_option('banned_stats'); |
|---|
| 287 | | ?> |
|---|
| 288 | | <script type="text/javascript"> |
|---|
| 289 | | /* <![CDATA[*/ |
|---|
| 290 | | var checked = 0; |
|---|
| 291 | | function banned_default_templates(template) { |
|---|
| 292 | | var default_template; |
|---|
| 293 | | switch(template) { |
|---|
| 294 | | case "message": |
|---|
| 295 | | default_template = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=<?php echo get_option('blog_charset'); ?>\" />\n<title>%SITE_NAME% - %SITE_URL%</title>\n</head>\n<body>\n<p style=\"text-align: center; font-weight: bold;\"><?php _e('You Are Banned.', 'wp-ban'); ?></p>\n</body>\n</html>"; |
|---|
| 296 | | break; |
|---|
| 297 | | } |
|---|
| 298 | | document.getElementById("banned_template_" + template).value = default_template; |
|---|
| 299 | | } |
|---|
| 300 | | function toggle_checkbox() { |
|---|
| 301 | | checkboxes = document.getElementsByName('delete_ips[]'); |
|---|
| 302 | | total = checkboxes.length; |
|---|
| 303 | | if(checked == 0) { |
|---|
| 304 | | for (var i = 0; i < total; i++) { |
|---|
| 305 | | checkboxes[i].checked = true; |
|---|
| 306 | | } |
|---|
| 307 | | checked++; |
|---|
| 308 | | } else if(checked == 1) { |
|---|
| 309 | | for (var i = 0; i < total; i++) { |
|---|
| 310 | | checkboxes[i].checked = false; |
|---|
| 311 | | } |
|---|
| 312 | | checked--; |
|---|
| 313 | | } |
|---|
| 314 | | } |
|---|
| 315 | | function preview_bannedmessage() { |
|---|
| 316 | | window.open('<?php echo get_option('siteurl').'/wp-content/plugins/ban/ban-preview.php'; ?>'); |
|---|
| 317 | | } |
|---|
| 318 | | /* ]]> */ |
|---|
| 319 | | </script> |
|---|
| 320 | | <?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?> |
|---|
| 321 | | <!-- Ban Options --> |
|---|
| 322 | | <div class="wrap"> |
|---|
| 323 | | <h2><?php _e('Ban Options', 'wp-ban'); ?></h2> |
|---|
| 324 | | <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> |
|---|
| 325 | | <table width="100%" cellspacing="3" cellpadding="3" border="0"> |
|---|
| 326 | | <tr> |
|---|
| 327 | | <td valign="top" colspan="2" align="center"> |
|---|
| 328 | | <?php printf(__('Your IP is: <strong>%s</strong><br />Your Host Name is: <strong>%s</strong><br />Your Site URL is: <strong>%s</strong>', 'wp-ban'), get_IP(), @gethostbyaddr(get_IP()), get_option('siteurl')); ?><br /> |
|---|
| 329 | | <?php _e('Please <strong>DO NOT</strong> ban yourself.', 'wp-ban'); ?> |
|---|
| 330 | | </td> |
|---|
| 331 | | </tr> |
|---|
| 332 | | <tr> |
|---|
| 333 | | <td valign="top"> |
|---|
| 334 | | <strong><?php _e('Banned IPs', 'wp-ban'); ?>:</strong><br /> |
|---|
| 335 | | <?php _e('Use <strong>*</strong> for wildcards.', 'wp-ban'); ?><br /> |
|---|
| 336 | | <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> |
|---|
| 337 | | <?php _e('Examples:', 'wp-ban'); ?><br /> |
|---|
| 338 | | <strong>»</strong> 192.168.1.100<br /> |
|---|
| 339 | | <strong>»</strong> 192.168.1.*<br /> |
|---|
| 340 | | <strong>»</strong> 192.168.*.*<br /> |
|---|
| 341 | | </td> |
|---|
| 342 | | <td> |
|---|
| 343 | | <textarea cols="40" rows="10" name="banned_ips"><?php echo $banned_ips_display; ?></textarea> |
|---|
| 344 | | </td> |
|---|
| 345 | | </tr> |
|---|
| 346 | | <tr> |
|---|
| 347 | | <td valign="top"> |
|---|
| 348 | | <strong><?php _e('Banned IP Range', 'wp-ban'); ?>:</strong><br /> |
|---|
| 349 | | <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> |
|---|
| 350 | | <?php _e('Examples:', 'wp-ban'); ?><br /> |
|---|
| 351 | | <strong>»</strong> 192.168.1.1-192.168.1.255<br /><br /> |
|---|
| 352 | | <?php _e('Notes:', 'wp-ban'); ?><br /> |
|---|
| 353 | | <strong>»</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br /> |
|---|
| 354 | | </td> |
|---|
| 355 | | <td> |
|---|
| 356 | | <textarea cols="40" rows="10" name="banned_ips_range"><?php echo $banned_ips_range_display; ?></textarea> |
|---|
| 357 | | </td> |
|---|
| 358 | | </tr> |
|---|
| 359 | | <tr> |
|---|
| 360 | | <td valign="top"> |
|---|
| 361 | | <strong><?php _e('Banned Host Names', 'wp-ban'); ?>:</strong><br /> |
|---|
| 362 | | <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br /> |
|---|
| 363 | | <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> |
|---|
| 364 | | <?php _e('Examples:', 'wp-ban'); ?><br /> |
|---|
| 365 | | <strong>»</strong> *.sg<br /> |
|---|
| 366 | | <strong>»</strong> *.cn<br /> |
|---|
| 367 | | <strong>»</strong> *.th<br /> |
|---|
| 368 | | </td> |
|---|
| 369 | | <td> |
|---|
| 370 | | <textarea cols="40" rows="10" name="banned_hosts"><?php echo $banned_hosts_display; ?></textarea> |
|---|
| 371 | | </td> |
|---|
| 372 | | </tr> |
|---|
| 373 | | <tr> |
|---|
| 374 | | <td valign="top"> |
|---|
| 375 | | <strong><?php _e('Banned Referers', 'wp-ban'); ?>:</strong><br /> |
|---|
| 376 | | <?php _e('Use <strong>*</strong> for wildcards', 'wp-ban'); ?>.<br /> |
|---|
| 377 | | <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> |
|---|
| 378 | | <?php _e('Examples:', 'wp-ban'); ?><br /> |
|---|
| 379 | | <strong>»</strong> http://*.blogspot.com<br /><br /> |
|---|
| 380 | | <?php _e('Notes:', 'wp-ban'); ?><br /> |
|---|
| 381 | | <strong>»</strong> <?php _e('There are ways to bypass this method of banning.', 'wp-ban'); ?> |
|---|
| 382 | | </td> |
|---|
| 383 | | <td> |
|---|
| 384 | | <textarea cols="40" rows="10" name="banned_referers"><?php echo $banned_referers_display; ?></textarea> |
|---|
| 385 | | </td> |
|---|
| 386 | | </tr> |
|---|
| 387 | | <tr> |
|---|
| 388 | | <td valign="top"> |
|---|
| 389 | | <strong><?php _e('Banned Exclude IPs', 'wp-ban'); ?>:</strong><br /> |
|---|
| 390 | | <?php _e('Start each entry on a new line.', 'wp-ban'); ?><br /><br /> |
|---|
| 391 | | <?php _e('Examples:', 'wp-ban'); ?><br /> |
|---|
| 392 | | <strong>»</strong> 192.168.1.100<br /><br /> |
|---|
| 393 | | <?php _e('Notes:', 'wp-ban'); ?><br /> |
|---|
| 394 | | <strong>»</strong> <?php _e('No Wildcards Allowed.', 'wp-ban'); ?><br /> |
|---|
| 395 | | <strong>»</strong> <?php _e('These Users Will Not Get Banned.', 'wp-ban'); ?> |
|---|
| 396 | | </td> |
|---|
| 397 | | <td> |
|---|
| 398 | | <textarea cols="40" rows="10" name="banned_exclude_ips"><?php echo $banned_exclude_ips_display; ?></textarea> |
|---|
| 399 | | </td> |
|---|
| 400 | | </tr> |
|---|
| 401 | | <tr> |
|---|
| 402 | | <td valign="top"> |
|---|
| 403 | | <strong><?php _e('Banned Message', 'wp-ban'); ?>:</strong><br /><br /><br /> |
|---|
| 404 | | <?php _e('Allowed Variables:', 'wp-ban'); ?><br /> |
|---|
| 405 | | - %SITE_NAME%<br /> |
|---|
| 406 | | - %SITE_URL%<br /> |
|---|
| 407 | | - %USER_ATTEMPTS_COUNT%<br /> |
|---|
| 408 | | - %USER_IP%<br /> |
|---|
| 409 | | - %USER_HOSTNAME%<br /> |
|---|
| 410 | | - %TOTAL_ATTEMPTS_COUNT%<br /><br /> |
|---|
| 411 | | <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-ban'); ?>" onclick="javascript: banned_default_templates('message');" class="button" /><br /><br /> |
|---|
| 412 | | <input type="button" name="RestoreDefault" value="<?php _e('Preview Banned Message', 'wp-ban'); ?>" onclick="javascript: preview_bannedmessage();" class="button" /><br /> |
|---|
| 413 | | </td> |
|---|
| 414 | | <td> |
|---|
| 415 | | <textarea cols="60" rows="20" id="banned_template_message" name="banned_template_message"><?php echo stripslashes(get_option('banned_message')); ?></textarea> |
|---|
| 416 | | </td> |
|---|
| 417 | | </tr> |
|---|
| 418 | | <tr> |
|---|
| 419 | | <td width="100%" colspan="2" align="center"><input type="submit" name="Submit" class="button" value="<?php _e('Update Options', 'wp-ban'); ?>" /> <input type="button" name="cancel" value="<?php _e('Cancel', 'wp-ban'); ?>" class="button" onclick="javascript:history.go(-1)" /></td> |
|---|
| 420 | | </tr> |
|---|
| 421 | | </table> |
|---|
| 422 | | </form> |
|---|
| 423 | | </div> |
|---|
| 424 | | <div class="wrap"> |
|---|
| 425 | | <h2><?php _e('Ban Stats', 'wp-ban'); ?></h2> |
|---|
| 426 | | <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post"> |
|---|
| 427 | | <table width="100%" cellspacing="3" cellpadding="3" border="0"> |
|---|
| 428 | | <tr class="thead"> |
|---|
| 429 | | <th width="40%"><?php _e('IPs', 'wp-ban'); ?></th> |
|---|
| 430 | | <th width="30%"><?php _e('Attempts', 'wp-ban'); ?></th> |
|---|
| 431 | | <th width="30%"><input type="checkbox" name="toogle_checkbox" value="1" onclick="toggle_checkbox();" /> <?php _e('Action', 'wp-ban'); ?></th> |
|---|
| 432 | | </tr> |
|---|
| 433 | | <?php |
|---|
| 434 | | // Credits To Joe (Ttech) - http://blog.fileville.net/ |
|---|
| 435 | | if(!empty($banned_stats['users'])) { |
|---|
| 436 | | $i = 0; |
|---|
| 437 | | foreach($banned_stats['users'] as $key => $value) { |
|---|
| 438 | | if($i%2 == 0) { |
|---|
| 439 | | $style = 'style=\'background-color: #eee\''; |
|---|
| 440 | | } else { |
|---|
| 441 | | $style = 'style=\'background-color: none\''; |
|---|
| 442 | | } |
|---|
| 443 | | echo "<tr $style>\n"; |
|---|
| 444 | | echo "<td style=\"text-align: center;\">$key</td>\n"; |
|---|
| 445 | | echo "<td style=\"text-align: center;\">$value</td>\n"; |
|---|
| 446 | | echo "<td><input type=\"checkbox\" name=\"delete_ips[]\" value=\"$key\" /> Reset this IP ban stat?</td>\n"; |
|---|
| 447 | | echo '</tr>'."\n"; |
|---|
| 448 | | $i++; |
|---|
| 449 | | } |
|---|
| 450 | | } else { |
|---|
| 451 | | echo "<tr>\n"; |
|---|
| 452 | | echo '<td colspan="3" align="center">'.__('No Attempts', 'wp-ban').'</td>'."\n"; |
|---|
| 453 | | echo '</tr>'."\n"; |
|---|
| 454 | | } |
|---|
| 455 | | ?> |
|---|
| 456 | | <tr class="thead"> |
|---|
| 457 | | <td style="text-align: center;"><strong><?php _e('Total Attempts:', 'wp-ban'); ?></strong></td> |
|---|
| 458 | | <td style="text-align: center;"><strong><?php echo intval($banned_stats['count']); ?></strong></td> |
|---|
| 459 | | <td><input type="checkbox" name="reset_ban_stats" value="yes" /> <?php _e('Reset all IP ban stats and total ban stat?', 'wp-ban'); ?> </td> |
|---|
| 460 | | </tr> |
|---|
| 461 | | </table> |
|---|
| 462 | | <p style="text-align: center;"><input type="submit" name="do" value="<?php _e('Reset Ban Stats', 'wp-ban'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Reset Ban Stats.', 'wp-ban'); ?>\n\n<?php _e('This Action Is Not Reversible. Are you sure?', 'wp-ban'); ?>')" /></p> |
|---|
| 463 | | </form> |
|---|
| 464 | | </div> |
|---|
| 465 | | <?php |
|---|
| 466 | | } |
|---|
| 467 | | |
|---|
| 468 | | |
|---|