[ Index ]
 

Code source de e107 0.7.8

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

title

Body

[fermer]

/e107_plugins/linkwords/ -> 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/linkwords/plugin.php,v $
  14  |     $Revision: 1.5 $
  15  |     $Date: 2007/02/07 21:48:14 $
  16  |     $Author: e107steved $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  @include_once(e_PLUGIN."linkwords/languages/".e_LANGUAGE.".php");
  23  @include_once(e_PLUGIN."linkwords/languages/English.php");
  24  
  25  // Plugin info -------------------------------------------------------------------------------------------------------
  26  $eplug_name = "LWLANINS_1";
  27  $eplug_version = "1.1";
  28  $eplug_author = "jalist";
  29  $eplug_url = "http://e107.org";
  30  $eplug_email = "jalist@e107.org";
  31  $eplug_description = LWLANINS_2;
  32  $eplug_compatible = "e107v7+";
  33  $eplug_readme = "";
  34  // leave blank if no readme file
  35  
  36  // Name of the plugin's folder -------------------------------------------------------------------------------------
  37  $eplug_folder = "linkwords";
  38  
  39  // Mane of menu item for plugin ----------------------------------------------------------------------------------
  40  $eplug_menu_name = "";
  41  
  42  // Name of the admin configuration file --------------------------------------------------------------------------
  43  $eplug_conffile = "admin_config.php";
  44  
  45  // Icon image and caption text ------------------------------------------------------------------------------------
  46  $eplug_icon = $eplug_folder."/images/linkwords_32.png";
  47  $eplug_icon_small = $eplug_folder."/images/linkwords_16.png";
  48  $eplug_caption = LWLANINS_3;
  49  
  50  // List of preferences -----------------------------------------------------------------------------------------------
  51  
  52  $eplug_array_pref = array(
  53      'tohtml_hook' => 'linkwords'
  54      );
  55  $eplug_prefs = array(
  56      'lw_page_visibility'=>'',
  57      'lw_context_visibility'=>array(            
  58              'olddefault' => FALSE,
  59              'title' => FALSE,
  60              'summary' => TRUE,
  61              'body' => TRUE,
  62              'description' => TRUE,
  63              'linktext' => FALSE,
  64              'rawtext' => FALSE
  65              )
  66      );
  67  
  68  // List of table names -----------------------------------------------------------------------------------------------
  69  $eplug_table_names = array(
  70      "linkwords"
  71  );
  72  
  73  // List of sql requests to create tables -----------------------------------------------------------------------------
  74  $eplug_tables = array(
  75      "CREATE TABLE ".MPREFIX."linkwords (
  76      linkword_id INT UNSIGNED NOT NULL auto_increment,
  77      linkword_active tinyint(1) unsigned NOT NULL default '0',
  78      linkword_word varchar(100) NOT NULL default '',
  79      linkword_link varchar(150) NOT NULL default '',
  80      PRIMARY KEY ( linkword_id )
  81      ) TYPE=MyISAM AUTO_INCREMENT=1;"
  82  );
  83  
  84  
  85  // Create a link in main menu (yes=TRUE, no=FALSE) -------------------------------------------------------------
  86  $eplug_link = FALSE;
  87  $eplug_link_name = "";
  88  $ec_dir = e_PLUGIN."";
  89  $eplug_link_url = "";
  90  
  91  
  92  // Text to display after plugin successfully installed ------------------------------------------------------------------
  93  $eplug_done = LWLANINS_4;
  94  
  95  
  96  // upgrading ... //
  97  
  98  $upgrade_add_prefs = array(
  99      'lw_page_visibility'=>'', 
 100      'lw_context_visibility'=>array(            
 101              'olddefault' => FALSE,
 102              'title' => FALSE,
 103              'summary' => TRUE,
 104              'body' => TRUE,
 105              'description' => TRUE,
 106              'linktext' => FALSE,
 107              'rawtext' => FALSE
 108              )
 109  );
 110  
 111  $upgrade_remove_prefs = "";
 112  
 113  $upgrade_alter_tables = "";
 114  
 115  $eplug_upgrade_done = "";
 116  
 117  
 118  
 119  
 120  
 121  ?>


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