[ Index ] |
|
Code source de e107 0.7.8 |
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_plugins/featurebox/featurebox.php,v $ 14 | $Revision: 1.7 $ 15 | $Date: 2007/01/20 05:19:44 $ 16 | $Author: mrpete $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 if($sql -> db_Select("featurebox", "*", "fb_mode=1 AND fb_class IN (".USERCLASS_LIST.") ORDER BY fb_class ASC")) 23 { 24 while($row = $sql->db_Fetch()) 25 { 26 if($row['fb_class'] > 0 && $row['fb_class'] < 251) 27 { 28 extract($row); 29 continue; 30 } 31 else 32 { 33 $xentry = $row; 34 } 35 } 36 if(!isset($fb_title)) 37 { 38 extract($xentry); 39 } 40 } 41 else if($sql -> db_Select("featurebox", "*", "fb_mode!=1 AND fb_class IN (".USERCLASS_LIST.")")) 42 { 43 $nfArray = $sql -> db_getList(); 44 $entry = $nfArray[array_rand($nfArray)]; 45 extract($entry); 46 } 47 else 48 { 49 return FALSE; 50 } 51 52 $fbcc = $fb_title; 53 $fb_title = $tp -> toHTML($fb_title, TRUE,'title'); 54 $fb_text = $tp -> toHTML($fb_text, TRUE,'body'); 55 if(!$fb_rendertype) 56 { 57 $ns -> tablerender($fb_title, $fb_text, 'featurebox'); 58 } 59 else 60 { 61 require_once(e_PLUGIN."featurebox/templates/".$fb_template.".php"); 62 echo $FB_TEMPLATE; 63 } 64 ?>
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 |