Changeset 782:01efbf050a8a for admin/services.php
- Timestamp:
- 12/06/11 11:43:14 (14 years ago)
- 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. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/services.php
r323 r782 25 25 $core->rest->addFunction('delMeta',array('dcRestMethods','delMeta')); 26 26 $core->rest->addFunction('setPostMeta',array('dcRestMethods','setPostMeta')); 27 $core->rest->addFunction('searchCommentAuthor',array('dcRestMethods','searchCommentAuthor')); 27 28 $core->rest->addFunction('searchMeta',array('dcRestMethods','searchMeta')); 28 29 … … 392 393 return $rsp; 393 394 } 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 394 420 } 395 421 ?> -
admin/services.php
r756 r782 4 4 # This file is part of Dotclear 2. 5 5 # 6 # Copyright (c) 2003-201 0Olivier Meunier & Association Dotclear6 # Copyright (c) 2003-2011 Olivier Meunier & Association Dotclear 7 7 # Licensed under the GPL version 2.0 license. 8 8 # See LICENSE file or … … 134 134 $rsp->comment_ip($rs->comment_ip); 135 135 $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)); 138 137 } 139 138
Note: See TracChangeset
for help on using the changeset viewer.