[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_handlers/search/ -> comments_page.php (source)

   1  <?php
   2  /*
   3  + ----------------------------------------------------------------------------+
   4  |     e107 website system
   5  |
   6  |     ©Steve Dunstan 2001-2002
   7  |     http://e107.org
   8  |     jalist@e107.org
   9  |
  10  |     Released under the terms and conditions of the
  11  |     GNU General Public License (http://gnu.org).
  12  |
  13  |     $Source: /cvsroot/e107/e107_0.7/e107_handlers/search/comments_page.php,v $
  14  |     $Revision: 1.3 $
  15  |     $Date: 2005/12/28 14:47:20 $
  16  |     $Author: sweetas $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  $comments_title = LAN_418;
  23  $comments_type_id = 'page';
  24  $comments_return['page'] = "cp.page_id, cp.page_title";
  25  $comments_table['page'] = "LEFT JOIN #page AS cp ON c.comment_type='page' AND cp.page_id = c.comment_item_id";
  26  function com_search_page($row) {
  27      global $con;
  28      $datestamp = $con -> convert_date($row['comment_datestamp'], "long");
  29      $res['link'] = "page.php?".$row['page_id'];
  30      $res['pre_title'] = LAN_SEARCH_76.": ";
  31      $res['title'] = $row['page_title'];
  32      $res['summary'] = $row['comment_comment'];
  33      preg_match("/([0-9]+)\.(.*)/", $row['comment_author'], $user);
  34      $res['detail'] = LAN_SEARCH_7."<a href='user.php?id.".$user[1]."'>".$user[2]."</a>".LAN_SEARCH_8.$datestamp;
  35      return $res;
  36  }
  37  
  38  ?>


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