[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

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

   1  <?php
   2  
   3  if (!defined('e107_INIT')) { exit; }
   4  
   5  $comments_title = 'Content';
   6  $comments_type_id = 'pcontent';
   7  $comments_return['content'] = "p.content_id, p.content_heading, p.content_parent";
   8  $comments_table['content'] = "LEFT JOIN #pcontent AS p ON c.comment_type='pcontent' AND p.content_id = c.comment_item_id";
   9  function com_search_pcontent($row) {
  10      global $con;
  11      $datestamp = $con -> convert_date($row['comment_datestamp'], "long");
  12      $res['link'] = e_PLUGIN."content/content.php?content.".$row['content_id'];
  13      $res['pre_title'] = CONT_SCH_LAN_3.': ';
  14      $res['title'] = $row['content_heading'];
  15      $res['summary'] = $row['comment_comment'];
  16      preg_match("/([0-9]+)\.(.*)/", $row['comment_author'], $user);
  17      $res['detail'] = LAN_SEARCH_7."<a href='user.php?id.".$user[1]."'>".$user[2]."</a>".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