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-2013 The XOOPS Project |
||
| 16 | * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html) |
||
| 17 | * @version $Id$ |
||
| 18 | * @link http://sourceforge.net/projects/xoops/ |
||
| 19 | * @since 1.0.6 |
||
| 20 | */ |
||
| 21 | |||
| 22 | $mydirname = basename(__DIR__); |
||
| 23 | |||
| 24 | $modversion['name'] = _MI_XOOPSTUBE_NAME; |
||
| 25 | $modversion['version'] = '1.06'; |
||
| 26 | //$modversion['releasedate'] = 'June 19, 2012'; |
||
|
0 ignored issues
–
show
|
|||
| 27 | $modversion['status'] = 'Final'; |
||
| 28 | $modversion['description'] = _MI_XOOPSTUBE_DESC; |
||
| 29 | //$modversion['license'] = _MI_XOOPSTUBE_LICENSEDSC; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
56% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 30 | $modversion['help'] = 'page=help'; |
||
| 31 | $modversion['license'] = 'GNU GPL 2.0'; |
||
| 32 | $modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html"; |
||
| 33 | $modversion['official'] = 0; |
||
| 34 | $modversion['image'] = 'assets/images/xtube_slogo.png'; |
||
| 35 | |||
| 36 | $modversion['iconsmall'] = 'assets/images/xtube_iconsmall.png'; |
||
| 37 | $modversion['iconbig'] = 'assets/images/xtube_iconbig.png'; |
||
| 38 | $modversion['dirname'] = $mydirname; |
||
| 39 | //$modversion['dirname'] = 'xoopstube'; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
67% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 40 | |||
| 41 | $modversion['author'] = "McDonald"; |
||
| 42 | $modversion['credits'] = "WF-Projects Team. Based on the module WF-Links, thanks to the dream-team for some code snippits."; |
||
| 43 | $modversion['author_credits'] = _MI_XOOPSTUBE_AUTHOR_CREDITSTEXT; |
||
| 44 | $modversion['developer_website_url'] = "http://members.lycos.nl/mcdonaldsstore/"; |
||
| 45 | $modversion['developer_website_name'] = "McDonalds Store"; |
||
| 46 | |||
| 47 | $modversion['dirmoduleadmin'] = 'Frameworks/moduleclasses/moduleadmin'; |
||
| 48 | $modversion['icons16'] = 'Frameworks/moduleclasses/icons/16'; |
||
| 49 | $modversion['icons32'] = 'Frameworks/moduleclasses/icons/32'; |
||
| 50 | |||
| 51 | //about |
||
| 52 | $modversion["module_status"] = "RC 2"; |
||
| 53 | $modversion['release_date'] = "2014/04/23"; |
||
| 54 | $modversion['release_file'] = XOOPS_URL . "/modules/" . $modversion['dirname'] . "/docs/changelog.txt"; |
||
| 55 | $modversion["module_website_url"] = "www.xoops.org/"; |
||
| 56 | $modversion["module_website_name"] = "XOOPS"; |
||
| 57 | $modversion['min_php'] = '5.5'; |
||
| 58 | $modversion['min_xoops'] = "2.5.7.2"; |
||
| 59 | $modversion['min_admin'] = '1.1'; |
||
| 60 | $modversion['min_db'] = array( |
||
| 61 | 'mysql' => '5.0.7', |
||
| 62 | 'mysqli' => '5.0.7' |
||
| 63 | ); |
||
| 64 | |||
| 65 | // Sql file (must contain sql generated by phpMyAdmin or phpPgAdmin) |
||
| 66 | // All tables should not have any prefix! |
||
| 67 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 68 | |||
| 69 | // Tables created by sql file (without prefix!) |
||
| 70 | include_once 'include/config.php'; |
||
| 71 | $modversion['tables'][0] = 'xoopstube_broken'; |
||
| 72 | $modversion['tables'][1] = 'xoopstube_cat'; |
||
| 73 | $modversion['tables'][2] = 'xoopstube_videos'; |
||
| 74 | $modversion['tables'][3] = 'xoopstube_mod'; |
||
| 75 | $modversion['tables'][4] = 'xoopstube_votedata'; |
||
| 76 | $modversion['tables'][5] = 'xoopstube_indexpage'; |
||
| 77 | $modversion['tables'][6] = 'xoopstube_altcat'; |
||
| 78 | |||
| 79 | // Launch additional install script to check |
||
| 80 | // the existence of tables 'wf_resources_types' and 'wf_resources' |
||
| 81 | $modversion['onInstall'] = ''; |
||
| 82 | $modversion['onUpdate'] = 'include/update.php'; |
||
| 83 | |||
| 84 | // Admin things |
||
| 85 | $modversion['hasAdmin'] = 1; |
||
| 86 | $modversion['system_menu'] = 1; |
||
| 87 | $modversion['adminindex'] = 'admin/index.php'; |
||
| 88 | $modversion['adminmenu'] = 'admin/menu.php'; |
||
| 89 | |||
| 90 | // Blocks |
||
| 91 | $i = 0; |
||
| 92 | ++$i; |
||
| 93 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 94 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME1; |
||
| 95 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME1_DESC; |
||
| 96 | $modversion['blocks'][$i]['show_func'] = 'showTopVideoBlock'; |
||
| 97 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 98 | $modversion['blocks'][$i]['options'] = 'published|10|19|d/m/Y|0'; |
||
| 99 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_new_t.tpl'; |
||
| 100 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 101 | ++$i; |
||
| 102 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 103 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME2; |
||
| 104 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME2_DESC; |
||
| 105 | $modversion['blocks'][$i]['show_func'] = 'showTopVideoBlock'; |
||
| 106 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 107 | $modversion['blocks'][$i]['options'] = 'published|10|19|d/m/Y|0'; |
||
| 108 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_new.tpl'; |
||
| 109 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 110 | ++$i; |
||
| 111 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 112 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME3; |
||
| 113 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME3_DESC; |
||
| 114 | $modversion['blocks'][$i]['show_func'] = 'showTopVideoBlock'; |
||
| 115 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 116 | $modversion['blocks'][$i]['options'] = 'hits|10|19|d/m/Y|0'; |
||
| 117 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_top_t.tpl'; |
||
| 118 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 119 | ++$i; |
||
| 120 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 121 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME4; |
||
| 122 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME4_DESC; |
||
| 123 | $modversion['blocks'][$i]['show_func'] = 'showTopVideoBlock'; |
||
| 124 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 125 | $modversion['blocks'][$i]['options'] = 'hits|10|19|d/m/Y|0'; |
||
| 126 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_top.tpl'; |
||
| 127 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 128 | ++$i; |
||
| 129 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 130 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME5; |
||
| 131 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME5_DESC; |
||
| 132 | $modversion['blocks'][$i]['show_func'] = 'showTopVideoBlock'; |
||
| 133 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 134 | $modversion['blocks'][$i]['options'] = 'published|5|19|d/m/Y|0'; |
||
| 135 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_new_h.tpl'; |
||
| 136 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 137 | ++$i; |
||
| 138 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 139 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME6; |
||
| 140 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME6_DESC; |
||
| 141 | $modversion['blocks'][$i]['show_func'] = 'getRandomVideo'; |
||
| 142 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 143 | $modversion['blocks'][$i]['options'] = 'random|5|19|d/m/Y|0'; |
||
| 144 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_random.tpl'; |
||
| 145 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 146 | ++$i; |
||
| 147 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 148 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME7; |
||
| 149 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME7_DESC; |
||
| 150 | $modversion['blocks'][$i]['show_func'] = 'getRandomVideoForHorizontalBlock'; |
||
| 151 | $modversion['blocks'][$i]['edit_func'] = 'editTopVideoBlock'; |
||
| 152 | $modversion['blocks'][$i]['options'] = 'randomh|5|19|d/m/Y|0'; |
||
| 153 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_random_h.tpl'; |
||
| 154 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 155 | ++$i; |
||
| 156 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_banner.php'; |
||
| 157 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME8; |
||
| 158 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME8_DESC; |
||
| 159 | $modversion['blocks'][$i]['show_func'] = 'xtubeShowBannerB'; |
||
| 160 | $modversion['blocks'][$i]['edit_func'] = 'xtubeEditBannerB'; |
||
| 161 | $modversion['blocks'][$i]['options'] = 'hits|10|19'; |
||
| 162 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_banner.tpl'; |
||
| 163 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 164 | ++$i; |
||
| 165 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_block_tag.php'; |
||
| 166 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME9; |
||
| 167 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME9_DESC; |
||
| 168 | $modversion['blocks'][$i]['show_func'] = 'xtubeShowTagBlockCloud'; |
||
| 169 | $modversion['blocks'][$i]['edit_func'] = 'xtubeEditTagBlockCloud'; |
||
| 170 | $modversion['blocks'][$i]['options'] = '100|0|150|80'; |
||
| 171 | $modversion['blocks'][$i]['template'] = 'xoopstube_tag_block_cloud.tpl'; |
||
| 172 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 173 | ++$i; |
||
| 174 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_block_tag.php'; |
||
| 175 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME10; |
||
| 176 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME10_DESC; |
||
| 177 | $modversion['blocks'][$i]['show_func'] = 'xtubeShowTagBlockTop'; |
||
| 178 | $modversion['blocks'][$i]['edit_func'] = 'xtubeEditTagBlockTop'; |
||
| 179 | $modversion['blocks'][$i]['options'] = '50|30|c'; |
||
| 180 | $modversion['blocks'][$i]['template'] = 'xoopstube_tag_block_tag.tpl'; |
||
| 181 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 182 | ++$i; |
||
| 183 | $modversion['blocks'][$i]['file'] = $modversion['dirname'] . '_top.php'; |
||
| 184 | $modversion['blocks'][$i]['name'] = _MI_XOOPSTUBE_BNAME11; |
||
| 185 | $modversion['blocks'][$i]['description'] = _MI_XOOPSTUBE_BNAME11_DESC; |
||
| 186 | $modversion['blocks'][$i]['show_func'] = "getSpotlightVideos"; |
||
| 187 | $modversion['blocks'][$i]['edit_func'] = "editTopVideoBlock"; |
||
| 188 | $modversion['blocks'][$i]['options'] = "date|3|19"; |
||
| 189 | $modversion['blocks'][$i]['template'] = 'xoopstube_block_spotlight.tpl'; |
||
| 190 | $modversion['blocks'][$i]['can_clone'] = true; |
||
| 191 | |||
| 192 | // Menu |
||
| 193 | $modversion['hasMain'] = 1; |
||
| 194 | |||
| 195 | // This part inserts the selected topics as sub items in the Xoops main menu |
||
| 196 | $module_handler = & xoops_gethandler('module'); |
||
| 197 | $module = & $module_handler->getByDirname($modversion['dirname']); |
||
| 198 | $cansubmit = 0; |
||
| 199 | if (is_object($module)) { |
||
| 200 | global $xoopsUser; |
||
| 201 | $groups = (is_object($xoopsUser)) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; |
||
| 202 | $gperm_handler = & xoops_gethandler('groupperm'); |
||
| 203 | if ($gperm_handler->checkRight('XTubeSubPerm', 0, $groups, $module->getVar('mid'))) { |
||
| 204 | $cansubmit = 1; |
||
| 205 | } |
||
| 206 | } |
||
| 207 | if ($cansubmit == 1) { |
||
| 208 | $modversion['sub'][0]['name'] = _MI_XOOPSTUBE_SMNAME1; |
||
| 209 | $modversion['sub'][0]['url'] = 'submit.php'; |
||
| 210 | } |
||
| 211 | unset($cansubmit); |
||
| 212 | |||
| 213 | $i = 1; |
||
| 214 | $modversion['sub'][$i]['name'] = _MI_XOOPSTUBE_SMNAME2; |
||
| 215 | $modversion['sub'][$i]['url'] = 'topten.php?list=hit'; |
||
| 216 | |||
| 217 | ++$i; |
||
| 218 | $modversion['sub'][$i]['name'] = _MI_XOOPSTUBE_SMNAME3; |
||
| 219 | $modversion['sub'][$i]['url'] = 'topten.php?list=rate'; |
||
| 220 | |||
| 221 | ++$i; |
||
| 222 | $modversion['sub'][$i]['name'] = _MI_XOOPSTUBE_SMNAME4; |
||
| 223 | $modversion['sub'][$i]['url'] = 'newlist.php?newvideoshowdays=7'; |
||
| 224 | unset($i); |
||
| 225 | |||
| 226 | // Search |
||
| 227 | $modversion['hasSearch'] = 1; |
||
| 228 | $modversion['search']['file'] = 'include/search.inc.php'; |
||
| 229 | $modversion['search']['func'] = 'xtubeSearch'; |
||
| 230 | |||
| 231 | // Comments |
||
| 232 | $modversion['hasComments'] = 1; |
||
| 233 | $modversion['comments']['itemName'] = 'lid'; |
||
| 234 | $modversion['comments']['pageName'] = 'singlevideo.php'; |
||
| 235 | $modversion['comments']['extraParams'] = array('cid'); |
||
| 236 | |||
| 237 | // Comment callback functions |
||
| 238 | $modversion['comments']['callbackFile'] = 'include/comment_functions.php'; |
||
| 239 | $modversion['comments']['callback']['approve'] = 'xtubeApproveComment'; |
||
| 240 | $modversion['comments']['callback']['update'] = 'xtubeUpdateComment'; |
||
| 241 | |||
| 242 | // Templates |
||
| 243 | $i = 0; |
||
| 244 | ++$i; |
||
| 245 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_brokenvideo.tpl'; |
||
| 246 | $modversion['templates'][$i]['description'] = ''; |
||
| 247 | ++$i; |
||
| 248 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_videoload.tpl'; |
||
| 249 | $modversion['templates'][$i]['description'] = ''; |
||
| 250 | ++$i; |
||
| 251 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_index.tpl'; |
||
| 252 | $modversion['templates'][$i]['description'] = ''; |
||
| 253 | ++$i; |
||
| 254 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_ratevideo.tpl'; |
||
| 255 | $modversion['templates'][$i]['description'] = ''; |
||
| 256 | ++$i; |
||
| 257 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_singlevideo.tpl'; |
||
| 258 | $modversion['templates'][$i]['description'] = ''; |
||
| 259 | ++$i; |
||
| 260 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_topten.tpl'; |
||
| 261 | $modversion['templates'][$i]['description'] = ''; |
||
| 262 | ++$i; |
||
| 263 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_viewcat.tpl'; |
||
| 264 | $modversion['templates'][$i]['description'] = ''; |
||
| 265 | ++$i; |
||
| 266 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_newlistindex.tpl'; |
||
| 267 | $modversion['templates'][$i]['description'] = ''; |
||
| 268 | |||
| 269 | ++$i; |
||
| 270 | $modversion['templates'][$i]['file'] = $modversion['dirname'] . '_common_letterschoice.tpl'; |
||
| 271 | $modversion['templates'][$i]['description'] = ''; |
||
| 272 | |||
| 273 | $i = 0; |
||
| 274 | |||
| 275 | // Module config setting |
||
| 276 | $i = 0; |
||
| 277 | ++$i; |
||
| 278 | $modversion['config'][$i]['name'] = 'popular'; |
||
| 279 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_POPULAR'; |
||
| 280 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_POPULARDSC'; |
||
| 281 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 282 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 283 | $modversion['config'][$i]['default'] = 100; |
||
| 284 | $modversion['config'][$i]['options'] = array( |
||
| 285 | '5' => 5, |
||
| 286 | '10' => 10, |
||
| 287 | '50' => 50, |
||
| 288 | '100' => 100, |
||
| 289 | '200' => 200, |
||
| 290 | '500' => 500, |
||
| 291 | '1000' => 1000 |
||
| 292 | ); |
||
| 293 | ++$i; |
||
| 294 | $modversion['config'][$i]['name'] = 'displayicons'; |
||
| 295 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_ICONDISPLAY'; |
||
| 296 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_DISPLAYICONDSC'; |
||
| 297 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 298 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 299 | $modversion['config'][$i]['default'] = 1; |
||
| 300 | $modversion['config'][$i]['options'] = array( |
||
| 301 | '_MI_XOOPSTUBE_DISPLAYICON1' => 1, |
||
| 302 | '_MI_XOOPSTUBE_DISPLAYICON2' => 2, |
||
| 303 | '_MI_XOOPSTUBE_DISPLAYICON3' => 3 |
||
| 304 | ); |
||
| 305 | ++$i; |
||
| 306 | $modversion['config'][$i]['name'] = 'daysnew'; |
||
| 307 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_DAYSNEW'; |
||
| 308 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_DAYSNEWDSC'; |
||
| 309 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 310 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 311 | $modversion['config'][$i]['default'] = 10; |
||
| 312 | ++$i; |
||
| 313 | $modversion['config'][$i]['name'] = 'daysupdated'; |
||
| 314 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_DAYSUPDATED'; |
||
| 315 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_DAYSUPDATEDDSC'; |
||
| 316 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 317 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 318 | $modversion['config'][$i]['default'] = 10; |
||
| 319 | ++$i; |
||
| 320 | $modversion['config'][$i]['name'] = 'perpage'; |
||
| 321 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_PERPAGE'; |
||
| 322 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_PERPAGEDSC'; |
||
| 323 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 324 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 325 | $modversion['config'][$i]['default'] = 10; |
||
| 326 | $modversion['config'][$i]['options'] = array( |
||
| 327 | '5' => 5, |
||
| 328 | '10' => 10, |
||
| 329 | '15' => 15, |
||
| 330 | '20' => 20, |
||
| 331 | '25' => 25, |
||
| 332 | '30' => 30, |
||
| 333 | '50' => 50 |
||
| 334 | ); |
||
| 335 | ++$i; |
||
| 336 | $modversion['config'][$i]['name'] = 'admin_perpage'; |
||
| 337 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_ADMINPAGE'; |
||
| 338 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_AMDMINPAGEDSC'; |
||
| 339 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 340 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 341 | $modversion['config'][$i]['default'] = 10; |
||
| 342 | $modversion['config'][$i]['options'] = array( |
||
| 343 | '5' => 5, |
||
| 344 | '10' => 10, |
||
| 345 | '15' => 15, |
||
| 346 | '20' => 20, |
||
| 347 | '25' => 25, |
||
| 348 | '30' => 30, |
||
| 349 | '50' => 50, |
||
| 350 | '75' => 75, |
||
| 351 | '100' => 100 |
||
| 352 | ); |
||
| 353 | ++$i; |
||
| 354 | $qa = ' (A)'; |
||
| 355 | $qd = ' (D)'; |
||
| 356 | $modversion['config'][$i]['name'] = 'linkxorder'; |
||
| 357 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_ARTICLESSORT'; |
||
| 358 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_ARTICLESSORTDSC'; |
||
| 359 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 360 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 361 | $modversion['config'][$i]['default'] = 'title ASC'; |
||
| 362 | $modversion['config'][$i]['options'] = array( |
||
| 363 | _MI_XOOPSTUBE_TITLE . $qa => 'title ASC', |
||
| 364 | _MI_XOOPSTUBE_TITLE . $qd => 'title DESC', |
||
| 365 | _MI_XOOPSTUBE_SUBMITTED2 . $qa => 'published ASC', |
||
| 366 | _MI_XOOPSTUBE_SUBMITTED2 . $qd => 'published DESC', |
||
| 367 | _MI_XOOPSTUBE_RATING . $qa => 'rating ASC', |
||
| 368 | _MI_XOOPSTUBE_RATING . $qd => 'rating DESC', |
||
| 369 | _MI_XOOPSTUBE_POPULARITY . $qa => 'hits ASC', |
||
| 370 | _MI_XOOPSTUBE_POPULARITY . $qd => 'hits DESC' |
||
| 371 | ); |
||
| 372 | ++$i; |
||
| 373 | $modversion['config'][$i]['name'] = 'sortcats'; |
||
| 374 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SORTCATS'; |
||
| 375 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SORTCATSDSC'; |
||
| 376 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 377 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 378 | $modversion['config'][$i]['default'] = 'title'; |
||
| 379 | $modversion['config'][$i]['options'] = array( |
||
| 380 | 'Weight' => 'weight', |
||
| 381 | 'Title' => 'title' |
||
| 382 | ); |
||
| 383 | ++$i; |
||
| 384 | $modversion['config'][$i]['name'] = 'subcats'; |
||
| 385 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SUBCATS'; |
||
| 386 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SUBCATSDSC'; |
||
| 387 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 388 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 389 | $modversion['config'][$i]['default'] = 0; |
||
| 390 | ++$i; |
||
| 391 | $modversion['config'][$i]['name'] = 'catcolumns'; |
||
| 392 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_CATCOLUMNS'; |
||
| 393 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_CATCOLUMNSDSC'; |
||
| 394 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 395 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 396 | $modversion['config'][$i]['default'] = 2; |
||
| 397 | $modversion['config'][$i]['options'] = array( |
||
| 398 | '1' => 1, |
||
| 399 | '2' => 2, |
||
| 400 | '3' => 3, |
||
| 401 | '4' => 4, |
||
| 402 | '5' => 5 |
||
| 403 | ); |
||
| 404 | |||
| 405 | ++$i; |
||
| 406 | xoops_load('XoopsEditorHandler'); |
||
| 407 | $editor_handler = XoopsEditorHandler::getInstance(); |
||
| 408 | $editorList = array_flip($editor_handler->getList()); |
||
| 409 | |||
| 410 | $modversion['config'][$i] = array( |
||
| 411 | 'name' => 'form_options', |
||
| 412 | 'title' => '_MI_XOOPSTUBE_EDITOR', |
||
| 413 | 'description' => '_MI_XOOPSTUBE_EDITORCHOICE', |
||
| 414 | 'formtype' => 'select', |
||
| 415 | 'valuetype' => 'text', |
||
| 416 | 'options' => $editorList, |
||
| 417 | 'default' => 'dhtmltextarea' |
||
| 418 | ); |
||
| 419 | |||
| 420 | ++$i; |
||
| 421 | $modversion['config'][$i] = array( |
||
| 422 | 'name' => 'form_optionsuser', |
||
| 423 | 'title' => '_MI_XOOPSTUBE_EDITORUSER', |
||
| 424 | 'description' => '_MI_XOOPSTUBE_EDITORCHOICEUSER', |
||
| 425 | 'formtype' => 'select', |
||
| 426 | 'valuetype' => 'text', |
||
| 427 | 'options' => $editorList, |
||
| 428 | 'default' => 'dhtmltextarea' |
||
| 429 | ); |
||
| 430 | // 'default' => 'dhtml'); |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
59% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 431 | // 'default' => 'dhtmlext'); |
||
| 432 | |||
| 433 | ++$i; |
||
| 434 | $modversion['config'][$i]['name'] = 'screenshot'; |
||
| 435 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_USESHOTS'; |
||
| 436 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_USESHOTSDSC'; |
||
| 437 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 438 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 439 | $modversion['config'][$i]['default'] = 1; |
||
| 440 | ++$i; |
||
| 441 | $modversion['config'][$i]['name'] = 'usethumbs'; |
||
| 442 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_USETHUMBS'; |
||
| 443 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_USETHUMBSDSC'; |
||
| 444 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 445 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 446 | $modversion['config'][$i]['default'] = 0; |
||
| 447 | ++$i; |
||
| 448 | $modversion['config'][$i]['name'] = 'updatethumbs'; |
||
| 449 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_IMGUPDATE'; |
||
| 450 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_IMGUPDATEDSC'; |
||
| 451 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 452 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 453 | $modversion['config'][$i]['default'] = 1; |
||
| 454 | ++$i; |
||
| 455 | $modversion['config'][$i]['name'] = 'shotwidth'; |
||
| 456 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SHOTWIDTH'; |
||
| 457 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SHOTWIDTHDSC'; |
||
| 458 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 459 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 460 | $modversion['config'][$i]['default'] = 120; |
||
| 461 | ++$i; |
||
| 462 | $modversion['config'][$i]['name'] = 'shotheight'; |
||
| 463 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SHOTHEIGHT'; |
||
| 464 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SHOTHEIGHTDSC'; |
||
| 465 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 466 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 467 | $modversion['config'][$i]['default'] = 90; |
||
| 468 | ++$i; |
||
| 469 | $modversion['config'][$i]['name'] = 'maxfilesize'; |
||
| 470 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_MAXFILESIZE'; |
||
| 471 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_MAXFILESIZEDSC'; |
||
| 472 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 473 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 474 | $modversion['config'][$i]['default'] = 200000; |
||
| 475 | ++$i; |
||
| 476 | $modversion['config'][$i]['name'] = 'maximgwidth'; |
||
| 477 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_IMGWIDTH'; |
||
| 478 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_IMGWIDTHDSC'; |
||
| 479 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 480 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 481 | $modversion['config'][$i]['default'] = 600; |
||
| 482 | ++$i; |
||
| 483 | $modversion['config'][$i]['name'] = 'maximgheight'; |
||
| 484 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_IMGHEIGHT'; |
||
| 485 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_IMGHEIGHTDSC'; |
||
| 486 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 487 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 488 | $modversion['config'][$i]['default'] = 600; |
||
| 489 | |||
| 490 | // Directories ----------------------------------------------- |
||
| 491 | ++$i; |
||
| 492 | $modversion['config'][$i]['name'] = 'directiories'; |
||
| 493 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_PREFERENCES_DIRECTIORIES'; |
||
| 494 | $modversion['config'][$i]['description'] = ''; |
||
| 495 | $modversion['config'][$i]['formtype'] = 'line_break'; |
||
| 496 | $modversion['config'][$i]['valuetype'] = 'textbox'; |
||
| 497 | $modversion['config'][$i]['default'] = 'odd'; |
||
| 498 | |||
| 499 | ++$i; |
||
| 500 | $modversion['config'][$i]['name'] = 'dirmode'; |
||
| 501 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_PREFERENCES_DIRMODE'; |
||
| 502 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_PREFERENCES_DIRMODE_DESC'; |
||
| 503 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 504 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 505 | $modversion['config'][$i]['default'] = '0777'; |
||
| 506 | ++$i; |
||
| 507 | $modversion['config'][$i]['name'] = 'mainimagedir'; |
||
| 508 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_MAINIMGDIR'; |
||
| 509 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_MAINIMGDIRDSC'; |
||
| 510 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 511 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 512 | $modversion['config'][$i]['default'] = 'modules/' . $mydirname . '/assets/images'; |
||
| 513 | ++$i; |
||
| 514 | $modversion['config'][$i]['name'] = 'catimage'; |
||
| 515 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_CATEGORYIMG'; |
||
| 516 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_CATEGORYIMGDSC'; |
||
| 517 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 518 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 519 | //$modversion['config'][$i]['default'] = 'uploads/xt_images/category'; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
80% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 520 | $modversion['config'][$i]['default'] = 'uploads/xoopstube/category'; |
||
| 521 | ++$i; |
||
| 522 | $modversion['config'][$i]['name'] = 'videodir'; |
||
| 523 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_VIDEODIR'; |
||
| 524 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_VIDEODIRDSC'; |
||
| 525 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 526 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 527 | //$modversion['config'][$i]['default'] = 'uploads/xt_images/videos'; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
80% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 528 | $modversion['config'][$i]['default'] = 'uploads/xoopstube/videos'; |
||
| 529 | ++$i; |
||
| 530 | $modversion['config'][$i]['name'] = 'videoimgdir'; |
||
| 531 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_VIDEOIMGDIR'; |
||
| 532 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_VIDEOIMGDIRDSC'; |
||
| 533 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 534 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 535 | //$modversion['config'][$i]['default'] = 'uploads/xt_images/screenshots'; |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
80% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 536 | $modversion['config'][$i]['default'] = 'uploads/xoopstube/screenshots'; |
||
| 537 | |||
| 538 | // Other ------------------------------------------------- |
||
| 539 | ++$i; |
||
| 540 | $modversion['config'][$i]['name'] = 'other'; |
||
| 541 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_PREFERENCES_OTHERS'; |
||
| 542 | $modversion['config'][$i]['description'] = ''; |
||
| 543 | $modversion['config'][$i]['formtype'] = 'line_break'; |
||
| 544 | $modversion['config'][$i]['valuetype'] = 'textbox'; |
||
| 545 | $modversion['config'][$i]['default'] = 'odd'; |
||
| 546 | |||
| 547 | ++$i; |
||
| 548 | $modversion['config'][$i]['name'] = 'dateformat'; |
||
| 549 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_DATEFORMAT'; |
||
| 550 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_DATEFORMATDSC'; |
||
| 551 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 552 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 553 | $modversion['config'][$i]['default'] = 'D, d-M-Y'; |
||
| 554 | ++$i; |
||
| 555 | $modversion['config'][$i]['name'] = 'dateformatadmin'; |
||
| 556 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_DATEFORMATADMIN'; |
||
| 557 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_DATEFORMATADMINDSC'; |
||
| 558 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 559 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 560 | $modversion['config'][$i]['default'] = 'D, d-M-Y - G:i'; |
||
| 561 | ++$i; |
||
| 562 | $modversion['config'][$i]['name'] = 'totalchars'; |
||
| 563 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_TOTALCHARS'; |
||
| 564 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_TOTALCHARSDSC'; |
||
| 565 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 566 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 567 | $modversion['config'][$i]['default'] = 200; |
||
| 568 | $modversion['config'][$i]['options'] = array( |
||
| 569 | '100' => 100, |
||
| 570 | '200' => 200, |
||
| 571 | '300' => 300, |
||
| 572 | '400' => 400, |
||
| 573 | '500' => 500, |
||
| 574 | '750' => 750 |
||
| 575 | ); |
||
| 576 | ++$i; |
||
| 577 | $modversion['config'][$i]['name'] = 'autoplay'; |
||
| 578 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_AUTOPLAY'; |
||
| 579 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_AUTOPLAYDSC'; |
||
| 580 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 581 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 582 | $modversion['config'][$i]['default'] = 0; |
||
| 583 | ++$i; |
||
| 584 | $modversion['config'][$i]['name'] = 'othervideos'; |
||
| 585 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_OTHERVIDEOS'; |
||
| 586 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_OTHERVIDEOSDSC'; |
||
| 587 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 588 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 589 | $modversion['config'][$i]['default'] = 1; |
||
| 590 | ++$i; |
||
| 591 | $modversion['config'][$i]['name'] = 'showsubmitter'; |
||
| 592 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SHOWSUBMITTER'; |
||
| 593 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SHOWSUBMITTERDSC'; |
||
| 594 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 595 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 596 | $modversion['config'][$i]['default'] = 1; |
||
| 597 | ++$i; |
||
| 598 | $modversion['config'][$i]['name'] = 'showsbookmarks'; |
||
| 599 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SHOWSBOOKMARKS'; |
||
| 600 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SHOWSBOOKMARKSDSC'; |
||
| 601 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 602 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 603 | $modversion['config'][$i]['default'] = 1; |
||
| 604 | ++$i; |
||
| 605 | $modversion['config'][$i]['name'] = 'usemetadescr'; |
||
| 606 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_USEMETADESCR'; |
||
| 607 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_USEMETADSC'; |
||
| 608 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 609 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 610 | $modversion['config'][$i]['default'] = 1; |
||
| 611 | ++$i; |
||
| 612 | $modversion['config'][$i]['name'] = 'usercantag'; |
||
| 613 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_USERTAGDESCR'; |
||
| 614 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_USERTAGDSC'; |
||
| 615 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 616 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 617 | $modversion['config'][$i]['default'] = 0; |
||
| 618 | ++$i; |
||
| 619 | $modversion['config'][$i]['name'] = 'showrating'; |
||
| 620 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_RATINGDISPLAY'; |
||
| 621 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_RATINGDISPLAYDSC'; |
||
| 622 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 623 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 624 | $modversion['config'][$i]['default'] = 1; |
||
| 625 | ++$i; |
||
| 626 | $modversion['config'][$i]['name'] = 'showdisclaimer'; |
||
| 627 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SHOWDISCLAIMER'; |
||
| 628 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SHOWDISCLAIMERDSC'; |
||
| 629 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 630 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 631 | $modversion['config'][$i]['default'] = 0; |
||
| 632 | ++$i; |
||
| 633 | $modversion['config'][$i]['name'] = 'disclaimer'; |
||
| 634 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_DISCLAIMER'; |
||
| 635 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_DISCLAIMERDSC'; |
||
| 636 | $modversion['config'][$i]['formtype'] = 'textsarea'; |
||
| 637 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 638 | $modversion['config'][$i]['default'] |
||
| 639 | = '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.'; |
||
| 640 | ++$i; |
||
| 641 | $modversion['config'][$i]['name'] = 'showvideodisclaimer'; |
||
| 642 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_SHOWVIDEODISCL'; |
||
| 643 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_SHOWVIDEODISCLDSC'; |
||
| 644 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 645 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 646 | $modversion['config'][$i]['default'] = 0; |
||
| 647 | ++$i; |
||
| 648 | $modversion['config'][$i]['name'] = 'videodisclaimer'; |
||
| 649 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_VIDEODISCLAIMER'; |
||
| 650 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_VIDEODISCLAIMERDSC'; |
||
| 651 | $modversion['config'][$i]['formtype'] = 'textsarea'; |
||
| 652 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 653 | $modversion['config'][$i]['default'] |
||
| 654 | = '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.'; |
||
| 655 | ++$i; |
||
| 656 | $modversion['config'][$i]['name'] = 'copyright'; |
||
| 657 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_COPYRIGHT'; |
||
| 658 | $modversion['config'][$i]['description'] = '_MI_XOOPSTUBE_COPYRIGHTDSC'; |
||
| 659 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 660 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 661 | $modversion['config'][$i]['default'] = 1; |
||
| 662 | ++$i; |
||
| 663 | |||
| 664 | // Notification ------------------------------------------ |
||
| 665 | $modversion['config'][$i]['name'] = 'notifications'; |
||
| 666 | $modversion['config'][$i]['title'] = '_MI_XOOPSTUBE_PREFERENCES_COMMENTS'; |
||
| 667 | $modversion['config'][$i]['description'] = ''; |
||
| 668 | $modversion['config'][$i]['formtype'] = 'line_break'; |
||
| 669 | $modversion['config'][$i]['valuetype'] = 'textbox'; |
||
| 670 | $modversion['config'][$i]['default'] = 'odd'; |
||
| 671 | ++$i; |
||
| 672 | $modversion['hasNotification'] = 1; |
||
| 673 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
||
| 674 | $modversion['notification']['lookup_func'] = 'xtubeNotifyIteminfo'; |
||
| 675 | |||
| 676 | $modversion['notification']['category'][1]['name'] = 'global'; |
||
| 677 | $modversion['notification']['category'][1]['title'] = _MI_XOOPSTUBE_GLOBAL_NOTIFY; |
||
| 678 | $modversion['notification']['category'][1]['description'] = _MI_XOOPSTUBE_GLOBAL_NOTIFYDSC; |
||
| 679 | $modversion['notification']['category'][1]['subscribe_from'] = array('index.php', 'viewcat.php', 'singlevideo.php'); |
||
| 680 | |||
| 681 | $modversion['notification']['category'][2]['name'] = 'category'; |
||
| 682 | $modversion['notification']['category'][2]['title'] = _MI_XOOPSTUBE_CATEGORY_NOTIFY; |
||
| 683 | $modversion['notification']['category'][2]['description'] = _MI_XOOPSTUBE_CATEGORY_NOTIFYDSC; |
||
| 684 | $modversion['notification']['category'][2]['subscribe_from'] = array('viewcat.php', 'singlevideo.php'); |
||
| 685 | $modversion['notification']['category'][2]['item_name'] = 'cid'; |
||
| 686 | $modversion['notification']['category'][2]['allow_bookmark'] = 1; |
||
| 687 | |||
| 688 | $modversion['notification']['category'][3]['name'] = 'video'; |
||
| 689 | $modversion['notification']['category'][3]['title'] = _MI_XOOPSTUBE_VIDEO_NOTIFY; |
||
| 690 | $modversion['notification']['category'][3]['description'] = _MI_XOOPSTUBE_FILE_NOTIFYDSC; |
||
| 691 | $modversion['notification']['category'][3]['subscribe_from'] = 'singlevideo.php'; |
||
| 692 | $modversion['notification']['category'][3]['item_name'] = 'lid'; |
||
| 693 | $modversion['notification']['category'][3]['allow_bookmark'] = 1; |
||
| 694 | |||
| 695 | $modversion['notification']['event'][1]['name'] = 'new_category'; |
||
| 696 | $modversion['notification']['event'][1]['category'] = 'global'; |
||
| 697 | $modversion['notification']['event'][1]['title'] = _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFY; |
||
| 698 | $modversion['notification']['event'][1]['caption'] = _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFYCAP; |
||
| 699 | $modversion['notification']['event'][1]['description'] = _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFYDSC; |
||
| 700 | $modversion['notification']['event'][1]['mail_template'] = 'global_newcategory_notify'; |
||
| 701 | $modversion['notification']['event'][1]['mail_subject'] = _MI_XOOPSTUBE_GLOBAL_NEWCATEGORY_NOTIFYSBJ; |
||
| 702 | |||
| 703 | $modversion['notification']['event'][2]['name'] = 'video_modify'; |
||
| 704 | $modversion['notification']['event'][2]['category'] = 'global'; |
||
| 705 | $modversion['notification']['event'][2]['admin_only'] = 1; |
||
| 706 | $modversion['notification']['event'][2]['title'] = _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFY; |
||
| 707 | $modversion['notification']['event'][2]['caption'] = _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFYCAP; |
||
| 708 | $modversion['notification']['event'][2]['description'] = _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFYDSC; |
||
| 709 | $modversion['notification']['event'][2]['mail_template'] = 'global_videomodify_notify'; |
||
| 710 | $modversion['notification']['event'][2]['mail_subject'] = _MI_XOOPSTUBE_GLOBAL_VIDEOMODIFY_NOTIFYSBJ; |
||
| 711 | |||
| 712 | $modversion['notification']['event'][3]['name'] = 'video_broken'; |
||
| 713 | $modversion['notification']['event'][3]['category'] = 'global'; |
||
| 714 | $modversion['notification']['event'][3]['admin_only'] = 1; |
||
| 715 | $modversion['notification']['event'][3]['title'] = _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFY; |
||
| 716 | $modversion['notification']['event'][3]['caption'] = _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFYCAP; |
||
| 717 | $modversion['notification']['event'][3]['description'] = _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFYDSC; |
||
| 718 | $modversion['notification']['event'][3]['mail_template'] = 'global_videobroken_notify'; |
||
| 719 | $modversion['notification']['event'][3]['mail_subject'] = _MI_XOOPSTUBE_GLOBAL_VIDEOBROKEN_NOTIFYSBJ; |
||
| 720 | |||
| 721 | $modversion['notification']['event'][4]['name'] = 'video_submit'; |
||
| 722 | $modversion['notification']['event'][4]['category'] = 'global'; |
||
| 723 | $modversion['notification']['event'][4]['admin_only'] = 1; |
||
| 724 | $modversion['notification']['event'][4]['title'] = _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFY; |
||
| 725 | $modversion['notification']['event'][4]['caption'] = _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFYCAP; |
||
| 726 | $modversion['notification']['event'][4]['description'] = _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFYDSC; |
||
| 727 | $modversion['notification']['event'][4]['mail_template'] = 'global_videosubmit_notify'; |
||
| 728 | $modversion['notification']['event'][4]['mail_subject'] = _MI_XOOPSTUBE_GLOBAL_VIDEOSUBMIT_NOTIFYSBJ; |
||
| 729 | |||
| 730 | $modversion['notification']['event'][5]['name'] = 'new_video'; |
||
| 731 | $modversion['notification']['event'][5]['category'] = 'global'; |
||
| 732 | $modversion['notification']['event'][5]['title'] = _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFY; |
||
| 733 | $modversion['notification']['event'][5]['caption'] = _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFYCAP; |
||
| 734 | $modversion['notification']['event'][5]['description'] = _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFYDSC; |
||
| 735 | $modversion['notification']['event'][5]['mail_template'] = 'global_newfile_notify'; |
||
| 736 | $modversion['notification']['event'][5]['mail_subject'] = _MI_XOOPSTUBE_GLOBAL_NEWVIDEO_NOTIFYSBJ; |
||
| 737 | |||
| 738 | $modversion['notification']['event'][6]['name'] = 'video_submit'; |
||
| 739 | $modversion['notification']['event'][6]['category'] = 'category'; |
||
| 740 | $modversion['notification']['event'][6]['admin_only'] = 1; |
||
| 741 | $modversion['notification']['event'][6]['title'] = _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFY; |
||
| 742 | $modversion['notification']['event'][6]['caption'] = _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFYCAP; |
||
| 743 | $modversion['notification']['event'][6]['description'] = _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFYDSC; |
||
| 744 | $modversion['notification']['event'][6]['mail_template'] = 'category_videosubmit_notify'; |
||
| 745 | $modversion['notification']['event'][6]['mail_subject'] = _MI_XOOPSTUBE_CATEGORY_FILESUBMIT_NOTIFYSBJ; |
||
| 746 | |||
| 747 | $modversion['notification']['event'][7]['name'] = 'new_video'; |
||
| 748 | $modversion['notification']['event'][7]['category'] = 'category'; |
||
| 749 | $modversion['notification']['event'][7]['title'] = _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFY; |
||
| 750 | $modversion['notification']['event'][7]['caption'] = _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFYCAP; |
||
| 751 | $modversion['notification']['event'][7]['description'] = _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFYDSC; |
||
| 752 | $modversion['notification']['event'][7]['mail_template'] = 'category_newfile_notify'; |
||
| 753 | $modversion['notification']['event'][7]['mail_subject'] = _MI_XOOPSTUBE_CATEGORY_NEWVIDEO_NOTIFYSBJ; |
||
| 754 | |||
| 755 | $modversion['notification']['event'][8]['name'] = 'approve'; |
||
| 756 | $modversion['notification']['event'][8]['category'] = 'video'; |
||
| 757 | $modversion['notification']['event'][8]['invisible'] = 1; |
||
| 758 | $modversion['notification']['event'][8]['title'] = _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFY; |
||
| 759 | $modversion['notification']['event'][8]['caption'] = _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFYCAP; |
||
| 760 | $modversion['notification']['event'][8]['description'] = _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFYDSC; |
||
| 761 | $modversion['notification']['event'][8]['mail_template'] = 'video_approve_notify'; |
||
| 762 | $modversion['notification']['event'][8]['mail_subject'] = _MI_XOOPSTUBE_VIDEO_APPROVE_NOTIFYSBJ; |
||
| 763 | |||
| 764 | // On Update |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
59% of this comment could be valid code. Did you maybe forget this after debugging?
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. Loading history...
|
|||
| 765 | //if (!empty($_POST['fct']) && !empty($_POST['op']) && $_POST['fct'] == 'modulesadmin' && $_POST['op'] == 'update_ok' |
||
| 766 | // && $_POST['dirname'] == $modversion['dirname'] |
||
| 767 | //) { |
||
| 768 | // include __DIR__ . '/include/onupdate.inc.php'; |
||
| 769 | //} |
||
| 770 |
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.