[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/pm/ -> 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/pm/plugin.php,v $
  14  |     $Revision: 1.8 $
  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."pm/languages/admin/".e_LANGUAGE.".php");
  23  
  24  // Plugin info -------------------------------------------------------------------------------------------------------
  25  $eplug_name = "ADLAN_PM";
  26  $eplug_version = "3.0";
  27  $eplug_author = "McFly";
  28  $eplug_url = "";
  29  $eplug_email = "mcfly@e107.org";
  30  $eplug_description = ADLAN_PM_57;
  31  $eplug_compatible = "e107v.7+";
  32  // leave blank if no readme file
  33  
  34  // Name of the plugin's folder -------------------------------------------------------------------------------------
  35  $eplug_folder = "pm";
  36  
  37  // Mane of menu item for plugin ----------------------------------------------------------------------------------
  38  $eplug_menu_name = "pm";
  39  
  40  // Name of the admin configuration file --------------------------------------------------------------------------
  41  $eplug_conffile = "pm_conf.php";
  42  
  43  // Icon image and caption text ------------------------------------------------------------------------------------
  44  $eplug_icon = $eplug_folder."/images/pvt_message_32.png";
  45  $eplug_icon_small = $eplug_folder."/images/pvt_message_16.png";
  46  $eplug_caption = ADLAN_PM_2; //"Configure Private Messager";
  47  
  48  // List of preferences -----------------------------------------------------------------------------------------------
  49  
  50  // List of table names -----------------------------------------------------------------------------------------------
  51  $eplug_table_names = array(
  52  "private_msg",
  53  "private_msg_block"
  54  );
  55  
  56  // List of sql requests to create tables -----------------------------------------------------------------------------
  57  $eplug_tables = array(
  58  "CREATE TABLE ".MPREFIX."private_msg (
  59    pm_id int(10) unsigned NOT NULL auto_increment,
  60    pm_from int(10) unsigned NOT NULL default '0',
  61    pm_to varchar(250) NOT NULL default '',
  62    pm_sent int(10) unsigned NOT NULL default '0',
  63    pm_read int(10) unsigned NOT NULL default '0',
  64    pm_subject text NOT NULL,
  65    pm_text text NOT NULL,
  66    pm_sent_del tinyint(1) unsigned NOT NULL default '0',
  67    pm_read_del tinyint(1) unsigned NOT NULL default '0',
  68    pm_attachments text NOT NULL,
  69    pm_option varchar(250) NOT NULL default '',
  70    pm_size int(10) unsigned NOT NULL default '0',
  71    PRIMARY KEY  (pm_id)
  72  ) TYPE=MyISAM AUTO_INCREMENT=1 ;",
  73  "CREATE TABLE ".MPREFIX."private_msg_block (
  74    pm_block_id int(10) unsigned NOT NULL auto_increment,
  75    pm_block_from int(10) unsigned NOT NULL default '0',
  76    pm_block_to int(10) unsigned NOT NULL default '0',
  77    pm_block_datestamp int(10) unsigned NOT NULL default '0',
  78    pm_block_count int(10) unsigned NOT NULL default '0',
  79    PRIMARY KEY  (pm_block_id)
  80  ) TYPE=MyISAM AUTO_INCREMENT=1 ;"
  81  );
  82  
  83  // Create a link in main menu (yes=TRUE, no=FALSE) -------------------------------------------------------------
  84  $eplug_link = FALSE;
  85  $eplug_link_name = "";
  86  $eplug_link_url = "";
  87  
  88  // Text to display after plugin successfully installed ------------------------------------------------------------------
  89  $eplug_done = ADLAN_PM_1;
  90  
  91  if(!function_exists("pm_uninstall"))
  92  {
  93      //Remove prefs and menu entry during uninstall
  94  	function pm_uninstall()
  95      {
  96          global $sql;
  97          $sql->db_Delete("core", "e107_name = 'pm_prefs'");
  98          $sql->db_Delete("menus", "menu_name = 'private_msg_menu'");
  99      }
 100  }
 101  
 102  ?>


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