[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/poll/ -> plugin.php (source)

   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/plugin.php,v $
  14  |     $Revision: 1.7 $
  15  |     $Date: 2006/11/04 18:33:58 $
  16  |     $Author: e107coders $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  include_lan(e_PLUGIN."poll/languages/".e_LANGUAGE.".php");
  23  
  24  // Plugin info -------------------------------------------------------------------------------------------------------
  25  $eplug_name = POLL_ADLAN01;
  26  $eplug_version = "2.0";
  27  $eplug_author = "Steve Dunstan (jalist)";
  28  $eplug_url = "http://e107.org";
  29  $eplug_email = "jalist@e107.org";
  30  $eplug_description = POLL_ADLAN02;
  31  $eplug_compatible = "e107v0.7+";
  32  $eplug_readme = "";
  33  
  34  // Name of the plugin's folder -------------------------------------------------------------------------------------
  35  $eplug_folder = "poll";
  36  
  37  // Name of menu item for plugin ----------------------------------------------------------------------------------
  38  $eplug_menu_name = "poll_menu";
  39  
  40  // Name of the admin configuration file --------------------------------------------------------------------------
  41  $eplug_conffile = "admin_config.php";
  42  
  43  
  44  // Icon image and caption text ------------------------------------------------------------------------------------
  45  $eplug_icon = $eplug_folder."/images/polls_32.png";
  46  $eplug_icon_small = $eplug_folder."/images/polls_16.png";
  47  $eplug_caption = POLL_ADLAN03;
  48  
  49  // List of preferences -----------------------------------------------------------------------------------------------
  50  $eplug_prefs = array();
  51  
  52  // List of table names -----------------------------------------------------------------------------------------------
  53  $eplug_table_names = array("polls");
  54  
  55  // List of comment_type ids used by this plugin. -----------------------------
  56  $eplug_comment_ids = array(4);
  57  
  58  // List of sql requests to create tables -----------------------------------------------------------------------------
  59  $eplug_tables = array(
  60  "CREATE TABLE ".MPREFIX."polls (
  61    poll_id int(10) unsigned NOT NULL auto_increment,
  62    poll_datestamp int(10) unsigned NOT NULL default '0',
  63    poll_start_datestamp int(10) unsigned NOT NULL default '0',
  64    poll_end_datestamp int(10) unsigned NOT NULL default '0',
  65    poll_admin_id int(10) unsigned NOT NULL default '0',
  66    poll_title varchar(250) NOT NULL default '',
  67    poll_options text NOT NULL,
  68    poll_votes text NOT NULL,
  69    poll_ip text NOT NULL,
  70    poll_type tinyint(1) unsigned NOT NULL default '0',
  71    poll_comment tinyint(1) unsigned NOT NULL default '1',
  72    poll_allow_multiple tinyint(1) unsigned NOT NULL default '0',
  73    poll_result_type tinyint(2) unsigned NOT NULL default '0',
  74    poll_vote_userclass tinyint(3) unsigned NOT NULL default '0',
  75    poll_storage_method tinyint(1) unsigned NOT NULL default '0',
  76    PRIMARY KEY  (poll_id)
  77  ) TYPE=MyISAM;");
  78  
  79  // Create a link in main menu (yes=TRUE, no=FALSE) -------------------------------------------------------------
  80  $eplug_link = FALSE;
  81  $eplug_link_name = "";
  82  $eplug_link_url = "";
  83  
  84  // Text to display after plugin successfully installed ------------------------------------------------------------------
  85  $eplug_done = POLL_ADLAN04;
  86  
  87  ?>


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