[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 3 if (!defined('e107_INIT')) { exit; } 4 5 6 7 //##### create feed for admin, return array $eplug_rss_feed -------------------------------- 8 $feed['name'] = 'Featurebox'; 9 $feed['url'] = 'featurebox'; //the identifier for the rss feed url 10 $feed['topic_id'] = ''; //the topic_id, empty on default (to select a certain category) 11 $feed['path'] = 'featurebox'; //this is the plugin path location 12 $feed['text'] = 'this is the rss feed for the featurebox entries'; 13 $feed['class'] = '0'; 14 $feed['limit'] = '9'; 15 $eplug_rss_feed[] = $feed; 16 //##### ------------------------------------------------------------------------------------ 17 18 19 //##### create rss data, return as array $eplug_rss_data ----------------------------------- 20 $rss = array(); 21 $sqlrss = new db; 22 if($items = $sqlrss -> db_Select('featurebox', "*", "fb_class = 0 DESC LIMIT 0,".$this->limit )){ 23 $i=0; 24 while($rowrss = $sqlrss -> db_Fetch()){ 25 $rss[$i]['author'] = ''; 26 $rss[$i]['author_email'] = ''; 27 $rss[$i]['link'] = ''; 28 $rss[$i]['linkid'] = ''; 29 $rss[$i]['title'] = $rowrss['fb_title']; 30 $rss[$i]['description'] = $rowrss['fb_text']; 31 $rss[$i]['category_name'] = ''; 32 $rss[$i]['category_link'] = ''; 33 $rss[$i]['datestamp'] = ''; 34 $rss[$i]['enc_url'] = ''; 35 $rss[$i]['enc_leng'] = ''; 36 $rss[$i]['enc_type'] = ''; 37 $i++; 38 } 39 } 40 $eplug_rss_data[] = $rss; 41 //##### ------------------------------------------------------------------------------------ 42 43 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |