| 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_NEWS_NAME; |
|---|
| 28 | $modversion['version'] = 1.1; |
|---|
| 29 | $modversion['description'] = _MI_NEWS_DESC; |
|---|
| 30 | $modversion['credits'] = "The XOOPS Project"; |
|---|
| 31 | $modversion['help'] = "news.html"; |
|---|
| 32 | $modversion['license'] = "GPL see LICENSE"; |
|---|
| 33 | $modversion['official'] = 1; |
|---|
| 34 | $modversion['image'] = "images/news_slogo.png"; |
|---|
| 35 | $modversion['dirname'] = "news"; |
|---|
| 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] = "stories"; |
|---|
| 44 | $modversion['tables'][1] = "topics"; |
|---|
| 45 | |
|---|
| 46 | // Admin things |
|---|
| 47 | $modversion['hasAdmin'] = 1; |
|---|
| 48 | $modversion['adminindex'] = "admin/index.php"; |
|---|
| 49 | $modversion['adminmenu'] = "admin/menu.php"; |
|---|
| 50 | |
|---|
| 51 | // Templates |
|---|
| 52 | $modversion['templates'][1]['file'] = 'news_archive.html'; |
|---|
| 53 | $modversion['templates'][1]['description'] = ''; |
|---|
| 54 | $modversion['templates'][2]['file'] = 'news_article.html'; |
|---|
| 55 | $modversion['templates'][2]['description'] = ''; |
|---|
| 56 | $modversion['templates'][3]['file'] = 'news_index.html'; |
|---|
| 57 | $modversion['templates'][3]['description'] = ''; |
|---|
| 58 | $modversion['templates'][4]['file'] = 'news_item.html'; |
|---|
| 59 | $modversion['templates'][4]['description'] = ''; |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | // Blocks |
|---|
| 63 | $modversion['blocks'][1]['file'] = "news_topics.php"; |
|---|
| 64 | $modversion['blocks'][1]['name'] = _MI_NEWS_BNAME1; |
|---|
| 65 | $modversion['blocks'][1]['description'] = "Shows news topics"; |
|---|
| 66 | $modversion['blocks'][1]['show_func'] = "b_news_topics_show"; |
|---|
| 67 | $modversion['blocks'][1]['template'] = 'news_block_topics.html'; |
|---|
| 68 | |
|---|
| 69 | $modversion['blocks'][2]['file'] = "news_bigstory.php"; |
|---|
| 70 | $modversion['blocks'][2]['name'] = _MI_NEWS_BNAME3; |
|---|
| 71 | $modversion['blocks'][2]['description'] = "Shows most read story of the day"; |
|---|
| 72 | $modversion['blocks'][2]['show_func'] = "b_news_bigstory_show"; |
|---|
| 73 | $modversion['blocks'][2]['template'] = 'news_block_bigstory.html'; |
|---|
| 74 | |
|---|
| 75 | $modversion['blocks'][3]['file'] = "news_top.php"; |
|---|
| 76 | $modversion['blocks'][3]['name'] = _MI_NEWS_BNAME4; |
|---|
| 77 | $modversion['blocks'][3]['description'] = "Shows top read news articles"; |
|---|
| 78 | $modversion['blocks'][3]['show_func'] = "b_news_top_show"; |
|---|
| 79 | $modversion['blocks'][3]['edit_func'] = "b_news_top_edit"; |
|---|
| 80 | $modversion['blocks'][3]['options'] = "counter|10|25"; |
|---|
| 81 | $modversion['blocks'][3]['template'] = 'news_block_top.html'; |
|---|
| 82 | |
|---|
| 83 | $modversion['blocks'][4]['file'] = "news_top.php"; |
|---|
| 84 | $modversion['blocks'][4]['name'] = _MI_NEWS_BNAME5; |
|---|
| 85 | $modversion['blocks'][4]['description'] = "Shows recent articles"; |
|---|
| 86 | $modversion['blocks'][4]['show_func'] = "b_news_top_show"; |
|---|
| 87 | $modversion['blocks'][4]['edit_func'] = "b_news_top_edit"; |
|---|
| 88 | $modversion['blocks'][4]['options'] = "published|10|25"; |
|---|
| 89 | $modversion['blocks'][4]['template'] = 'news_block_new.html'; |
|---|
| 90 | |
|---|
| 91 | // Menu |
|---|
| 92 | $modversion['hasMain'] = 1; |
|---|
| 93 | $modversion['sub'][1]['name'] = _MI_NEWS_SMNAME1; |
|---|
| 94 | $modversion['sub'][1]['url'] = "submit.php"; |
|---|
| 95 | $modversion['sub'][2]['name'] = _MI_NEWS_SMNAME2; |
|---|
| 96 | $modversion['sub'][2]['url'] = "archive.php"; |
|---|
| 97 | |
|---|
| 98 | // Search |
|---|
| 99 | $modversion['hasSearch'] = 1; |
|---|
| 100 | $modversion['search']['file'] = "include/search.inc.php"; |
|---|
| 101 | $modversion['search']['func'] = "news_search"; |
|---|
| 102 | |
|---|
| 103 | // Comments |
|---|
| 104 | $modversion['hasComments'] = 1; |
|---|
| 105 | $modversion['comments']['pageName'] = 'article.php'; |
|---|
| 106 | $modversion['comments']['itemName'] = 'storyid'; |
|---|
| 107 | // Comment callback functions |
|---|
| 108 | $modversion['comments']['callbackFile'] = 'include/comment_functions.php'; |
|---|
| 109 | $modversion['comments']['callback']['approve'] = 'news_com_approve'; |
|---|
| 110 | $modversion['comments']['callback']['update'] = 'news_com_update'; |
|---|
| 111 | |
|---|
| 112 | // Config Settings (only for modules that need config settings generated automatically) |
|---|
| 113 | |
|---|
| 114 | // name of config option for accessing its specified value. i.e. $xoopsModuleConfig['storyhome'] |
|---|
| 115 | $modversion['config'][1]['name'] = 'storyhome'; |
|---|
| 116 | |
|---|
| 117 | // title of this config option displayed in config settings form |
|---|
| 118 | $modversion['config'][1]['title'] = '_MI_STORYHOME'; |
|---|
| 119 | |
|---|
| 120 | // description of this config option displayed under title |
|---|
| 121 | $modversion['config'][1]['description'] = '_MI_STORYHOMEDSC'; |
|---|
| 122 | |
|---|
| 123 | // form element type used in config form for this option. can be one of either textbox, textarea, select, select_multi, yesno, group, group_multi |
|---|
| 124 | $modversion['config'][1]['formtype'] = 'select'; |
|---|
| 125 | |
|---|
| 126 | // value type of this config option. can be one of either int, text, float, array, or other |
|---|
| 127 | // form type of group_multi, select_multi must always be value type of array |
|---|
| 128 | $modversion['config'][1]['valuetype'] = 'int'; |
|---|
| 129 | |
|---|
| 130 | // the default value for this option |
|---|
| 131 | // ignore it if no default |
|---|
| 132 | // 'yesno' formtype must be either 0(no) or 1(yes) |
|---|
| 133 | $modversion['config'][1]['default'] = 5; |
|---|
| 134 | |
|---|
| 135 | // options to be displayed in selection box |
|---|
| 136 | // required and valid for 'select' or 'select_multi' formtype option only |
|---|
| 137 | // language constants can be used for array key, otherwise use integer |
|---|
| 138 | $modversion['config'][1]['options'] = array('5' => 5, '10' => 10, '15' => 15, '20' => 20, '25' => 25, '30' => 30); |
|---|
| 139 | |
|---|
| 140 | /* |
|---|
| 141 | $modversion['config'][2]['name'] = 'notifysubmit'; |
|---|
| 142 | $modversion['config'][2]['title'] = '_MI_NOTIFYSUBMIT'; |
|---|
| 143 | $modversion['config'][2]['description'] = '_MI_NOTIFYSUBMITDSC'; |
|---|
| 144 | $modversion['config'][2]['formtype'] = 'yesno'; |
|---|
| 145 | $modversion['config'][2]['valuetype'] = 'int'; |
|---|
| 146 | $modversion['config'][2]['default'] = 1; |
|---|
| 147 | */ |
|---|
| 148 | |
|---|
| 149 | $modversion['config'][3]['name'] = 'displaynav'; |
|---|
| 150 | $modversion['config'][3]['title'] = '_MI_DISPLAYNAV'; |
|---|
| 151 | $modversion['config'][3]['description'] = '_MI_DISPLAYNAVDSC'; |
|---|
| 152 | $modversion['config'][3]['formtype'] = 'yesno'; |
|---|
| 153 | $modversion['config'][3]['valuetype'] = 'int'; |
|---|
| 154 | $modversion['config'][3]['default'] = 1; |
|---|
| 155 | |
|---|
| 156 | $modversion['config'][4]['name'] = 'anonpost'; |
|---|
| 157 | $modversion['config'][4]['title'] = '_MI_ANONPOST'; |
|---|
| 158 | $modversion['config'][4]['description'] = ''; |
|---|
| 159 | $modversion['config'][4]['formtype'] = 'yesno'; |
|---|
| 160 | $modversion['config'][4]['valuetype'] = 'int'; |
|---|
| 161 | $modversion['config'][4]['default'] = 0; |
|---|
| 162 | |
|---|
| 163 | $modversion['config'][5]['name'] = 'autoapprove'; |
|---|
| 164 | $modversion['config'][5]['title'] = '_MI_AUTOAPPROVE'; |
|---|
| 165 | $modversion['config'][5]['description'] = '_MI_AUTOAPPROVEDSC'; |
|---|
| 166 | $modversion['config'][5]['formtype'] = 'yesno'; |
|---|
| 167 | $modversion['config'][5]['valuetype'] = 'int'; |
|---|
| 168 | $modversion['config'][5]['default'] = 0; |
|---|
| 169 | |
|---|
| 170 | // Notification |
|---|
| 171 | |
|---|
| 172 | $modversion['hasNotification'] = 1; |
|---|
| 173 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
|---|
| 174 | $modversion['notification']['lookup_func'] = 'news_notify_iteminfo'; |
|---|
| 175 | |
|---|
| 176 | $modversion['notification']['category'][1]['name'] = 'global'; |
|---|
| 177 | $modversion['notification']['category'][1]['title'] = _MI_NEWS_GLOBAL_NOTIFY; |
|---|
| 178 | $modversion['notification']['category'][1]['description'] = _MI_NEWS_GLOBAL_NOTIFYDSC; |
|---|
| 179 | $modversion['notification']['category'][1]['subscribe_from'] = array('index.php', 'article.php'); |
|---|
| 180 | |
|---|
| 181 | $modversion['notification']['category'][2]['name'] = 'story'; |
|---|
| 182 | $modversion['notification']['category'][2]['title'] = _MI_NEWS_STORY_NOTIFY; |
|---|
| 183 | $modversion['notification']['category'][2]['description'] = _MI_NEWS_STORY_NOTIFYDSC; |
|---|
| 184 | $modversion['notification']['category'][2]['subscribe_from'] = array('article.php'); |
|---|
| 185 | $modversion['notification']['category'][2]['item_name'] = 'storyid'; |
|---|
| 186 | $modversion['notification']['category'][2]['allow_bookmark'] = 1; |
|---|
| 187 | |
|---|
| 188 | $modversion['notification']['event'][1]['name'] = 'new_category'; |
|---|
| 189 | $modversion['notification']['event'][1]['category'] = 'global'; |
|---|
| 190 | $modversion['notification']['event'][1]['title'] = _MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFY; |
|---|
| 191 | $modversion['notification']['event'][1]['caption'] = _MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYCAP; |
|---|
| 192 | $modversion['notification']['event'][1]['description'] = _MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYDSC; |
|---|
| 193 | $modversion['notification']['event'][1]['mail_template'] = 'global_newcategory_notify'; |
|---|
| 194 | $modversion['notification']['event'][1]['mail_subject'] = _MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYSBJ; |
|---|
| 195 | |
|---|
| 196 | $modversion['notification']['event'][2]['name'] = 'story_submit'; |
|---|
| 197 | $modversion['notification']['event'][2]['category'] = 'global'; |
|---|
| 198 | $modversion['notification']['event'][2]['admin_only'] = 1; |
|---|
| 199 | $modversion['notification']['event'][2]['title'] = _MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFY; |
|---|
| 200 | $modversion['notification']['event'][2]['caption'] = _MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYCAP; |
|---|
| 201 | $modversion['notification']['event'][2]['description'] = _MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYDSC; |
|---|
| 202 | $modversion['notification']['event'][2]['mail_template'] = 'global_storysubmit_notify'; |
|---|
| 203 | $modversion['notification']['event'][2]['mail_subject'] = _MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYSBJ; |
|---|
| 204 | |
|---|
| 205 | $modversion['notification']['event'][3]['name'] = 'new_story'; |
|---|
| 206 | $modversion['notification']['event'][3]['category'] = 'global'; |
|---|
| 207 | $modversion['notification']['event'][3]['title'] = _MI_NEWS_GLOBAL_NEWSTORY_NOTIFY; |
|---|
| 208 | $modversion['notification']['event'][3]['caption'] = _MI_NEWS_GLOBAL_NEWSTORY_NOTIFYCAP; |
|---|
| 209 | $modversion['notification']['event'][3]['description'] = _MI_NEWS_GLOBAL_NEWSTORY_NOTIFYDSC; |
|---|
| 210 | $modversion['notification']['event'][3]['mail_template'] = 'global_newstory_notify'; |
|---|
| 211 | $modversion['notification']['event'][3]['mail_subject'] = _MI_NEWS_GLOBAL_NEWSTORY_NOTIFYSBJ; |
|---|
| 212 | |
|---|
| 213 | $modversion['notification']['event'][4]['name'] = 'approve'; |
|---|
| 214 | $modversion['notification']['event'][4]['category'] = 'story'; |
|---|
| 215 | $modversion['notification']['event'][4]['invisible'] = 1; |
|---|
| 216 | $modversion['notification']['event'][4]['title'] = _MI_NEWS_STORY_APPROVE_NOTIFY; |
|---|
| 217 | $modversion['notification']['event'][4]['caption'] = _MI_NEWS_STORY_APPROVE_NOTIFYCAP; |
|---|
| 218 | $modversion['notification']['event'][4]['description'] = _MI_NEWS_STORY_APPROVE_NOTIFYDSC; |
|---|
| 219 | $modversion['notification']['event'][4]['mail_template'] = 'story_approve_notify'; |
|---|
| 220 | $modversion['notification']['event'][4]['mail_subject'] = _MI_NEWS_STORY_APPROVE_NOTIFYSBJ; |
|---|
| 221 | ?> |
|---|