b2evolution PHP Cross Reference Blogging Systems

Source: /inc/antispam/views/_antispam_tools.view.php - 33 lines - 1612 bytes - Text - Print

Description: This file implements the UI controller for the antispam tools.

   1  <?php
   2  /**
   3   * This file implements the UI controller for the antispam tools.
   4   *
   5   * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.net/}.
   9   *
  10   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
  11   *
  12   * {@internal Open Source relicensing agreement:
  13   * }}
  14   *
  15   * @package admin
  16   */
  17  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  18  
  19  
  20  $block_item_Widget = new Widget( 'block_item' );
  21  $block_item_Widget->title = T_('Antispam tools');
  22  $block_item_Widget->disp_template_replaced( 'block_start' );
  23  // fp>sam2kb: This is a fast way to make a big mistake. Please add a confirmation, javascript at the very least, warning this CANNOT BE UNDONE.
  24  // Ideally you should show a list of what's goign to be deleted first and let the user confirm.
  25  // Best of all would be to be able to uncheck some deletes before validating.
  26  echo '<ul>';
  27  echo '<li><a href="'.regenerate_url('action', 'action=find_spam_comments&amp;'.url_crumb('antispam')).'">'.T_('Find and delete comments matching antispam blacklist!').'</a></li>';
  28  echo '<li><a href="'.regenerate_url('action', 'action=find_spam_referers&amp;'.url_crumb('antispam')).'">'.T_('Find and delete all banned hit-log entries!').'</a></li>';
  29  echo '<li><a href="'.regenerate_url('action,tool', 'tool=bankruptcy').'">'.T_('Declare comment spam bankruptcy...').'</a></li>';
  30  echo '</ul>';
  31  $block_item_Widget->disp_template_raw( 'block_end' );
  32  
  33  ?>

title

Description

title

Description

title

Description

title

title

Body