mambax7 /
smartfaq
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * Module: SmartFAQ |
||
| 5 | * Author: The SmartFactory <www.smartfactory.ca> |
||
| 6 | * Licence: GNU |
||
| 7 | */ |
||
| 8 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
||
| 9 | |||
| 10 | $modversion['version'] = 1.12; |
||
| 11 | $modversion['module_status'] = 'RC 2'; |
||
| 12 | $modversion['release_date'] = '2017/02/25'; |
||
| 13 | $modversion['name'] = _MI_SF_MD_NAME; |
||
| 14 | $modversion['description'] = _MI_SF_MD_DESC; |
||
| 15 | $modversion['author'] = 'The SmartFactory | Xuups'; |
||
| 16 | $modversion['credits'] = 'w4z004, hsalazar, Carnuke, Mariuss, Mithrandir, phppp, Predator, GIJOE, outch, rowdie, Xvitry, Xavier & Catzwolf, trabis'; |
||
| 17 | $modversion['help'] = 'page=help'; |
||
| 18 | $modversion['license'] = 'GNU GPL 2.0 or later'; |
||
| 19 | $modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html'; |
||
| 20 | $modversion['official'] = 1; //1 indicates supported by XOOPS Dev Team, 0 means 3rd party supported |
||
| 21 | $modversion['image'] = 'assets/images/logoModule.png'; |
||
| 22 | $modversion['dirname'] = basename(__DIR__); |
||
| 23 | //$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin'; |
||
|
0 ignored issues
–
show
|
|||
| 24 | //$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16'; |
||
| 25 | //$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32'; |
||
| 26 | $modversion['modicons16'] = 'assets/images/icons/16'; |
||
| 27 | $modversion['modicons32'] = 'assets/images/icons/32'; |
||
| 28 | $modversion['release_file'] = XOOPS_URL . '/modules/' . $modversion['dirname'] . '/docs/changelog.txt'; |
||
| 29 | $modversion['module_website_url'] = 'www.xoops.org'; |
||
| 30 | $modversion['module_website_name'] = 'XOOPS'; |
||
| 31 | $modversion['min_php'] = '5.5'; |
||
| 32 | $modversion['min_xoops'] = '2.5.8'; |
||
| 33 | $modversion['min_admin'] = '1.2'; |
||
| 34 | $modversion['min_db'] = array('mysql' => '5.1'); |
||
| 35 | |||
| 36 | // Added by marcan for the About page in admin section |
||
| 37 | $modversion['developer_lead'] = 'marcan [Marc-André Lanciault]'; |
||
| 38 | $modversion['developer_contributor'] = 'w4z004, hsalazar, Carnuke, Mariuss, Mithrandir, phppp, Predator, GIJOE, outch, rowdie, Xvitry, Xavier & Catzwolf, trabis'; |
||
| 39 | $modversion['developer_website_url'] = 'http://www.xuups.com'; |
||
| 40 | $modversion['developer_website_name'] = 'Xuups'; |
||
| 41 | $modversion['developer_email'] = '[email protected]'; |
||
| 42 | $modversion['status_version'] = 'RC 2'; |
||
| 43 | $modversion['status'] = 'RC 2'; |
||
| 44 | $modversion['date'] = '2017-02-25'; |
||
| 45 | |||
| 46 | $modversion['warning'] = _MI_SF_WARNING_FINAL; |
||
| 47 | |||
| 48 | $modversion['demo_site_url'] = 'http://www.xuups.com/modules/smartfaq'; |
||
| 49 | $modversion['demo_site_name'] = 'Xuups'; |
||
| 50 | $modversion['support_site_url'] = 'http://www.xuups.com'; |
||
| 51 | $modversion['support_site_name'] = 'Xuups'; |
||
| 52 | $modversion['submit_bug'] = 'http://www.xuups.com/modules/xhelp'; |
||
| 53 | $modversion['submit_feature'] = 'http://www.xuups.com/modules/xhelp'; |
||
| 54 | |||
| 55 | $modversion['author_word'] = " |
||
| 56 | <b>SmartFAQ</b> is the result of multiple ideas from multiple people and a work of outstanding |
||
| 57 | collaboration. It all began with Herko talking to me about a 'contextual help system' for XOOPS, |
||
| 58 | inspired by the one on the Developers Forge. I found that idea more than brilliant, so I decided |
||
| 59 | to start coding the thing ! |
||
| 60 | <br><br>As I was new in the developers world, I had to look for quality ideas that had already been |
||
| 61 | established and represented the best in Xoops programming. I chose the Soapbox module by hsalazar |
||
| 62 | (Horacio Salazar) which I had found absolutely amazing ! So, many thanks to Horacio, as his work offered |
||
| 63 | considerable inspiration. I would also like to thank him for helping me establish the workflow of |
||
| 64 | the SmartFAQ module, as well as for helping me in all the development process. |
||
| 65 | <br><br>When about half the coding was done, I met a special Xoopser who would become an important |
||
| 66 | player in this project : w4z004 (Sergio Kohl). Many thanks to you w4z004, as you multiplied many |
||
| 67 | times the possibilities and potential of this module. By testing it over and over again, by |
||
| 68 | submitting the code to be checked by security experts and other advanced developers, by suggesting |
||
| 69 | more features, by encouraging me when things were not going the way I wanted and by doing a thousand |
||
| 70 | other things for this project. Thank you, thank you, thank you ! |
||
| 71 | <br><br>Special thanks also to Mithrandir (Jan Pedersen) for all the 'little' answers to my 'little' |
||
| 72 | questions (lol). You made my life so much easier by helping me see things more clearly ! |
||
| 73 | <br><br>I would also like to thank Mariuss (Marius Scurtescu) for adapting <b>FAQ for New Xoopsers |
||
| 74 | </b> for SmartFAQ, for developing the import scripts, for teaching me the CVS (lol) as well as for |
||
| 75 | suggesting a lot of interesting improvements along the way. |
||
| 76 | <br><br>Another special thank-you to Carnuke (Richard Strauss) for writing such impressive |
||
| 77 | documentation for this module. You have now set up a new quality standard for XOOPS module |
||
| 78 | documentation. I'm confident that all the Xoopsers of the world are gratefull for this :-) ! |
||
| 79 | <br><br>Finally, thanks to all the people who made this module possible : Herko, phppp, Solo71, |
||
| 80 | Yoyo2021, Christian, Hervé and so many others ! Also, a final thank to Zabou who has been |
||
| 81 | really understanding during all the hours I spent behind my laptop developing SmartFAQ. |
||
| 82 | <br><br>So I guess this is it, I could thank the Academy, my Mother and Father but that would be |
||
| 83 | pushing it I think ! (lol) |
||
| 84 | <br><br>Enjoy <b>SmartFAQ</b> (by marcan)! |
||
| 85 | "; |
||
| 86 | |||
| 87 | // Admin things |
||
| 88 | $modversion['hasAdmin'] = 1; |
||
| 89 | $modversion['system_menu'] = 1; |
||
| 90 | $modversion['adminindex'] = 'admin/index.php'; |
||
| 91 | $modversion['adminmenu'] = 'admin/menu.php'; |
||
| 92 | |||
| 93 | // ------------------- Mysql ------------------- // |
||
| 94 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 95 | |||
| 96 | // Tables created by sql file (without prefix!) |
||
| 97 | $modversion['tables'] = [ |
||
| 98 | $moduleDirName . '_' . 'categories', |
||
| 99 | $moduleDirName . '_' . 'faq', |
||
| 100 | $moduleDirName . '_' . 'answers' |
||
| 101 | ]; |
||
| 102 | |||
| 103 | // Search |
||
| 104 | $modversion['hasSearch'] = 1; |
||
| 105 | $modversion['search']['file'] = 'include/search.inc.php'; |
||
| 106 | $modversion['search']['func'] = 'smartfaq_search'; |
||
| 107 | // Menu |
||
| 108 | $modversion['hasMain'] = 1; |
||
| 109 | |||
| 110 | $modversion['onInstall'] = 'include/onupdate.inc.php'; |
||
| 111 | $modversion['onUpdate'] = 'include/onupdate.inc.php'; |
||
| 112 | |||
| 113 | // ------------------- Help files ------------------- // |
||
| 114 | $modversion['helpsection'] = [ |
||
| 115 | ['name' => _MI_SF_OVERVIEW, 'link' => 'page=help'], |
||
| 116 | ['name' => _MI_SF_DISCLAIMER, 'link' => 'page=disclaimer'], |
||
| 117 | ['name' => _MI_SF_LICENSE, 'link' => 'page=license'], |
||
| 118 | ['name' => _MI_SF_SUPPORT, 'link' => 'page=support'], |
||
| 119 | ]; |
||
| 120 | |||
| 121 | global $xoopsModule; |
||
| 122 | |||
| 123 | if (isset($xoopsModule) && is_object($xoopsModule) && $xoopsModule->getVar('dirname') == $modversion['dirname']) { |
||
| 124 | global $xoopsModuleConfig, $xoopsUser; |
||
| 125 | |||
| 126 | $isAdmin = false; |
||
| 127 | if (!empty($xoopsUser) && is_object($xoopsModule)) { |
||
| 128 | $isAdmin = $xoopsUser->isAdmin($xoopsModule->getVar('mid')); |
||
| 129 | } |
||
| 130 | |||
| 131 | if ($smartModule = $xoopsModule) { |
||
| 132 | $smartConfig = $xoopsModuleConfig; |
||
| 133 | // Add the Submit new faq button |
||
| 134 | View Code Duplication | if ($isAdmin |
|
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. Loading history...
|
|||
| 135 | || (isset($smartConfig['allowsubmit']) && $smartConfig['allowsubmit'] == 1 |
||
| 136 | && (is_object($xoopsUser) |
||
| 137 | || (isset($smartConfig['anonpost']) |
||
| 138 | && $smartConfig['anonpost'] == 1))) |
||
| 139 | ) { |
||
| 140 | $modversion['sub'][1]['name'] = _MI_SF_SUB_SMNAME1; |
||
| 141 | $modversion['sub'][1]['url'] = 'submit.php?op=add'; |
||
| 142 | } |
||
| 143 | // Add the Request new faq |
||
| 144 | View Code Duplication | if ($isAdmin |
|
|
0 ignored issues
–
show
This code seems to be duplicated across your project.
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation. You can also find more detailed suggestions in the “Code” section of your repository. Loading history...
|
|||
| 145 | || (isset($smartConfig['allowrequest']) && $smartConfig['allowrequest'] == 1 |
||
| 146 | && (is_object($xoopsUser) |
||
| 147 | || (isset($smartConfig['anonpost']) |
||
| 148 | && $smartConfig['anonpost'] == 1))) |
||
| 149 | ) { |
||
| 150 | $modversion['sub'][2]['name'] = _MI_SF_SUB_SMNAME2; |
||
| 151 | $modversion['sub'][2]['url'] = 'request.php?op=add'; |
||
| 152 | } |
||
| 153 | |||
| 154 | include_once XOOPS_ROOT_PATH . '/modules/smartfaq/include/functions.php'; |
||
| 155 | |||
| 156 | // Creating the FAQ handler object |
||
| 157 | $faqHandler = sf_gethandler('faq'); |
||
| 158 | |||
| 159 | if ($faqHandler->getFaqsCount(-1, _SF_STATUS_OPENED) > 0) { |
||
| 160 | $modversion['sub'][3]['name'] = _MI_SF_SUB_SMNAME3; |
||
| 161 | $modversion['sub'][3]['url'] = 'open_index.php'; |
||
| 162 | } |
||
| 163 | } |
||
| 164 | } |
||
| 165 | |||
| 166 | $modversion['blocks'][1]['file'] = 'faqs_new.php'; |
||
| 167 | $modversion['blocks'][1]['name'] = _MI_SF_ARTSNEW; |
||
| 168 | $modversion['blocks'][1]['description'] = 'Shows new faqs'; |
||
| 169 | $modversion['blocks'][1]['show_func'] = 'b_faqs_new_show'; |
||
| 170 | $modversion['blocks'][1]['edit_func'] = 'b_faqs_new_edit'; |
||
| 171 | $modversion['blocks'][1]['options'] = '0|datesub|5|65|1'; |
||
| 172 | $modversion['blocks'][1]['template'] = 'faqs_new.tpl'; |
||
| 173 | |||
| 174 | $modversion['blocks'][2]['file'] = 'faqs_recent.php'; |
||
| 175 | $modversion['blocks'][2]['name'] = _MI_SF_RECENTFAQS; |
||
| 176 | $modversion['blocks'][2]['description'] = 'Shows recent faqs'; |
||
| 177 | $modversion['blocks'][2]['show_func'] = 'b_faqs_recent_show'; |
||
| 178 | $modversion['blocks'][2]['edit_func'] = 'b_faqs_recent_edit'; |
||
| 179 | $modversion['blocks'][2]['options'] = '0|datesub|5|65'; |
||
| 180 | $modversion['blocks'][2]['template'] = 'faqs_recent.tpl'; |
||
| 181 | |||
| 182 | $modversion['blocks'][3]['file'] = 'faqs_context.php'; |
||
| 183 | $modversion['blocks'][3]['name'] = _MI_SF_ARTSCONTEXT; |
||
| 184 | $modversion['blocks'][3]['description'] = 'Shows contextual faqs'; |
||
| 185 | $modversion['blocks'][3]['show_func'] = 'b_faqs_context_show'; |
||
| 186 | $modversion['blocks'][3]['edit_func'] = 'b_faqs_context_edit'; |
||
| 187 | $modversion['blocks'][3]['options'] = '5'; |
||
| 188 | $modversion['blocks'][3]['template'] = 'faqs_context.tpl'; |
||
| 189 | |||
| 190 | $modversion['blocks'][4]['file'] = 'faqs_random_how.php'; |
||
| 191 | $modversion['blocks'][4]['name'] = _MI_SF_ARTSRANDOM_HOW; |
||
| 192 | $modversion['blocks'][4]['description'] = "Shows a random 'How do I' faq"; |
||
| 193 | $modversion['blocks'][4]['show_func'] = 'b_faqs_random_how_show'; |
||
| 194 | $modversion['blocks'][4]['template'] = 'faqs_random_how.tpl'; |
||
| 195 | |||
| 196 | $modversion['blocks'][5]['file'] = 'faqs_random_diduno.php'; |
||
| 197 | $modversion['blocks'][5]['name'] = _MI_SF_ARTSRANDOM_DIDUNO; |
||
| 198 | $modversion['blocks'][5]['description'] = "Shows a random 'Did You Know' faq"; |
||
| 199 | $modversion['blocks'][5]['show_func'] = 'b_faqs_random_diduno_show'; |
||
| 200 | $modversion['blocks'][5]['template'] = 'faqs_random_diduno.tpl'; |
||
| 201 | |||
| 202 | $modversion['blocks'][6]['file'] = 'faqs_random_faq.php'; |
||
| 203 | $modversion['blocks'][6]['name'] = _MI_SF_ARTSRANDOM_FAQ; |
||
| 204 | $modversion['blocks'][6]['description'] = "Shows a random 'faq' faq"; |
||
| 205 | $modversion['blocks'][6]['show_func'] = 'b_faqs_random_faq_show'; |
||
| 206 | $modversion['blocks'][6]['template'] = 'faqs_random_faq.tpl'; |
||
| 207 | |||
| 208 | $modversion['blocks'][7]['file'] = 'faqs_recent_questions.php'; |
||
| 209 | $modversion['blocks'][7]['name'] = _MI_SF_RECENT_QUESTIONS; |
||
| 210 | $modversion['blocks'][7]['description'] = 'Shows recent questions'; |
||
| 211 | $modversion['blocks'][7]['show_func'] = 'b_faqs_recent_questions_show'; |
||
| 212 | $modversion['blocks'][7]['edit_func'] = 'b_faqs_recent_questions_edit'; |
||
| 213 | $modversion['blocks'][7]['options'] = '0|datesub|5|65|1'; |
||
| 214 | $modversion['blocks'][7]['template'] = 'faqs_recent_questions.tpl'; |
||
| 215 | |||
| 216 | $modversion['blocks'][8]['file'] = 'faqs_most_viewed.php'; |
||
| 217 | $modversion['blocks'][8]['name'] = _MI_SF_MOST_VIEWED; |
||
| 218 | $modversion['blocks'][8]['description'] = 'Shows most viewed Q&A'; |
||
| 219 | $modversion['blocks'][8]['show_func'] = 'b_faqs_most_viewed_show'; |
||
| 220 | $modversion['blocks'][8]['edit_func'] = 'b_faqs_most_viewed_edit'; |
||
| 221 | $modversion['blocks'][8]['options'] = '0|5|65'; |
||
| 222 | $modversion['blocks'][8]['template'] = 'faqs_most_viewed.tpl'; |
||
| 223 | |||
| 224 | // Templates |
||
| 225 | $modversion['templates'][1]['file'] = 'smartfaq_singlefaq.tpl'; |
||
| 226 | $modversion['templates'][1]['description'] = 'Display a single FAQ'; |
||
| 227 | |||
| 228 | $modversion['templates'][2]['file'] = 'smartfaq_lastfaqs.tpl'; |
||
| 229 | $modversion['templates'][2]['description'] = 'Display the last faqs'; |
||
| 230 | |||
| 231 | $modversion['templates'][3]['file'] = 'smartfaq_category.tpl'; |
||
| 232 | $modversion['templates'][3]['description'] = 'Display a category'; |
||
| 233 | |||
| 234 | $modversion['templates'][4]['file'] = 'smartfaq_index.tpl'; |
||
| 235 | $modversion['templates'][4]['description'] = 'Display index'; |
||
| 236 | |||
| 237 | $modversion['templates'][5]['file'] = 'smartfaq_faq.tpl'; |
||
| 238 | $modversion['templates'][5]['description'] = 'Display faq'; |
||
| 239 | |||
| 240 | $modversion['templates'][6]['file'] = 'smartfaq_submit.tpl'; |
||
| 241 | $modversion['templates'][6]['description'] = 'Form to submit request or answer a question'; |
||
| 242 | |||
| 243 | // Config Settings (only for modules that need config settings generated automatically) |
||
| 244 | |||
| 245 | $i = 1; |
||
| 246 | $modversion['config'][$i]['name'] = 'allowsubmit'; |
||
| 247 | $modversion['config'][$i]['title'] = '_MI_SF_ALLOWSUBMIT'; |
||
| 248 | $modversion['config'][$i]['description'] = '_MI_SF_ALLOWSUBMITDSC'; |
||
| 249 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 250 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 251 | $modversion['config'][$i]['default'] = 1; |
||
| 252 | ++$i; |
||
| 253 | $modversion['config'][$i]['name'] = 'allowrequest'; |
||
| 254 | $modversion['config'][$i]['title'] = '_MI_SF_ALLOWREQUEST'; |
||
| 255 | $modversion['config'][$i]['description'] = '_MI_SF_ALLOWREQUESTDSC'; |
||
| 256 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 257 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 258 | $modversion['config'][$i]['default'] = 1; |
||
| 259 | ++$i; |
||
| 260 | $modversion['config'][$i]['name'] = 'allownewanswer'; |
||
| 261 | $modversion['config'][$i]['title'] = '_MI_SF_NEWANSWER'; |
||
| 262 | $modversion['config'][$i]['description'] = '_MI_SF_NEWANSWERDSC'; |
||
| 263 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 264 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 265 | $modversion['config'][$i]['default'] = 1; |
||
| 266 | ++$i; |
||
| 267 | $modversion['config'][$i]['name'] = 'anonpost'; |
||
| 268 | $modversion['config'][$i]['title'] = '_MI_SF_ANONPOST'; |
||
| 269 | $modversion['config'][$i]['description'] = '_MI_SF_ANONPOSTDSC'; |
||
| 270 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 271 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 272 | $modversion['config'][$i]['default'] = 0; |
||
| 273 | |||
| 274 | $memberHandler = xoops_getHandler('member'); |
||
| 275 | $groups = $memberHandler->getGroupList(); |
||
| 276 | ++$i; |
||
| 277 | $modversion['config'][$i]['name'] = 'dateformat'; |
||
| 278 | $modversion['config'][$i]['title'] = '_MI_SF_DATEFORMAT'; |
||
| 279 | $modversion['config'][$i]['description'] = '_MI_SF_DATEFORMATDSC'; |
||
| 280 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 281 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 282 | $modversion['config'][$i]['default'] = 'd-M-Y H:i'; |
||
| 283 | ++$i; |
||
| 284 | $modversion['config'][$i]['name'] = 'displaycollaps'; |
||
| 285 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_COLLAPS'; |
||
| 286 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_COLLAPSDSC'; |
||
| 287 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 288 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 289 | $modversion['config'][$i]['default'] = 1; |
||
| 290 | ++$i; |
||
| 291 | $modversion['config'][$i]['name'] = 'displaylastfaqs'; |
||
| 292 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_LAST_FAQS'; |
||
| 293 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_LAST_FAQSDSC'; |
||
| 294 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 295 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 296 | $modversion['config'][$i]['default'] = 1; |
||
| 297 | ++$i; |
||
| 298 | $modversion['config'][$i]['name'] = 'displaytype'; |
||
| 299 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAYTYPE'; |
||
| 300 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAYTYPEDSC'; |
||
| 301 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 302 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 303 | $modversion['config'][$i]['options'] = array( |
||
| 304 | _MI_SF_DISPLAYTYPE_SUMMARY => 'summary', |
||
| 305 | _MI_SF_DISPLAYTYPE_FULL => 'full' |
||
| 306 | ); |
||
| 307 | $modversion['config'][$i]['default'] = 'full'; |
||
| 308 | ++$i; |
||
| 309 | $modversion['config'][$i]['name'] = 'displaylastfaq'; |
||
| 310 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_LAST_FAQ'; |
||
| 311 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_LAST_FAQDSC'; |
||
| 312 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 313 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 314 | $modversion['config'][$i]['default'] = 1; |
||
| 315 | ++$i; |
||
| 316 | $modversion['config'][$i]['name'] = 'lastfaqsize'; |
||
| 317 | $modversion['config'][$i]['title'] = '_MI_SF_LAST_FAQ_SIZE'; |
||
| 318 | $modversion['config'][$i]['description'] = '_MI_SF_LAST_FAQ_SIZEDSC'; |
||
| 319 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 320 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 321 | $modversion['config'][$i]['default'] = '50'; |
||
| 322 | ++$i; |
||
| 323 | $modversion['config'][$i]['name'] = 'questionsize'; |
||
| 324 | $modversion['config'][$i]['title'] = '_MI_SF_QUESTION_SIZE'; |
||
| 325 | $modversion['config'][$i]['description'] = '_MI_SF_QUESTION_SIZEDSC'; |
||
| 326 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 327 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 328 | $modversion['config'][$i]['default'] = '60'; |
||
| 329 | ++$i; |
||
| 330 | $modversion['config'][$i]['name'] = 'displaytopcatdsc'; |
||
| 331 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_TOPCAT_DSC'; |
||
| 332 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_TOPCAT_DSCDSC'; |
||
| 333 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 334 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 335 | $modversion['config'][$i]['default'] = 1; |
||
| 336 | ++$i; |
||
| 337 | $modversion['config'][$i]['name'] = 'displaysubcatonindex'; |
||
| 338 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_SUBCAT_INDEX'; |
||
| 339 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_SUBCAT_INDEXDSC'; |
||
| 340 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 341 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 342 | $modversion['config'][$i]['default'] = 1; |
||
| 343 | ++$i; |
||
| 344 | $modversion['config'][$i] ['name'] = 'displaysubcatdsc'; |
||
| 345 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_SBCAT_DSC'; |
||
| 346 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_SBCAT_DSCDSC'; |
||
| 347 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 348 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 349 | $modversion['config'][$i]['default'] = 1; |
||
| 350 | ++$i; |
||
| 351 | $modversion['config'][$i]['name'] = 'orderbydate'; |
||
| 352 | $modversion['config'][$i]['title'] = '_MI_SF_ORDERBYDATE'; |
||
| 353 | $modversion['config'][$i]['description'] = '_MI_SF_ORDERBYDATEDSC'; |
||
| 354 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 355 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 356 | $modversion['config'][$i]['default'] = 0; |
||
| 357 | ++$i; |
||
| 358 | $modversion['config'][$i]['name'] = 'display_date_col'; |
||
| 359 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_DATE_COL'; |
||
| 360 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_DATE_COLDSC'; |
||
| 361 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 362 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 363 | $modversion['config'][$i]['default'] = 1; |
||
| 364 | ++$i; |
||
| 365 | $modversion['config'][$i]['name'] = 'display_hits_col'; |
||
| 366 | $modversion['config'][$i]['title'] = '_MI_SF_DISPLAY_HITS_COL'; |
||
| 367 | $modversion['config'][$i]['description'] = '_MI_SF_DISPLAY_HITS_COLDSC'; |
||
| 368 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 369 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 370 | $modversion['config'][$i]['default'] = 1; |
||
| 371 | ++$i; |
||
| 372 | $modversion['config'][$i]['name'] = 'useimagenavpage'; |
||
| 373 | $modversion['config'][$i]['title'] = '_MI_SF_USEIMAGENAVPAGE'; |
||
| 374 | $modversion['config'][$i]['description'] = '_MI_SF_USEIMAGENAVPAGEDSC'; |
||
| 375 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 376 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 377 | $modversion['config'][$i]['default'] = 0; |
||
| 378 | ++$i; |
||
| 379 | $modversion['config'][$i]['name'] = 'globaldisplaycomments'; |
||
| 380 | $modversion['config'][$i]['title'] = '_MI_SF_ALLOWCOMMENTS'; |
||
| 381 | $modversion['config'][$i]['description'] = '_MI_SF_ALLOWCOMMENTSDSC'; |
||
| 382 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 383 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 384 | $modversion['config'][$i]['default'] = 1; |
||
| 385 | ++$i; |
||
| 386 | $modversion['config'][$i]['name'] = 'adminhits'; |
||
| 387 | $modversion['config'][$i]['title'] = '_MI_SF_ALLOWADMINHITS'; |
||
| 388 | $modversion['config'][$i]['description'] = '_MI_SF_ALLOWADMINHITSDSC'; |
||
| 389 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 390 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 391 | $modversion['config'][$i]['default'] = 0; |
||
| 392 | ++$i; |
||
| 393 | $modversion['config'][$i]['name'] = 'autoapprove_submitted_faq'; |
||
| 394 | $modversion['config'][$i]['title'] = '_MI_SF_AUTOAPPROVE_SUB_FAQ'; |
||
| 395 | $modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_SUB_FAQ_DSC'; |
||
| 396 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 397 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 398 | $modversion['config'][$i]['default'] = 0; |
||
| 399 | ++$i; |
||
| 400 | $modversion['config'][$i]['name'] = 'autoapprove_request'; |
||
| 401 | $modversion['config'][$i]['title'] = '_MI_SF_AUTOAPPROVE_REQUEST'; |
||
| 402 | $modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_REQUEST_DSC'; |
||
| 403 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 404 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 405 | $modversion['config'][$i]['default'] = 0; |
||
| 406 | ++$i; |
||
| 407 | $modversion['config'][$i]['name'] = 'autoapprove_answer'; |
||
| 408 | $modversion['config'][$i]['title'] = '_MI_SF_AUTOAPPROVE_ANS'; |
||
| 409 | $modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_ANS_DSC'; |
||
| 410 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 411 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 412 | $modversion['config'][$i]['default'] = 0; |
||
| 413 | ++$i; |
||
| 414 | $modversion['config'][$i]['name'] = 'autoapprove_answer_new'; |
||
| 415 | $modversion['config'][$i]['title'] = '_MI_SF_AUTOAPPROVE_ANS_NEW'; |
||
| 416 | $modversion['config'][$i]['description'] = '_MI_SF_AUTOAPPROVE_ANS_NEW_DSC'; |
||
| 417 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 418 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 419 | $modversion['config'][$i]['default'] = 0; |
||
| 420 | ++$i; |
||
| 421 | $modversion['config'][$i]['name'] = 'catperpage'; |
||
| 422 | $modversion['config'][$i]['title'] = '_MI_SF_CATPERPAGE'; |
||
| 423 | $modversion['config'][$i]['description'] = '_MI_SF_CATPERPAGEDSC'; |
||
| 424 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 425 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 426 | $modversion['config'][$i]['default'] = 5; |
||
| 427 | $modversion['config'][$i]['options'] = array( |
||
| 428 | '5' => 5, |
||
| 429 | '10' => 10, |
||
| 430 | '15' => 15, |
||
| 431 | '20' => 20, |
||
| 432 | '25' => 25, |
||
| 433 | '30' => 30, |
||
| 434 | '50' => 50 |
||
| 435 | ); |
||
| 436 | ++$i; |
||
| 437 | $modversion['config'][$i]['name'] = 'perpage'; |
||
| 438 | $modversion['config'][$i]['title'] = '_MI_SF_PERPAGE'; |
||
| 439 | $modversion['config'][$i]['description'] = '_MI_SF_PERPAGEDSC'; |
||
| 440 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 441 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 442 | $modversion['config'][$i]['default'] = 5; |
||
| 443 | $modversion['config'][$i]['options'] = array( |
||
| 444 | '5' => 5, |
||
| 445 | '10' => 10, |
||
| 446 | '15' => 15, |
||
| 447 | '20' => 20, |
||
| 448 | '25' => 25, |
||
| 449 | '30' => 30, |
||
| 450 | '50' => 50 |
||
| 451 | ); |
||
| 452 | ++$i; |
||
| 453 | $modversion['config'][$i]['name'] = 'indexperpage'; |
||
| 454 | $modversion['config'][$i]['title'] = '_MI_SF_PERPAGEINDEX'; |
||
| 455 | $modversion['config'][$i]['description'] = '_MI_SF_PERPAGEINDEXDSC'; |
||
| 456 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 457 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 458 | $modversion['config'][$i]['default'] = 5; |
||
| 459 | $modversion['config'][$i]['options'] = array( |
||
| 460 | '5' => 5, |
||
| 461 | '10' => 10, |
||
| 462 | '15' => 15, |
||
| 463 | '20' => 20, |
||
| 464 | '25' => 25, |
||
| 465 | '30' => 30, |
||
| 466 | '50' => 50 |
||
| 467 | ); |
||
| 468 | ++$i; |
||
| 469 | $modversion['config'][$i]['name'] = 'indexwelcomemsg'; |
||
| 470 | $modversion['config'][$i]['title'] = '_MI_SF_INDEXWELCOMEMSG'; |
||
| 471 | $modversion['config'][$i]['description'] = '_MI_SF_INDEXWELCOMEMSGDSC'; |
||
| 472 | $modversion['config'][$i]['formtype'] = 'textarea'; |
||
| 473 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 474 | $modversion['config'][$i]['default'] = _MI_SF_INDEXWELCOMEMSGDEF; |
||
| 475 | ++$i; |
||
| 476 | $modversion['config'][$i]['name'] = 'requestintromsg'; |
||
| 477 | $modversion['config'][$i]['title'] = '_MI_SF_REQUESTINTROMSG'; |
||
| 478 | $modversion['config'][$i]['description'] = '_MI_SF_REQUESTINTROMSGDSC'; |
||
| 479 | $modversion['config'][$i]['formtype'] = 'textarea'; |
||
| 480 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 481 | $modversion['config'][$i]['default'] = _MI_SF_REQUESTINTROMSGDEF; |
||
| 482 | ++$i; |
||
| 483 | $modversion['config'][$i]['name'] = 'openquestionintromsg'; |
||
| 484 | $modversion['config'][$i]['title'] = '_MI_SF_OPENINTROMSG'; |
||
| 485 | $modversion['config'][$i]['description'] = '_MI_SF_OPENINTROMSGDSC'; |
||
| 486 | $modversion['config'][$i]['formtype'] = 'textarea'; |
||
| 487 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 488 | $modversion['config'][$i]['default'] = _MI_SF_OPENINTROMSGDEF; |
||
| 489 | ++$i; |
||
| 490 | $modversion['config'][$i]['name'] = 'userealname'; |
||
| 491 | $modversion['config'][$i]['title'] = '_MI_SF_USEREALNAME'; |
||
| 492 | $modversion['config'][$i]['description'] = '_MI_SF_USEREALNAMEDSC'; |
||
| 493 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 494 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 495 | $modversion['config'][$i]['default'] = 0; |
||
| 496 | |||
| 497 | /* |
||
| 498 | ++$i; |
||
| 499 | $modversion['config'][$i]['name'] = 'moderatorsedit'; |
||
| 500 | $modversion['config'][$i]['title'] = '_MI_SF_MODERATORSEDIT'; |
||
| 501 | $modversion['config'][$i]['description'] = '_MI_SF_MODERATORSEDITDSC'; |
||
| 502 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 503 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 504 | $modversion['config'][$i]['default'] = 0;*/ |
||
| 505 | ++$i; |
||
| 506 | $modversion['config'][$i]['name'] = 'helppath_select'; |
||
| 507 | $modversion['config'][$i]['title'] = '_MI_SF_HELP_PATH_SELECT'; |
||
| 508 | $modversion['config'][$i]['description'] = '_MI_SF_HELP_PATH_SELECT_DSC'; |
||
| 509 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 510 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 511 | $modversion['config'][$i]['options'] = array(_MI_SF_HELP_INSIDE => 'inside', _MI_SF_HELP_CUSTOM => 'custom'); |
||
| 512 | $modversion['config'][$i]['default'] = 'docs.xoops.org'; |
||
| 513 | ++$i; |
||
| 514 | $modversion['config'][$i]['name'] = 'helppath_custom'; |
||
| 515 | $modversion['config'][$i]['title'] = '_MI_SF_HELP_PATH_CUSTOM'; |
||
| 516 | $modversion['config'][$i]['description'] = '_MI_SF_HELP_PATH_CUSTOM_DSC'; |
||
| 517 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 518 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 519 | $modversion['config'][$i]['default'] = ''; |
||
| 520 | ++$i; |
||
| 521 | xoops_load('XoopsEditorHandler'); |
||
| 522 | $editorHandler = XoopsEditorHandler::getInstance(); |
||
| 523 | $editorList = array_flip($editorHandler->getList()); |
||
| 524 | |||
| 525 | $modversion['config'][$i] = array( |
||
| 526 | 'name' => 'form_editorOptions', |
||
| 527 | 'title' => '_MI_SF_EDITOR', |
||
| 528 | 'description' => '_MI_SF_EDITORCHOICE', |
||
| 529 | 'formtype' => 'select', |
||
| 530 | 'valuetype' => 'text', |
||
| 531 | 'options' => $editorList, |
||
| 532 | 'default' => 'dhtmltextarea' |
||
| 533 | ); |
||
| 534 | |||
| 535 | ++$i; |
||
| 536 | $modversion['config'][$i] = array( |
||
| 537 | 'name' => 'form_editorOptionsUser', |
||
| 538 | 'title' => '_MI_SF_EDITORUSER', |
||
| 539 | 'description' => '_MI_SF_EDITORCHOICEUSER', |
||
| 540 | 'formtype' => 'select', |
||
| 541 | 'valuetype' => 'text', |
||
| 542 | 'options' => $editorList, |
||
| 543 | 'default' => 'dhtmltextarea' |
||
| 544 | ); |
||
| 545 | //mb------------ START --------------------- |
||
| 546 | |||
| 547 | define('_MI_SF_SHOTWIDTH2', '<span style="color:#FF0000; font-size:12px;"><b>Upload Files/Images</b></span> '); |
||
| 548 | |||
| 549 | $modversion['config'][] = array( |
||
| 550 | 'name' => 'logfile', |
||
| 551 | 'title' => '_MI_SF_SHOTWIDTH2', |
||
| 552 | 'description' => '_MI_SF_USERLOG_CONFCAT_LOGFILE_DSC', |
||
| 553 | 'formtype' => 'line_break', |
||
| 554 | 'valuetype' => 'textbox', |
||
| 555 | 'default' => 'odd' |
||
| 556 | ); |
||
| 557 | |||
| 558 | $modversion['config'][] = array( |
||
| 559 | 'name' => 'attach_ext', |
||
| 560 | 'title' => '_AM_SF_ALLOWED_EXTENSIONS', |
||
| 561 | 'description' => '_AM_SF_ALLOWED_EXTENSIONS_DESC', |
||
| 562 | 'formtype' => 'textbox', |
||
| 563 | 'valuetype' => 'text', |
||
| 564 | 'default' => 'zip|jpg|gif|png' |
||
| 565 | ); |
||
| 566 | |||
| 567 | $modversion['config'][] = array( |
||
| 568 | 'name' => 'dir_attachments', |
||
| 569 | 'title' => '_MI_SF_DIR_ATTACHMENT', |
||
| 570 | 'description' => '_MI_SF_DIR_ATTACHMENT_DESC', |
||
| 571 | 'formtype' => 'textbox', |
||
| 572 | 'valuetype' => 'text', |
||
| 573 | 'default' => 'uploads/smartfaq' |
||
| 574 | ); |
||
| 575 | |||
| 576 | $modversion['config'][] = array( |
||
| 577 | 'name' => 'media_allowed', |
||
| 578 | 'title' => '_MI_SF_MEDIA_ENABLE', |
||
| 579 | 'description' => '_MI_SF_MEDIA_ENABLE_DESC', |
||
| 580 | 'formtype' => 'yesno', |
||
| 581 | 'valuetype' => 'int', |
||
| 582 | 'default' => 1 |
||
| 583 | ); |
||
| 584 | |||
| 585 | $modversion['config'][] = array( |
||
| 586 | 'name' => 'path_magick', |
||
| 587 | 'title' => '_MI_SF_PATH_MAGICK', |
||
| 588 | 'description' => '_MI_SF_PATH_MAGICK_DESC', |
||
| 589 | 'formtype' => 'textbox', |
||
| 590 | 'valuetype' => 'text', |
||
| 591 | 'default' => '/usr/bin/X11' |
||
| 592 | ); |
||
| 593 | |||
| 594 | $modversion['config'][] = array( |
||
| 595 | 'name' => 'path_netpbm', |
||
| 596 | 'title' => '_MI_SF_PATH_NETPBM', |
||
| 597 | 'description' => '_MI_SF_PATH_NETPBM_DESC', |
||
| 598 | 'formtype' => 'textbox', |
||
| 599 | 'valuetype' => 'text', |
||
| 600 | 'default' => '/usr/bin' |
||
| 601 | ); |
||
| 602 | |||
| 603 | $modversion['config'][] = array( |
||
| 604 | 'name' => 'image_lib', |
||
| 605 | 'title' => '_MI_SF_IMAGELIB', |
||
| 606 | 'description' => '_MI_SF_IMAGELIB_DESC', |
||
| 607 | 'formtype' => 'select', |
||
| 608 | 'valuetype' => 'int', |
||
| 609 | 'default' => 0, |
||
| 610 | 'options' => array( |
||
| 611 | _MI_SF_AUTO => 0, |
||
| 612 | _MI_SF_MAGICK => 1, |
||
| 613 | _MI_SF_NETPBM => 2, |
||
| 614 | _MI_SF_GD1 => 3, |
||
| 615 | _MI_SF_GD2 => 4 |
||
| 616 | ) |
||
| 617 | ); |
||
| 618 | |||
| 619 | $modversion['config'][] = array( |
||
| 620 | 'name' => 'show_userattach', |
||
| 621 | 'title' => '_MI_SF_USERATTACH_ENABLE', |
||
| 622 | 'description' => '_MI_SF_USERATTACH_ENABLE_DESC', |
||
| 623 | 'formtype' => 'yesno', |
||
| 624 | 'valuetype' => 'int', |
||
| 625 | 'default' => 1 |
||
| 626 | ); |
||
| 627 | |||
| 628 | $modversion['config'][] = array( |
||
| 629 | 'name' => 'max_img_width', |
||
| 630 | 'title' => '_MI_SF_MAX_IMG_WIDTH', |
||
| 631 | 'description' => '_MI_SF_MAX_IMG_WIDTH_DESC', |
||
| 632 | 'formtype' => 'textbox', |
||
| 633 | 'valuetype' => 'int', |
||
| 634 | 'default' => 800 |
||
| 635 | ); |
||
| 636 | |||
| 637 | $modversion['config'][] = array( |
||
| 638 | 'name' => 'max_img_height', |
||
| 639 | 'title' => '_MI_SF_MAX_IMG_HEIGHT', |
||
| 640 | 'description' => '_MI_SF_MAX_IMG_HEIGHT_DESC', |
||
| 641 | 'formtype' => 'textbox', |
||
| 642 | 'valuetype' => 'int', |
||
| 643 | 'default' => 640 |
||
| 644 | ); |
||
| 645 | |||
| 646 | $modversion['config'][] = array( |
||
| 647 | 'name' => 'max_image_width', |
||
| 648 | 'title' => '_MI_SF_MAX_IMAGE_WIDTH', |
||
| 649 | 'description' => '_MI_SF_MAX_IMAGE_WIDTH_DESC', |
||
| 650 | 'formtype' => 'textbox', |
||
| 651 | 'valuetype' => 'int', |
||
| 652 | 'default' => 150 |
||
| 653 | ); |
||
| 654 | |||
| 655 | $modversion['config'][] = array( |
||
| 656 | 'name' => 'max_image_height', |
||
| 657 | 'title' => '_MI_SF_MAX_IMAGE_HEIGHT', |
||
| 658 | 'description' => '_MI_SF_MAX_IMAGE_HEIGHT_DESC', |
||
| 659 | 'formtype' => 'textbox', |
||
| 660 | 'valuetype' => 'int', |
||
| 661 | 'default' => 150 |
||
| 662 | ); |
||
| 663 | |||
| 664 | $modversion['config'][] = array( |
||
| 665 | 'name' => 'max_image_size', |
||
| 666 | 'title' => '_MI_SF_MAX_IMAGE_SIZE', |
||
| 667 | 'description' => '_MI_SF_MAX_IMAGE_SIZE_DESC', |
||
| 668 | 'formtype' => 'textbox', |
||
| 669 | 'valuetype' => 'int', |
||
| 670 | 'default' => 1024 |
||
| 671 | ); |
||
| 672 | |||
| 673 | define('_MI_XDIR_SHOTWIDTH3', '<span style="color:#FF0000; font-size:12px;"><b>Comments/Notifications</b></span> '); |
||
| 674 | |||
| 675 | $modversion['config'][] = array( |
||
| 676 | 'name' => 'logfile', |
||
| 677 | 'title' => '_MI_XDIR_SHOTWIDTH3', |
||
| 678 | 'description' => '_MI_USERLOG_CONFCAT_LOGFILE_DSC', |
||
| 679 | 'formtype' => 'line_break', |
||
| 680 | 'valuetype' => 'textbox', |
||
| 681 | 'default' => 'odd' |
||
| 682 | ); |
||
| 683 | |||
| 684 | //mb ------------- end -------------------------- |
||
| 685 | |||
| 686 | // Comments |
||
| 687 | $modversion['hasComments'] = 1; |
||
| 688 | $modversion['comments']['itemName'] = 'faqid'; |
||
| 689 | $modversion['comments']['pageName'] = 'faq.php'; |
||
| 690 | // Comment callback functions |
||
| 691 | $modversion['comments']['callbackFile'] = 'include/comment_functions.php'; |
||
| 692 | $modversion['comments']['callback']['approve'] = 'smartfaq_com_approve'; |
||
| 693 | $modversion['comments']['callback']['update'] = 'smartfaq_com_update'; |
||
| 694 | // Notification |
||
| 695 | $modversion['hasNotification'] = 1; |
||
| 696 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
||
| 697 | $modversion['notification']['lookup_func'] = 'smartfaq_notify_iteminfo'; |
||
| 698 | |||
| 699 | $modversion['notification']['category'][1]['name'] = 'global_faq'; |
||
| 700 | $modversion['notification']['category'][1]['title'] = _MI_SF_GLOBAL_FAQ_NOTIFY; |
||
| 701 | $modversion['notification']['category'][1]['description'] = _MI_SF_GLOBAL_FAQ_NOTIFY_DSC; |
||
| 702 | $modversion['notification']['category'][1]['subscribe_from'] = array('index.php', 'category.php', 'faq.php'); |
||
| 703 | |||
| 704 | $modversion['notification']['category'][2]['name'] = 'category_faq'; |
||
| 705 | $modversion['notification']['category'][2]['title'] = _MI_SF_CATEGORY_FAQ_NOTIFY; |
||
| 706 | $modversion['notification']['category'][2]['description'] = _MI_SF_CATEGORY_FAQ_NOTIFY_DSC; |
||
| 707 | $modversion['notification']['category'][2]['subscribe_from'] = array('index.php', 'category.php', 'faq.php'); |
||
| 708 | $modversion['notification']['category'][2]['item_name'] = 'categoryid'; |
||
| 709 | $modversion['notification']['category'][2]['allow_bookmark'] = 1; |
||
| 710 | |||
| 711 | $modversion['notification']['category'][3]['name'] = 'faq'; |
||
| 712 | $modversion['notification']['category'][3]['title'] = _MI_SF_FAQ_NOTIFY; |
||
| 713 | $modversion['notification']['category'][3]['description'] = _MI_SF_FAQ_NOTIFY_DSC; |
||
| 714 | $modversion['notification']['category'][3]['subscribe_from'] = array('faq.php'); |
||
| 715 | $modversion['notification']['category'][3]['item_name'] = 'faqid'; |
||
| 716 | $modversion['notification']['category'][3]['allow_bookmark'] = 1; |
||
| 717 | |||
| 718 | $modversion['notification']['category'][4]['name'] = 'global_question'; |
||
| 719 | $modversion['notification']['category'][4]['title'] = _MI_SF_GLOBAL_QUESTION_NOTIFY; |
||
| 720 | $modversion['notification']['category'][4]['description'] = _MI_SF_GLOBAL_QUESTION_NOTIFY_DSC; |
||
| 721 | $modversion['notification']['category'][4]['subscribe_from'] = array('open_index.php'); |
||
| 722 | |||
| 723 | $modversion['notification']['category'][5]['name'] = 'category_question'; |
||
| 724 | $modversion['notification']['category'][5]['title'] = _MI_SF_CATEGORY_QUESTION_NOTIFY; |
||
| 725 | $modversion['notification']['category'][5]['description'] = _MI_SF_CATEGORY_QUESTION_NOTIFY_DSC; |
||
| 726 | $modversion['notification']['category'][5]['subscribe_from'] = array('open_index.php, open_category.php'); |
||
| 727 | |||
| 728 | $modversion['notification']['category'][6]['name'] = 'question'; |
||
| 729 | $modversion['notification']['category'][6]['title'] = _MI_SF_QUESTION_NOTIFY; |
||
| 730 | $modversion['notification']['category'][6]['description'] = _MI_SF_QUESTION_NOTIFY_DSC; |
||
| 731 | $modversion['notification']['category'][6]['subscribe_from'] = array('open_index.php'); |
||
| 732 | |||
| 733 | $modversion['notification']['event'][1]['name'] = 'category_created'; |
||
| 734 | $modversion['notification']['event'][1]['category'] = 'global_faq'; |
||
| 735 | $modversion['notification']['event'][1]['title'] = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY; |
||
| 736 | $modversion['notification']['event'][1]['caption'] = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY_CAP; |
||
| 737 | $modversion['notification']['event'][1]['description'] = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY_DSC; |
||
| 738 | $modversion['notification']['event'][1]['mail_template'] = 'global_faq_category_created'; |
||
| 739 | $modversion['notification']['event'][1]['mail_subject'] = _MI_SF_GLOBAL_FAQ_CATEGORY_CREATED_NOTIFY_SBJ; |
||
| 740 | |||
| 741 | $modversion['notification']['event'][2]['name'] = 'submitted'; |
||
| 742 | $modversion['notification']['event'][2]['category'] = 'global_faq'; |
||
| 743 | $modversion['notification']['event'][2]['admin_only'] = 1; |
||
| 744 | $modversion['notification']['event'][2]['title'] = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY; |
||
| 745 | $modversion['notification']['event'][2]['caption'] = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY_CAP; |
||
| 746 | $modversion['notification']['event'][2]['description'] = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY_DSC; |
||
| 747 | $modversion['notification']['event'][2]['mail_template'] = 'global_faq_submitted'; |
||
| 748 | $modversion['notification']['event'][2]['mail_subject'] = _MI_SF_GLOBAL_FAQ_SUBMITTED_NOTIFY_SBJ; |
||
| 749 | |||
| 750 | $modversion['notification']['event'][3]['name'] = 'published'; |
||
| 751 | $modversion['notification']['event'][3]['category'] = 'global_faq'; |
||
| 752 | $modversion['notification']['event'][3]['title'] = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY; |
||
| 753 | $modversion['notification']['event'][3]['caption'] = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY_CAP; |
||
| 754 | $modversion['notification']['event'][3]['description'] = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY_DSC; |
||
| 755 | $modversion['notification']['event'][3]['mail_template'] = 'global_faq_published'; |
||
| 756 | $modversion['notification']['event'][3]['mail_subject'] = _MI_SF_GLOBAL_FAQ_PUBLISHED_NOTIFY_SBJ; |
||
| 757 | |||
| 758 | $modversion['notification']['event'][4]['name'] = 'answer_proposed'; |
||
| 759 | $modversion['notification']['event'][4]['category'] = 'global_faq'; |
||
| 760 | $modversion['notification']['event'][4]['admin_only'] = 1; |
||
| 761 | $modversion['notification']['event'][4]['title'] = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY; |
||
| 762 | $modversion['notification']['event'][4]['caption'] = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY_CAP; |
||
| 763 | $modversion['notification']['event'][4]['description'] = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY_DSC; |
||
| 764 | $modversion['notification']['event'][4]['mail_template'] = 'global_faq_answer_proposed'; |
||
| 765 | $modversion['notification']['event'][4]['mail_subject'] = _MI_SF_GLOBAL_FAQ_ANSWER_PROPOSED_NOTIFY_SBJ; |
||
| 766 | |||
| 767 | $modversion['notification']['event'][5]['name'] = 'answer_published'; |
||
| 768 | $modversion['notification']['event'][5]['category'] = 'global_faq'; |
||
| 769 | $modversion['notification']['event'][5]['title'] = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY; |
||
| 770 | $modversion['notification']['event'][5]['caption'] = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY_CAP; |
||
| 771 | $modversion['notification']['event'][5]['description'] = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY_DSC; |
||
| 772 | $modversion['notification']['event'][5]['mail_template'] = 'global_faq_answer_published'; |
||
| 773 | $modversion['notification']['event'][5]['mail_subject'] = _MI_SF_GLOBAL_FAQ_ANSWER_PUBLISHED_NOTIFY_SBJ; |
||
| 774 | |||
| 775 | $modversion['notification']['event'][6]['name'] = 'submitted'; |
||
| 776 | $modversion['notification']['event'][6]['category'] = 'category_faq'; |
||
| 777 | $modversion['notification']['event'][6]['admin_only'] = 1; |
||
| 778 | $modversion['notification']['event'][6]['title'] = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY; |
||
| 779 | $modversion['notification']['event'][6]['caption'] = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY_CAP; |
||
| 780 | $modversion['notification']['event'][6]['description'] = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY_DSC; |
||
| 781 | $modversion['notification']['event'][6]['mail_template'] = 'category_faq_submitted'; |
||
| 782 | $modversion['notification']['event'][6]['mail_subject'] = _MI_SF_CATEGORY_FAQ_SUBMITTED_NOTIFY_SBJ; |
||
| 783 | |||
| 784 | $modversion['notification']['event'][7]['name'] = 'published'; |
||
| 785 | $modversion['notification']['event'][7]['category'] = 'category_faq'; |
||
| 786 | $modversion['notification']['event'][7]['title'] = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY; |
||
| 787 | $modversion['notification']['event'][7]['caption'] = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY_CAP; |
||
| 788 | $modversion['notification']['event'][7]['description'] = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY_DSC; |
||
| 789 | $modversion['notification']['event'][7]['mail_template'] = 'category_faq_published'; |
||
| 790 | $modversion['notification']['event'][7]['mail_subject'] = _MI_SF_CATEGORY_FAQ_PUBLISHED_NOTIFY_SBJ; |
||
| 791 | |||
| 792 | $modversion['notification']['event'][8]['name'] = 'answer_proposed'; |
||
| 793 | $modversion['notification']['event'][8]['category'] = 'category_faq'; |
||
| 794 | $modversion['notification']['event'][8]['admin_only'] = 1; |
||
| 795 | $modversion['notification']['event'][8]['title'] = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY; |
||
| 796 | $modversion['notification']['event'][8]['caption'] = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY_CAP; |
||
| 797 | $modversion['notification']['event'][8]['description'] = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY_DSC; |
||
| 798 | $modversion['notification']['event'][8]['mail_template'] = 'category_faq_answer_proposed'; |
||
| 799 | $modversion['notification']['event'][8]['mail_subject'] = _MI_SF_CATEGORY_FAQ_ANSWER_PROPOSED_NOTIFY_SBJ; |
||
| 800 | |||
| 801 | $modversion['notification']['event'][9]['name'] = 'answer_published'; |
||
| 802 | $modversion['notification']['event'][9]['category'] = 'category_faq'; |
||
| 803 | $modversion['notification']['event'][9]['title'] = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY; |
||
| 804 | $modversion['notification']['event'][9]['caption'] = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY_CAP; |
||
| 805 | $modversion['notification']['event'][9]['description'] = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY_DSC; |
||
| 806 | $modversion['notification']['event'][9]['mail_template'] = 'category_faq_answer_published'; |
||
| 807 | $modversion['notification']['event'][9]['mail_subject'] = _MI_SF_CATEGORY_FAQ_ANSWER_PUBLISHED_NOTIFY_SBJ; |
||
| 808 | |||
| 809 | $modversion['notification']['event'][10]['name'] = 'rejected'; |
||
| 810 | $modversion['notification']['event'][10]['category'] = 'faq'; |
||
| 811 | $modversion['notification']['event'][10]['invisible'] = 1; |
||
| 812 | $modversion['notification']['event'][10]['title'] = _MI_SF_FAQ_REJECTED_NOTIFY; |
||
| 813 | $modversion['notification']['event'][10]['caption'] = _MI_SF_FAQ_REJECTED_NOTIFY_CAP; |
||
| 814 | $modversion['notification']['event'][10]['description'] = _MI_SF_FAQ_REJECTED_NOTIFY_DSC; |
||
| 815 | $modversion['notification']['event'][10]['mail_template'] = 'faq_rejected'; |
||
| 816 | $modversion['notification']['event'][10]['mail_subject'] = _MI_SF_FAQ_REJECTED_NOTIFY_SBJ; |
||
| 817 | |||
| 818 | $modversion['notification']['event'][11]['name'] = 'approved'; |
||
| 819 | $modversion['notification']['event'][11]['category'] = 'faq'; |
||
| 820 | $modversion['notification']['event'][11]['invisible'] = 1; |
||
| 821 | $modversion['notification']['event'][11]['title'] = _MI_SF_FAQ_APPROVED_NOTIFY; |
||
| 822 | $modversion['notification']['event'][11]['caption'] = _MI_SF_FAQ_APPROVED_NOTIFY_CAP; |
||
| 823 | $modversion['notification']['event'][11]['description'] = _MI_SF_FAQ_APPROVED_NOTIFY_DSC; |
||
| 824 | $modversion['notification']['event'][11]['mail_template'] = 'faq_approved'; |
||
| 825 | $modversion['notification']['event'][11]['mail_subject'] = _MI_SF_FAQ_APPROVED_NOTIFY_SBJ; |
||
| 826 | |||
| 827 | $modversion['notification']['event'][12]['name'] = 'answer_approved'; |
||
| 828 | $modversion['notification']['event'][12]['category'] = 'faq'; |
||
| 829 | $modversion['notification']['event'][12]['invisible'] = 1; |
||
| 830 | $modversion['notification']['event'][12]['title'] = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY; |
||
| 831 | $modversion['notification']['event'][12]['caption'] = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY_CAP; |
||
| 832 | $modversion['notification']['event'][12]['description'] = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY_DSC; |
||
| 833 | $modversion['notification']['event'][12]['mail_template'] = 'faq_answer_approved'; |
||
| 834 | $modversion['notification']['event'][12]['mail_subject'] = _MI_SF_FAQ_ANSWER_APPROVED_NOTIFY_SBJ; |
||
| 835 | |||
| 836 | $modversion['notification']['event'][13]['name'] = 'answer_rejected'; |
||
| 837 | $modversion['notification']['event'][13]['category'] = 'faq'; |
||
| 838 | $modversion['notification']['event'][13]['invisible'] = 1; |
||
| 839 | $modversion['notification']['event'][13]['title'] = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY; |
||
| 840 | $modversion['notification']['event'][13]['caption'] = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY_CAP; |
||
| 841 | $modversion['notification']['event'][13]['description'] = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY_DSC; |
||
| 842 | $modversion['notification']['event'][13]['mail_template'] = 'faq_answer_rejected'; |
||
| 843 | $modversion['notification']['event'][13]['mail_subject'] = _MI_SF_FAQ_ANSWER_REJECTED_NOTIFY_SBJ; |
||
| 844 | |||
| 845 | $modversion['notification']['event'][14]['name'] = 'submitted'; |
||
| 846 | $modversion['notification']['event'][14]['category'] = 'global_question'; |
||
| 847 | $modversion['notification']['event'][14]['admin_only'] = 1; |
||
| 848 | $modversion['notification']['event'][14]['title'] = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY; |
||
| 849 | $modversion['notification']['event'][14]['caption'] = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY_CAP; |
||
| 850 | $modversion['notification']['event'][14]['description'] = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY_DSC; |
||
| 851 | $modversion['notification']['event'][14]['mail_template'] = 'global_question_submitted'; |
||
| 852 | $modversion['notification']['event'][14]['mail_subject'] = _MI_SF_GLOBAL_QUESTION_SUBMITTED_NOTIFY_SBJ; |
||
| 853 | |||
| 854 | $modversion['notification']['event'][15]['name'] = 'published'; |
||
| 855 | $modversion['notification']['event'][15]['category'] = 'global_question'; |
||
| 856 | $modversion['notification']['event'][15]['title'] = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY; |
||
| 857 | $modversion['notification']['event'][15]['caption'] = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY_CAP; |
||
| 858 | $modversion['notification']['event'][15]['description'] = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY_DSC; |
||
| 859 | $modversion['notification']['event'][15]['mail_template'] = 'global_question_published'; |
||
| 860 | $modversion['notification']['event'][15]['mail_subject'] = _MI_SF_GLOBAL_QUESTION_PUBLISHED_NOTIFY_SBJ; |
||
| 861 | |||
| 862 | $modversion['notification']['event'][16]['name'] = 'answer_proposed'; |
||
| 863 | $modversion['notification']['event'][16]['category'] = 'global_question'; |
||
| 864 | $modversion['notification']['event'][16]['admin_only'] = 1; |
||
| 865 | $modversion['notification']['event'][16]['title'] = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY; |
||
| 866 | $modversion['notification']['event'][16]['caption'] = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY_CAP; |
||
| 867 | $modversion['notification']['event'][16]['description'] = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY_DSC; |
||
| 868 | $modversion['notification']['event'][16]['mail_template'] = 'global_question_answer_proposed'; |
||
| 869 | $modversion['notification']['event'][16]['mail_subject'] = _MI_SF_GLOBAL_QUESTION_ANSWER_PROPOSED_NOTIFY_SBJ; |
||
| 870 | |||
| 871 | $modversion['notification']['event'][17]['name'] = 'submitted'; |
||
| 872 | $modversion['notification']['event'][17]['category'] = 'category_question'; |
||
| 873 | $modversion['notification']['event'][17]['admin_only'] = 1; |
||
| 874 | $modversion['notification']['event'][17]['title'] = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY; |
||
| 875 | $modversion['notification']['event'][17]['caption'] = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY_CAP; |
||
| 876 | $modversion['notification']['event'][17]['description'] = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY_DSC; |
||
| 877 | $modversion['notification']['event'][17]['mail_template'] = 'category_question_submitted'; |
||
| 878 | $modversion['notification']['event'][17]['mail_subject'] = _MI_SF_CATEGORY_QUESTION_SUBMITTED_NOTIFY_SBJ; |
||
| 879 | |||
| 880 | $modversion['notification']['event'][18]['name'] = 'published'; |
||
| 881 | $modversion['notification']['event'][18]['category'] = 'category_question'; |
||
| 882 | $modversion['notification']['event'][18]['title'] = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY; |
||
| 883 | $modversion['notification']['event'][18]['caption'] = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY_CAP; |
||
| 884 | $modversion['notification']['event'][18]['description'] = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY_DSC; |
||
| 885 | $modversion['notification']['event'][18]['mail_template'] = 'category_question_published'; |
||
| 886 | $modversion['notification']['event'][18]['mail_subject'] = _MI_SF_CATEGORY_QUESTION_PUBLISHED_NOTIFY_SBJ; |
||
| 887 | |||
| 888 | $modversion['notification']['event'][19]['name'] = 'answer_proposed'; |
||
| 889 | $modversion['notification']['event'][19]['category'] = 'category_question'; |
||
| 890 | $modversion['notification']['event'][19]['title'] = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY; |
||
| 891 | $modversion['notification']['event'][19]['caption'] = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY_CAP; |
||
| 892 | $modversion['notification']['event'][19]['description'] = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY_DSC; |
||
| 893 | $modversion['notification']['event'][19]['mail_template'] = 'category_question_answer_proposed'; |
||
| 894 | $modversion['notification']['event'][19]['mail_subject'] = _MI_SF_CATEGORY_QUESTION_ANSWER_PROPOSED_NOTIFY_SBJ; |
||
| 895 | |||
| 896 | $modversion['notification']['event'][20]['name'] = 'rejected'; |
||
| 897 | $modversion['notification']['event'][20]['category'] = 'question'; |
||
| 898 | $modversion['notification']['event'][20]['invisible'] = 1; |
||
| 899 | $modversion['notification']['event'][20]['title'] = _MI_SF_QUESTION_REJECTED_NOTIFY; |
||
| 900 | $modversion['notification']['event'][20]['caption'] = _MI_SF_QUESTION_REJECTED_NOTIFY_CAP; |
||
| 901 | $modversion['notification']['event'][20]['description'] = _MI_SF_QUESTION_REJECTED_NOTIFY_DSC; |
||
| 902 | $modversion['notification']['event'][20]['mail_template'] = 'question_rejected'; |
||
| 903 | $modversion['notification']['event'][20]['mail_subject'] = _MI_SF_QUESTION_REJECTED_NOTIFY_SBJ; |
||
| 904 | |||
| 905 | $modversion['notification']['event'][21]['name'] = 'approved'; |
||
| 906 | $modversion['notification']['event'][21]['category'] = 'question'; |
||
| 907 | $modversion['notification']['event'][21]['invisible'] = 1; |
||
| 908 | $modversion['notification']['event'][21]['title'] = _MI_SF_QUESTION_APPROVED_NOTIFY; |
||
| 909 | $modversion['notification']['event'][21]['caption'] = _MI_SF_QUESTION_APPROVED_NOTIFY_CAP; |
||
| 910 | $modversion['notification']['event'][21]['description'] = _MI_SF_QUESTION_APPROVED_NOTIFY_DSC; |
||
| 911 | $modversion['notification']['event'][21]['mail_template'] = 'question_approved'; |
||
| 912 | $modversion['notification']['event'][21]['mail_subject'] = _MI_SF_QUESTION_APPROVED_NOTIFY_SBJ; |
||
| 913 | |||
| 914 | $modversion['notification']['event'][22]['name'] = 'answer_approved'; |
||
| 915 | $modversion['notification']['event'][22]['category'] = 'question'; |
||
| 916 | $modversion['notification']['event'][22]['invisible'] = 1; |
||
| 917 | $modversion['notification']['event'][22]['title'] = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY; |
||
| 918 | $modversion['notification']['event'][22]['caption'] = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY_CAP; |
||
| 919 | $modversion['notification']['event'][22]['description'] = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY_DSC; |
||
| 920 | $modversion['notification']['event'][22]['mail_template'] = 'question_answer_approved'; |
||
| 921 | $modversion['notification']['event'][22]['mail_subject'] = _MI_SF_QUESTION_ANSWER_APPROVED_NOTIFY_SBJ; |
||
| 922 | |||
| 923 | $modversion['notification']['event'][23]['name'] = 'answer_rejected'; |
||
| 924 | $modversion['notification']['event'][23]['category'] = 'question'; |
||
| 925 | $modversion['notification']['event'][23]['invisible'] = 1; |
||
| 926 | $modversion['notification']['event'][23]['title'] = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY; |
||
| 927 | $modversion['notification']['event'][23]['caption'] = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY_CAP; |
||
| 928 | $modversion['notification']['event'][23]['description'] = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY_DSC; |
||
| 929 | $modversion['notification']['event'][23]['mail_template'] = 'question_answer_rejected'; |
||
| 930 | $modversion['notification']['event'][23]['mail_subject'] = _MI_SF_QUESTION_ANSWER_REJECTED_NOTIFY_SBJ; |
||
| 931 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.