[ 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/links_page/plugin.php,v $ 14 | $Revision: 1.21 $ 15 | $Date: 2006/10/21 11:22:57 $ 16 | $Author: mrpete $ 17 +----------------------------------------------------------------------------+ 18 */ 19 20 if (!defined('e107_INIT')) { exit; } 21 22 // Plugin info ------------------------------------------------------------------------------------------------------- 23 @include_once(e_PLUGIN.'links_page/link_defines.php'); 24 @include_once(e_PLUGIN.'links_page/languages/'.e_LANGUAGE.'.php'); 25 @include_once(e_PLUGIN.'links_page/languages/English.php'); 26 27 $eplug_name = "LCLAN_PLUGIN_LAN_1"; 28 $eplug_version = "1.12"; 29 $eplug_author = "e107devs"; 30 $eplug_url = "http://e107.org"; 31 $eplug_email = ""; 32 $eplug_description = LCLAN_PLUGIN_LAN_2; 33 $eplug_compatible = "e107v0.7+"; 34 $eplug_readme = ""; 35 $eplug_latest = TRUE; //Show reported threads in admin (use e_latest.php) 36 $eplug_status = TRUE; //Show post count in admin (use e_status.php) 37 38 // Name of the plugin's folder ------------------------------------------------------------------------------------- 39 $eplug_folder = "links_page"; 40 41 // Name of menu item for plugin ---------------------------------------------------------------------------------- 42 $eplug_menu_name = ""; 43 44 // Name of the admin configuration file -------------------------------------------------------------------------- 45 $eplug_conffile = "admin_linkspage_config.php"; 46 47 // Icon image and caption text ------------------------------------------------------------------------------------ 48 $eplug_icon = $eplug_folder."/images/linkspage_32.png"; 49 $eplug_icon_small = $eplug_folder."/images/linkspage_16.png"; 50 $eplug_caption = LCLAN_PLUGIN_LAN_3; 51 52 // List of preferences ----------------------------------------------------------------------------------------------- 53 $eplug_prefs = array(); 54 55 // List of table names ----------------------------------------------------------------------------------------------- 56 $eplug_table_names = array( 57 "links_page_cat", 58 "links_page" ); 59 60 // List of sql requests to create tables ----------------------------------------------------------------------------- 61 $eplug_tables = array( 62 "CREATE TABLE ".MPREFIX."links_page_cat ( 63 link_category_id int(10) unsigned NOT NULL auto_increment, 64 link_category_name varchar(100) NOT NULL default '', 65 link_category_description varchar(250) NOT NULL default '', 66 link_category_icon varchar(100) NOT NULL default '', 67 link_category_order int(10) unsigned NOT NULL default '0', 68 link_category_class varchar(100) NOT NULL default '0', 69 link_category_datestamp int(10) unsigned NOT NULL default '0', 70 PRIMARY KEY (link_category_id) 71 ) TYPE=MyISAM;", 72 73 "CREATE TABLE ".MPREFIX."links_page ( 74 link_id int(10) unsigned NOT NULL auto_increment, 75 link_name varchar(100) NOT NULL default '', 76 link_url varchar(200) NOT NULL default '', 77 link_description text NOT NULL, 78 link_button varchar(100) NOT NULL default '', 79 link_category tinyint(3) unsigned NOT NULL default '0', 80 link_order int(10) unsigned NOT NULL default '0', 81 link_refer int(10) unsigned NOT NULL default '0', 82 link_open tinyint(1) unsigned NOT NULL default '0', 83 link_class tinyint(3) unsigned NOT NULL default '0', 84 link_datestamp int(10) unsigned NOT NULL default '0', 85 link_author varchar(255) NOT NULL default '', 86 PRIMARY KEY (link_id) 87 ) TYPE=MyISAM;" ); 88 89 // Create a link in main menu (yes=TRUE, no=FALSE) ------------------------------------------------------------- 90 $eplug_link = TRUE; 91 $eplug_link_name = LCLAN_PAGETITLE_1; 92 $eplug_link_url = e_PLUGIN."links_page/links.php"; 93 94 95 // Text to display after plugin successfully installed ------------------------------------------------------------------ 96 $eplug_done = LCLAN_PLUGIN_LAN_5; 97 $upgrade_add_prefs = ""; 98 $upgrade_remove_prefs = ""; 99 100 // upgrading ... // 101 $upgrade_alter_tables = array( 102 "ALTER TABLE ".MPREFIX."links_page ADD link_datestamp int(10) unsigned NOT NULL default '0'", 103 "ALTER TABLE ".MPREFIX."links_page ADD link_author varchar(255) NOT NULL default ''", 104 "ALTER TABLE ".MPREFIX."links_page_cat ADD link_category_order int(10) unsigned NOT NULL default '0'", 105 "ALTER TABLE ".MPREFIX."links_page_cat ADD link_category_class varchar(100) NOT NULL default '0'", 106 "ALTER TABLE ".MPREFIX."links_page_cat ADD link_category_datestamp int(10) unsigned NOT NULL default '0'" 107 ); 108 109 $eplug_upgrade_done = LCLAN_PLUGIN_LAN_6.': '.$eplug_version; 110 111 ?>
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 |