Ignore:
Timestamp:
Nov 6, 2012, 7:58:42 AM (11 years ago)
Author:
rvelices
Message:

akismet for piwigo 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_akismet/check.inc.php

    r16004 r18945  
    1818    'author' => $comment['author'],
    1919    'body' => $comment['content'],
     20    'comment_author_url' => $comment['website_url'],
     21    'comment_author_email' => $comment['email'],
    2022    'permalink' => $url,
    2123    'referrer' => isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '',
    2224  );
    23   if (isset($_POST['url']) && strlen($_POST['url']))
    24     $aki_comm['comment_author_url'] = $_POST['url'];
     25  /*if (isset($_POST['url']) && strlen($_POST['url']))
     26    $aki_comm['comment_author_url'] = $_POST['url'];*/
    2527
    2628  $akismet = new Akismet(get_absolute_root_url(), $conf['akismet_api_key'], $aki_comm);
     
    4143    {
    4244      $_POST['cr'][] = 'aki-ok';
    43       if (!isset($_SESSION['csi']) && isset($_POST['url']) && strlen($_POST['url']) )
     45      if (!isset($_SESSION['csi']) /*&& isset($_POST['url']) && strlen($_POST['url']) */)
    4446      {
    45         $action = 'reject';
    46         $_POST['cr'][] = 'csi url';
     47        $action = 'moderate';
     48        $_POST['cr'][] = 'csi';
    4749      }
    4850    }
Note: See TracChangeset for help on using the changeset viewer.