diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-07 07:36:48 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-07 07:36:48 +0000 |
commit | ba052c0cc94a1b1acbe3322e9e3705f71f7134ac (patch) | |
tree | a66105cf010350875806e428897c99a31fa47875 /modules/akismet/views | |
parent | f8f471c59be38e94242d63ad0facb899594de58d (diff) |
Extract the Akismet driver from the Spam_Filter module into a module
in its own right. Clean up the tests, streamline the code and improve
the admin interaction. Add a working stats page.
Diffstat (limited to 'modules/akismet/views')
-rw-r--r-- | modules/akismet/views/admin_akismet.html.php | 15 | ||||
-rw-r--r-- | modules/akismet/views/admin_akismet_stats.html.php | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/akismet/views/admin_akismet.html.php b/modules/akismet/views/admin_akismet.html.php new file mode 100644 index 00000000..34a5461b --- /dev/null +++ b/modules/akismet/views/admin_akismet.html.php @@ -0,0 +1,15 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="gAdminAkismet"> + <h1> <?= _("Akismet Spam Filtering") ?> </h1> + <p> + <?= _("Akismet is a free, automated spam filtering service. In order to use it, you need to sign up for a <a href=\"http://wordpress.com/api-keys\">Wordpress.com API Key</a>, which is also free. Your comments will be automatically relayed to <a href=\"http://akismet.com\">Akismet.com</a> where they'll be scanned for spam. Spam messages will be flagged accordingly and hidden from your vistors until you approve or delete them.") ?> + </p> + + <? if ($valid_key): ?> + <div class="gSuccess"> + <?= _("Your API Key is valid. Your comments will be filtered!") ?> + </div> + <? endif ?> + + <?= $form ?> +</div> diff --git a/modules/akismet/views/admin_akismet_stats.html.php b/modules/akismet/views/admin_akismet_stats.html.php new file mode 100644 index 00000000..a36ef237 --- /dev/null +++ b/modules/akismet/views/admin_akismet_stats.html.php @@ -0,0 +1,5 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<iframe width="100%" + style="border: 0px" + src="http://<?= $api_key ?>.web.akismet.com/1.0/user-stats.php?blog=<?= urlencode($blog_url) ?>"> +</iframe> |