mambax7 /
extcal
This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include, or for example
via PHP's auto-loading mechanism.
| 1 | <?php |
||
| 2 | /* |
||
| 3 | * You may not change or alter any portion of this comment or credits |
||
| 4 | * of supporting developers from this source code or any supporting source code |
||
| 5 | * which is considered copyrighted (c) material of the original comment or credit authors. |
||
| 6 | * |
||
| 7 | * This program is distributed in the hope that it will be useful, |
||
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
||
| 10 | */ |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @copyright {@link https://xoops.org/ XOOPS Project} |
||
| 14 | * @license {@link https://www.gnu.org/licenses/gpl-2.0.html GNU GPL 2 or later} |
||
| 15 | * @package extcal |
||
| 16 | * @since |
||
| 17 | * @author XOOPS Development Team, |
||
| 18 | */ |
||
| 19 | |||
| 20 | use XoopsModules\Extcal\{Helper, |
||
| 21 | CategoryHandler |
||
| 22 | }; |
||
| 23 | |||
| 24 | require_once __DIR__ . '/preloads/autoloader.php'; |
||
| 25 | |||
| 26 | $moduleDirName = basename(__DIR__); |
||
| 27 | |||
| 28 | require_once __DIR__ . '/include/constantes.php'; |
||
| 29 | require_once __DIR__ . '/include/agenda_fnc.php'; |
||
| 30 | //require_once __DIR__ . '/class/Config.php'; |
||
| 31 | //$loc_de = setlocale (LC_ALL, 'french'); |
||
| 32 | |||
| 33 | //echo "local :" . setlocale(LC_TIME, $xoopsConfig['language'])."</ br>"; |
||
| 34 | setlocale(LC_TIME, $xoopsConfig['language']); |
||
| 35 | |||
| 36 | //*************************************************************************************** |
||
| 37 | $modversion['version'] = '2.40'; |
||
| 38 | $modversion['module_status'] = 'RC 3'; |
||
| 39 | $modversion['release_date'] = '2020/07/09'; |
||
| 40 | $modversion['name'] = _MI_EXTCAL_NAME; |
||
| 41 | $modversion['description'] = _MI_EXTCAL_DESC; |
||
| 42 | $modversion['credits'] = 'Zoullou'; |
||
| 43 | $modversion['author'] = 'Zoullou, Mage, Mamba, JJ Delalandre (JJDai)'; |
||
| 44 | $modversion['nickname'] = ''; |
||
| 45 | $modversion['website'] = ''; |
||
| 46 | $modversion['license'] = 'GPL see LICENSE'; |
||
| 47 | $modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/'; |
||
| 48 | $modversion['official'] = 0; |
||
| 49 | $modversion['image'] = 'assets/images/logoModule.png'; |
||
| 50 | $modversion['dirname'] = basename(__DIR__); |
||
| 51 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 52 | $modversion['system_menu'] = 1; |
||
| 53 | $modversion['help'] = 'page=help'; |
||
| 54 | $modversion['modicons16'] = 'assets/images/icons/16'; |
||
| 55 | $modversion['modicons32'] = 'assets/images/icons/32'; |
||
| 56 | //about |
||
| 57 | $modversion['module_website_url'] = 'www.xoops.org/'; |
||
| 58 | $modversion['module_website_name'] = 'XOOPS'; |
||
| 59 | $modversion['min_php'] = '7.2'; |
||
| 60 | $modversion['min_xoops'] = '2.5.10'; |
||
| 61 | $modversion['min_admin'] = '1.2'; |
||
| 62 | $modversion['min_db'] = ['mysql' => '5.5']; |
||
| 63 | // Admin things |
||
| 64 | $modversion['hasAdmin'] = 1; |
||
| 65 | $modversion['adminindex'] = 'admin/index.php'; |
||
| 66 | $modversion['adminmenu'] = 'admin/menu.php'; |
||
| 67 | |||
| 68 | //Install/Uninstall Functions |
||
| 69 | $modversion['onInstall'] = 'include/oninstall.php'; |
||
| 70 | $modversion['onUpdate'] = 'include/onupdate.php'; |
||
| 71 | //$modversion['onUninstall'] = 'include/onuninstall.php'; |
||
| 72 | |||
| 73 | // Menu |
||
| 74 | |||
| 75 | // definitioin des menus |
||
| 76 | $modversion['hasMain'] = 1; |
||
| 77 | $i = 0; |
||
| 78 | |||
| 79 | if (isset($GLOBALS['xoopsModule']) && is_object($GLOBALS['xoopsModule']) |
||
| 80 | && 'extcal' === $GLOBALS['xoopsModule']->getVar('dirname')) { |
||
| 81 | $user = $GLOBALS['xoopsUser'] ?? null; |
||
| 82 | $categoryHandler = Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
||
| 83 | if ($categoryHandler->haveSubmitRight($user)) { |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 84 | $modversion['sub'][0]['name'] = _MI_EXTCAL_SUBMIT_EVENT; |
||
| 85 | $modversion['sub'][0]['url'] = _EXTCAL_FILE_NEW_EVENT; |
||
| 86 | } |
||
| 87 | |||
| 88 | $tTabs = getNavBarTabs(); |
||
| 89 | // while (list($key, $value) = each($tTabs)) { |
||
| 90 | foreach ($tTabs as $key => $value) { |
||
| 91 | ++$i; |
||
| 92 | $modversion['sub'][$i]['name'] = $value['name']; |
||
| 93 | $modversion['sub'][$i]['url'] = $value['href']; |
||
| 94 | } |
||
| 95 | } |
||
| 96 | |||
| 97 | //////////////////////////////////////////////////////////////////////////// |
||
| 98 | // ------------------- Mysql ------------------- // |
||
| 99 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 100 | |||
| 101 | // Tables created by sql file (without prefix!) |
||
| 102 | $modversion['tables'] = [ |
||
| 103 | $moduleDirName . '_' . 'cat', |
||
| 104 | $moduleDirName . '_' . 'event', |
||
| 105 | $moduleDirName . '_' . 'eventmember', |
||
| 106 | $moduleDirName . '_' . 'eventnotmember', |
||
| 107 | $moduleDirName . '_' . 'file', |
||
| 108 | $moduleDirName . '_' . 'location', |
||
| 109 | ]; |
||
| 110 | |||
| 111 | // SQL |
||
| 112 | |||
| 113 | // Comments |
||
| 114 | $modversion['hasComments'] = 1; |
||
| 115 | $modversion['comments']['itemName'] = 'event'; |
||
| 116 | $modversion['comments']['pageName'] = 'event.php'; |
||
| 117 | |||
| 118 | // Search |
||
| 119 | $modversion['hasSearch'] = 1; |
||
| 120 | $modversion['search']['file'] = 'include/search.inc.php'; |
||
| 121 | $modversion['search']['func'] = 'extcal_search'; |
||
| 122 | |||
| 123 | // Config items |
||
| 124 | |||
| 125 | $modversion['config'][] = [ |
||
| 126 | 'name' => 'visible_tabs', |
||
| 127 | 'title' => '_MI_EXTCAL_VISIBLE_TABS', |
||
| 128 | 'description' => '_MI_EXTCAL_VISIBLE_TABS_DESC', |
||
| 129 | 'formtype' => 'select_multi', |
||
| 130 | 'valuetype' => 'array', |
||
| 131 | 'default' => [ |
||
| 132 | _EXTCAL_NAV_CALMONTH, |
||
| 133 | _EXTCAL_NAV_CALWEEK, |
||
| 134 | _EXTCAL_NAV_YEAR, |
||
| 135 | _EXTCAL_NAV_MONTH, |
||
| 136 | _EXTCAL_NAV_WEEK, |
||
| 137 | _EXTCAL_NAV_DAY, |
||
| 138 | _EXTCAL_NAV_AGENDA_WEEK, |
||
| 139 | _EXTCAL_NAV_AGENDA_DAY, |
||
| 140 | _EXTCAL_NAV_SEARCH, |
||
| 141 | _EXTCAL_NAV_NEW_EVENT, |
||
| 142 | ], |
||
| 143 | // $t = print_r($modversion['config'][$i]['default'],true); |
||
| 144 | // echo _EXTCAL_NAV_CALMONTH . "<br><pre>{$t}</pre>"; |
||
| 145 | 'options' => [ |
||
| 146 | '_MI_EXTCAL_NAV_CALMONTH' => _EXTCAL_NAV_CALMONTH, |
||
| 147 | '_MI_EXTCAL_NAV_CALWEEK' => _EXTCAL_NAV_CALWEEK, |
||
| 148 | '_MI_EXTCAL_NAV_YEAR' => _EXTCAL_NAV_YEAR, |
||
| 149 | '_MI_EXTCAL_NAV_MONTH' => _EXTCAL_NAV_MONTH, |
||
| 150 | '_MI_EXTCAL_NAV_WEEK' => _EXTCAL_NAV_WEEK, |
||
| 151 | '_MI_EXTCAL_NAV_DAY' => _EXTCAL_NAV_DAY, |
||
| 152 | '_MI_EXTCAL_NAV_AGENDA_WEEK' => _EXTCAL_NAV_AGENDA_WEEK, |
||
| 153 | '_MI_EXTCAL_NAV_AGENDA_DAY' => _EXTCAL_NAV_AGENDA_DAY, |
||
| 154 | '_MI_EXTCAL_NAV_SEARCH' => _EXTCAL_NAV_SEARCH, |
||
| 155 | '_MI_EXTCAL_NAV_NEW_EVENT' => _EXTCAL_NAV_NEW_EVENT, |
||
| 156 | ], |
||
| 157 | ]; |
||
| 158 | |||
| 159 | //----------------------------------------------------------------------------- |
||
| 160 | $modversion['config'][] = [ |
||
| 161 | 'name' => 'weight_tabs', |
||
| 162 | 'title' => '_MI_EXTCAL_TABS_WEIGHT', |
||
| 163 | 'description' => '_MI_EXTCAL_TABS_WEIGHT_DESC', |
||
| 164 | 'formtype' => 'textarea', |
||
| 165 | 'valuetype' => 'text', |
||
| 166 | //'default' => "10,20,30,40,50,_EXTCAL_TS_MINUTE,70,80,90,100,0", |
||
| 167 | 'default' => _EXTCAL_NAV_LIST, |
||
| 168 | ]; |
||
| 169 | |||
| 170 | //----------------------------------------------------------------------------- |
||
| 171 | $modversion['config'][] = [ |
||
| 172 | 'name' => 'start_page', |
||
| 173 | 'title' => '_MI_EXTCAL_START_PAGE', |
||
| 174 | 'description' => '', |
||
| 175 | 'formtype' => 'select', |
||
| 176 | 'valuetype' => 'text', |
||
| 177 | 'default' => _EXTCAL_FILE_CALMONTH, |
||
| 178 | 'options' => [ |
||
| 179 | '_MI_EXTCAL_NAV_CALMONTH' => _EXTCAL_FILE_CALMONTH, |
||
| 180 | '_MI_EXTCAL_NAV_CALWEEK' => _EXTCAL_FILE_CALWEEK, |
||
| 181 | '_MI_EXTCAL_NAV_YEAR' => _EXTCAL_FILE_YEAR, |
||
| 182 | '_MI_EXTCAL_NAV_MONTH' => _EXTCAL_FILE_MONTH, |
||
| 183 | '_MI_EXTCAL_NAV_WEEK' => _EXTCAL_FILE_WEEK, |
||
| 184 | '_MI_EXTCAL_NAV_DAY' => _EXTCAL_FILE_DAY, |
||
| 185 | '_MI_EXTCAL_NAV_AGENDA_WEEK' => _EXTCAL_FILE_AGENDA_WEEK, |
||
| 186 | '_MI_EXTCAL_NAV_AGENDA_DAY' => _EXTCAL_FILE_AGENDA_DAY, |
||
| 187 | '_MI_EXTCAL_NAV_SEARCH' => _EXTCAL_FILE_SEARCH, |
||
| 188 | '_MI_EXTCAL_NAV_NEW_EVENT' => _EXTCAL_FILE_NEW_EVENT, |
||
| 189 | ], |
||
| 190 | ]; |
||
| 191 | |||
| 192 | $modversion['config'][] = [ |
||
| 193 | 'name' => 'week_start_day', |
||
| 194 | 'title' => '_MI_EXTCAL_WEEK_START_DAY', |
||
| 195 | 'description' => '_MI_EXTCAL_WEEK_START_DAY_DESC', |
||
| 196 | 'formtype' => 'select', |
||
| 197 | 'valuetype' => 'int', |
||
| 198 | 'default' => 1, |
||
| 199 | 'options' => [ |
||
| 200 | '_MI_EXTCAL_DAY_SUNDAY' => 0, |
||
| 201 | '_MI_EXTCAL_DAY_MONDAY' => 1, |
||
| 202 | '_MI_EXTCAL_DAY_TUESDAY' => 2, |
||
| 203 | '_MI_EXTCAL_DAY_WEDNESDAY' => 3, |
||
| 204 | '_MI_EXTCAL_DAY_THURSDAY' => 4, |
||
| 205 | '_MI_EXTCAL_DAY_FRIDAY' => 5, |
||
| 206 | '_MI_EXTCAL_DAY_SATURDAY' => 6, |
||
| 207 | ], |
||
| 208 | ]; |
||
| 209 | |||
| 210 | $modversion['config'][] = [ |
||
| 211 | 'name' => 'list_position', |
||
| 212 | 'title' => '_MI_EXTCAL_LIST_POS', |
||
| 213 | 'description' => '_MI_EXTCAL_LIST_POS_DESC', |
||
| 214 | 'formtype' => 'select', |
||
| 215 | 'valuetype' => 'text', |
||
| 216 | 'default' => 1, |
||
| 217 | 'options' => [ |
||
| 218 | '_MI_EXTCAL_BEFORE' => 0, |
||
| 219 | '_MI_EXTCAL_AFTER' => 1, |
||
| 220 | ], |
||
| 221 | ]; |
||
| 222 | |||
| 223 | xoops_load('XoopsEditorHandler'); |
||
| 224 | $editorHandler = \XoopsEditorHandler::getInstance(); |
||
| 225 | $editorList = array_flip($editorHandler->getList()); |
||
| 226 | |||
| 227 | $modversion['config'][] = [ |
||
| 228 | 'name' => 'editorAdmin', |
||
| 229 | 'title' => '_MI_EXTCAL_EDITOR_ADMIN', |
||
| 230 | 'description' => '_MI_EXTCAL_EDITOR_ADMIN_DESC', |
||
| 231 | 'formtype' => 'select', |
||
| 232 | 'valuetype' => 'text', |
||
| 233 | 'options' => $editorList, |
||
| 234 | 'default' => 'dhtml', |
||
| 235 | ]; |
||
| 236 | |||
| 237 | $modversion['config'][] = [ |
||
| 238 | 'name' => 'editorUser', |
||
| 239 | 'title' => '_MI_EXTCAL_EDITOR_USER', |
||
| 240 | 'description' => '_MI_EXTCAL_EDITOR_USER_DESC', |
||
| 241 | 'formtype' => 'select', |
||
| 242 | 'valuetype' => 'text', |
||
| 243 | 'options' => $editorList, |
||
| 244 | 'default' => 'dhtml', |
||
| 245 | ]; |
||
| 246 | |||
| 247 | $modversion['config'][] = [ |
||
| 248 | 'name' => 'rss_cache_time', |
||
| 249 | 'title' => '_MI_EXTCAL_RSS_CACHE_TIME', |
||
| 250 | 'description' => '_MI_EXTCAL_RSS_CACHE_TIME_DESC', |
||
| 251 | 'formtype' => 'textbox', |
||
| 252 | 'valuetype' => 'int', |
||
| 253 | 'default' => _EXTCAL_TS_MINUTE, |
||
| 254 | ]; |
||
| 255 | |||
| 256 | $modversion['config'][] = [ |
||
| 257 | 'name' => 'rss_nb_event', |
||
| 258 | 'title' => '_MI_EXTCAL_RSS_NB_EVENT', |
||
| 259 | 'description' => '_MI_EXTCAL_RSS_NB_EVENT_DESC', |
||
| 260 | 'formtype' => 'textbox', |
||
| 261 | 'valuetype' => 'int', |
||
| 262 | 'default' => 10, |
||
| 263 | ]; |
||
| 264 | |||
| 265 | $modversion['config'][] = [ |
||
| 266 | 'name' => 'whos_going', |
||
| 267 | 'title' => '_MI_EXTCAL_WHOS_GOING', |
||
| 268 | 'description' => '_MI_EXTCAL_WHOS_GOING_DESC', |
||
| 269 | 'formtype' => 'yesno', |
||
| 270 | 'valuetype' => 'int', |
||
| 271 | 'default' => 1, |
||
| 272 | ]; |
||
| 273 | |||
| 274 | $modversion['config'][] = [ |
||
| 275 | 'name' => 'whosnot_going', |
||
| 276 | 'title' => '_MI_EXTCAL_WHOSNOT_GOING', |
||
| 277 | 'description' => '_MI_EXTCAL_WHOSNOT_GOING_DESC', |
||
| 278 | 'formtype' => 'yesno', |
||
| 279 | 'valuetype' => 'int', |
||
| 280 | 'default' => 1, |
||
| 281 | ]; |
||
| 282 | |||
| 283 | $modversion['config'][] = [ |
||
| 284 | 'name' => 'sort_order', |
||
| 285 | 'title' => '_MI_EXTCAL_SORT_ORDER', |
||
| 286 | 'description' => '_MI_EXTCAL_SORT_ORDER_DESC', |
||
| 287 | 'formtype' => 'select', |
||
| 288 | 'valuetype' => 'text', |
||
| 289 | 'default' => 1, |
||
| 290 | 'options' => [ |
||
| 291 | '_MI_EXTCAL_ASCENDING' => 'ASC', |
||
| 292 | '_MI_EXTCAL_DESCENDING' => 'DESC', |
||
| 293 | ], |
||
| 294 | ]; |
||
| 295 | |||
| 296 | $modversion['config'][] = [ |
||
| 297 | 'name' => 'event_date_year', |
||
| 298 | 'title' => '_MI_EXTCAL_EY_DATE_PATTERN', |
||
| 299 | 'description' => '_MI_EXTCAL_EY_DATE_PATTERN_DESC', |
||
| 300 | 'formtype' => 'textbox', |
||
| 301 | 'valuetype' => 'text', |
||
| 302 | 'default' => _MI_EXTCAL_EY_DATE_PATTERN_VALUE, |
||
| 303 | ]; |
||
| 304 | |||
| 305 | $modversion['config'][] = [ |
||
| 306 | 'name' => 'nav_date_month', |
||
| 307 | 'title' => '_MI_EXTCAL_NM_DATE_PATTERN', |
||
| 308 | 'description' => '_MI_EXTCAL_NM_DATE_PATTERN_DESC', |
||
| 309 | 'formtype' => 'textbox', |
||
| 310 | 'valuetype' => 'text', |
||
| 311 | 'default' => _MI_EXTCAL_NM_DATE_PATTERN_VALUE, |
||
| 312 | ]; |
||
| 313 | |||
| 314 | $modversion['config'][] = [ |
||
| 315 | 'name' => 'event_date_month', |
||
| 316 | 'title' => '_MI_EXTCAL_EM_DATE_PATTERN', |
||
| 317 | 'description' => '_MI_EXTCAL_EM_DATE_PATTERN_DESC', |
||
| 318 | 'formtype' => 'textbox', |
||
| 319 | 'valuetype' => 'text', |
||
| 320 | 'default' => _MI_EXTCAL_EM_DATE_PATTERN_VALUE, |
||
| 321 | ]; |
||
| 322 | |||
| 323 | $modversion['config'][] = [ |
||
| 324 | 'name' => 'nav_date_week', |
||
| 325 | 'title' => '_MI_EXTCAL_NW_DATE_PATTERN', |
||
| 326 | 'description' => '_MI_EXTCAL_NW_DATE_PATTERN_DESC', |
||
| 327 | 'formtype' => 'textbox', |
||
| 328 | 'valuetype' => 'text', |
||
| 329 | 'default' => _MI_EXTCAL_NW_DATE_PATTERN_VALUE, |
||
| 330 | ]; |
||
| 331 | |||
| 332 | $modversion['config'][] = [ |
||
| 333 | 'name' => 'event_date_week', |
||
| 334 | 'title' => '_MI_EXTCAL_EW_DATE_PATTERN', |
||
| 335 | 'description' => '_MI_EXTCAL_EW_DATE_PATTERN_DESC', |
||
| 336 | 'formtype' => 'textbox', |
||
| 337 | 'valuetype' => 'text', |
||
| 338 | 'default' => _MI_EXTCAL_EW_DATE_PATTERN_VALUE, |
||
| 339 | ]; |
||
| 340 | |||
| 341 | $modversion['config'][] = [ |
||
| 342 | 'name' => 'nav_date_day', |
||
| 343 | 'title' => '_MI_EXTCAL_ND_DATE_PATTERN', |
||
| 344 | 'description' => '_MI_EXTCAL_ND_DATE_PATTERN_DESC', |
||
| 345 | 'formtype' => 'textbox', |
||
| 346 | 'valuetype' => 'text', |
||
| 347 | 'default' => _MI_EXTCAL_ND_DATE_PATTERN_VALUE, |
||
| 348 | ]; |
||
| 349 | |||
| 350 | $modversion['config'][] = [ |
||
| 351 | 'name' => 'event_date_day', |
||
| 352 | 'title' => '_MI_EXTCAL_ED_DATE_PATTERN', |
||
| 353 | 'description' => '_MI_EXTCAL_ED_DATE_PATTERN_DESC', |
||
| 354 | 'formtype' => 'textbox', |
||
| 355 | 'valuetype' => 'text', |
||
| 356 | 'default' => _MI_EXTCAL_ED_DATE_PATTERN_VALUE, |
||
| 357 | ]; |
||
| 358 | |||
| 359 | $modversion['config'][] = [ |
||
| 360 | 'name' => 'event_date_event', |
||
| 361 | 'title' => '_MI_EXTCAL_EE_DATE_PATTERN', |
||
| 362 | 'description' => '_MI_EXTCAL_EE_DATE_PATTERN_DESC', |
||
| 363 | 'formtype' => 'textbox', |
||
| 364 | 'valuetype' => 'text', |
||
| 365 | 'default' => _MI_EXTCAL_EE_DATE_PATTERN_VALUE, |
||
| 366 | ]; |
||
| 367 | |||
| 368 | $modversion['config'][] = [ |
||
| 369 | 'name' => 'event_date_block', |
||
| 370 | 'title' => '_MI_EXTCAL_EB_DATE_PATTERN', |
||
| 371 | 'description' => '_MI_EXTCAL_EB_DATE_PATTERN_DESC', |
||
| 372 | 'formtype' => 'textbox', |
||
| 373 | 'valuetype' => 'text', |
||
| 374 | 'default' => _MI_EXTCAL_EB_DATE_PATTERN_VALUE, |
||
| 375 | ]; |
||
| 376 | |||
| 377 | $modversion['config'][] = [ |
||
| 378 | 'name' => 'diplay_past_event_list', |
||
| 379 | 'title' => '_MI_EXTCAL_DISP_PAST_E_LIST', |
||
| 380 | 'description' => '_MI_EXTCAL_DISP_PAST_E_LIST_DESC', |
||
| 381 | 'formtype' => 'yesno', |
||
| 382 | 'valuetype' => 'int', |
||
| 383 | 'default' => 1, |
||
| 384 | ]; |
||
| 385 | |||
| 386 | $modversion['config'][] = [ |
||
| 387 | 'name' => 'diplay_past_event_cal', |
||
| 388 | 'title' => '_MI_EXTCAL_DISP_PAST_E_CAL', |
||
| 389 | 'description' => '_MI_EXTCAL_DISP_PAST_E_CAL_DESC', |
||
| 390 | 'formtype' => 'yesno', |
||
| 391 | 'valuetype' => 'int', |
||
| 392 | 'default' => 1, |
||
| 393 | ]; |
||
| 394 | |||
| 395 | $modversion['config'][] = [ |
||
| 396 | 'name' => 'allowed_file_extention', |
||
| 397 | 'title' => '_MI_EXTCAL_FILE_EXTENTION', |
||
| 398 | 'description' => '_MI_EXTCAL_FILE_EXTENTION_DESC', |
||
| 399 | 'formtype' => 'select_multi', |
||
| 400 | 'valuetype' => 'array', |
||
| 401 | 'default' => ['doc', 'jpg', 'jpeg', 'gif', 'png', 'pdf', 'txt'], |
||
| 402 | 'options' => [ |
||
| 403 | 'ai' => 'ai', |
||
| 404 | 'aif' => 'aif', |
||
| 405 | 'aiff' => 'aiff', |
||
| 406 | 'asc' => 'asc', |
||
| 407 | 'au' => 'au', |
||
| 408 | 'avi' => 'avi', |
||
| 409 | 'bin' => 'bin', |
||
| 410 | 'bmp' => 'bmp', |
||
| 411 | 'class' => 'class', |
||
| 412 | 'csh' => 'csh', |
||
| 413 | 'css' => 'css', |
||
| 414 | 'dcr' => 'dcr', |
||
| 415 | 'dir' => 'dir', |
||
| 416 | 'dll' => 'dll', |
||
| 417 | 'doc' => 'doc', |
||
| 418 | 'dot' => 'dot', |
||
| 419 | 'dtd' => 'dtd', |
||
| 420 | 'dxr' => 'dxr', |
||
| 421 | 'ent' => 'ent', |
||
| 422 | 'eps' => 'eps', |
||
| 423 | 'exe' => 'exe', |
||
| 424 | 'gif' => 'gif', |
||
| 425 | 'gtar' => 'gtar', |
||
| 426 | 'gz' => 'gz', |
||
| 427 | 'hqx' => 'hqx', |
||
| 428 | 'htm' => 'htm', |
||
| 429 | 'html' => 'html', |
||
| 430 | 'ics' => 'ics', |
||
| 431 | 'ifb' => 'ifb', |
||
| 432 | 'jpe' => 'jpe', |
||
| 433 | 'jpeg' => 'jpeg', |
||
| 434 | 'jpg' => 'jpg', |
||
| 435 | 'js' => 'js', |
||
| 436 | 'kar' => 'kar', |
||
| 437 | 'lha' => 'lha', |
||
| 438 | 'lzh' => 'lzh', |
||
| 439 | 'm3u' => 'm3u', |
||
| 440 | 'mid' => 'mid', |
||
| 441 | 'midi' => 'midi', |
||
| 442 | 'mod' => 'mod', |
||
| 443 | 'mov' => 'mov', |
||
| 444 | 'mp1' => 'mp1', |
||
| 445 | 'mp2' => 'mp2', |
||
| 446 | 'mp3' => 'mp3', |
||
| 447 | 'mpe' => 'mpe', |
||
| 448 | 'mpeg' => 'mpeg', |
||
| 449 | 'mpg' => 'mpg', |
||
| 450 | 'pbm' => 'pbm', |
||
| 451 | 'pdf' => 'pdf', |
||
| 452 | 'pgm' => 'pgm', |
||
| 453 | 'php' => 'php', |
||
| 454 | 'php3' => 'php3', |
||
| 455 | 'php5' => 'php5', |
||
| 456 | 'phtml' => 'phtml', |
||
| 457 | 'png' => 'png', |
||
| 458 | 'pnm' => 'pnm', |
||
| 459 | 'ppm' => 'ppm', |
||
| 460 | 'ppt' => 'ppt', |
||
| 461 | 'ps' => 'ps', |
||
| 462 | 'qt' => 'qt', |
||
| 463 | 'ra' => 'ra', |
||
| 464 | 'ram' => 'ram', |
||
| 465 | 'rm' => 'rm', |
||
| 466 | 'rpm' => 'rpm', |
||
| 467 | 'rtf' => 'rtf', |
||
| 468 | 'sgm' => 'sgm', |
||
| 469 | 'sgml' => 'sgml', |
||
| 470 | 'sh' => 'sh', |
||
| 471 | 'sit' => 'sit', |
||
| 472 | 'smi' => 'smi', |
||
| 473 | 'smil' => 'smil', |
||
| 474 | 'snd' => 'snd', |
||
| 475 | 'so' => 'so', |
||
| 476 | 'spl' => 'spl', |
||
| 477 | 'swf' => 'swf', |
||
| 478 | 'tar' => 'tar', |
||
| 479 | 'tcl' => 'tcl', |
||
| 480 | 'tif' => 'tif', |
||
| 481 | 'tiff' => 'tiff', |
||
| 482 | 'tsv' => 'tsv', |
||
| 483 | 'txt' => 'txt', |
||
| 484 | 'wav' => 'wav', |
||
| 485 | 'wbmp' => 'wbmp', |
||
| 486 | 'wbxml' => 'wbxml', |
||
| 487 | 'wml' => 'wml', |
||
| 488 | 'wmlc' => 'wmlc', |
||
| 489 | 'wmls' => 'wmls', |
||
| 490 | 'wmlsc' => 'wmlsc', |
||
| 491 | 'xbm' => 'xbm', |
||
| 492 | 'xht' => 'xht', |
||
| 493 | 'xhtml' => 'xhtml', |
||
| 494 | 'xla' => 'xla', |
||
| 495 | 'xls' => 'xls', |
||
| 496 | 'xlt' => 'xlt', |
||
| 497 | 'xpm' => 'xpm', |
||
| 498 | 'xsl' => 'xsl', |
||
| 499 | 'zip' => 'zip', |
||
| 500 | ], |
||
| 501 | ]; |
||
| 502 | |||
| 503 | $modversion['config'][] = [ |
||
| 504 | 'name' => 'allow_html', |
||
| 505 | 'title' => '_MI_EXTCAL_HTML', |
||
| 506 | 'description' => '_MI_EXTCAL_HTML_DESC', |
||
| 507 | 'formtype' => 'yesno', |
||
| 508 | 'valuetype' => 'int', |
||
| 509 | 'default' => 0, |
||
| 510 | ]; |
||
| 511 | |||
| 512 | //modif JJD ------------------------------------------------------------ |
||
| 513 | $modversion['config'][] = [ |
||
| 514 | 'name' => 'agenda_tranche_minutes', |
||
| 515 | 'title' => '_MI_EXTCAL_AGENDA_SLICE_MINUTES', |
||
| 516 | 'description' => '_MI_EXTCAL_AGENDA_SLICE_MINUTES_DESC', |
||
| 517 | 'formtype' => 'int', |
||
| 518 | 'valuetype' => 'int', |
||
| 519 | 'default' => 15, |
||
| 520 | ]; |
||
| 521 | |||
| 522 | $modversion['config'][] = [ |
||
| 523 | 'name' => 'agenda_start_hour', |
||
| 524 | 'title' => '_MI_EXTCAL_AGENDA_START_HOUR', |
||
| 525 | 'description' => '_MI_EXTCAL_AGENDA_START_HOUR_DESC', |
||
| 526 | 'formtype' => 'int', |
||
| 527 | 'valuetype' => 'int', |
||
| 528 | 'default' => 8, |
||
| 529 | ]; |
||
| 530 | |||
| 531 | $modversion['config'][] = [ |
||
| 532 | 'name' => 'agenda_end_hour', |
||
| 533 | 'title' => '_MI_EXTCAL_AGENDA_END_HOUR', |
||
| 534 | 'description' => '_MI_EXTCAL_AGENDA_END_HOUR_DESC', |
||
| 535 | 'formtype' => 'int', |
||
| 536 | 'valuetype' => 'int', |
||
| 537 | 'default' => 20, |
||
| 538 | ]; |
||
| 539 | |||
| 540 | $modversion['config'][] = [ |
||
| 541 | 'name' => 'agenda_nb_days_week', |
||
| 542 | 'title' => '_MI_EXTCAL_AGENDA_NB_DAYS_WEEK', |
||
| 543 | 'description' => '_MI_EXTCAL_AGENDA_NB_DAYS_WEEK_DESC', |
||
| 544 | 'formtype' => 'int', |
||
| 545 | 'valuetype' => 'int', |
||
| 546 | 'default' => 10, |
||
| 547 | ]; |
||
| 548 | |||
| 549 | $modversion['config'][] = [ |
||
| 550 | 'name' => 'agenda_nb_days_day', |
||
| 551 | 'title' => '_MI_EXTCAL_AGENDA_NB_DAYS_DAY', |
||
| 552 | 'description' => '_MI_EXTCAL_AGENDA_NB_DAYS_DAY_DESC', |
||
| 553 | 'formtype' => 'int', |
||
| 554 | 'valuetype' => 'int', |
||
| 555 | 'default' => 1, |
||
| 556 | |||
| 557 | ]; |
||
| 558 | |||
| 559 | $modversion['config'][] = [ |
||
| 560 | 'name' => 'agenda_nb_years_before', |
||
| 561 | 'title' => '_MI_EXTCAL_NB_YEARS_BEFORE', |
||
| 562 | 'description' => '_MI_EXTCAL_NB_YEARS_BEFORE_DESC', |
||
| 563 | 'formtype' => 'int', |
||
| 564 | 'valuetype' => 'int', |
||
| 565 | 'default' => 0, |
||
| 566 | ]; |
||
| 567 | |||
| 568 | $modversion['config'][] = [ |
||
| 569 | 'name' => 'agenda_nb_years_after', |
||
| 570 | 'title' => '_MI_EXTCAL_NB_YEARS_AFTER', |
||
| 571 | 'description' => '_MI_EXTCAL_NB_YEARS_AFTER_DESC', |
||
| 572 | 'formtype' => 'int', |
||
| 573 | 'valuetype' => 'int', |
||
| 574 | 'default' => 5, |
||
| 575 | |||
| 576 | ]; |
||
| 577 | $modversion['config'][] = [ |
||
| 578 | 'name' => 'break', |
||
| 579 | 'title' => '_MI_EXTCAL_SHOW_FORMOPTIONS', |
||
| 580 | 'description' => '', |
||
| 581 | 'formtype' => 'line_break', |
||
| 582 | 'valuetype' => 'textbox', |
||
| 583 | 'default' => 'head', |
||
| 584 | ]; |
||
| 585 | |||
| 586 | $modversion['config'][] = [ |
||
| 587 | 'name' => 'formShowIcon', |
||
| 588 | 'title' => '_MI_EXTCAL_FORMSHOW_ICON', |
||
| 589 | 'description' => '_MI_EXTCAL_FORMSHOW_ICON_DESC', |
||
| 590 | 'formtype' => 'yesno', |
||
| 591 | 'valuetype' => 'int', |
||
| 592 | 'default' => 1, |
||
| 593 | ]; |
||
| 594 | |||
| 595 | $modversion['config'][] = [ |
||
| 596 | 'name' => 'formShowLocation', |
||
| 597 | 'title' => '_MI_EXTCAL_FORMSHOW_LOCATION', |
||
| 598 | 'description' => '_MI_EXTCAL_FORMSHOW_LOCATION_DESC', |
||
| 599 | 'formtype' => 'yesno', |
||
| 600 | 'valuetype' => 'int', |
||
| 601 | 'default' => 1, |
||
| 602 | ]; |
||
| 603 | |||
| 604 | $modversion['config'][] = [ |
||
| 605 | 'name' => 'formShowPrice', |
||
| 606 | 'title' => '_MI_EXTCAL_FORMSHOW_PRICE', |
||
| 607 | 'description' => '_MI_EXTCAL_FORMSHOW_PRICE_DESC', |
||
| 608 | 'formtype' => 'yesno', |
||
| 609 | 'valuetype' => 'int', |
||
| 610 | 'default' => 1, |
||
| 611 | ]; |
||
| 612 | |||
| 613 | $modversion['config'][] = [ |
||
| 614 | 'name' => 'formShowOrganizer', |
||
| 615 | 'title' => '_MI_EXTCAL_FORMSHOW_ORGANIZER', |
||
| 616 | 'description' => '_MI_EXTCAL_FORMSHOW_ORGANIZER_DESC', |
||
| 617 | 'formtype' => 'yesno', |
||
| 618 | 'valuetype' => 'int', |
||
| 619 | 'default' => 1, |
||
| 620 | ]; |
||
| 621 | |||
| 622 | $modversion['config'][] = [ |
||
| 623 | 'name' => 'formShowContact', |
||
| 624 | 'title' => '_MI_EXTCAL_FORMSHOW_CONTACT', |
||
| 625 | 'description' => '_MI_EXTCAL_FORMSHOW_CONTACT_DESC', |
||
| 626 | 'formtype' => 'yesno', |
||
| 627 | 'valuetype' => 'int', |
||
| 628 | 'default' => 1, |
||
| 629 | ]; |
||
| 630 | |||
| 631 | $modversion['config'][] = [ |
||
| 632 | 'name' => 'formShowUrl', |
||
| 633 | 'title' => '_MI_EXTCAL_FORMSHOW_URL', |
||
| 634 | 'description' => '_MI_EXTCAL_FORMSHOW_URL_DESC', |
||
| 635 | 'formtype' => 'yesno', |
||
| 636 | 'valuetype' => 'int', |
||
| 637 | 'default' => 1, |
||
| 638 | ]; |
||
| 639 | |||
| 640 | $modversion['config'][] = [ |
||
| 641 | 'name' => 'formShowEmail', |
||
| 642 | 'title' => '_MI_EXTCAL_FORMSHOW_EMAIL', |
||
| 643 | 'description' => '_MI_EXTCAL_FORMSHOW_EMAIL_DESC', |
||
| 644 | 'formtype' => 'yesno', |
||
| 645 | 'valuetype' => 'int', |
||
| 646 | 'default' => 1, |
||
| 647 | ]; |
||
| 648 | |||
| 649 | $modversion['config'][] = [ |
||
| 650 | 'name' => 'formShowAddress', |
||
| 651 | 'title' => '_MI_EXTCAL_FORMSHOW_ADDRESS', |
||
| 652 | 'description' => '_MI_EXTCAL_FORMSHOW_ADDRESS_DESC', |
||
| 653 | 'formtype' => 'yesno', |
||
| 654 | 'valuetype' => 'int', |
||
| 655 | 'default' => 1, |
||
| 656 | ]; |
||
| 657 | |||
| 658 | $modversion['config'][] = [ |
||
| 659 | 'name' => 'formShowRecurence', |
||
| 660 | 'title' => '_MI_EXTCAL_FORMSHOW_RECURENCE', |
||
| 661 | 'description' => '_MI_EXTCAL_FORMSHOW_RECURENCE_DESC', |
||
| 662 | 'formtype' => 'yesno', |
||
| 663 | 'valuetype' => 'int', |
||
| 664 | 'default' => 1, |
||
| 665 | ]; |
||
| 666 | |||
| 667 | $modversion['config'][] = [ |
||
| 668 | 'name' => 'formShowFile', |
||
| 669 | 'title' => '_MI_EXTCAL_FORMSHOW_FILE', |
||
| 670 | 'description' => '_MI_EXTCAL_FORMSHOW_FILE_DESC', |
||
| 671 | 'formtype' => 'yesno', |
||
| 672 | 'valuetype' => 'int', |
||
| 673 | 'default' => 1, |
||
| 674 | ]; |
||
| 675 | |||
| 676 | $modversion['config'][] = [ |
||
| 677 | 'name' => 'formShowPicture', |
||
| 678 | 'title' => '_MI_EXTCAL_FORMSHOW_PICTURE', |
||
| 679 | 'description' => '_MI_EXTCAL_FORMSHOW_PICTURE_DESC', |
||
| 680 | 'formtype' => 'yesno', |
||
| 681 | 'valuetype' => 'int', |
||
| 682 | 'default' => 1, |
||
| 683 | ]; |
||
| 684 | |||
| 685 | $modversion['config'][] = [ |
||
| 686 | 'name' => 'break' . $i, |
||
| 687 | 'title' => '_MI_EXTCAL_SHOW_OTHEROPTIONS', |
||
| 688 | 'description' => '', |
||
| 689 | 'formtype' => 'line_break', |
||
| 690 | 'valuetype' => 'textbox', |
||
| 691 | 'default' => 'head', |
||
| 692 | ]; |
||
| 693 | |||
| 694 | //---------------------------------------------------------- |
||
| 695 | $modversion['config'][] = [ |
||
| 696 | 'name' => 'showInfoBulle', |
||
| 697 | 'title' => '_MI_EXTCAL_SHOW_INFOBULLE', |
||
| 698 | 'description' => '_MI_EXTCAL_SHOW_INFOBULLE_DESC', |
||
| 699 | 'formtype' => 'yesno', |
||
| 700 | 'valuetype' => 'int', |
||
| 701 | 'default' => 1, |
||
| 702 | ]; |
||
| 703 | |||
| 704 | $modversion['config'][] = [ |
||
| 705 | 'name' => 'showId', |
||
| 706 | 'title' => '_MI_EXTCAL_SHOW_ID', |
||
| 707 | 'description' => '_MI_EXTCAL_SHOW_ID_DESC', |
||
| 708 | 'formtype' => 'yesno', |
||
| 709 | 'valuetype' => 'int', |
||
| 710 | 'default' => 0, |
||
| 711 | ]; |
||
| 712 | |||
| 713 | /* |
||
| 714 | inutilise pour le moment, prevu pour ajout navigation dans minical |
||
| 715 | */ |
||
| 716 | $modversion['config'][] = [ |
||
| 717 | 'name' => 'offsetMinical', |
||
| 718 | 'title' => '_MI_EXTCAL_OFFSET_MINICAL', |
||
| 719 | 'description' => '_MI_EXTCAL_OFFSET_MINICAL_DESC', |
||
| 720 | 'formtype' => 'hidden', |
||
| 721 | 'valuetype' => 'int', |
||
| 722 | 'default' => 0, |
||
| 723 | |||
| 724 | ]; |
||
| 725 | |||
| 726 | $modversion['config'][] = [ |
||
| 727 | 'name' => 'nbEventsByPage', |
||
| 728 | 'title' => '_MI_EXTCAL_NB_EVENTS_BY_PAGE', |
||
| 729 | 'description' => '_MI_EXTCAL_NB_EVENTS_BY_PAGE_DESC', |
||
| 730 | 'formtype' => 'int', |
||
| 731 | 'valuetype' => 'int', |
||
| 732 | 'default' => 10, |
||
| 733 | |||
| 734 | // utilisation de security image |
||
| 735 | ]; |
||
| 736 | |||
| 737 | $modversion['config'][] = [ |
||
| 738 | 'name' => 'email_Mode', |
||
| 739 | 'title' => '_MI_EXTCAL_EMAIL_MODE', |
||
| 740 | 'description' => '_MI_EXTCAL_EMAIL_MODE_DESC', |
||
| 741 | 'formtype' => 'select', |
||
| 742 | 'valuetype' => 'int', |
||
| 743 | 'default' => 0, |
||
| 744 | 'options' => [ |
||
| 745 | '_MI_EXTCAL_EMAIL_MODE_NONE' => 0, |
||
| 746 | '_MI_EXTCAL_EMAIL_MODE_TEXT' => 1, |
||
| 747 | '_MI_EXTCAL_EMAIL_MODE_HTML' => 2, |
||
| 748 | ], |
||
| 749 | ]; |
||
| 750 | |||
| 751 | $modversion['config'][] = [ |
||
| 752 | 'name' => 'pear_path', |
||
| 753 | 'title' => '_MI_EXTCAL_PEAR_PATH', |
||
| 754 | 'description' => '_MI_EXTCAL_PEAR_PATH_DESC', |
||
| 755 | 'formtype' => 'textbox', |
||
| 756 | 'valuetype' => 'text', |
||
| 757 | 'size' => 80, |
||
| 758 | 'default' => '', |
||
| 759 | ]; |
||
| 760 | |||
| 761 | /** |
||
| 762 | * Make Sample button visible? |
||
| 763 | */ |
||
| 764 | $modversion['config'][] = [ |
||
| 765 | 'name' => 'displaySampleButton', |
||
| 766 | 'title' => '_MI_EXTCAL_SHOW_SAMPLE_BUTTON', |
||
| 767 | 'description' => '_MI_EXTCAL_SHOW_SAMPLE_BUTTON_DESC', |
||
| 768 | 'formtype' => 'yesno', |
||
| 769 | 'valuetype' => 'int', |
||
| 770 | 'default' => 1, |
||
| 771 | ]; |
||
| 772 | |||
| 773 | /** |
||
| 774 | * Show Developer Tools? |
||
| 775 | */ |
||
| 776 | $modversion['config'][] = [ |
||
| 777 | 'name' => 'displayDeveloperTools', |
||
| 778 | 'title' => '_MI_EXTCAL_SHOW_DEV_TOOLS', |
||
| 779 | 'description' => '_MI_EXTCAL_SHOW_DEV_TOOLS_DESC', |
||
| 780 | 'formtype' => 'yesno', |
||
| 781 | 'valuetype' => 'int', |
||
| 782 | 'default' => 0, |
||
| 783 | ]; |
||
| 784 | |||
| 785 | //modif JJD ------------------------------------------------------------ |
||
| 786 | |||
| 787 | // ------------------- Templates ------------------- // |
||
| 788 | $modversion['templates'] = [ |
||
| 789 | ['file' => 'extcal_buttons_event.tpl', 'description' => 'buttons event'], |
||
| 790 | ['file' => 'extcal_categorie.tpl', 'description' => 'Category'], |
||
| 791 | ['file' => 'extcal_event.tpl', 'description' => ''], |
||
| 792 | ['file' => 'extcal_event_list1.tpl', 'description' => 'Events list'], |
||
| 793 | ['file' => 'extcal_event_nav_btn.tpl', 'description' => 'navigation buttonsn'], |
||
| 794 | ['file' => 'extcal_horloge.tpl', 'description' => 'Time'], |
||
| 795 | ['file' => 'extcal_imgXoops.tpl', 'description' => 'Images Xoops'], |
||
| 796 | ['file' => 'extcal_info_bulle.tpl', 'description' => 'Info bulle'], |
||
| 797 | ['file' => 'extcal_location.tpl', 'description' => 'location'], |
||
| 798 | ['file' => 'extcal_navbar.tpl', 'description' => ''], |
||
| 799 | ['file' => 'extcal_post.tpl', 'description' => ''], |
||
| 800 | ['file' => 'extcal_rss.tpl', 'description' => ''], |
||
| 801 | ['file' => 'extcal_view_agenda-day.tpl', 'description' => ''], |
||
| 802 | ['file' => 'extcal_view_agenda-week.tpl', 'description' => ''], |
||
| 803 | ['file' => 'extcal_view_calendar-month.tpl', 'description' => ''], |
||
| 804 | ['file' => 'extcal_view_calendar-week.tpl', 'description' => ''], |
||
| 805 | ['file' => 'extcal_view_day.tpl', 'description' => ''], |
||
| 806 | ['file' => 'extcal_view_month.tpl', 'description' => ''], |
||
| 807 | ['file' => 'extcal_view_new-event.tpl', 'description' => 'New event'], |
||
| 808 | ['file' => 'extcal_view_search.tpl', 'description' => 'search events'], |
||
| 809 | ['file' => 'extcal_view_week.tpl', 'description' => ''], |
||
| 810 | ['file' => 'extcal_view_year.tpl', 'description' => ''], |
||
| 811 | //------------------------------------------------------------- |
||
| 812 | ['file' => 'extcal_mail_member_text.tpl', 'description' => 'Mail text member inscription/desinscription'], |
||
| 813 | ['file' => 'extcal_mail_member_html.tpl', 'description' => 'Mail html member inscription/desinscription'], |
||
| 814 | //------------------------------------------------------------- |
||
| 815 | //template de l'admin |
||
| 816 | //------------------------------------------------------------- |
||
| 817 | ['file' => 'admin/extcal_admin_cat_list.tpl', 'description' => 'Category list'], |
||
| 818 | ]; |
||
| 819 | |||
| 820 | //------------------------------------------------------------- |
||
| 821 | |||
| 822 | // Blocs |
||
| 823 | |||
| 824 | $modversion['blocks'][] = [ |
||
| 825 | 'file' => 'minical.php', |
||
| 826 | 'name' => _MI_EXTCAL_BNAME1, |
||
| 827 | 'description' => _MI_EXTCAL_BNAME1_DESC, |
||
| 828 | 'show_func' => 'bExtcalMinicalShow', |
||
| 829 | 'options' => '0|0|150|225|1|3|10|0|1|1,2,3,4,5|| |120|120', |
||
| 830 | 'edit_func' => 'bExtcalMinicalEdit', |
||
| 831 | 'template' => 'extcal_block_minical.tpl', |
||
| 832 | ]; |
||
| 833 | |||
| 834 | $modversion['blocks'][] = [ |
||
| 835 | 'file' => 'spotlight_events.php', |
||
| 836 | 'name' => _MI_EXTCAL_BNAME2, |
||
| 837 | 'description' => _MI_EXTCAL_BNAME2_DESC, |
||
| 838 | 'show_func' => 'bExtcalSpotlightShow', |
||
| 839 | 'options' => '0|0|0|1|0', |
||
| 840 | 'edit_func' => 'bExtcalSpotlightEdit', |
||
| 841 | 'template' => 'extcal_block_spotlight.tpl', |
||
| 842 | ]; |
||
| 843 | |||
| 844 | $modversion['blocks'][] = [ |
||
| 845 | 'file' => 'upcoming.php', |
||
| 846 | 'name' => _MI_EXTCAL_BNAME3, |
||
| 847 | 'description' => _MI_EXTCAL_BNAME3_DESC, |
||
| 848 | 'show_func' => 'bExtcalUpcomingShow', |
||
| 849 | 'options' => '5|25|30|0', |
||
| 850 | 'edit_func' => 'bExtcalUpcomingEdit', |
||
| 851 | 'template' => 'extcal_block_upcoming.tpl', |
||
| 852 | ]; |
||
| 853 | |||
| 854 | $modversion['blocks'][] = [ |
||
| 855 | 'file' => 'day_events.php', |
||
| 856 | 'name' => _MI_EXTCAL_BNAME4, |
||
| 857 | 'description' => _MI_EXTCAL_BNAME4_DESC, |
||
| 858 | 'show_func' => 'bExtcalDayShow', |
||
| 859 | 'options' => '5|25|0', |
||
| 860 | 'edit_func' => 'bExtcalDayEdit', |
||
| 861 | 'template' => 'extcal_block_day.tpl', |
||
| 862 | ]; |
||
| 863 | |||
| 864 | $modversion['blocks'][] = [ |
||
| 865 | 'file' => 'new_events.php', |
||
| 866 | 'name' => _MI_EXTCAL_BNAME5, |
||
| 867 | 'description' => _MI_EXTCAL_BNAME5_DESC, |
||
| 868 | 'show_func' => 'bExtcalNewShow', |
||
| 869 | 'options' => '5|25|0', |
||
| 870 | 'edit_func' => 'bExtcalNewEdit', |
||
| 871 | 'template' => 'extcal_block_new.tpl', |
||
| 872 | ]; |
||
| 873 | |||
| 874 | $modversion['blocks'][] = [ |
||
| 875 | 'file' => 'random_events.php', |
||
| 876 | 'name' => _MI_EXTCAL_BNAME6, |
||
| 877 | 'description' => _MI_EXTCAL_BNAME6_DESC, |
||
| 878 | 'show_func' => 'bExtcalRandomShow', |
||
| 879 | 'options' => '5|25|0', |
||
| 880 | 'edit_func' => 'bExtcalRandomEdit', |
||
| 881 | 'template' => 'extcal_block_random.tpl', |
||
| 882 | ]; |
||
| 883 | |||
| 884 | $modversion['blocks'][] = [ |
||
| 885 | 'file' => 'category_events.php', |
||
| 886 | 'name' => _MI_EXTCAL_BNAME7, |
||
| 887 | 'description' => _MI_EXTCAL_BNAME7_DESC, |
||
| 888 | 'show_func' => 'bExtcalUpcomingByCategoryShow', |
||
| 889 | 'options' => '5|25|0', |
||
| 890 | 'edit_func' => 'bExtcalUpcomingByCategoryEdit', |
||
| 891 | 'template' => 'extcal_block_upcomingByCategory.tpl', |
||
| 892 | ]; |
||
| 893 | |||
| 894 | //--------------------------------------------------------- |
||
| 895 | // Notifications |
||
| 896 | $modversion['hasNotification'] = 1; |
||
| 897 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
||
| 898 | $modversion['notification']['lookup_func'] = 'extcal_notify_iteminfo'; |
||
| 899 | |||
| 900 | $modversion['notification']['category'][] = [ |
||
| 901 | 'name' => 'global', |
||
| 902 | 'title' => _MI_EXTCAL_GLOBAL_NOTIFY, |
||
| 903 | 'description' => _MI_EXTCAL_GLOBAL_NOTIFYDSC, |
||
| 904 | 'subscribe_from' => '*', |
||
| 905 | 'item_name' => '', |
||
| 906 | ]; |
||
| 907 | |||
| 908 | $modversion['notification']['category'][] = [ |
||
| 909 | 'name' => 'cat', |
||
| 910 | 'title' => _MI_EXTCAL_CAT_NOTIFY, |
||
| 911 | 'description' => _MI_EXTCAL_CAT_NOTIFYDSC, |
||
| 912 | 'subscribe_from' => ['calendar.php', 'year.php', 'day.php'], |
||
| 913 | 'item_name' => 'cat', |
||
| 914 | ]; |
||
| 915 | |||
| 916 | $modversion['notification']['category'][] = [ |
||
| 917 | 'name' => 'event', |
||
| 918 | 'title' => _MI_EXTCAL_EVENT_NOTIFY, |
||
| 919 | 'description' => _MI_EXTCAL_EVENT_NOTIFYDSC, |
||
| 920 | 'subscribe_from' => 'event.php', |
||
| 921 | 'item_name' => 'event', |
||
| 922 | 'allow_bookmark' => 1, |
||
| 923 | ]; |
||
| 924 | |||
| 925 | $modversion['notification']['event'][] = [ |
||
| 926 | 'name' => 'new_event', |
||
| 927 | 'category' => 'global', |
||
| 928 | 'title' => _MI_EXTCAL_NEW_EVENT_NOTIFY, |
||
| 929 | 'caption' => _MI_EXTCAL_NEW_EVENT_NOTIFYCAP, |
||
| 930 | 'description' => _MI_EXTCAL_NEW_EVENT_NOTIFYDSC, |
||
| 931 | 'mail_template' => 'global_new_event', |
||
| 932 | 'mail_subject' => _MI_EXTCAL_NEW_EVENT_NOTIFYSBJ, |
||
| 933 | ]; |
||
| 934 | |||
| 935 | $modversion['notification']['event'][] = [ |
||
| 936 | 'name' => 'new_event_pending', |
||
| 937 | 'category' => 'global', |
||
| 938 | 'title' => _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFY, |
||
| 939 | 'caption' => _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFYCAP, |
||
| 940 | 'description' => _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFYDSC, |
||
| 941 | 'mail_template' => 'global_new_event_pending', |
||
| 942 | 'mail_subject' => _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFYSBJ, |
||
| 943 | 'admin_only' => 1, |
||
| 944 | ]; |
||
| 945 | |||
| 946 | $modversion['notification']['event'][] = [ |
||
| 947 | 'name' => 'new_event_cat', |
||
| 948 | 'category' => 'cat', |
||
| 949 | 'title' => _MI_EXTCAL_NEW_EVENT_CAT_NOTIFY, |
||
| 950 | 'caption' => _MI_EXTCAL_NEW_EVENT_CAT_NOTIFYCAP, |
||
| 951 | 'description' => _MI_EXTCAL_NEW_EVENT_CAT_NOTIFYDSC, |
||
| 952 | 'mail_template' => 'cat_new_event', |
||
| 953 | 'mail_subject' => _MI_EXTCAL_NEW_EVENT_CAT_NOTIFYSBJ, |
||
| 954 | ]; |
||
| 955 | |||
| 956 | // XoopsInfo |
||
| 957 | $modversion['developer_website_url'] = 'http://www.zoullou.net/'; |
||
| 958 | $modversion['developer_website_name'] = 'eXtCal and EXTCALlery module for XOOPS : Zoullou.net'; |
||
| 959 | $modversion['download_website'] = 'http://www.zoullou.net/'; |
||
| 960 | $modversion['status_fileinfo'] = ''; |
||
| 961 | $modversion['demo_site_url'] = 'http://www.zoullou.net/modules/extcal/'; |
||
| 962 | $modversion['demo_site_name'] = 'eXtCal and EXTCALlery module for XOOPS : Zoullou.net'; |
||
| 963 | $modversion['support_site_url'] = 'http://www.zoullou.net/'; |
||
| 964 | $modversion['support_site_name'] = 'eXtCal and EXTCALlery module for XOOPS : Zoullou.net'; |
||
| 965 | $modversion['submit_bug'] = 'http://sourceforge.net/tracker/?func=add&group_id=177145&atid=880070'; |
||
| 966 | $modversion['submit_feature'] = 'http://sourceforge.net/tracker/?func=add&group_id=177145&atid=880073'; |
||
| 967 |