[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/chatbox_menu/ -> e_rss.php (source)

   1  <?php
   2  
   3  if (!defined('e107_INIT')) { exit; }
   4  
   5  //##### create feed for admin, return array $eplug_rss_feed --------------------------------
   6  $feed['name']        = 'Chatbox';
   7  $feed['url']        = 'chatbox';            //the identifier for the rss feed url
   8  $feed['topic_id']    = '';                    //the topic_id, empty on default (to select a certain category)
   9  $feed['path']        = 'chatbox_menu';        //this is the plugin path location
  10  $feed['text']        = 'this is the rss feed for the chatbox entries';
  11  $feed['class']        = '0';
  12  $feed['limit']        = '9';
  13  
  14  // ------------------------------------------------------------------------------------
  15  
  16  
  17  //##### create rss data, return as array $eplug_rss_data -----------------------------------
  18  $rss = array();
  19  if($items = $sql -> db_Select('chatbox', "*", "cb_blocked=0 ORDER BY cb_datestamp DESC LIMIT 0,".$this -> limit)){
  20      $i=0;
  21      while($rowrss = $sql -> db_Fetch()){
  22          $tmp                        = explode(".", $rowrss['cb_nick']);
  23          $rss[$i]['author']            = $tmp[1];
  24          $rss[$i]['author_email']    = '';
  25          $rss[$i]['link']            = $e107->base_path.$PLUGINS_DIRECTORY."chatbox_menu/chat.php?".$rowrss['cb_id'];
  26          $rss[$i]['linkid']            = $rowrss['cb_id'];
  27          $rss[$i]['title']            = '';
  28          $rss[$i]['description']        = $rowrss['cb_message'];
  29          $rss[$i]['category_name']    = '';
  30          $rss[$i]['category_link']    = '';
  31          $rss[$i]['datestamp']        = $rowrss['cb_datestamp'];
  32          $rss[$i]['enc_url']            = "";
  33          $rss[$i]['enc_leng']        = "";
  34          $rss[$i]['enc_type']        = "";
  35          $i++;
  36      }
  37  }
  38  
  39  
  40  //##### ------------------------------------------------------------------------------------
  41  
  42  $eplug_rss_data[] = $rss;
  43  $eplug_rss_feed[] = $feed;
  44  ?>


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