[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_plugins/poll/search/ -> search_comments.php (source)

   1  <?php
   2  
   3  if (!defined('e107_INIT')) { exit; }
   4  
   5  $comments_title = 'Poll';
   6  $comments_type_id = 4;
   7  $comments_return['poll'] = "po.poll_id, po.poll_title";
   8  $comments_table['poll'] = "LEFT JOIN #polls AS po ON c.comment_type=4 AND po.poll_id = c.comment_item_id";
   9  function com_search_4($row) {
  10      global $con;
  11      $nick = preg_replace("/[0-9]+\./", "", $row['comment_author']);
  12      $datestamp = $con -> convert_date($row['comment_datestamp'], "long");
  13      $res['link'] = e_PLUGIN."poll/oldpolls.php?".$row['poll_id'];
  14      $res['pre_title'] = 'Posted in reply to poll: ';
  15      $res['title'] = $row['poll_title'];
  16      $res['summary'] = $row['comment_comment'];
  17      $res['detail'] = LAN_SEARCH_7.$nick.LAN_SEARCH_8.$datestamp;
  18      return $res;
  19  }
  20  
  21  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7