| 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 | |
|---|
| 28 | $modversion['name'] = _MI_NEWBB_NAME; |
|---|
| 29 | $modversion['version'] = 1.00; |
|---|
| 30 | $modversion['description'] = _MI_NEWBB_DESC; |
|---|
| 31 | $modversion['credits'] = "Kazumi Ono<br />( http://www.myweb.ne.jp/ )"; |
|---|
| 32 | $modversion['author'] = "Original admin section (phpBB 1.4.4) by<br />The phpBB Group<br />( http://www.phpbb.com/ )<br />"; |
|---|
| 33 | $modversion['help'] = "newbb.html"; |
|---|
| 34 | $modversion['license'] = "GPL see LICENSE"; |
|---|
| 35 | $modversion['official'] = 1; |
|---|
| 36 | $modversion['image'] = "images/xoopsbb_slogo.png"; |
|---|
| 37 | $modversion['dirname'] = "newbb"; |
|---|
| 38 | |
|---|
| 39 | // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) |
|---|
| 40 | // All tables should not have any prefix! |
|---|
| 41 | $modversion['sqlfile']['mysql'] = "sql/mysql.sql"; |
|---|
| 42 | //$modversion['sqlfile']['postgresql'] = "sql/pgsql.sql"; |
|---|
| 43 | |
|---|
| 44 | // Tables created by sql file (without prefix!) |
|---|
| 45 | $modversion['tables'][0] = "bb_categories"; |
|---|
| 46 | $modversion['tables'][1] = "bb_forum_access"; |
|---|
| 47 | $modversion['tables'][2] = "bb_forum_mods"; |
|---|
| 48 | $modversion['tables'][3] = "bb_forums"; |
|---|
| 49 | $modversion['tables'][4] = "bb_posts"; |
|---|
| 50 | $modversion['tables'][5] = "bb_posts_text"; |
|---|
| 51 | $modversion['tables'][6] = "bb_topics"; |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | // Admin things |
|---|
| 55 | $modversion['hasAdmin'] = 1; |
|---|
| 56 | $modversion['adminindex'] = "admin/index.php"; |
|---|
| 57 | $modversion['adminmenu'] = "admin/menu.php"; |
|---|
| 58 | |
|---|
| 59 | // Menu |
|---|
| 60 | $modversion['hasMain'] = 1; |
|---|
| 61 | |
|---|
| 62 | // Templates |
|---|
| 63 | $modversion['templates'][1]['file'] = 'newbb_index.html'; |
|---|
| 64 | $modversion['templates'][1]['description'] = ''; |
|---|
| 65 | $modversion['templates'][2]['file'] = 'newbb_search.html'; |
|---|
| 66 | $modversion['templates'][2]['description'] = ''; |
|---|
| 67 | $modversion['templates'][3]['file'] = 'newbb_searchresults.html'; |
|---|
| 68 | $modversion['templates'][3]['description'] = ''; |
|---|
| 69 | $modversion['templates'][4]['file'] = 'newbb_thread.html'; |
|---|
| 70 | $modversion['templates'][4]['description'] = ''; |
|---|
| 71 | $modversion['templates'][5]['file'] = 'newbb_viewforum.html'; |
|---|
| 72 | $modversion['templates'][5]['description'] = ''; |
|---|
| 73 | $modversion['templates'][6]['file'] = 'newbb_viewtopic_flat.html'; |
|---|
| 74 | $modversion['templates'][6]['description'] = ''; |
|---|
| 75 | $modversion['templates'][7]['file'] = 'newbb_viewtopic_thread.html'; |
|---|
| 76 | $modversion['templates'][7]['description'] = ''; |
|---|
| 77 | |
|---|
| 78 | // Blocks |
|---|
| 79 | $modversion['blocks'][1]['file'] = "newbb_new.php"; |
|---|
| 80 | $modversion['blocks'][1]['name'] = _MI_NEWBB_BNAME1; |
|---|
| 81 | $modversion['blocks'][1]['description'] = "Shows recent topics in the forums"; |
|---|
| 82 | $modversion['blocks'][1]['show_func'] = "b_newbb_new_show"; |
|---|
| 83 | $modversion['blocks'][1]['options'] = "10|1|time"; |
|---|
| 84 | $modversion['blocks'][1]['edit_func'] = "b_newbb_new_edit"; |
|---|
| 85 | $modversion['blocks'][1]['template'] = 'newbb_block_new.html'; |
|---|
| 86 | |
|---|
| 87 | $modversion['blocks'][2]['file'] = "newbb_new.php"; |
|---|
| 88 | $modversion['blocks'][2]['name'] = _MI_NEWBB_BNAME2; |
|---|
| 89 | $modversion['blocks'][2]['description'] = "Shows most viewed topics in the forums"; |
|---|
| 90 | $modversion['blocks'][2]['show_func'] = "b_newbb_new_show"; |
|---|
| 91 | $modversion['blocks'][2]['options'] = "10|1|views"; |
|---|
| 92 | $modversion['blocks'][2]['edit_func'] = "b_newbb_new_edit"; |
|---|
| 93 | $modversion['blocks'][2]['template'] = 'newbb_block_top.html'; |
|---|
| 94 | |
|---|
| 95 | $modversion['blocks'][3]['file'] = "newbb_new.php"; |
|---|
| 96 | $modversion['blocks'][3]['name'] = _MI_NEWBB_BNAME3; |
|---|
| 97 | $modversion['blocks'][3]['description'] = "Shows most active topics in the forums"; |
|---|
| 98 | $modversion['blocks'][3]['show_func'] = "b_newbb_new_show"; |
|---|
| 99 | $modversion['blocks'][3]['options'] = "10|1|replies"; |
|---|
| 100 | $modversion['blocks'][3]['edit_func'] = "b_newbb_new_edit"; |
|---|
| 101 | $modversion['blocks'][3]['template'] = 'newbb_block_active.html'; |
|---|
| 102 | |
|---|
| 103 | $modversion['blocks'][4]['file'] = "newbb_new.php"; |
|---|
| 104 | $modversion['blocks'][4]['name'] = _MI_NEWBB_BNAME4; |
|---|
| 105 | $modversion['blocks'][4]['description'] = "Shows recent and private topics in the forums"; |
|---|
| 106 | $modversion['blocks'][4]['show_func'] = "b_newbb_new_private_show"; |
|---|
| 107 | $modversion['blocks'][4]['options'] = "10|1|time"; |
|---|
| 108 | $modversion['blocks'][4]['edit_func'] = "b_newbb_new_edit"; |
|---|
| 109 | $modversion['blocks'][4]['template'] = 'newbb_block_prv.html'; |
|---|
| 110 | |
|---|
| 111 | // Search |
|---|
| 112 | $modversion['hasSearch'] = 1; |
|---|
| 113 | $modversion['search']['file'] = "include/search.inc.php"; |
|---|
| 114 | $modversion['search']['func'] = "newbb_search"; |
|---|
| 115 | |
|---|
| 116 | // Smarty |
|---|
| 117 | $modversion['use_smarty'] = 1; |
|---|
| 118 | |
|---|
| 119 | // Notification |
|---|
| 120 | |
|---|
| 121 | $modversion['hasNotification'] = 1; |
|---|
| 122 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
|---|
| 123 | $modversion['notification']['lookup_func'] = 'newbb_notify_iteminfo'; |
|---|
| 124 | |
|---|
| 125 | $modversion['notification']['category'][1]['name'] = 'thread'; |
|---|
| 126 | $modversion['notification']['category'][1]['title'] = _MI_NEWBB_THREAD_NOTIFY; |
|---|
| 127 | $modversion['notification']['category'][1]['description'] = _MI_NEWBB_THREAD_NOTIFYDSC; |
|---|
| 128 | $modversion['notification']['category'][1]['subscribe_from'] = 'viewtopic.php'; |
|---|
| 129 | $modversion['notification']['category'][1]['item_name'] = 'topic_id'; |
|---|
| 130 | $modversion['notification']['category'][1]['allow_bookmark'] = 1; |
|---|
| 131 | |
|---|
| 132 | $modversion['notification']['category'][2]['name'] = 'forum'; |
|---|
| 133 | $modversion['notification']['category'][2]['title'] = _MI_NEWBB_FORUM_NOTIFY; |
|---|
| 134 | $modversion['notification']['category'][2]['description'] = _MI_NEWBB_FORUM_NOTIFYDSC; |
|---|
| 135 | $modversion['notification']['category'][2]['subscribe_from'] = array('viewtopic.php', 'viewforum.php'); |
|---|
| 136 | $modversion['notification']['category'][2]['item_name'] = 'forum'; |
|---|
| 137 | $modversion['notification']['category'][2]['allow_bookmark'] = 1; |
|---|
| 138 | |
|---|
| 139 | $modversion['notification']['category'][3]['name'] = 'global'; |
|---|
| 140 | $modversion['notification']['category'][3]['title'] = _MI_NEWBB_GLOBAL_NOTIFY; |
|---|
| 141 | $modversion['notification']['category'][3]['description'] = _MI_NEWBB_GLOBAL_NOTIFYDSC; |
|---|
| 142 | $modversion['notification']['category'][3]['subscribe_from'] = array('index.php', 'viewtopic.php', 'viewforum.php'); |
|---|
| 143 | |
|---|
| 144 | $modversion['notification']['event'][1]['name'] = 'new_post'; |
|---|
| 145 | $modversion['notification']['event'][1]['category'] = 'thread'; |
|---|
| 146 | $modversion['notification']['event'][1]['title'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFY; |
|---|
| 147 | $modversion['notification']['event'][1]['caption'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFYCAP; |
|---|
| 148 | $modversion['notification']['event'][1]['description'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFYDSC; |
|---|
| 149 | $modversion['notification']['event'][1]['mail_template'] = 'thread_newpost_notify'; |
|---|
| 150 | $modversion['notification']['event'][1]['mail_subject'] = _MI_NEWBB_THREAD_NEWPOST_NOTIFYSBJ; |
|---|
| 151 | |
|---|
| 152 | $modversion['notification']['event'][2]['name'] = 'new_thread'; |
|---|
| 153 | $modversion['notification']['event'][2]['category'] = 'forum'; |
|---|
| 154 | $modversion['notification']['event'][2]['title'] = _MI_NEWBB_FORUM_NEWTHREAD_NOTIFY; |
|---|
| 155 | $modversion['notification']['event'][2]['caption'] = _MI_NEWBB_FORUM_NEWTHREAD_NOTIFYCAP; |
|---|
| 156 | $modversion['notification']['event'][2]['description'] = _MI_NEWBB_FORUM_NEWTHREAD_NOTIFYDSC; |
|---|
| 157 | $modversion['notification']['event'][2]['mail_template'] = 'forum_newthread_notify'; |
|---|
| 158 | $modversion['notification']['event'][2]['mail_subject'] = _MI_NEWBB_FORUM_NEWTHREAD_NOTIFYSBJ; |
|---|
| 159 | |
|---|
| 160 | $modversion['notification']['event'][3]['name'] = 'new_forum'; |
|---|
| 161 | $modversion['notification']['event'][3]['category'] = 'global'; |
|---|
| 162 | $modversion['notification']['event'][3]['title'] = _MI_NEWBB_GLOBAL_NEWFORUM_NOTIFY; |
|---|
| 163 | $modversion['notification']['event'][3]['caption'] = _MI_NEWBB_GLOBAL_NEWFORUM_NOTIFYCAP; |
|---|
| 164 | $modversion['notification']['event'][3]['description'] = _MI_NEWBB_GLOBAL_NEWFORUM_NOTIFYDSC; |
|---|
| 165 | $modversion['notification']['event'][3]['mail_template'] = 'global_newforum_notify'; |
|---|
| 166 | $modversion['notification']['event'][3]['mail_subject'] = _MI_NEWBB_GLOBAL_NEWFORUM_NOTIFYSBJ; |
|---|
| 167 | |
|---|
| 168 | $modversion['notification']['event'][4]['name'] = 'new_post'; |
|---|
| 169 | $modversion['notification']['event'][4]['category'] = 'global'; |
|---|
| 170 | $modversion['notification']['event'][4]['title'] = _MI_NEWBB_GLOBAL_NEWPOST_NOTIFY; |
|---|
| 171 | $modversion['notification']['event'][4]['caption'] = _MI_NEWBB_GLOBAL_NEWPOST_NOTIFYCAP; |
|---|
| 172 | $modversion['notification']['event'][4]['description'] = _MI_NEWBB_GLOBAL_NEWPOST_NOTIFYDSC; |
|---|
| 173 | $modversion['notification']['event'][4]['mail_template'] = 'global_newpost_notify'; |
|---|
| 174 | $modversion['notification']['event'][4]['mail_subject'] = _MI_NEWBB_GLOBAL_NEWPOST_NOTIFYSBJ; |
|---|
| 175 | |
|---|
| 176 | $modversion['notification']['event'][5]['name'] = 'new_post'; |
|---|
| 177 | $modversion['notification']['event'][5]['category'] = 'forum'; |
|---|
| 178 | $modversion['notification']['event'][5]['title'] = _MI_NEWBB_FORUM_NEWPOST_NOTIFY; |
|---|
| 179 | $modversion['notification']['event'][5]['caption'] = _MI_NEWBB_FORUM_NEWPOST_NOTIFYCAP; |
|---|
| 180 | $modversion['notification']['event'][5]['description'] = _MI_NEWBB_FORUM_NEWPOST_NOTIFYDSC; |
|---|
| 181 | $modversion['notification']['event'][5]['mail_template'] = 'forum_newpost_notify'; |
|---|
| 182 | $modversion['notification']['event'][5]['mail_subject'] = _MI_NEWBB_FORUM_NEWPOST_NOTIFYSBJ; |
|---|
| 183 | |
|---|
| 184 | $modversion['notification']['event'][6]['name'] = 'new_fullpost'; |
|---|
| 185 | $modversion['notification']['event'][6]['category'] = 'global'; |
|---|
| 186 | //$modversion['notification']['event'][6]['admin_only'] = 1; |
|---|
| 187 | $modversion['notification']['event'][6]['title'] = _MI_NEWBB_GLOBAL_NEWFULLPOST_NOTIFY; |
|---|
| 188 | $modversion['notification']['event'][6]['caption'] = _MI_NEWBB_GLOBAL_NEWFULLPOST_NOTIFYCAP; |
|---|
| 189 | $modversion['notification']['event'][6]['description'] = _MI_NEWBB_GLOBAL_NEWFULLPOST_NOTIFYDSC; |
|---|
| 190 | $modversion['notification']['event'][6]['mail_template'] = 'global_newfullpost_notify'; |
|---|
| 191 | $modversion['notification']['event'][6]['mail_subject'] = _MI_NEWBB_GLOBAL_NEWFULLPOST_NOTIFYSBJ; |
|---|
| 192 | |
|---|
| 193 | // mod uehara 2006/10/24 |
|---|
| 194 | /*$modversion['notification']['event'][7]['name'] = 'new_fullpost'; |
|---|
| 195 | $modversion['notification']['event'][7]['category'] = 'forum'; |
|---|
| 196 | $modversion['notification']['event'][7]['admin_only'] = 0; |
|---|
| 197 | $modversion['notification']['event'][7]['title'] = _MI_XHNEWBB_FORUM_NEWFULLPOST_NOTIFY; |
|---|
| 198 | $modversion['notification']['event'][7]['caption'] = _MI_XHNEWBB_FORUM_NEWFULLPOST_NOTIFYCAP; |
|---|
| 199 | $modversion['notification']['event'][7]['description'] = _MI_XHNEWBB_FORUM_NEWFULLPOST_NOTIFYDSC; |
|---|
| 200 | $modversion['notification']['event'][7]['mail_template'] = 'xh_forum_newfullpost_notify'; |
|---|
| 201 | $modversion['notification']['event'][7]['mail_subject'] = _MI_XHNEWBB_FORUM_NEWFULLPOST_NOTIFYSBJ; |
|---|
| 202 | */ |
|---|
| 203 | ?> |
|---|