Dotclear


Ignore:
Timestamp:
11/17/13 20:25:53 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.6
Children:
2567:6c11245cbf04, 2568:61c67a7d17fa
Message:

Add some people in CREDITS, remove trailing spaces and tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/antispam/inc/lib.dc.antispam.url.php

    r1179 r2566  
    1818          self::genFeed('ham',$args); 
    1919     } 
    20       
     20 
    2121     public static function spamFeed($args) 
    2222     { 
    2323          self::genFeed('spam',$args); 
    2424     } 
    25       
     25 
    2626     private static function genFeed($type,$args) 
    2727     { 
    2828          global $core; 
    2929          $user_id = dcAntispam::checkUserCode($core,$args); 
    30            
     30 
    3131          if ($user_id === false) { 
    3232               self::p404(); 
    3333               return; 
    3434          } 
    35            
     35 
    3636          $core->auth->checkUser($user_id,null,null); 
    37            
     37 
    3838          header('Content-Type: application/xml; charset=UTF-8'); 
    39            
     39 
    4040          $title = $core->blog->name.' - '.__('Spam moderation'). ' - '; 
    4141          $params = array(); 
     
    4949               $params['sql'] = ' AND comment_status IN (1,-1) '; 
    5050          } 
    51            
     51 
    5252          echo 
    5353          '<?xml version="1.0" encoding="utf-8"?>'."\n". 
     
    5959          '<link>'.(DC_ADMIN_URL ? DC_ADMIN_URL.'comments.php'.$end_url : 'about:blank').'</link>'."\n". 
    6060          '<description></description>'."\n"; 
    61            
     61 
    6262          $rs = $core->blog->getComments($params); 
    6363          $maxitems = 20; 
    64           $nbitems = 0;        
    65            
     64          $nbitems = 0; 
     65 
    6666          while ($rs->fetch() && ($nbitems < $maxitems)) 
    6767          { 
     
    7474               } 
    7575               $id = $rs->getFeedID(); 
    76                 
     76 
    7777               $content = '<p>IP: '.$rs->comment_ip; 
    78                 
     78 
    7979               if (trim($rs->comment_site)) { 
    8080                    $content .= '<br />URL: <a href="'.$rs->comment_site.'">'.$rs->comment_site.'</a>'; 
     
    8282               $content .= "</p><hr />\n"; 
    8383               $content .= $rs->comment_content; 
    84                 
     84 
    8585               echo 
    8686               '<item>'."\n". 
    87                '  <title>'.html::escapeHTML($title).'</title>'."\n".                  
     87               '  <title>'.html::escapeHTML($title).'</title>'."\n". 
    8888               '  <link>'.$uri.'</link>'."\n". 
    8989               '  <guid>'.$id.'</guid>'."\n". 
    9090               '  <pubDate>'.$rs->getRFC822Date().'</pubDate>'."\n". 
    9191               '  <dc:creator>'.html::escapeHTML($author).'</dc:creator>'."\n". 
    92                '  <description>'.html::escapeHTML($content).'</description>'."\n".         
     92               '  <description>'.html::escapeHTML($content).'</description>'."\n". 
    9393               '</item>'; 
    9494          } 
    95            
    96           echo "</channel>\n</rss>";     
     95 
     96          echo "</channel>\n</rss>"; 
    9797     } 
    9898} 
    99 ?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map