| 1 | <?php |
|---|
| 2 | // $Id: xoops_version.php,v 1.2 2005/03/18 12:52:49 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 | // Author: Raul Recio (AKA UNFOR) // |
|---|
| 28 | // Project: The XOOPS Project // |
|---|
| 29 | // ------------------------------------------------------------------------- // |
|---|
| 30 | |
|---|
| 31 | $modversion['name'] = _MI_PARTNERS_NAME; |
|---|
| 32 | $modversion['version'] = 1.1; |
|---|
| 33 | $modversion['author'] = 'Raul Recio (AKA UNFOR)'; |
|---|
| 34 | $modversion['description'] = _MI_PARTNERS_DESC; |
|---|
| 35 | $modversion['credits'] = "The XOOPS Project"; |
|---|
| 36 | $modversion['license'] = "GPL see LICENSE"; |
|---|
| 37 | $modversion['help'] = "xoopspartners.html"; |
|---|
| 38 | $modversion['official'] = 1; |
|---|
| 39 | $modversion['image'] = "images/logo.png"; |
|---|
| 40 | $modversion['dirname'] = "xoopspartners"; |
|---|
| 41 | |
|---|
| 42 | // All tables should not have any prefix! |
|---|
| 43 | $modversion['sqlfile']['mysql'] = "sql/mysql.sql"; |
|---|
| 44 | // Tables created by sql file (without prefix!) |
|---|
| 45 | $modversion['tables'][0] = "partners"; |
|---|
| 46 | |
|---|
| 47 | // Admin things |
|---|
| 48 | $modversion['hasAdmin'] = 1; |
|---|
| 49 | $modversion['adminindex'] = "admin/index.php"; |
|---|
| 50 | $modversion['adminmenu'] = "admin/menu.php"; |
|---|
| 51 | |
|---|
| 52 | // Blocks |
|---|
| 53 | $modversion['blocks'][1]['file'] = "partners.php"; |
|---|
| 54 | $modversion['blocks'][1]['name'] = _MI_PARTNERS_NAME; |
|---|
| 55 | $modversion['blocks'][1]['description'] = _MI_PARTNERS_DESC; |
|---|
| 56 | $modversion['blocks'][1]['show_func'] = "b_xoopsPartners_show"; |
|---|
| 57 | $modversion['blocks'][1]['edit_func'] = "b_xoopsPartners_edit"; |
|---|
| 58 | $modversion['blocks'][1]['options'] = "1|1|1|1|1|hits|DESC"; |
|---|
| 59 | $modversion['blocks'][1]['template'] = 'xoopspartners_block_site.html'; |
|---|
| 60 | |
|---|
| 61 | // Menu |
|---|
| 62 | $modversion['hasMain'] = 1; |
|---|
| 63 | |
|---|
| 64 | // Templates |
|---|
| 65 | $modversion['templates'][1]['file'] = 'xoopspartners_index.html'; |
|---|
| 66 | $modversion['templates'][1]['description'] = 'Partners main Screen'; |
|---|
| 67 | $modversion['templates'][2]['file'] = 'xoopspartners_join.html'; |
|---|
| 68 | $modversion['templates'][2]['description'] = 'Shows Join to the partners Form'; |
|---|
| 69 | |
|---|
| 70 | // Config Settings (only for modules that need config settings generated automatically) |
|---|
| 71 | |
|---|
| 72 | // name of config option for accessing its specified value. i.e. $xoopsModuleConfig['storyhome'] |
|---|
| 73 | $modversion['config'][1]['name'] = 'cookietime'; |
|---|
| 74 | |
|---|
| 75 | // title of this config option displayed in config settings form |
|---|
| 76 | $modversion['config'][1]['title'] = '_MI_RECLICK'; |
|---|
| 77 | $modversion['config'][1]['description'] = ''; |
|---|
| 78 | |
|---|
| 79 | // form element type used in config form for this option. can be one of either textbox, textarea, select, select_multi, yesno, group, group_multi |
|---|
| 80 | $modversion['config'][1]['formtype'] = 'select'; |
|---|
| 81 | |
|---|
| 82 | // value type of this config option. can be one of either int, text, float, array, or other |
|---|
| 83 | // form type of 'group_multi', 'select_multi' must always be 'array' |
|---|
| 84 | // form type of 'yesno', 'group' must be always be 'int' |
|---|
| 85 | $modversion['config'][1]['valuetype'] = 'int'; |
|---|
| 86 | |
|---|
| 87 | // the default value for this option |
|---|
| 88 | // ignore it if no default |
|---|
| 89 | // 'yesno' formtype must be either 0(no) or 1(yes) |
|---|
| 90 | $modversion['config'][1]['default'] = 86400; |
|---|
| 91 | $modversion['config'][1]['options'] = array('_MI_HOUR' => '3600','_MI_3HOURS' => '10800','_MI_5HOURS' => '18000','_MI_10HOURS' => '36000','_MI_DAY' => '86400'); |
|---|
| 92 | |
|---|
| 93 | $modversion['config'][2]['name'] = 'modlimit'; |
|---|
| 94 | $modversion['config'][2]['title'] = '_MI_MLIMIT'; |
|---|
| 95 | $modversion['config'][2]['description'] = '_MI_MLIMITDSC'; |
|---|
| 96 | $modversion['config'][2]['formtype'] = 'textbox'; |
|---|
| 97 | $modversion['config'][2]['valuetype'] = 'int'; |
|---|
| 98 | $modversion['config'][2]['default'] = 5; |
|---|
| 99 | |
|---|
| 100 | $modversion['config'][3]['name'] = 'modshow'; |
|---|
| 101 | $modversion['config'][3]['title'] = '_MI_MSHOW'; |
|---|
| 102 | $modversion['config'][3]['description'] = '_MI_MSHOWDSC'; |
|---|
| 103 | $modversion['config'][3]['formtype'] = 'select'; |
|---|
| 104 | $modversion['config'][3]['valuetype'] = 'int'; |
|---|
| 105 | $modversion['config'][3]['default'] = 1; |
|---|
| 106 | $modversion['config'][3]['options'] = array('_MI_IMAGES' => 1, '_MI_TEXT' => 2, '_MI_BOTH' => 3); |
|---|
| 107 | |
|---|
| 108 | $modversion['config'][4]['name'] = 'modorder'; |
|---|
| 109 | $modversion['config'][4]['title'] = '_MI_MORDER'; |
|---|
| 110 | $modversion['config'][4]['description'] = '_MI_MORDERDSC'; |
|---|
| 111 | $modversion['config'][4]['formtype'] = 'select'; |
|---|
| 112 | $modversion['config'][4]['valuetype'] = 'text'; |
|---|
| 113 | $modversion['config'][4]['default'] = 'hits'; |
|---|
| 114 | $modversion['config'][4]['options'] = array('_MI_ID' => 'id', '_MI_HITS' => 'hits', '_MI_TITLE' => 'title', '_MI_WEIGHT' => 'weight'); |
|---|
| 115 | |
|---|
| 116 | $modversion['config'][5]['name'] = 'modorderd'; |
|---|
| 117 | $modversion['config'][5]['title'] = '_MI_MORDER'; |
|---|
| 118 | $modversion['config'][5]['description'] = '_MI_MORDERDSC'; |
|---|
| 119 | $modversion['config'][5]['formtype'] = 'select'; |
|---|
| 120 | $modversion['config'][5]['valuetype'] = 'text'; |
|---|
| 121 | $modversion['config'][5]['default'] = 'DESC'; |
|---|
| 122 | $modversion['config'][5]['options'] = array('_ASCENDING' => 'ASC', '_DESCENDING' => 'DESC'); |
|---|
| 123 | ?> |
|---|