XoopsModules25x /
xoopstube
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: XoopsTube |
||
| 5 | * |
||
| 6 | * You may not change or alter any portion of this comment or credits |
||
| 7 | * of supporting developers from this source code or any supporting source code |
||
| 8 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 9 | * |
||
| 10 | * PHP version 5 |
||
| 11 | * |
||
| 12 | * @category Module |
||
| 13 | * @package Xoopstube |
||
| 14 | * @author XOOPS Development Team |
||
| 15 | * @copyright 2001-2016 XOOPS Project (http://xoops.org) |
||
| 16 | * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
||
| 17 | * @link http://xoops.org/ |
||
| 18 | * @since 1.0.6 |
||
| 19 | */ |
||
| 20 | |||
| 21 | $moduleDirName = basename(__DIR__); |
||
| 22 | |||
| 23 | // ------------------- Informations ------------------- // |
||
| 24 | $modversion = array( |
||
| 25 | 'name' => _MI_XOOPSTUBE_NAME, |
||
| 26 | 'description' => _MI_XOOPSTUBE_DESC, |
||
| 27 | 'version' => 1.07, |
||
| 28 | 'official' => 1, //1 indicates supported by XOOPS Dev Team, 0 means 3rd party supported |
||
| 29 | 'author' => 'McDonald', |
||
| 30 | 'author_mail' => 'http://xoops.org', |
||
| 31 | 'author_website_url' => 'http://xoops.org', |
||
| 32 | 'author_website_name' => 'XOOPS', |
||
| 33 | 'credits' => 'WF-Projects Team. Based on the module WF-Links, thanks to the dream-team for some code snippits.', |
||
| 34 | 'license' => 'GPL 2.0 or later', |
||
| 35 | 'license_url' => 'www.gnu.org/licenses/gpl-2.0.html/', |
||
| 36 | 'help' => 'page=help', |
||
| 37 | // |
||
| 38 | 'release_info' => 'Changelog', |
||
| 39 | 'release_file' => XOOPS_URL . "/modules/{$moduleDirName}/docs/changelog file", |
||
| 40 | // |
||
| 41 | 'manual' => 'link to manual file', |
||
| 42 | 'manual_file' => XOOPS_URL . "/modules/{$moduleDirName}/docs/install.txt", |
||
| 43 | 'min_php' => '5.5', |
||
| 44 | 'min_xoops' => '2.5.8', |
||
| 45 | 'min_admin' => '1.1', |
||
| 46 | 'min_db' => array('mysql' => '5.0.7', 'mysqli' => '5.0.7'), |
||
| 47 | // images |
||
| 48 | 'image' => 'assets/images/logo_module.png', |
||
| 49 | 'iconsmall' => 'assets/images/iconsmall.png', |
||
| 50 | 'iconbig' => 'assets/images/iconbig.png', |
||
| 51 | 'dirname' => "{$moduleDirName}", |
||
| 52 | // Frameworks |
||
| 53 | // 'dirmoduleadmin' => 'Frameworks/moduleclasses/moduleadmin', |
||
| 54 | 'systemIcons16' => 'Frameworks/moduleclasses/icons/16', |
||
| 55 | 'systemIcons32' => 'Frameworks/moduleclasses/icons/32', |
||
| 56 | 'systemIcons32url' => XOOPS_URL . '/' . 'Frameworks/moduleclasses/icons/32', |
||
| 57 | |||
| 58 | //Frameworks |
||
| 59 | 'dirmoduleadmin' => 'Frameworks/moduleclasses/moduleadmin', |
||
| 60 | 'sysIcons16' => 'Frameworks/moduleclasses/icons/16', |
||
| 61 | 'sysIcons32' => 'Frameworks/moduleclasses/icons/32', |
||
| 62 | // Local path icons |
||
| 63 | 'modIcons16' => 'assets/images/icons/16', |
||
| 64 | 'modIcons32' => 'assets/images/icons/32', |
||
| 65 | |||
| 66 | // Local path icons |
||
| 67 | 'moduleIcons16' => 'assets/images/icons/16', |
||
| 68 | 'moduleIcons32' => 'assets/images/icons/32', |
||
| 69 | // About |
||
| 70 | 'module_status' => 'Beta 2', |
||
| 71 | // 'release_date' => "2013/10/07", |
||
| 72 | //'release_date' => '2016/06/16', |
||
|
0 ignored issues
–
show
|
|||
| 73 | 'release_date' => '2017/05/01', |
||
| 74 | // 'release' => "2015-04-03", |
||
| 75 | 'demo_site_url' => 'http://xoops.org', |
||
| 76 | 'demo_site_name' => 'XOOPS Demo Site', |
||
| 77 | 'support_url' => 'http://xoops.org/modules/newbb', |
||
| 78 | 'support_name' => 'Support Forum', |
||
| 79 | 'module_website_url' => 'www.xoops.org', |
||
| 80 | 'module_website_name' => 'XOOPS Project', |
||
| 81 | // Admin system menu |
||
| 82 | 'system_menu' => 1, |
||
| 83 | // Admin menu |
||
| 84 | 'hasAdmin' => 1, |
||
| 85 | 'adminindex' => 'admin/index.php', |
||
| 86 | 'adminmenu' => 'admin/menu.php', |
||
| 87 | // Main menu |
||
| 88 | 'hasMain' => 1, |
||
| 89 | // Install/Update |
||
| 90 | 'onInstall' => 'include/oninstall.php', |
||
| 91 | 'onUpdate' => 'include/onupdate.php' |
||
| 92 | ); |
||
| 93 | |||
| 94 | // ------------------- Mysql ------------------- // |
||
| 95 | // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) |
||
| 96 | // All tables should not have any prefix! |
||
| 97 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 98 | |||
| 99 | // Tables created by sql file (without prefix!) |
||
| 100 | //include_once 'include/config.php'; |
||
| 101 | $modversion['tables'] = array( |
||
| 102 | $moduleDirName . '_broken', |
||
| 103 | $moduleDirName . '_cat', |
||
| 104 | $moduleDirName . '_videos', |
||
| 105 | $moduleDirName . '_mod', |
||
| 106 | $moduleDirName . '_votedata', |
||
| 107 | $moduleDirName . '_indexpage', |
||
| 108 | $moduleDirName . '_altcat' |
||
| 109 | ); |
||
| 110 | |||
| 111 | // ------------------- blocks ------------------- // |
||
| 112 | $modversion['blocks'][] = array( |
||
| 113 | 'file' => $moduleDirName . '_top.php', |
||
| 114 | 'name' => _MI_XOOPSTUBE_BNAME1, |
||
| 115 | 'description' => _MI_XOOPSTUBE_BNAME1_DESC, |
||
| 116 | 'show_func' => 'showTopVideoBlock', |
||
| 117 | 'edit_func' => 'editTopVideoBlock', |
||
| 118 | 'options' => 'published|10|19|d/m/Y|0', |
||
| 119 | 'template' => 'xoopstube_block_new_t.tpl', |
||
| 120 | 'can_clone' => true |
||
| 121 | ); |
||
| 122 | |||
| 123 | $modversion['blocks'][] = array( |
||
| 124 | 'file' => $moduleDirName . '_top.php', |
||
| 125 | 'name' => _MI_XOOPSTUBE_BNAME2, |
||
| 126 | 'description' => _MI_XOOPSTUBE_BNAME2_DESC, |
||
| 127 | 'show_func' => 'showTopVideoBlock', |
||
| 128 | 'edit_func' => 'editTopVideoBlock', |
||
| 129 | 'options' => 'published|10|19|d/m/Y|0', |
||
| 130 | 'template' => 'xoopstube_block_new.tpl', |
||
| 131 | 'can_clone' => true |
||
| 132 | ); |
||
| 133 | |||
| 134 | $modversion['blocks'][] = array( |
||
| 135 | 'file' => $moduleDirName . '_top.php', |
||
| 136 | 'name' => _MI_XOOPSTUBE_BNAME3, |
||
| 137 | 'description' => _MI_XOOPSTUBE_BNAME3_DESC, |
||
| 138 | 'show_func' => 'showTopVideoBlock', |
||
| 139 | 'edit_func' => 'editTopVideoBlock', |
||
| 140 | 'options' => 'hits|10|19|d/m/Y|0', |
||
| 141 | 'template' => 'xoopstube_block_top_t.tpl', |
||
| 142 | 'can_clone' => true |
||
| 143 | ); |
||
| 144 | |||
| 145 | $modversion['blocks'][] = array( |
||
| 146 | 'file' => $moduleDirName . '_top.php', |
||
| 147 | 'name' => _MI_XOOPSTUBE_BNAME4, |
||
| 148 | 'description' => _MI_XOOPSTUBE_BNAME4_DESC, |
||
| 149 | 'show_func' => 'showTopVideoBlock', |
||
| 150 | 'edit_func' => 'editTopVideoBlock', |
||
| 151 | 'options' => 'hits|10|19|d/m/Y|0', |
||
| 152 | 'template' => 'xoopstube_block_top.tpl', |
||
| 153 | 'can_clone' => true |
||
| 154 | ); |
||
| 155 | |||
| 156 | $modversion['blocks'][] = array( |
||
| 157 | 'file' => $moduleDirName . '_top.php', |
||
| 158 | 'name' => _MI_XOOPSTUBE_BNAME5, |
||
| 159 | 'description' => _MI_XOOPSTUBE_BNAME5_DESC, |
||
| 160 | 'show_func' => 'showTopVideoBlock', |
||
| 161 | 'edit_func' => 'editTopVideoBlock', |
||
| 162 | 'options' => 'published|5|19|d/m/Y|0', |
||
| 163 | 'template' => 'xoopstube_block_new_h.tpl', |
||
| 164 | 'can_clone' => true |
||
| 165 | ); |
||
| 166 | |||
| 167 | $modversion['blocks'][] = array( |
||
| 168 | 'file' => $moduleDirName . '_top.php', |
||
| 169 | 'name' => _MI_XOOPSTUBE_BNAME6, |
||
| 170 | 'description' => _MI_XOOPSTUBE_BNAME6_DESC, |
||
| 171 | 'show_func' => 'getRandomVideo', |
||
| 172 | 'edit_func' => 'editTopVideoBlock', |
||
| 173 | 'options' => 'random|5|19|d/m/Y|0', |
||
| 174 | 'template' => 'xoopstube_block_random.tpl', |
||
| 175 | 'can_clone' => true |
||
| 176 | ); |
||
| 177 | |||
| 178 | $modversion['blocks'][] = array( |
||
| 179 | 'file' => $moduleDirName . '_top.php', |
||
| 180 | 'name' => _MI_XOOPSTUBE_BNAME7, |
||
| 181 | 'description' => _MI_XOOPSTUBE_BNAME7_DESC, |
||
| 182 | 'show_func' => 'getRandomVideoForHorizontalBlock', |
||
| 183 | 'edit_func' => 'editTopVideoBlock', |
||
| 184 | 'options' => 'randomh|5|19|d/m/Y|0', |
||
| 185 | 'template' => 'xoopstube_block_random_h.tpl', |
||
| 186 | 'can_clone' => true |
||
| 187 | ); |
||
| 188 | |||
| 189 | $modversion['blocks'][] = array( |
||
| 190 | 'file' => $moduleDirName . '_banner.php', |
||
| 191 | 'name' => _MI_XOOPSTUBE_BNAME8, |
||
| 192 | 'description' => _MI_XOOPSTUBE_BNAME8_DESC, |
||
| 193 | 'show_func' => 'xtubeShowBannerB', |
||
| 194 | 'edit_func' => 'xtubeEditBannerB', |
||
| 195 | 'options' => 'hits|10|19', |
||
| 196 | 'template' => 'xoopstube_block_banner.tpl', |
||
| 197 | 'can_clone' => true |
||
| 198 | ); |
||
| 199 | |||
| 200 | $modversion['blocks'][] = array( |
||
| 201 | 'file' => $moduleDirName . '_block_tag.php', |
||
| 202 | 'name' => _MI_XOOPSTUBE_BNAME9, |
||
| 203 | 'description' => _MI_XOOPSTUBE_BNAME9_DESC, |
||
| 204 | 'show_func' => 'xtubeShowTagBlockCloud', |
||
| 205 | 'edit_func' => 'xtubeEditTagBlockCloud', |
||
| 206 | 'options' => '100|0|150|80', |
||
| 207 | 'template' => 'xoopstube_tag_block_cloud.tpl', |
||
| 208 | 'can_clone' => true |
||
| 209 | ); |
||
| 210 | |||
| 211 | $modversion['blocks'][] = array( |
||
| 212 | 'file' => $moduleDirName . '_block_tag.php', |
||
| 213 | 'name' => _MI_XOOPSTUBE_BNAME10, |
||
| 214 | 'description' => _MI_XOOPSTUBE_BNAME10_DESC, |
||
| 215 | 'show_func' => 'xtubeShowTagBlockTop', |
||
| 216 | 'edit_func' => 'xtubeEditTagBlockTop', |
||
| 217 | 'options' => '50|30|c', |
||
| 218 | 'template' => 'xoopstube_tag_block_tag.tpl', |
||
| 219 | 'can_clone' => true |
||
| 220 | ); |
||
| 221 | |||
| 222 | $modversion['blocks'][] = array( |
||
| 223 | 'file' => $moduleDirName . '_top.php', |
||
| 224 | 'name' => _MI_XOOPSTUBE_BNAME11, |
||
| 225 | 'description' => _MI_XOOPSTUBE_BNAME11_DESC, |
||
| 226 | 'show_func' => 'getSpotlightVideos', |
||
| 227 | 'edit_func' => 'editTopVideoBlock', |
||
| 228 | 'options' => 'date|3|19', |
||
| 229 | 'template' => 'xoopstube_block_spotlight.tpl', |
||
| 230 | 'can_clone' => true |
||
| 231 | ); |
||
| 232 | |||
| 233 | // This part inserts the selected topics as sub items in the Xoops main menu |
||
| 234 | $moduleHandler = xoops_getHandler('module'); |
||
| 235 | $module = $moduleHandler->getByDirname($modversion['dirname']); |
||
| 236 | $cansubmit = 0; |
||
| 237 | if (is_object($module)) { |
||
| 238 | $groups = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : XOOPS_GROUP_ANONYMOUS; |
||
| 239 | $gpermHandler = xoops_getHandler('groupperm'); |
||
| 240 | if ($gpermHandler->checkRight('XTubeSubPerm', 0, $groups, $module->getVar('mid'))) { |
||
| 241 | $cansubmit = 1; |
||
| 242 | } |
||
| 243 | } |
||
| 244 | if (1 == $cansubmit) { |
||
| 245 | $modversion['sub'][0]['name'] = _MI_XOOPSTUBE_SMNAME1; |
||
| 246 | $modversion['sub'][0]['url'] = 'submit.php'; |
||
| 247 | } |
||
| 248 | unset($cansubmit); |
||
| 249 | |||
| 250 | $i = 1; |
||
| 251 | $modversion['sub'][$i]['name'] = _MI_XOOPSTUBE_SMNAME2; |
||
| 252 | $modversion['sub'][$i]['url'] = 'topten.php?list=hit'; |
||
| 253 | |||
| 254 | ++$i; |
||
| 255 | $modversion['sub'][$i]['name'] = _MI_XOOPSTUBE_SMNAME3; |
||
| 256 | $modversion['sub'][$i]['url'] = 'topten.php?list=rate'; |
||
| 257 | |||
| 258 | ++$i; |
||
| 259 | $modversion['sub'][$i]['name'] = _MI_XOOPSTUBE_SMNAME4; |
||
| 260 | $modversion['sub'][$i]['url'] = 'newlist.php?newvideoshowdays=7'; |
||
| 261 | unset($i); |
||
| 262 | |||
| 263 | // Search |
||
| 264 | $modversion['hasSearch'] = 1; |
||
| 265 | $modversion['search']['file'] = 'include/search.inc.php'; |
||
| 266 | $modversion['search']['func'] = 'xtubeSearch'; |
||
| 267 | |||
| 268 | // Comments |
||
| 269 | $modversion['hasComments'] = 1; |
||
| 270 | $modversion['comments']['itemName'] = 'lid'; |
||
| 271 | $modversion['comments']['pageName'] = 'singlevideo.php'; |
||
| 272 | $modversion['comments']['extraParams'] = array('cid'); |
||
| 273 | |||
| 274 | // Comment callback functions |
||
| 275 | $modversion['comments']['callbackFile'] = 'include/comment_functions.php'; |
||
| 276 | $modversion['comments']['callback']['approve'] = 'xtubeApproveComment'; |
||
| 277 | $modversion['comments']['callback']['update'] = 'xtubeUpdateComment'; |
||
| 278 | |||
| 279 | // ------------------- Templates ------------------- // |
||
| 280 | $modversion['templates'][] = array( |
||
| 281 | 'file' => $modversion['dirname'] . '_brokenvideo.tpl', |
||
| 282 | 'description' => '' |
||
| 283 | ); |
||
| 284 | |||
| 285 | $modversion['templates'][] = array( |
||
| 286 | 'file' => $modversion['dirname'] . '_videoload.tpl', |
||
| 287 | 'description' => '' |
||
| 288 | ); |
||
| 289 | |||
| 290 | $modversion['templates'][] = array( |
||
| 291 | 'file' => $modversion['dirname'] . '_index.tpl', |
||
| 292 | 'description' => '' |
||
| 293 | ); |
||
| 294 | |||
| 295 | $modversion['templates'][] = array( |
||
| 296 | 'file' => $modversion['dirname'] . '_ratevideo.tpl', |
||
| 297 | 'description' => '' |
||
| 298 | ); |
||
| 299 | |||
| 300 | $modversion['templates'][] = array( |
||
| 301 | 'file' => $modversion['dirname'] . '_singlevideo.tpl', |
||
| 302 | 'description' => '' |
||
| 303 | ); |
||
| 304 | |||
| 305 | $modversion['templates'][] = array( |
||
| 306 | 'file' => $modversion['dirname'] . '_topten.tpl', |
||
| 307 | 'description' => '' |
||
| 308 | ); |
||
| 309 | |||
| 310 | $modversion['templates'][] = array( |
||
| 311 | 'file' => $modversion['dirname'] . '_viewcat.tpl', |
||
| 312 | 'description' => '' |
||
| 313 | ); |
||
| 314 | |||
| 315 | $modversion['templates'][] = array( |
||
| 316 | 'file' => $modversion['dirname'] . '_newlistindex.tpl', |
||
| 317 | 'description' => '' |
||
| 318 | ); |
||
| 319 | |||
| 320 | $modversion['templates'][] = array( |
||
| 321 | 'file' => $modversion['dirname'] . '_common_letterschoice.tpl', |
||
| 322 | 'description' => '' |
||
| 323 | ); |
||
| 324 | |||
| 325 | $modversion['templates'][] = array( |
||
| 326 | 'file' => $modversion['dirname'] . '_co_letterschoice.tpl', |
||
| 327 | 'description' => '' |
||
| 328 | ); |
||
| 329 | |||
| 330 | // ------------------- Config ------------------- // |
||
| 331 | $modversion['config'][] = array( |
||
| 332 | 'name' => 'popular', |
||
| 333 | 'title' => '_MI_XOOPSTUBE_POPULAR', |
||
| 334 | 'description' => '_MI_XOOPSTUBE_POPULARDSC', |
||
| 335 | 'formtype' => 'select', |
||
| 336 | 'valuetype' => 'int', |
||
| 337 | 'default' => 100, |
||
| 338 | 'options' => array( |
||
| 339 | '5' => 5, |
||
| 340 | '10' => 10, |
||
| 341 | '50' => 50, |
||
| 342 | '100' => 100, |
||
| 343 | '200' => 200, |
||
| 344 | '500' => 500, |
||
| 345 | '1000' => 1000 |
||
| 346 | ) |
||
| 347 | ); |
||
| 348 | |||
| 349 | $modversion['config'][] = array( |
||
| 350 | 'name' => 'displayicons', |
||
| 351 | 'title' => '_MI_XOOPSTUBE_ICONDISPLAY', |
||
| 352 | 'description' => '_MI_XOOPSTUBE_DISPLAYICONDSC', |
||
| 353 | 'formtype' => 'select', |
||
| 354 | 'valuetype' => 'int', |
||
| 355 | 'default' => 1, |
||
| 356 | 'options' => array( |
||
| 357 | '_MI_XOOPSTUBE_DISPLAYICON1' => 1, |
||
| 358 | '_MI_XOOPSTUBE_DISPLAYICON2' => 2, |
||
| 359 | '_MI_XOOPSTUBE_DISPLAYICON3' => 3 |
||
| 360 | ) |
||
| 361 | ); |
||
| 362 | |||
| 363 | $modversion['config'][] = array( |
||
| 364 | 'name' => 'daysnew', |
||
| 365 | 'title' => '_MI_XOOPSTUBE_DAYSNEW', |
||
| 366 | 'description' => '_MI_XOOPSTUBE_DAYSNEWDSC', |
||
| 367 | 'formtype' => 'textbox', |
||
| 368 | 'valuetype' => 'int', |
||
| 369 | 'default' => 10 |
||
| 370 | ); |
||
| 371 | |||
| 372 | $modversion['config'][] = array( |
||
| 373 | 'name' => 'daysupdated', |
||
| 374 | 'title' => '_MI_XOOPSTUBE_DAYSUPDATED', |
||
| 375 | 'description' => '_MI_XOOPSTUBE_DAYSUPDATEDDSC', |
||
| 376 | 'formtype' => 'textbox', |
||
| 377 | 'valuetype' => 'int', |
||
| 378 | 'default' => 10 |
||
| 379 | ); |
||
| 380 | |||
| 381 | $modversion['config'][] = array( |
||
| 382 | 'name' => 'perpage', |
||
| 383 | 'title' => '_MI_XOOPSTUBE_PERPAGE', |
||
| 384 | 'description' => '_MI_XOOPSTUBE_PERPAGEDSC', |
||
| 385 | 'formtype' => 'select', |
||
| 386 | 'valuetype' => 'int', |
||
| 387 | 'default' => 10, |
||
| 388 | 'options' => array( |
||
| 389 | '5' => 5, |
||
| 390 | '10' => 10, |
||
| 391 | '15' => 15, |
||
| 392 | '20' => 20, |
||
| 393 | '25' => 25, |
||
| 394 | '30' => 30, |
||
| 395 | '50' => 50 |
||
| 396 | ) |
||
| 397 | ); |
||
| 398 | |||
| 399 | $modversion['config'][] = array( |
||
| 400 | 'name' => 'admin_perpage', |
||
| 401 | 'title' => '_MI_XOOPSTUBE_ADMINPAGE', |
||
| 402 | 'description' => '_MI_XOOPSTUBE_AMDMINPAGEDSC', |
||
| 403 | 'formtype' => 'select', |
||
| 404 | 'valuetype' => 'int', |
||
| 405 | 'default' => 10, |
||
| 406 | 'options' => array( |
||
| 407 | '5' => 5, |
||
| 408 | '10' => 10, |
||
| 409 | '15' => 15, |
||
| 410 | '20' => 20, |
||
| 411 | '25' => 25, |
||
| 412 | '30' => 30, |
||
| 413 | '50' => 50, |
||
| 414 | '75' => 75, |
||
| 415 | '100' => 100 |
||
| 416 | ) |
||
| 417 | ); |
||
| 418 | |||
| 419 | $qa = ' (A)'; |
||
| 420 | $qd = ' (D)'; |
||
| 421 | |||
| 422 | $modversion['config'][] = array( |
||
| 423 | 'name' => 'linkxorder', |
||
| 424 | 'title' => '_MI_XOOPSTUBE_ARTICLESSORT', |
||
| 425 | 'description' => '_MI_XOOPSTUBE_ARTICLESSORTDSC', |
||
| 426 | 'formtype' => 'select', |
||
| 427 | 'valuetype' => 'text', |
||
| 428 | 'default' => 'title ASC', |
||
| 429 | 'options' => array( |
||
| 430 | _MI_XOOPSTUBE_TITLE . $qa => 'title ASC', |
||
| 431 | _MI_XOOPSTUBE_TITLE . $qd => 'title DESC', |
||
| 432 | _MI_XOOPSTUBE_SUBMITTED2 . $qa => 'published ASC', |
||
| 433 | _MI_XOOPSTUBE_SUBMITTED2 . $qd => 'published DESC', |
||
| 434 | _MI_XOOPSTUBE_RATING . $qa => 'rating ASC', |
||
| 435 | _MI_XOOPSTUBE_RATING . $qd => 'rating DESC', |
||
| 436 | _MI_XOOPSTUBE_POPULARITY . $qa => 'hits ASC', |
||
| 437 | _MI_XOOPSTUBE_POPULARITY . $qd => 'hits DESC' |
||
| 438 | ) |
||
| 439 | ); |
||
| 440 | |||
| 441 | $modversion['config'][] = array( |
||
| 442 | 'name' => 'sortcats', |
||
| 443 | 'title' => '_MI_XOOPSTUBE_SORTCATS', |
||
| 444 | 'description' => '_MI_XOOPSTUBE_SORTCATSDSC', |
||
| 445 | 'formtype' => 'select', |
||
| 446 | 'valuetype' => 'text', |
||
| 447 | 'default' => 'title', |
||
| 448 | 'options' => array( |
||
| 449 | 'Weight' => 'weight', |
||
| 450 | 'Title' => 'title' |
||
| 451 | ) |
||
| 452 | ); |
||
| 453 | |||
| 454 | $modversion['config'][] = array( |
||
| 455 | 'name' => 'subcats', |
||
| 456 | 'title' => '_MI_XOOPSTUBE_SUBCATS', |
||
| 457 | 'description' => '_MI_XOOPSTUBE_SUBCATSDSC', |
||
| 458 | 'formtype' => 'yesno', |
||
| 459 | 'valuetype' => 'int', |
||
| 460 | 'default' => 0 |
||
| 461 | ); |
||
| 462 | |||
| 463 | $modversion['config'][] = array( |
||
| 464 | 'name' => 'catcolumns', |
||
| 465 | 'title' => '_MI_XOOPSTUBE_CATCOLUMNS', |
||
| 466 | 'description' => '_MI_XOOPSTUBE_CATCOLUMNSDSC', |
||
| 467 | 'formtype' => 'select', |
||
| 468 | 'valuetype' => 'int', |
||
| 469 | 'default' => 2, |
||
| 470 | 'options' => array( |
||
| 471 | '1' => 1, |
||
| 472 | '2' => 2, |
||
| 473 | '3' => 3, |
||
| 474 | '4' => 4, |
||
| 475 | '5' => 5 |
||
| 476 | ) |
||
| 477 | ); |
||
| 478 | |||
| 479 | xoops_load('XoopsEditorHandler'); |
||
| 480 | $editorHandler = XoopsEditorHandler::getInstance(); |
||
| 481 | $editorList = array_flip($editorHandler->getList()); |
||
| 482 | |||
| 483 | $modversion['config'][] = array( |
||
| 484 | 'name' => 'form_options', |
||
| 485 | 'title' => '_MI_XOOPSTUBE_EDITOR', |
||
| 486 | 'description' => '_MI_XOOPSTUBE_EDITORCHOICE', |
||
| 487 | 'formtype' => 'select', |
||
| 488 | 'valuetype' => 'text', |
||
| 489 | 'options' => $editorList, |
||
| 490 | 'default' => 'dhtmltextarea' |
||
| 491 | ); |
||
| 492 | |||
| 493 | $modversion['config'][] = array( |
||
| 494 | 'name' => 'form_optionsuser', |
||
| 495 | 'title' => '_MI_XOOPSTUBE_EDITORUSER', |
||
| 496 | 'description' => '_MI_XOOPSTUBE_EDITORCHOICEUSER', |
||
| 497 | 'formtype' => 'select', |
||
| 498 | 'valuetype' => 'text', |
||
| 499 | 'options' => $editorList, |
||
| 500 | 'default' => 'dhtmltextarea' |
||
| 501 | ); |
||
| 502 | |||
| 503 | // 'default' => 'dhtml'), |
||
| 504 | // 'default' => 'dhtmlext'), |
||
| 505 | |||
| 506 | $modversion['config'][] = array( |
||
| 507 | 'name' => 'screenshot', |
||
| 508 | 'title' => '_MI_XOOPSTUBE_USESHOTS', |
||
| 509 | 'description' => '_MI_XOOPSTUBE_USESHOTSDSC', |
||
| 510 | 'formtype' => 'yesno', |
||
| 511 | 'valuetype' => 'int', |
||
| 512 | 'default' => 1 |
||
| 513 | ); |
||
| 514 | |||
| 515 | $modversion['config'][] = array( |
||
| 516 | 'name' => 'usethumbs', |
||
| 517 | 'title' => '_MI_XOOPSTUBE_USETHUMBS', |
||
| 518 | 'description' => '_MI_XOOPSTUBE_USETHUMBSDSC', |
||
| 519 | 'formtype' => 'yesno', |
||
| 520 | 'valuetype' => 'int', |
||
| 521 | 'default' => 0 |
||
| 522 | ); |
||
| 523 | |||
| 524 | $modversion['config'][] = array( |
||
| 525 | 'name' => 'updatethumbs', |
||
| 526 | 'title' => '_MI_XOOPSTUBE_IMGUPDATE', |
||
| 527 | 'description' => '_MI_XOOPSTUBE_IMGUPDATEDSC', |
||
| 528 | 'formtype' => 'yesno', |
||
| 529 | 'valuetype' => 'int', |
||
| 530 | 'default' => 1 |
||
| 531 | ); |
||
| 532 | |||
| 533 | $modversion['config'][] = array( |
||
| 534 | 'name' => 'shotwidth', |
||
| 535 | 'title' => '_MI_XOOPSTUBE_SHOTWIDTH', |
||
| 536 | 'description' => '_MI_XOOPSTUBE_SHOTWIDTHDSC', |
||
| 537 | 'formtype' => 'textbox', |
||
| 538 | 'valuetype' => 'int', |
||
| 539 | 'default' => 120 |
||
| 540 | ); |
||
| 541 | |||
| 542 | $modversion['config'][] = array( |
||
| 543 | 'name' => 'shotheight', |
||
| 544 | 'title' => '_MI_XOOPSTUBE_SHOTHEIGHT', |
||
| 545 | 'description' => '_MI_XOOPSTUBE_SHOTHEIGHTDSC', |
||
| 546 | 'formtype' => 'textbox', |
||
| 547 | 'valuetype' => 'int', |
||
| 548 | 'default' => 90 |
||
| 549 | ); |
||
| 550 | |||
| 551 | $modversion['config'][] = array( |
||
| 552 | 'name' => 'maxfilesize', |
||
| 553 | 'title' => '_MI_XOOPSTUBE_MAXFILESIZE', |
||
| 554 | 'description' => '_MI_XOOPSTUBE_MAXFILESIZEDSC', |
||
| 555 | 'formtype' => 'textbox', |
||
| 556 | 'valuetype' => 'int', |
||
| 557 | 'default' => 200000 |
||
| 558 | ); |
||
| 559 | |||
| 560 | $modversion['config'][] = array( |
||
| 561 | 'name' => 'maximgwidth', |
||
| 562 | 'title' => '_MI_XOOPSTUBE_IMGWIDTH', |
||
| 563 | 'description' => '_MI_XOOPSTUBE_IMGWIDTHDSC', |
||
| 564 | 'formtype' => 'textbox', |
||
| 565 | 'valuetype' => 'int', |
||
| 566 | 'default' => 600 |
||
| 567 | ); |
||
| 568 | |||
| 569 | $modversion['config'][] = array( |
||
| 570 | 'name' => 'maximgheight', |
||
| 571 | 'title' => '_MI_XOOPSTUBE_IMGHEIGHT', |
||
| 572 | 'description' => '_MI_XOOPSTUBE_IMGHEIGHTDSC', |
||
| 573 | 'formtype' => 'textbox', |
||
| 574 | 'valuetype' => 'int', |
||
| 575 | 'default' => 600 |
||
| 576 | ); |
||
| 577 | |||
| 578 | $modversion['config'][] = array( |
||
| 579 | 'name' => 'imagequality', |
||
| 580 | 'title' => '_MI_XOOPSTUBE_QUALITY', |
||
| 581 | 'description' => '_MI_XOOPSTUBE_QUALITYDSC', |
||
| 582 | 'formtype' => 'textbox', |
||
| 583 | 'valuetype' => 'int', |
||
| 584 | 'default' => 100 |
||
| 585 | ); |
||
| 586 | |||
| 587 | $modversion['config'][] = array( |
||
| 588 | 'name' => 'imageaspect', |
||
| 589 | 'title' => '_MI_XOOPSTUBE_IMAGEASPECT', |
||
| 590 | 'description' => '_MI_XOOPSTUBE_IMAGEASPECTDSC', |
||
| 591 | 'formtype' => 'textbox', |
||
| 592 | 'valuetype' => 'int', |
||
| 593 | 'default' => 1 |
||
| 594 | ); |
||
| 595 | |||
| 596 | // Directories ----------------------------------------------- |
||
| 597 | $modversion['config'][] = array( |
||
| 598 | 'name' => 'directiories', |
||
| 599 | 'title' => '_MI_XOOPSTUBE_PREFERENCES_DIRECTIORIES', |
||
| 600 | 'description' => '', |
||
| 601 | 'formtype' => 'line_break', |
||
| 602 | 'valuetype' => 'textbox', |
||
| 603 | 'default' => 'odd' |
||
| 604 | ); |
||
| 605 | |||
| 606 | $modversion['config'][] = array( |
||
| 607 | 'name' => 'dirmode', |
||
| 608 | 'title' => '_MI_XOOPSTUBE_PREFERENCES_DIRMODE', |
||
| 609 | 'description' => '_MI_XOOPSTUBE_PREFERENCES_DIRMODE_DESC', |
||
| 610 | 'formtype' => 'textbox', |
||
| 611 | 'valuetype' => 'text', |
||
| 612 | 'default' => '0777' |
||
| 613 | ); |
||
| 614 | |||
| 615 | $modversion['config'][] = array( |
||
| 616 | 'name' => 'mainimagedir', |
||
| 617 | 'title' => '_MI_XOOPSTUBE_MAINIMGDIR', |
||
| 618 | 'description' => '_MI_XOOPSTUBE_MAINIMGDIRDSC', |
||
| 619 | 'formtype' => 'textbox', |
||
| 620 | 'valuetype' => 'text', |
||
| 621 | 'default' => 'modules/' . $moduleDirName . '/assets/images' |
||
| 622 | ); |
||
| 623 | |||
| 624 | $modversion['config'][] = array( |
||
| 625 | 'name' => 'catimage', |
||
| 626 | 'title' => '_MI_XOOPSTUBE_CATEGORYIMG', |
||
| 627 | 'description' => '_MI_XOOPSTUBE_CATEGORYIMGDSC', |
||
| 628 | 'formtype' => 'textbox', |
||
| 629 | 'valuetype' => 'text', |
||
| 630 | //'default' => 'uploads/xt_images/category', |
||
| 631 | 'default' => 'uploads/xoopstube/category' |
||
| 632 | ); |
||
| 633 | |||
| 634 | $modversion['config'][] = array( |
||
| 635 | 'name' => 'videodir', |
||
| 636 | 'title' => '_MI_XOOPSTUBE_VIDEODIR', |
||
| 637 | 'description' => '_MI_XOOPSTUBE_VIDEODIRDSC', |
||
| 638 | 'formtype' => 'textbox', |
||
| 639 | 'valuetype' => 'text', |
||
| 640 | //'default' => 'uploads/xt_images/videos', |
||
| 641 | 'default' => 'uploads/xoopstube/videos' |
||
| 642 | ); |
||
| 643 | |||
| 644 | $modversion['config'][] = array( |
||
| 645 | 'name' => 'videoimgdir', |
||
| 646 | 'title' => '_MI_XOOPSTUBE_VIDEOIMGDIR', |
||
| 647 | 'description' => '_MI_XOOPSTUBE_VIDEOIMGDIRDSC', |
||
| 648 | 'formtype' => 'textbox', |
||
| 649 | 'valuetype' => 'text', |
||
| 650 | //'default' => 'uploads/xt_images/screenshots', |
||
| 651 | 'default' => 'uploads/xoopstube/screenshots' |
||
| 652 | ); |
||
| 653 | |||
| 654 | // Other ------------------------------------------------- |
||
| 655 | $modversion['config'][] = array( |
||
| 656 | 'name' => 'other', |
||
| 657 | 'title' => '_MI_XOOPSTUBE_PREFERENCES_OTHERS', |
||
| 658 | 'description' => '', |
||
| 659 | 'formtype' => 'line_break', |
||
| 660 | 'valuetype' => 'textbox', |
||
| 661 | 'default' => 'odd' |
||
| 662 | ); |
||
| 663 | |||
| 664 | $modversion['config'][] = array( |
||
| 665 | 'name' => 'dateformat', |
||
| 666 | 'title' => '_MI_XOOPSTUBE_DATEFORMAT', |
||
| 667 | 'description' => '_MI_XOOPSTUBE_DATEFORMATDSC', |
||
| 668 | 'formtype' => 'textbox', |
||
| 669 | 'valuetype' => 'text', |
||
| 670 | 'default' => 'D, d-M-Y' |
||
| 671 | ); |
||
| 672 | |||
| 673 | $modversion['config'][] = array( |
||
| 674 | 'name' => 'dateformatadmin', |
||
| 675 | 'title' => '_MI_XOOPSTUBE_DATEFORMATADMIN', |
||
| 676 | 'description' => '_MI_XOOPSTUBE_DATEFORMATADMINDSC', |
||
| 677 | 'formtype' => 'textbox', |
||
| 678 | 'valuetype' => 'text', |
||
| 679 | 'default' => 'D, d-M-Y - G:i' |
||
| 680 | ); |
||
| 681 | |||
| 682 | $modversion['config'][] = array( |
||
| 683 | 'name' => 'totalchars', |
||
| 684 | 'title' => '_MI_XOOPSTUBE_TOTALCHARS', |
||
| 685 | 'description' => '_MI_XOOPSTUBE_TOTALCHARSDSC', |
||
| 686 | 'formtype' => 'select', |
||
| 687 | 'valuetype' => 'int', |
||
| 688 | 'default' => 200, |
||
| 689 | 'options' => array( |
||
| 690 | '100' => 100, |
||
| 691 | '200' => 200, |
||
| 692 | '300' => 300, |
||
| 693 | '400' => 400, |
||
| 694 | '500' => 500, |
||
| 695 | '750' => 750 |
||
| 696 | ) |
||
| 697 | ); |
||
| 698 | $modversion['config'][] = array( |
||
| 699 | 'name' => 'autoplay', |
||
| 700 | 'title' => '_MI_XOOPSTUBE_AUTOPLAY', |
||
| 701 | 'description' => '_MI_XOOPSTUBE_AUTOPLAYDSC', |
||
| 702 | 'formtype' => 'yesno', |
||
| 703 | 'valuetype' => 'int', |
||
| 704 | 'default' => 0 |
||
| 705 | ); |
||
| 706 | |||
| 707 | $modversion['config'][] = array( |
||
| 708 | 'name' => 'othervideos', |
||
| 709 | 'title' => '_MI_XOOPSTUBE_OTHERVIDEOS', |
||
| 710 | 'description' => '_MI_XOOPSTUBE_OTHERVIDEOSDSC', |
||
| 711 | 'formtype' => 'yesno', |
||
| 712 | 'valuetype' => 'int', |
||
| 713 | 'default' => 1 |
||
| 714 | ); |
||
| 715 | |||
| 716 | $modversion['config'][] = array( |
||
| 717 | 'name' => 'showsubmitter', |
||
| 718 | 'title' => '_MI_XOOPSTUBE_SHOWSUBMITTER', |
||
| 719 | 'description' => '_MI_XOOPSTUBE_SHOWSUBMITTERDSC', |
||
| 720 | 'formtype' => 'yesno', |
||
| 721 | 'valuetype' => 'int', |
||
| 722 | 'default' => 1 |
||
| 723 | ); |
||
| 724 | |||
| 725 | $modversion['config'][] = array( |
||
| 726 | 'name' => 'showsbookmarks', |
||
| 727 | 'title' => '_MI_XOOPSTUBE_SHOWSBOOKMARKS', |
||
| 728 | 'description' => '_MI_XOOPSTUBE_SHOWSBOOKMARKSDSC', |
||
| 729 | 'formtype' => 'yesno', |
||
| 730 | 'valuetype' => 'int', |
||
| 731 | 'default' => 1 |
||
| 732 | ); |
||
| 733 | |||
| 734 | $modversion['config'][] = array( |
||
| 735 | 'name' => 'usemetadescr', |
||
| 736 | 'title' => '_MI_XOOPSTUBE_USEMETADESCR', |
||
| 737 | 'description' => '_MI_XOOPSTUBE_USEMETADSC', |
||
| 738 | 'formtype' => 'yesno', |
||
| 739 | 'valuetype' => 'int', |
||
| 740 | 'default' => 1 |
||
| 741 | ); |
||
| 742 | |||
| 743 | $modversion['config'][] = array( |
||
| 744 | 'name' => 'usercantag', |
||
| 745 | 'title' => '_MI_XOOPSTUBE_USERTAGDESCR', |
||
| 746 | 'description' => '_MI_XOOPSTUBE_USERTAGDSC', |
||
| 747 | 'formtype' => 'yesno', |
||
| 748 | 'valuetype' => 'int', |
||
| 749 | 'default' => 0 |
||
| 750 | ); |
||
| 751 | |||
| 752 | $modversion['config'][] = array( |
||
| 753 | 'name' => 'showrating', |
||
| 754 | 'title' => '_MI_XOOPSTUBE_RATINGDISPLAY', |
||
| 755 | 'description' => '_MI_XOOPSTUBE_RATINGDISPLAYDSC', |
||
| 756 | 'formtype' => 'yesno', |
||
| 757 | 'valuetype' => 'int', |
||
| 758 | 'default' => 1 |
||
| 759 | ); |
||
| 760 | |||
| 761 | $modversion['config'][] = array( |
||
| 762 | 'name' => 'showdisclaimer', |
||
| 763 | 'title' => '_MI_XOOPSTUBE_SHOWDISCLAIMER', |
||
| 764 | 'description' => '_MI_XOOPSTUBE_SHOWDISCLAIMERDSC', |
||
| 765 | 'formtype' => 'yesno', |
||
| 766 | 'valuetype' => 'int', |
||
| 767 | 'default' => 0 |
||
| 768 | ); |
||
| 769 | |||
| 770 | $modversion['config'][] = array( |
||
| 771 | 'name' => 'disclaimer', |
||
| 772 | 'title' => '_MI_XOOPSTUBE_DISCLAIMER', |
||
| 773 | 'description' => '_MI_XOOPSTUBE_DISCLAIMERDSC', |
||
| 774 | 'formtype' => 'textsarea', |
||
| 775 | 'valuetype' => 'text', |
||
| 776 | 'default' => 'We have the right, but not the obligation to monitor and review submissions submitted by users, to this website. We shall not be responsible for any of the content of these messages. We further reserve the right, to delete, move or edit submissions that we, in its exclusive discretion, deems abusive, defamatory, obscene or in violation of any Copyright or Trademark laws or otherwise objectionable.' |
||
| 777 | ); |
||
| 778 | |||
| 779 | $modversion['config'][] = array( |
||
| 780 | 'name' => 'showvideodisclaimer', |
||
| 781 | 'title' => '_MI_XOOPSTUBE_SHOWVIDEODISCL', |
||
| 782 | 'description' => '_MI_XOOPSTUBE_SHOWVIDEODISCLDSC', |
||
| 783 | 'formtype' => 'yesno', |
||
| 784 | 'valuetype' => 'int', |
||
| 785 | 'default' => 0 |
||
| 786 | ); |
||
| 787 | |||
| 788 | $modversion['config'][] = array( |
||
| 789 | 'name' => 'videodisclaimer', |
||
| 790 | 'title' => '_MI_XOOPSTUBE_VIDEODISCLAIMER', |
||
| 791 | 'description' => '_MI_XOOPSTUBE_VIDEODISCLAIMERDSC', |
||
| 792 | 'formtype' => 'textsarea', |
||
| 793 | 'valuetype' => 'text', |
||
| 794 | 'default' => 'The videos on this site are provided as is without warranty either expressed or implied. If you have a question concerning a particular piece video, feel free to contact the administrator of this website.<br><br>Contact us if you have questions concerning this disclaimer.' |
||
| 795 | ); |
||
| 796 | |||
| 797 | $modversion['config'][] = array( |
||
| 798 | 'name' => 'copyright', |
||
| 799 | 'title' => '_MI_XOOPSTUBE_COPYRIGHT', |
||
| 800 | 'description' => '_MI_XOOPSTUBE_COPYRIGHTDSC', |
||
| 801 | 'formtype' => 'yesno', |
||
| 802 | 'valuetype' => 'int', |
||
| 803 | 'default' => 1 |
||
| 804 | ); |
||
| 805 | |||
| 806 | // ------------------- Notification ------------------- // |
||
| 807 | $modversion['config'][] = array( |
||
| 808 | 'name' => 'notifications', |
||
| 809 | 'title' => '_MI_XOOPSTUBE_PREFERENCES_COMMENTS', |
||
| 810 | 'description' => '', |
||
| 811 | 'formtype' => 'line_break', |
||
| 812 | 'valuetype' => 'textbox', |
||
| 813 | 'default' => 'odd' |
||
| 814 | ); |
||
| 815 | |||
| 816 | $modversion['hasNotification'] = 1; |
||
| 817 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
||
| 818 | $modversion['notification']['lookup_func'] = 'xtubeNotifyIteminfo'; |
||
| 819 | |||
| 820 | $modversion['notification']['category'][] = array( |
||
| 821 | 'name' => 'global', |
||
| 822 | 'title' => _MI_XOOPSTUBE_GLOBAL_NOTIFY, |
||
| 823 | 'description' => _MI_XOOPSTUBE_GLOBAL_NOTIFYDSC, |
||
| 824 | 'subscribe_from' => array('index.php', 'viewcat.php', 'singlevideo.php') |
||
| 825 | ); |
||
| 826 | |||
| 827 | $modversion['notification']['category'][] = array( |
||
| 828 | 'name' => 'category', |
||
| 829 | 'title' => _MI_XOOPSTUBE_CATEGORY_NOTIFY, |
||
| 830 | 'description' => _MI_XOOPSTUBE_CATEGORY_NOTIFYDSC, |
||
| 831 | 'subscribe_from' => array('viewcat.php', 'singlevideo.php'), |
||
| 832 | 'item_name' => 'cid', |
||
| 833 | 'allow_bookmark' => 1 |
||
| 834 | ); |
||
| 835 | |||
| 836 | $modversion['notification']['category'][] = array( |
||
| 837 | 'name' => 'video', |
||
| 838 | 'title' => _MI_XOOPSTUBE_VIDEO_NOTIFY, |
||
| 839 | 'description' => _MI_XOOPSTUBE_FILE_NOTIFYDSC, |
||
| 840 | 'subscribe_from' => 'singlevideo.php', |
||
| 841 | 'item_name' => 'lid', |
||
| 842 | 'allow_bookmark' => 1 |
||
| 843 | ); |
||
| 844 | |||
| 845 | $modversion['notification']['event'][] = array( |
||
| 846 | 'name' => 'new_category', |
||
| 847 | 'category' => 'global', |
||
| 848 | 'title' => _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFY, |
||
| 849 | 'caption' => _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFYCAP, |
||
| 850 | 'description' => _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFYDSC, |
||
| 851 | 'mail_template' => 'global_newcategory_notify', |
||
| 852 | 'mail_subject' => _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFYSBJ |
||
| 853 | ); |
||
| 854 | |||
| 855 | $modversion['notification']['event'][] = array( |
||
| 856 | 'name' => 'video_modify', |
||
| 857 | 'category' => 'global', |
||
| 858 | 'admin_only' => 1, |
||
| 859 | 'title' => _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFY, |
||
| 860 | 'caption' => _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFYCAP, |
||
| 861 | 'description' => _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFYDSC, |
||
| 862 | 'mail_template' => 'global_videomodify_notify', |
||
| 863 | 'mail_subject] ' => _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFYSBJ |
||
| 864 | ); |
||
| 865 | |||
| 866 | $modversion['notification']['event'][] = array( |
||
| 867 | 'name' => 'video_broken', |
||
| 868 | 'category' => 'global', |
||
| 869 | 'admin_only' => 1, |
||
| 870 | 'title' => _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFY, |
||
| 871 | 'caption' => _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFYCAP, |
||
| 872 | 'description' => _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFYDSC, |
||
| 873 | 'mail_template' => 'global_videobroken_notify', |
||
| 874 | 'mail_subject' => _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFYSBJ |
||
| 875 | ); |
||
| 876 | |||
| 877 | $modversion['notification']['event'][] = array( |
||
| 878 | 'name' => 'video_submit', |
||
| 879 | 'category' => 'global', |
||
| 880 | 'admin_only' => 1, |
||
| 881 | 'title' => _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFY, |
||
| 882 | 'caption' => _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFYCAP, |
||
| 883 | 'description' => _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFYDSC, |
||
| 884 | 'mail_template' => 'global_videosubmit_notify', |
||
| 885 | 'mail_subject' => _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFYSBJ |
||
| 886 | ); |
||
| 887 | |||
| 888 | $modversion['notification']['event'][] = array( |
||
| 889 | 'name' => 'new_video', |
||
| 890 | 'category' => 'global', |
||
| 891 | 'title' => _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFY, |
||
| 892 | 'caption' => _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFYCAP, |
||
| 893 | 'description' => _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFYDSC, |
||
| 894 | 'mail_template' => 'global_newfile_notify', |
||
| 895 | 'mail_subject' => _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFYSBJ |
||
| 896 | ); |
||
| 897 | |||
| 898 | $modversion['notification']['event'][] = array( |
||
| 899 | 'name' => 'video_submit', |
||
| 900 | 'category' => 'category', |
||
| 901 | 'admin_only' => 1, |
||
| 902 | 'title' => _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFY, |
||
| 903 | 'caption' => _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFYCAP, |
||
| 904 | 'description' => _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFYDSC, |
||
| 905 | 'mail_template' => 'category_videosubmit_notify', |
||
| 906 | 'mail_subject' => _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFYSBJ |
||
| 907 | ); |
||
| 908 | |||
| 909 | $modversion['notification']['event'][] = array( |
||
| 910 | 'name' => 'new_video', |
||
| 911 | 'category' => 'category', |
||
| 912 | 'title' => _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFY, |
||
| 913 | 'caption' => _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFYCAP, |
||
| 914 | 'description' => _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFYDSC, |
||
| 915 | 'mail_template' => 'category_newfile_notify', |
||
| 916 | 'mail_subject' => _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFYSBJ |
||
| 917 | ); |
||
| 918 | |||
| 919 | $modversion['notification']['event'][] = array( |
||
| 920 | 'name' => 'approve', |
||
| 921 | 'category' => 'video', |
||
| 922 | 'invisible' => 1, |
||
| 923 | 'title' => _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFY, |
||
| 924 | 'caption' => _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFYCAP, |
||
| 925 | 'description' => _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFYDSC, |
||
| 926 | 'mail_template' => 'video_approve_notify', |
||
| 927 | 'mail_subject' => _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFYSBJ |
||
| 928 | ); |
||
| 929 | // On Update |
||
| 930 | //if (!empty($_POST['fct']) && !empty($_POST['op']) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' |
||
| 931 | // && $_POST['dirname'] == $modversion['dirname'] |
||
| 932 | //) { |
||
| 933 | // include __DIR__ . '/include/onupdate.inc.php'; |
||
| 934 | //} |
||
| 935 | |||
| 936 |
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.