[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/chatbox_menu/ -> 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/chatbox_menu/plugin.php,v $
  14  |     $Revision: 1.12 $
  15  |     $Date: 2006/11/20 12:49:40 $
  16  |     $Author: mrpete $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  // Plugin info -------------------------------------------------------------------------------------------------------
  23  $eplug_name = "Chatbox";
  24  $eplug_version = "1.0";
  25  $eplug_author = "e107";
  26  $eplug_url = "http://e107.org";
  27  $eplug_email = "jalist@e107.org";
  28  $eplug_description = "Chatbox Menu";
  29  $eplug_compatible = "e107v0.7+";
  30  $eplug_readme = "";
  31  $eplug_status = TRUE;
  32  
  33  // Name of the plugin's folder -------------------------------------------------------------------------------------
  34  $eplug_folder = "chatbox_menu";
  35  
  36  // Name of menu item for plugin ----------------------------------------------------------------------------------
  37  $eplug_menu_name = "chatbox_menu";
  38  
  39  // Name of the admin configuration file --------------------------------------------------------------------------
  40  $eplug_conffile = "admin_chatbox.php";
  41  
  42  // Icon image and caption text ------------------------------------------------------------------------------------
  43  $eplug_icon = $eplug_folder."/images/chatbox_32.png";
  44  $eplug_icon_small = $eplug_folder."/images/chatbox_16.png";
  45  
  46  $eplug_caption = LAN_CONFIGURE; // e107 generic term.
  47  
  48  // List of preferences -----------------------------------------------------------------------------------------------
  49  $eplug_prefs = array(
  50      'chatbox_posts' => '10',
  51      'cb_wordwrap' => '20',
  52      'cb_layer' => '0',
  53      'cb_layer_height' => '200',
  54      'cb_emote' => '0',
  55      'cb_mod' => e_UC_ADMIN
  56  );
  57  
  58  // List of table names -----------------------------------------------------------------------------------------------
  59  $eplug_table_names = array(
  60      "chatbox"
  61  );
  62  
  63  // List of sql requests to create tables -----------------------------------------------------------------------------
  64  $eplug_tables = array(
  65      "CREATE TABLE ".MPREFIX."chatbox (
  66      cb_id int(10) unsigned NOT NULL auto_increment,
  67      cb_nick varchar(30) NOT NULL default '',
  68      cb_message text NOT NULL,
  69      cb_datestamp int(10) unsigned NOT NULL default '0',
  70      cb_blocked tinyint(3) unsigned NOT NULL default '0',
  71      cb_ip varchar(15) NOT NULL default '',
  72      PRIMARY KEY  (cb_id)
  73      ) TYPE=MyISAM;"
  74  );
  75  
  76  // Create a link in main menu (yes=TRUE, no=FALSE) -------------------------------------------------------------
  77  $eplug_link = FALSE;
  78  $eplug_link_name = '';
  79  $eplug_link_url = '';
  80  
  81  
  82  // upgrading ... //
  83  $upgrade_add_prefs = "";
  84  $upgrade_remove_prefs = "";
  85  $upgrade_alter_tables = "";
  86  
  87  
  88  if (!function_exists('chatbox_menu_uninstall')) {
  89  	function chatbox_menu_uninstall() {
  90          global $sql;
  91          $sql -> db_Update("user", "user_chats='0'");
  92      }
  93  }
  94  
  95  if (!function_exists('chatbox_menu_install')) {
  96  	function chatbox_menu_install() {
  97          global $sql;
  98          $sql -> db_Update("user", "user_chats='0'");
  99      }
 100  }
 101  
 102  ?>


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