source: temp/test-xoops.ec-cube.net/html/modules/mylinks/xoops_version.php @ 405

Revision 405, 15.9 KB checked in by root, 20 years ago (diff)
Line 
1<?php
2// $Id: xoops_version.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $
3//  ------------------------------------------------------------------------ //
4//                XOOPS - PHP Content Management System                      //
5//                    Copyright (c) 2000 XOOPS.org                           //
6//                       <http://www.xoops.org/>                             //
7//  ------------------------------------------------------------------------ //
8//  This program is free software; you can redistribute it and/or modify     //
9//  it under the terms of the GNU General Public License as published by     //
10//  the Free Software Foundation; either version 2 of the License, or        //
11//  (at your option) any later version.                                      //
12//                                                                           //
13//  You may not change or alter any portion of this comment or credits       //
14//  of supporting developers from this source code or any supporting         //
15//  source code which is considered copyrighted (c) material of the          //
16//  original comment or credit authors.                                      //
17//                                                                           //
18//  This program is distributed in the hope that it will be useful,          //
19//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
20//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
21//  GNU General Public License for more details.                             //
22//                                                                           //
23//  You should have received a copy of the GNU General Public License        //
24//  along with this program; if not, write to the Free Software              //
25//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26//  ------------------------------------------------------------------------ //
27$modversion['name'] = _MI_MYLINKS_NAME;
28$modversion['version'] = 1.10;
29$modversion['description'] = _MI_MYLINKS_DESC;
30$modversion['credits'] = "Kazumi Ono<br />( http://www.mywebaddons.com/ )<br />The XOOPS Project";
31$modversion['help'] = "mylinks.html";
32$modversion['license'] = "GPL see LICENSE";
33$modversion['official'] = 1;
34$modversion['image'] = "images/mylinks_slogo.png";
35$modversion['dirname'] = "mylinks";
36
37// Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin)
38// All tables should not have any prefix!
39$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
40//$modversion['sqlfile']['postgresql'] = "sql/pgsql.sql";
41
42// Tables created by sql file (without prefix!)
43$modversion['tables'][0] = "mylinks_broken";
44$modversion['tables'][1] = "mylinks_cat";
45$modversion['tables'][2] = "mylinks_links";
46$modversion['tables'][3] = "mylinks_mod";
47$modversion['tables'][4] = "mylinks_text";
48$modversion['tables'][5] = "mylinks_votedata";
49
50// Admin things
51$modversion['hasAdmin'] = 1;
52$modversion['adminindex'] = "admin/index.php";
53$modversion['adminmenu'] = "admin/menu.php";
54
55// Blocks
56$modversion['blocks'][1]['file'] = "mylinks_top.php";
57$modversion['blocks'][1]['name'] = _MI_MYLINKS_BNAME1;
58$modversion['blocks'][1]['description'] = "Shows recently added web links";
59$modversion['blocks'][1]['show_func'] = "b_mylinks_top_show";
60$modversion['blocks'][1]['edit_func'] = "b_mylinks_top_edit";
61$modversion['blocks'][1]['options'] = "date|10|25";
62$modversion['blocks'][1]['template'] = 'mylinks_block_new.html';
63
64$modversion['blocks'][2]['file'] = "mylinks_top.php";
65$modversion['blocks'][2]['name'] = _MI_MYLINKS_BNAME2;
66$modversion['blocks'][2]['description'] = "Shows most visited web links";
67$modversion['blocks'][2]['show_func'] = "b_mylinks_top_show";
68$modversion['blocks'][2]['edit_func'] = "b_mylinks_top_edit";
69$modversion['blocks'][2]['options'] = "hits|10|25";
70$modversion['blocks'][2]['template'] = 'mylinks_block_top.html';
71
72// Menu
73$modversion['hasMain'] = 1;
74$modversion['sub'][1]['name'] = _MI_MYLINKS_SMNAME1;
75$modversion['sub'][1]['url'] = "submit.php";
76$modversion['sub'][2]['name'] = _MI_MYLINKS_SMNAME2;
77$modversion['sub'][2]['url'] = "topten.php?hit=1";
78$modversion['sub'][3]['name'] = _MI_MYLINKS_SMNAME3;
79$modversion['sub'][3]['url'] = "topten.php?rate=1";
80
81// Search
82$modversion['hasSearch'] = 1;
83$modversion['search']['file'] = "include/search.inc.php";
84$modversion['search']['func'] = "mylinks_search";
85
86// Comments
87$modversion['hasComments'] = 1;
88$modversion['comments']['itemName'] = 'lid';
89$modversion['comments']['pageName'] = 'singlelink.php';
90$modversion['comments']['extraParams'] = array('cid');
91// Comment callback functions
92$modversion['comments']['callbackFile'] = 'include/comment_functions.php';
93$modversion['comments']['callback']['approve'] = 'mylinks_com_approve';
94$modversion['comments']['callback']['update'] = 'mylinks_com_update';
95
96// Templates
97$modversion['templates'][1]['file'] = 'mylinks_brokenlink.html';
98$modversion['templates'][1]['description'] = '';
99$modversion['templates'][2]['file'] = 'mylinks_link.html';
100$modversion['templates'][2]['description'] = '';
101$modversion['templates'][3]['file'] = 'mylinks_index.html';
102$modversion['templates'][3]['description'] = '';
103$modversion['templates'][4]['file'] = 'mylinks_modlink.html';
104$modversion['templates'][4]['description'] = '';
105$modversion['templates'][5]['file'] = 'mylinks_ratelink.html';
106$modversion['templates'][5]['description'] = '';
107$modversion['templates'][6]['file'] = 'mylinks_singlelink.html';
108$modversion['templates'][6]['description'] = '';
109$modversion['templates'][7]['file'] = 'mylinks_submit.html';
110$modversion['templates'][7]['description'] = '';
111$modversion['templates'][8]['file'] = 'mylinks_topten.html';
112$modversion['templates'][8]['description'] = '';
113$modversion['templates'][9]['file'] = 'mylinks_viewcat.html';
114$modversion['templates'][9]['description'] = '';
115
116// Config Settings (only for modules that need config settings generated automatically)
117
118// name of config option for accessing its specified value. i.e. $xoopsModuleConfig['storyhome']
119$modversion['config'][1]['name'] = 'popular';
120
121// title of this config option displayed in config settings form
122$modversion['config'][1]['title'] = '_MI_MYLINKS_POPULAR';
123
124// description of this config option displayed under title
125$modversion['config'][1]['description'] = '_MI_MYLINKS_POPULARDSC';
126
127// form element type used in config form for this option. can be one of either textbox, textarea, select, select_multi, yesno, group, group_multi
128$modversion['config'][1]['formtype'] = 'select';
129
130// value type of this config option. can be one of either int, text, float, array, or other
131// form type of 'group_multi', 'select_multi' must always be 'array'
132// form type of 'yesno', 'group' must be always be 'int'
133$modversion['config'][1]['valuetype'] = 'int';
134
135// the default value for this option
136// ignore it if no default
137// 'yesno' formtype must be either 0(no) or 1(yes)
138$modversion['config'][1]['default'] = 100;
139
140// options to be displayed in selection box
141// required and valid for 'select' or 'select_multi' formtype option only
142// language constants can be used for both array keys and values
143$modversion['config'][1]['options'] = array('5' => 5, '10' => 10, '50' => 50, '100' => 100, '200' => 200, '500' => 500, '1000' => 1000);
144
145
146$modversion['config'][2]['name'] = 'newlinks';
147$modversion['config'][2]['title'] = '_MI_MYLINKS_NEWLINKS';
148$modversion['config'][2]['description'] = '_MI_MYLINKS_NEWLINKSDSC';
149$modversion['config'][2]['formtype'] = 'select';
150$modversion['config'][2]['valuetype'] = 'int';
151$modversion['config'][2]['default'] = 10;
152$modversion['config'][2]['options'] = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
153
154$modversion['config'][3]['name'] = 'perpage';
155$modversion['config'][3]['title'] = '_MI_MYLINKS_PERPAGE';
156$modversion['config'][3]['description'] = '_MI_MYLINKS_PERPAGEDSC';
157$modversion['config'][3]['formtype'] = 'select';
158$modversion['config'][3]['valuetype'] = 'int';
159$modversion['config'][3]['default'] = 10;
160$modversion['config'][3]['options'] = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30, '50' => 50);
161
162$modversion['config'][4]['name'] = 'anonpost';
163$modversion['config'][4]['title'] = '_MI_MYLINKS_ANONPOST';
164$modversion['config'][4]['description'] = '';
165$modversion['config'][4]['formtype'] = 'yesno';
166$modversion['config'][4]['valuetype'] = 'int';
167$modversion['config'][4]['default'] = 0;
168
169$modversion['config'][5]['name'] = 'autoapprove';
170$modversion['config'][5]['title'] = '_MI_MYLINKS_AUTOAPPROVE';
171$modversion['config'][5]['description'] = '_MI_MYLINKS_AUTOAPPROVEDSC';
172$modversion['config'][5]['formtype'] = 'yesno';
173$modversion['config'][5]['valuetype'] = 'int';
174$modversion['config'][5]['default'] = 0;
175
176$modversion['config'][6]['name'] = 'frame';
177$modversion['config'][6]['title'] = '_MI_MYLINKS_USEFRAMES';
178$modversion['config'][6]['description'] = '_MI_MYLINKS_USEFRAMEDSC';
179$modversion['config'][6]['formtype'] = 'yesno';
180$modversion['config'][6]['valuetype'] = 'int';
181$modversion['config'][6]['default'] = 0;
182
183$modversion['config'][7]['name'] = 'useshots';
184$modversion['config'][7]['title'] = '_MI_MYLINKS_USESHOTS';
185$modversion['config'][7]['description'] = '_MI_MYLINKS_USESHOTSDSC';
186$modversion['config'][7]['formtype'] = 'yesno';
187$modversion['config'][7]['valuetype'] = 'int';
188$modversion['config'][7]['default'] = 0;
189
190$modversion['config'][8]['name'] = 'shotwidth';
191$modversion['config'][8]['title'] = '_MI_MYLINKS_SHOTWIDTH';
192$modversion['config'][8]['description'] = '_MI_MYLINKS_SHOTWIDTHDSC';
193$modversion['config'][8]['formtype'] = 'textbox';
194$modversion['config'][8]['valuetype'] = 'int';
195$modversion['config'][8]['default'] = 140;
196
197// Notification
198
199$modversion['hasNotification'] = 1;
200$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
201$modversion['notification']['lookup_func'] = 'mylinks_notify_iteminfo';
202
203$modversion['notification']['category'][1]['name'] = 'global';
204$modversion['notification']['category'][1]['title'] = _MI_MYLINKS_GLOBAL_NOTIFY;
205$modversion['notification']['category'][1]['description'] = _MI_MYLINKS_GLOBAL_NOTIFYDSC;
206$modversion['notification']['category'][1]['subscribe_from'] = array('index.php','viewcat.php','singlelink.php');
207
208$modversion['notification']['category'][2]['name'] = 'category';
209$modversion['notification']['category'][2]['title'] = _MI_MYLINKS_CATEGORY_NOTIFY;
210$modversion['notification']['category'][2]['description'] = _MI_MYLINKS_CATEGORY_NOTIFYDSC;
211$modversion['notification']['category'][2]['subscribe_from'] = array('viewcat.php', 'singlelink.php');
212$modversion['notification']['category'][2]['item_name'] = 'cid';
213$modversion['notification']['category'][2]['allow_bookmark'] = 1;
214
215$modversion['notification']['category'][3]['name'] = 'link';
216$modversion['notification']['category'][3]['title'] = _MI_MYLINKS_LINK_NOTIFY;
217$modversion['notification']['category'][3]['description'] = _MI_MYLINKS_LINK_NOTIFYDSC;
218$modversion['notification']['category'][3]['subscribe_from'] = 'singlelink.php';
219$modversion['notification']['category'][3]['item_name'] = 'lid';
220$modversion['notification']['category'][3]['allow_bookmark'] = 1;
221
222$modversion['notification']['event'][1]['name'] = 'new_category';
223$modversion['notification']['event'][1]['category'] = 'global';
224$modversion['notification']['event'][1]['title'] = _MI_MYLINKS_GLOBAL_NEWCATEGORY_NOTIFY;
225$modversion['notification']['event'][1]['caption'] = _MI_MYLINKS_GLOBAL_NEWCATEGORY_NOTIFYCAP;
226$modversion['notification']['event'][1]['description'] = _MI_MYLINKS_GLOBAL_NEWCATEGORY_NOTIFYDSC;
227$modversion['notification']['event'][1]['mail_template'] = 'global_newcategory_notify';
228$modversion['notification']['event'][1]['mail_subject'] = _MI_MYLINKS_GLOBAL_NEWCATEGORY_NOTIFYSBJ;
229
230$modversion['notification']['event'][2]['name'] = 'link_modify';
231$modversion['notification']['event'][2]['category'] = 'global';
232$modversion['notification']['event'][2]['admin_only'] = 1;
233$modversion['notification']['event'][2]['title'] = _MI_MYLINKS_GLOBAL_LINKMODIFY_NOTIFY;
234$modversion['notification']['event'][2]['caption'] = _MI_MYLINKS_GLOBAL_LINKMODIFY_NOTIFYCAP;
235$modversion['notification']['event'][2]['description'] = _MI_MYLINKS_GLOBAL_LINKMODIFY_NOTIFYDSC;
236$modversion['notification']['event'][2]['mail_template'] = 'global_linkmodify_notify';
237$modversion['notification']['event'][2]['mail_subject'] = _MI_MYLINKS_GLOBAL_LINKMODIFY_NOTIFYSBJ;
238
239$modversion['notification']['event'][3]['name'] = 'link_broken';
240$modversion['notification']['event'][3]['category'] = 'global';
241$modversion['notification']['event'][3]['admin_only'] = 1;
242$modversion['notification']['event'][3]['title'] = _MI_MYLINKS_GLOBAL_LINKBROKEN_NOTIFY;
243$modversion['notification']['event'][3]['caption'] = _MI_MYLINKS_GLOBAL_LINKBROKEN_NOTIFYCAP;
244$modversion['notification']['event'][3]['description'] = _MI_MYLINKS_GLOBAL_LINKBROKEN_NOTIFYDSC;
245$modversion['notification']['event'][3]['mail_template'] = 'global_linkbroken_notify';
246$modversion['notification']['event'][3]['mail_subject'] = _MI_MYLINKS_GLOBAL_LINKBROKEN_NOTIFYSBJ;
247
248$modversion['notification']['event'][4]['name'] = 'link_submit';
249$modversion['notification']['event'][4]['category'] = 'global';
250$modversion['notification']['event'][4]['admin_only'] = 1;
251$modversion['notification']['event'][4]['title'] = _MI_MYLINKS_GLOBAL_LINKSUBMIT_NOTIFY;
252$modversion['notification']['event'][4]['caption'] = _MI_MYLINKS_GLOBAL_LINKSUBMIT_NOTIFYCAP;
253$modversion['notification']['event'][4]['description'] = _MI_MYLINKS_GLOBAL_LINKSUBMIT_NOTIFYDSC;
254$modversion['notification']['event'][4]['mail_template'] = 'global_linksubmit_notify';
255$modversion['notification']['event'][4]['mail_subject'] = _MI_MYLINKS_GLOBAL_LINKSUBMIT_NOTIFYSBJ;
256
257$modversion['notification']['event'][5]['name'] = 'new_link';
258$modversion['notification']['event'][5]['category'] = 'global';
259$modversion['notification']['event'][5]['title'] = _MI_MYLINKS_GLOBAL_NEWLINK_NOTIFY;
260$modversion['notification']['event'][5]['caption'] = _MI_MYLINKS_GLOBAL_NEWLINK_NOTIFYCAP;
261$modversion['notification']['event'][5]['description'] = _MI_MYLINKS_GLOBAL_NEWLINK_NOTIFYDSC;
262$modversion['notification']['event'][5]['mail_template'] = 'global_newlink_notify';
263$modversion['notification']['event'][5]['mail_subject'] = _MI_MYLINKS_GLOBAL_NEWLINK_NOTIFYSBJ;
264
265$modversion['notification']['event'][6]['name'] = 'link_submit';
266$modversion['notification']['event'][6]['category'] = 'category';
267$modversion['notification']['event'][6]['admin_only'] = 1;
268$modversion['notification']['event'][6]['title'] = _MI_MYLINKS_CATEGORY_LINKSUBMIT_NOTIFY;
269$modversion['notification']['event'][6]['caption'] = _MI_MYLINKS_CATEGORY_LINKSUBMIT_NOTIFYCAP;
270$modversion['notification']['event'][6]['description'] = _MI_MYLINKS_CATEGORY_LINKSUBMIT_NOTIFYDSC;
271$modversion['notification']['event'][6]['mail_template'] = 'category_linksubmit_notify';
272$modversion['notification']['event'][6]['mail_subject'] = _MI_MYLINKS_CATEGORY_LINKSUBMIT_NOTIFYSBJ;
273
274$modversion['notification']['event'][7]['name'] = 'new_link';
275$modversion['notification']['event'][7]['category'] = 'category';
276$modversion['notification']['event'][7]['title'] = _MI_MYLINKS_CATEGORY_NEWLINK_NOTIFY;
277$modversion['notification']['event'][7]['caption'] = _MI_MYLINKS_CATEGORY_NEWLINK_NOTIFYCAP;
278$modversion['notification']['event'][7]['description'] = _MI_MYLINKS_CATEGORY_NEWLINK_NOTIFYDSC;
279$modversion['notification']['event'][7]['mail_template'] = 'category_newlink_notify';
280$modversion['notification']['event'][7]['mail_subject'] = _MI_MYLINKS_CATEGORY_NEWLINK_NOTIFYSBJ;
281
282$modversion['notification']['event'][8]['name'] = 'approve';
283$modversion['notification']['event'][8]['category'] = 'link';
284$modversion['notification']['event'][8]['invisible'] = 1;
285$modversion['notification']['event'][8]['title'] = _MI_MYLINKS_LINK_APPROVE_NOTIFY;
286$modversion['notification']['event'][8]['caption'] = _MI_MYLINKS_LINK_APPROVE_NOTIFYCAP;
287$modversion['notification']['event'][8]['description'] = _MI_MYLINKS_LINK_APPROVE_NOTIFYDSC;
288$modversion['notification']['event'][8]['mail_template'] = 'link_approve_notify';
289$modversion['notification']['event'][8]['mail_subject'] = _MI_MYLINKS_LINK_APPROVE_NOTIFYSBJ;
290
291?>
Note: See TracBrowser for help on using the repository browser.