[ 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/rss_menu/plugin.php,v $ 14 | $Revision: 1.11 $ 15 | $Date: 2006/11/22 21:02:16 $ 16 | $Author: e107coders $ 17 +----------------------------------------------------------------------------+ 18 */ 19 if (!defined('e107_INIT')) { exit; } 20 21 $lan_file = e_PLUGIN."rss_menu/languages/".e_LANGUAGE.".php"; 22 require_once(file_exists($lan_file) ? $lan_file : e_PLUGIN."rss_menu/languages/English.php"); 23 24 // Plugin info ---------------------------------------------------------------- 25 $eplug_name = "RSS_PLUGIN_LAN_1"; 26 $eplug_version = "1.1"; 27 $eplug_author = "e107dev"; 28 $eplug_logo = ""; 29 $eplug_url = "http://e107.org"; 30 $eplug_email = ""; 31 $eplug_description = RSS_MENU_L2; 32 $eplug_compatible = "e107v0.7+"; 33 $eplug_readme = ""; //leave blank if no readme file 34 $eplug_latest = FALSE; //Show reported threads in admin (use latest.php) 35 $eplug_status = FALSE; //Show post count in admin (use status.php) 36 37 // Name of the plugin's folder ------------------------------------------------ 38 $eplug_folder = "rss_menu"; 39 40 // Name of menu item for plugin ----------------------------------------------- 41 $eplug_menu_name = "rss_menu"; 42 43 // Name of the admin configuration file --------------------------------------- 44 $eplug_conffile = "admin_prefs.php"; 45 46 // Icon image and caption text ------------------------------------------------ 47 $eplug_icon = $eplug_folder."/images/rss_32.png"; 48 $eplug_icon_small = $eplug_folder."/images/rss_16.png"; 49 $eplug_caption = LAN_CONFIGURE; 50 51 // List of preferences -------------------------------------------------------- 52 $eplug_prefs = ''; 53 54 // List of table names -------------------------------------------------------- 55 $eplug_table_names = array("rss"); 56 57 // List of sql requests to create tables -------------------------------------- 58 $eplug_tables = array( 59 "CREATE TABLE ".MPREFIX."rss ( 60 rss_id int(10) unsigned NOT NULL auto_increment, 61 rss_name varchar(255) NOT NULL default '', 62 rss_url text NOT NULL, 63 rss_topicid varchar(255) NOT NULL default '', 64 rss_path varchar(255) NOT NULL default '', 65 rss_text longtext NOT NULL, 66 rss_datestamp int(10) unsigned NOT NULL default '0', 67 rss_class tinyint(1) unsigned NOT NULL default '0', 68 rss_limit tinyint(3) unsigned NOT NULL default '0', 69 PRIMARY KEY (rss_id) 70 ) TYPE=MyISAM;", 71 72 "INSERT INTO ".MPREFIX."rss VALUES 73 (0, '".RSS_NEWS."', 'news', '', 'news', '".RSS_PLUGIN_LAN_7."', '".time()."', 0, 9), 74 (0, '".RSS_DL."', 'download', '', 'download', '".RSS_PLUGIN_LAN_8."', '".time()."', 0, 9), 75 (0, '".RSS_COM."', 'comments', '', 'comments', '".RSS_PLUGIN_LAN_9."', '".time()."', 0, 9) 76 " 77 ); 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 85 // upgrading ------------------------------------------------------------------ 86 $upgrade_add_prefs = ""; 87 $upgrade_remove_prefs = ""; 88 89 $upgrade_alter_tables = array( 90 "CREATE TABLE ".MPREFIX."rss ( 91 rss_id int(10) unsigned NOT NULL auto_increment, 92 rss_name varchar(255) NOT NULL default '', 93 rss_url text NOT NULL, 94 rss_topicid varchar(255) NOT NULL default '', 95 rss_path varchar(255) NOT NULL default '', 96 rss_text longtext NOT NULL, 97 rss_datestamp int(10) unsigned NOT NULL default '0', 98 rss_class tinyint(1) unsigned NOT NULL default '0', 99 rss_limit tinyint(3) unsigned NOT NULL default '0', 100 PRIMARY KEY (rss_id) 101 ) TYPE=MyISAM;", 102 103 "INSERT INTO ".MPREFIX."rss VALUES 104 (0, '".RSS_NEWS."', 'news', '', 'news', '".RSS_PLUGIN_LAN_7."', '".time()."', 0, 9), 105 (0, '".RSS_DL."', 'download', '', 'download', '".RSS_PLUGIN_LAN_8."', '".time()."', 0, 9), 106 (0, '".RSS_COM."', 'comments', '', 'comments', '".RSS_PLUGIN_LAN_9."', '".time()."', 0, 9) 107 " 108 ); 109 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 |