Dotclear


Ignore:
Timestamp:
12/06/11 11:43:14 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
formfilters
Parents:
781:b509ac00bf4a (diff), 779:58c45f1b96e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged last default changes with formfilter branch

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/services.php

    r323 r782  
    2525$core->rest->addFunction('delMeta',array('dcRestMethods','delMeta')); 
    2626$core->rest->addFunction('setPostMeta',array('dcRestMethods','setPostMeta')); 
     27$core->rest->addFunction('searchCommentAuthor',array('dcRestMethods','searchCommentAuthor')); 
    2728$core->rest->addFunction('searchMeta',array('dcRestMethods','searchMeta')); 
    2829 
     
    392393          return $rsp; 
    393394     } 
     395 
     396     public static function searchCommentAuthor($core,$get) 
     397     { 
     398          $q = !empty($get['q']) ? strtoupper($get['q']) : null; 
     399           
     400          $strReq = 'SELECT DISTINCT C.comment_author '. 
     401               'FROM '.$core->prefix.'comment C '. 
     402               'INNER JOIN '.$core->prefix.'post P on C.post_id = P.post_id '. 
     403               'WHERE P.blog_id = \''.$core->blog->id.'\' '. 
     404               'AND UPPER(comment_author) like \'%'.$core->con->escape($q).'%\'' 
     405               ; 
     406          //echo $strReq; 
     407          $rs = $core->con->select($strReq); 
     408          $rsp = new xmlTag(); 
     409           
     410          while ($rs->fetch()) 
     411          { 
     412               $author = new xmlTag('author'); 
     413               $author->name=$rs->comment_author; 
     414               $rsp->insertNode($author); 
     415          } 
     416           
     417          return $rsp; 
     418     } 
     419 
    394420} 
    395421?> 
  • admin/services.php

    r756 r782  
    44# This file is part of Dotclear 2. 
    55# 
    6 # Copyright (c) 2003-2010 Olivier Meunier & Association Dotclear 
     6# Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 
    77# Licensed under the GPL version 2.0 license. 
    88# See LICENSE file or 
     
    134134               $rsp->comment_ip($rs->comment_ip); 
    135135               $rsp->comment_email($rs->comment_email); 
    136                # --BEHAVIOR-- adminAfterCommentDesc 
    137                $rsp->comment_spam_disp($core->callBehavior('adminAfterCommentDesc', $rs)); 
     136               $rsp->comment_spam_disp(dcAntispam::statusMessage($rs)); 
    138137          } 
    139138           
Note: See TracChangeset for help on using the changeset viewer.

Sites map