[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/forum/ -> e_emailprint.php (source)

   1  <?php
   2  if (!defined('e107_INIT')) { exit; }
   3  
   4  function print_item($thread_id)
   5  {
   6      global $tp;
   7      $gen = new convert;
   8      include_once(e_PLUGIN.'forum/forum_class.php');
   9      $forum = new e107forum;
  10      $thread_info = $forum->thread_get($thread_id,0,999);
  11      $thread_name = $tp -> toHTML($thread_info[0]['thread_name'], TRUE);
  12      $text = "<b>".$thread_name."</b><br />
  13      ".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."<br /><br />
  14      ".$tp -> toHTML($thread_info[0]['thread_thread'], TRUE);
  15  
  16  
  17      $count = 1;
  18      
  19      unset($thread_info[0], $thread_info['head']);
  20      foreach($thread_info as $reply)
  21      {
  22          $text .= "<br /><br />Re: <b>".$thread_name."</b><br />
  23          ".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."<br /><br />
  24          ".$tp -> toHTML($reply['thread_thread'], TRUE);
  25      }
  26  
  27  
  28  //    return "<pre>".print_r($thread_info,TRUE)."</pre>";
  29      return $text;
  30  }
  31  
  32  function email_item($thread_id)
  33  {
  34      global $tp;
  35      $gen = new convert;
  36      include_once(e_PLUGIN.'forum/forum_class.php');
  37      $forum = new e107forum;
  38      $thread_info = $forum->thread_get($thread_id,0,999);
  39  
  40      $thread_name = $tp -> toHTML($thread_info[0]['thread_name'], TRUE);
  41      $text = "<b>".$thread_name."</b><br />
  42      ".$thread_info[0]['user_name'].", ".$gen->convert_date($thread_info[0]['thread_datestamp'], "forum")."<br /><br />
  43      ".$tp -> toHTML($thread_info[0]['thread_thread'], TRUE);
  44  
  45      $count = 1;
  46  
  47      unset($thread_info[0], $thread_info['head']);
  48      foreach($thread_info as $reply)
  49      {
  50          $text .= "<br /><br />Re: <b>".$thread_name."</b><br />
  51          ".$reply['user_name'].", ".$gen->convert_date($reply['thread_datestamp'], "forum")."<br /><br />
  52          ".$tp -> toHTML($reply['thread_thread'], TRUE);
  53      }
  54      return $text;
  55  }
  56  
  57  ?>


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