2. Copy all modules files, keeping directory structure, to the\r
folder 'modules/antispam'\r
\r
-3. Enable the akismet module in 'admin/modules'\r
+3. Enable the antispam module in 'admin/modules'\r
\r
4. Visit 'admin/settings/antispam' and enter your API key for the\r
selected antispam service provider.\r
$deapikey_div_style = 'visibility: visible; overflow: hidden;';
break;
}
- $is_valid = (antispam_api_cmd_verify_key($apikey)
+ if (empty($apikey)) {
+ $is_valid = TRUE;
+ }
+ else {
+ $is_valid = (antispam_api_cmd_verify_key($apikey)
== ANTISPAM_API_RESULT_SUCCESS ? TRUE : FALSE);
+ }
$service_fieldset_collapsed = FALSE; // always show
$form['service'] = array(
. '&chs=' . $chart_width . 'x' . ($chart_width / 2) // chart size
. '&chds=0,' . $total
. '&chl=' . t('Spam') . '|' . t('Ham') .'|'
- . t('False Nagative') . '|' . t('False Positive') // legend
+ . t('False Negative') . '|' . t('False Positive') // legend
. '&chd=t:' . $counts['total_spam'] . ',' . $counts['total_ham'] . ','
. $counts['total_fnegative'] . ',' . $counts['total_fpositive']
. '&chco=dd6666,ffdd33,444444,bbbbbb' // line colors