[ 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/poll/poll_menu.php,v $ 14 | $Revision: 1.10 $ 15 | $Date: 2006/02/18 14:02:17 $ 16 | $Author: mcfly_e107 $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 global $e107; 23 24 if(defined("POLLRENDERED")) 25 { 26 // return; 27 } 28 if(!defined("POLLCLASS")) 29 { 30 require(e_PLUGIN."poll/poll_class.php"); 31 } 32 if(!isset($poll) || !is_object($poll)) 33 { 34 $poll = new poll; 35 } 36 37 if(!defined("POLL_1")) 38 { 39 /* if menu is being called from comments, lan files have to be included manually ... */ 40 @include_once(e_PLUGIN."poll/languages/".e_LANGUAGE.".php"); 41 @include_once(e_PLUGIN."poll/languages/English.php"); 42 } 43 44 $query = "SELECT p.*, u.user_name FROM #polls AS p 45 LEFT JOIN #user AS u ON p.poll_admin_id = u.user_id 46 WHERE p.poll_vote_userclass!=255 AND p.poll_type=1 47 ORDER BY p.poll_datestamp DESC LIMIT 0,1 48 "; 49 50 $poll->render_poll($query, "menu", "query"); 51 52 ?>
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 |