akismet_stats_page

Definition:
function akismet_stats_page() {}

Source code

function akismet_stats_page() {

	if ( function_exists('add_submenu_page') )

		add_submenu_page('index.php', __('Akismet Stats'), __('Akismet Stats'), 'manage_options', 'akismet-stats-display', 'akismet_stats_display');



}

503

akismet_stats_display

Definition:
function akismet_stats_display() {}

Source code

function akismet_stats_display() {

	global $akismet_api_host, $akismet_api_port, $wpcom_api_key;

	$blog = urlencode( get_option('home') );

	$url = "http://".akismet_get_key().".web.akismet.com/1.0/user-stats.php?blog={$blog}";

501

akismet_stats_display

Definition:
function akismet_stats_display() {}

Source code

function akismet_stats_display() {

	global $akismet_api_host, $akismet_api_port, $wpcom_api_key;

	$blog = urlencode( get_bloginfo('url') );



	$url = 'http://';

	if ( is_ssl() )

		$url = 'https://';



	$url .= 'akismet.com/web/1.0/user-stats.php';

	$url .= "?blog={$blog}&api_key=" . akismet_get_key();

499

akismet_stats

Definition:
function akismet_stats() {}

Source code

function akismet_stats() {

	if ( !function_exists('did_action') || did_action( 'rightnow_end' ) ) // We already displayed this info in the "Right Now" section

		return;

	if ( !$count = get_option('akismet_spam_count') )

		return;

	$path = plugin_basename(__FILE__);

	echo '<h3>' . _x( 'Spam', 'comments' ) . '</h3>';

	global $submenu;

	if ( isset( $submenu['edit-comments.php'] ) )

		$link = 'edit-comments.php';

	else

		$link = 'edit.php';

	echo '<p>'.sprintf( _n( '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', '<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.', $count ), 'http://akismet.com/', clean_url("$link?page=akismet-admin"), number_format_i18n($count) ).'</p>';

}

497

akismet_stats

Definition:
function akismet_stats() {}

Source code

function akismet_stats() {

	if ( !function_exists('did_action') || did_action( 'rightnow_end' ) ) // We already displayed this info in the "Right Now" section

		return;

	if ( !$count = get_option('akismet_spam_count') )

		return;

	$path = plugin_basename(__FILE__);

	echo '<h3>'.__('Spam').'</h3>';

	global $submenu;

	if ( isset( $submenu['edit-comments.php'] ) )

		$link = 'edit-comments.php';

	else

		$link = 'edit.php';

	echo '<p>'.sprintf(__('<a href="%1$s">Akismet</a> has protected your site from <a href="%2$s">%3$s spam comments</a>.'), 'http://akismet.com/', clean_url("$link?page=akismet-admin"), number_format_i18n($count) ).'</p>';

}

495