mambax7 /
extcal
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 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 http://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 | // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined'); |
||
| 21 | require_once __DIR__ . '/include/constantes.php'; |
||
| 22 | require_once __DIR__ . '/include/agenda_fnc.php'; |
||
| 23 | require_once __DIR__ . '/class/config.php'; |
||
| 24 | //$loc_de = setlocale (LC_ALL, 'french'); |
||
| 25 | |||
| 26 | //echo "local :" . setlocale(LC_TIME, $xoopsConfig['language'])."</ br>"; |
||
| 27 | setlocale(LC_TIME, $xoopsConfig['language']); |
||
| 28 | |||
| 29 | //*************************************************************************************** |
||
| 30 | $modversion['version'] = '2.39'; |
||
| 31 | $modversion['module_status'] = 'FINAL'; |
||
| 32 | $modversion['release_date'] = '2016/10/18'; |
||
| 33 | $modversion['name'] = _MI_EXTCAL_NAME; |
||
| 34 | $modversion['description'] = _MI_EXTCAL_DESC; |
||
| 35 | $modversion['credits'] = 'Zoullou'; |
||
| 36 | $modversion['author'] = 'Zoullou, Mage, Mamba, JJ Delalandre (JJDai)'; |
||
| 37 | $modversion['nickname'] = ''; |
||
| 38 | $modversion['website'] = ''; |
||
| 39 | $modversion['license'] = 'GPL see LICENSE'; |
||
| 40 | $modversion['license_url'] = 'www.gnu.org/licenses/gpl-2.0.html/'; |
||
| 41 | $modversion['official'] = 0; |
||
| 42 | $modversion['image'] = 'assets/images/logoModule.png'; |
||
| 43 | $modversion['dirname'] = basename(__DIR__); |
||
| 44 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 45 | $modversion['onInstall'] = 'include/install_function.php'; |
||
| 46 | $modversion['onUpdate'] = 'include/update_function.php'; |
||
| 47 | $modversion['system_menu'] = 1; |
||
| 48 | $modversion['help'] = 'page=help'; |
||
| 49 | //$modversion['dirmoduleadmin'] = 'Frameworks/moduleclasses/moduleadmin'; |
||
|
0 ignored issues
–
show
|
|||
| 50 | //$modversion['sysicons16'] = 'Frameworks/moduleclasses/icons/16'; |
||
| 51 | //$modversion['sysicons32'] = 'Frameworks/moduleclasses/icons/32'; |
||
| 52 | $modversion['modicons16'] = 'assets/images/icons/16'; |
||
| 53 | $modversion['modicons32'] = 'assets/images/icons/32'; |
||
| 54 | //about |
||
| 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.9'; |
||
| 59 | // Admin things |
||
| 60 | $modversion['hasAdmin'] = 1; |
||
| 61 | $modversion['adminindex'] = 'admin/index.php'; |
||
| 62 | $modversion['adminmenu'] = 'admin/menu.php'; |
||
| 63 | |||
| 64 | // Menu |
||
| 65 | |||
| 66 | // definitioin des menus |
||
| 67 | $modversion['hasMain'] = 1; |
||
| 68 | $i = 0; |
||
| 69 | |||
| 70 | if (isset($GLOBALS['xoopsModule']) && is_object($GLOBALS['xoopsModule']) |
||
| 71 | && $GLOBALS['xoopsModule']->getVar('dirname') === 'extcal' |
||
| 72 | ) { |
||
| 73 | /* |
||
| 74 | $user = isset($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser'] : null; |
||
| 75 | $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); |
||
| 76 | if ($catHandler->haveSubmitRight($user)) { |
||
| 77 | $modversion['sub'][0]['name'] = _MI_EXTCAL_SUBMIT_EVENT; |
||
| 78 | $modversion['sub'][0]['url'] = _EXTCAL_FILE_NEW_EVENT; |
||
| 79 | } |
||
| 80 | */ |
||
| 81 | $tTabs = getNavBarTabs(); |
||
| 82 | // while (list($key, $value) = each($tTabs)) { |
||
|
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
62% 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...
|
|||
| 83 | foreach ($tTabs as $key => $value) { |
||
| 84 | ++$i; |
||
| 85 | $modversion['sub'][$i]['name'] = $value['name']; |
||
| 86 | $modversion['sub'][$i]['url'] = $value['href']; |
||
| 87 | } |
||
| 88 | } |
||
| 89 | |||
| 90 | //////////////////////////////////////////////////////////////////////////// |
||
| 91 | // ------------------- Mysql ------------------- // |
||
| 92 | $modversion['sqlfile']['mysql'] = 'sql/mysql.sql'; |
||
| 93 | |||
| 94 | // Tables created by sql file (without prefix!) |
||
| 95 | $modversion['tables'] = array( |
||
| 96 | $moduleDirName . '_' . 'cat', |
||
| 97 | $moduleDirName . '_' . 'event', |
||
| 98 | $moduleDirName . '_' . 'eventmember', |
||
| 99 | $moduleDirName . '_' . 'eventnotmember', |
||
| 100 | $moduleDirName . '_' . 'file', |
||
| 101 | $moduleDirName . '_' . 'etablissement' |
||
| 102 | ); |
||
| 103 | |||
| 104 | // SQL |
||
| 105 | |||
| 106 | // Comments |
||
| 107 | $modversion['hasComments'] = 1; |
||
| 108 | $modversion['comments']['itemName'] = 'event'; |
||
| 109 | $modversion['comments']['pageName'] = 'event.php'; |
||
| 110 | |||
| 111 | // Search |
||
| 112 | $modversion['hasSearch'] = 1; |
||
| 113 | $modversion['search']['file'] = 'include/search.inc.php'; |
||
| 114 | $modversion['search']['func'] = 'extcal_search'; |
||
| 115 | |||
| 116 | // Config items |
||
| 117 | $i = 0; |
||
| 118 | |||
| 119 | $modversion['config'][$i]['name'] = 'visible_tabs'; |
||
| 120 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_VISIBLE_TABS'; |
||
| 121 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_VISIBLE_TABS_DESC'; |
||
| 122 | $modversion['config'][$i]['formtype'] = 'select_multi'; |
||
| 123 | $modversion['config'][$i]['valuetype'] = 'array'; |
||
| 124 | $modversion['config'][$i]['default'] = array( |
||
| 125 | _EXTCAL_NAV_CALMONTH, |
||
| 126 | _EXTCAL_NAV_CALWEEK, |
||
| 127 | _EXTCAL_NAV_YEAR, |
||
| 128 | _EXTCAL_NAV_MONTH, |
||
| 129 | _EXTCAL_NAV_WEEK, |
||
| 130 | _EXTCAL_NAV_DAY, |
||
| 131 | _EXTCAL_NAV_AGENDA_WEEK, |
||
| 132 | _EXTCAL_NAV_AGENDA_DAY, |
||
| 133 | _EXTCAL_NAV_SEARCH, |
||
| 134 | _EXTCAL_NAV_NEW_EVENT, |
||
| 135 | ); |
||
| 136 | // $t = print_r($modversion['config'][$i]['default'],true); |
||
| 137 | // echo _EXTCAL_NAV_CALMONTH . "<br><pre>{$t}</pre>"; |
||
| 138 | $modversion['config'][$i]['options'] = array( |
||
| 139 | '_MI_EXTCAL_NAV_CALMONTH' => _EXTCAL_NAV_CALMONTH, |
||
| 140 | '_MI_EXTCAL_NAV_CALWEEK' => _EXTCAL_NAV_CALWEEK, |
||
| 141 | '_MI_EXTCAL_NAV_YEAR' => _EXTCAL_NAV_YEAR, |
||
| 142 | '_MI_EXTCAL_NAV_MONTH' => _EXTCAL_NAV_MONTH, |
||
| 143 | '_MI_EXTCAL_NAV_WEEK' => _EXTCAL_NAV_WEEK, |
||
| 144 | '_MI_EXTCAL_NAV_DAY' => _EXTCAL_NAV_DAY, |
||
| 145 | '_MI_EXTCAL_NAV_AGENDA_WEEK' => _EXTCAL_NAV_AGENDA_WEEK, |
||
| 146 | '_MI_EXTCAL_NAV_AGENDA_DAY' => _EXTCAL_NAV_AGENDA_DAY, |
||
| 147 | '_MI_EXTCAL_NAV_SEARCH' => _EXTCAL_NAV_SEARCH, |
||
| 148 | '_MI_EXTCAL_NAV_NEW_EVENT' => _EXTCAL_NAV_NEW_EVENT, |
||
| 149 | ); |
||
| 150 | //----------------------------------------------------------------------------- |
||
| 151 | ++$i; |
||
| 152 | $modversion['config'][$i]['name'] = 'weight_tabs'; |
||
| 153 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_TABS_WEIGHT'; |
||
| 154 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_TABS_WEIGHT_DESC'; |
||
| 155 | $modversion['config'][$i]['formtype'] = 'textarea'; |
||
| 156 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 157 | //$modversion['config'][$i]['default'] = "10,20,30,40,50,_EXTCAL_TS_MINUTE,70,80,90,100,0"; |
||
| 158 | $modversion['config'][$i]['default'] = _EXTCAL_NAV_LIST; |
||
| 159 | |||
| 160 | //----------------------------------------------------------------------------- |
||
| 161 | ++$i; |
||
| 162 | $modversion['config'][$i]['name'] = 'start_page'; |
||
| 163 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_START_PAGE'; |
||
| 164 | $modversion['config'][$i]['description'] = ''; |
||
| 165 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 166 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 167 | $modversion['config'][$i]['default'] = _EXTCAL_FILE_CALMONTH; |
||
| 168 | $modversion['config'][$i]['options'] = array( |
||
| 169 | '_MI_EXTCAL_NAV_CALMONTH' => _EXTCAL_FILE_CALMONTH, |
||
| 170 | '_MI_EXTCAL_NAV_CALWEEK' => _EXTCAL_FILE_CALWEEK, |
||
| 171 | '_MI_EXTCAL_NAV_YEAR' => _EXTCAL_FILE_YEAR, |
||
| 172 | '_MI_EXTCAL_NAV_MONTH' => _EXTCAL_FILE_MONTH, |
||
| 173 | '_MI_EXTCAL_NAV_WEEK' => _EXTCAL_FILE_WEEK, |
||
| 174 | '_MI_EXTCAL_NAV_DAY' => _EXTCAL_FILE_DAY, |
||
| 175 | '_MI_EXTCAL_NAV_AGENDA_WEEK' => _EXTCAL_FILE_AGENDA_WEEK, |
||
| 176 | '_MI_EXTCAL_NAV_AGENDA_DAY' => _EXTCAL_FILE_AGENDA_DAY, |
||
| 177 | '_MI_EXTCAL_NAV_SEARCH' => _EXTCAL_FILE_SEARCH, |
||
| 178 | '_MI_EXTCAL_NAV_NEW_EVENT' => _EXTCAL_FILE_NEW_EVENT, |
||
| 179 | ); |
||
| 180 | |||
| 181 | ++$i; |
||
| 182 | $modversion['config'][$i]['name'] = 'week_start_day'; |
||
| 183 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_WEEK_START_DAY'; |
||
| 184 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_WEEK_START_DAY_DESC'; |
||
| 185 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 186 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 187 | $modversion['config'][$i]['default'] = 1; |
||
| 188 | $modversion['config'][$i]['options'] = array( |
||
| 189 | '_MI_EXTCAL_DAY_SUNDAY' => 0, |
||
| 190 | '_MI_EXTCAL_DAY_MONDAY' => 1, |
||
| 191 | '_MI_EXTCAL_DAY_TUESDAY' => 2, |
||
| 192 | '_MI_EXTCAL_DAY_WEDNESDAY' => 3, |
||
| 193 | '_MI_EXTCAL_DAY_THURSDAY' => 4, |
||
| 194 | '_MI_EXTCAL_DAY_FRIDAY' => 5, |
||
| 195 | '_MI_EXTCAL_DAY_SATURDAY' => 6, |
||
| 196 | ); |
||
| 197 | ++$i; |
||
| 198 | $modversion['config'][$i]['name'] = 'list_position'; |
||
| 199 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_LIST_POS'; |
||
| 200 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_LIST_POS_DESC'; |
||
| 201 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 202 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 203 | $modversion['config'][$i]['default'] = 1; |
||
| 204 | $modversion['config'][$i]['options'] = array( |
||
| 205 | '_MI_EXTCAL_BEFORE' => 0, |
||
| 206 | '_MI_EXTCAL_AFTER' => 1, |
||
| 207 | ); |
||
| 208 | |||
| 209 | xoops_load('XoopsEditorHandler'); |
||
| 210 | $editorHandler = XoopsEditorHandler::getInstance(); |
||
| 211 | $editorList = array_flip($editorHandler->getList()); |
||
| 212 | |||
| 213 | ++$i; |
||
| 214 | $modversion['config'][$i]['name'] = 'editorAdmin'; |
||
| 215 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EDITOR_ADMIN'; |
||
| 216 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EDITOR_ADMIN_DESC'; |
||
| 217 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 218 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 219 | $modversion['config'][$i]['options'] = $editorList; |
||
| 220 | $modversion['config'][$i]['default'] = 'dhtml'; |
||
| 221 | |||
| 222 | ++$i; |
||
| 223 | $modversion['config'][$i]['name'] = 'editorUser'; |
||
| 224 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EDITOR_USER'; |
||
| 225 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EDITOR_USER_DESC'; |
||
| 226 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 227 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 228 | $modversion['config'][$i]['options'] = $editorList; |
||
| 229 | $modversion['config'][$i]['default'] = 'dhtml'; |
||
| 230 | |||
| 231 | ++$i; |
||
| 232 | $modversion['config'][$i]['name'] = 'rss_cache_time'; |
||
| 233 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_RSS_CACHE_TIME'; |
||
| 234 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_RSS_CACHE_TIME_DESC'; |
||
| 235 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 236 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 237 | $modversion['config'][$i]['default'] = _EXTCAL_TS_MINUTE; |
||
| 238 | ++$i; |
||
| 239 | $modversion['config'][$i]['name'] = 'rss_nb_event'; |
||
| 240 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_RSS_NB_EVENT'; |
||
| 241 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_RSS_NB_EVENT_DESC'; |
||
| 242 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 243 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 244 | $modversion['config'][$i]['default'] = 10; |
||
| 245 | ++$i; |
||
| 246 | $modversion['config'][$i]['name'] = 'whos_going'; |
||
| 247 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_WHOS_GOING'; |
||
| 248 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_WHOS_GOING_DESC'; |
||
| 249 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 250 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 251 | $modversion['config'][$i]['default'] = 1; |
||
| 252 | ++$i; |
||
| 253 | $modversion['config'][$i]['name'] = 'whosnot_going'; |
||
| 254 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_WHOSNOT_GOING'; |
||
| 255 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_WHOSNOT_GOING_DESC'; |
||
| 256 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 257 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 258 | $modversion['config'][$i]['default'] = 1; |
||
| 259 | ++$i; |
||
| 260 | $modversion['config'][$i]['name'] = 'sort_order'; |
||
| 261 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SORT_ORDER'; |
||
| 262 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_SORT_ORDER_DESC'; |
||
| 263 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 264 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 265 | $modversion['config'][$i]['default'] = 1; |
||
| 266 | $modversion['config'][$i]['options'] = array( |
||
| 267 | '_MI_EXTCAL_ASCENDING' => 'ASC', |
||
| 268 | '_MI_EXTCAL_DESCENDING' => 'DESC', |
||
| 269 | ); |
||
| 270 | ++$i; |
||
| 271 | $modversion['config'][$i]['name'] = 'event_date_year'; |
||
| 272 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EY_DATE_PATTERN'; |
||
| 273 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EY_DATE_PATTERN_DESC'; |
||
| 274 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 275 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 276 | $modversion['config'][$i]['default'] = _MI_EXTCAL_EY_DATE_PATTERN_VALUE; |
||
| 277 | ++$i; |
||
| 278 | $modversion['config'][$i]['name'] = 'nav_date_month'; |
||
| 279 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_NM_DATE_PATTERN'; |
||
| 280 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_NM_DATE_PATTERN_DESC'; |
||
| 281 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 282 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 283 | $modversion['config'][$i]['default'] = _MI_EXTCAL_NM_DATE_PATTERN_VALUE; |
||
| 284 | ++$i; |
||
| 285 | $modversion['config'][$i]['name'] = 'event_date_month'; |
||
| 286 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EM_DATE_PATTERN'; |
||
| 287 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EM_DATE_PATTERN_DESC'; |
||
| 288 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 289 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 290 | $modversion['config'][$i]['default'] = _MI_EXTCAL_EM_DATE_PATTERN_VALUE; |
||
| 291 | ++$i; |
||
| 292 | $modversion['config'][$i]['name'] = 'nav_date_week'; |
||
| 293 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_NW_DATE_PATTERN'; |
||
| 294 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_NW_DATE_PATTERN_DESC'; |
||
| 295 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 296 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 297 | $modversion['config'][$i]['default'] = _MI_EXTCAL_NW_DATE_PATTERN_VALUE; |
||
| 298 | ++$i; |
||
| 299 | $modversion['config'][$i]['name'] = 'event_date_week'; |
||
| 300 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EW_DATE_PATTERN'; |
||
| 301 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EW_DATE_PATTERN_DESC'; |
||
| 302 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 303 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 304 | $modversion['config'][$i]['default'] = _MI_EXTCAL_EW_DATE_PATTERN_VALUE; |
||
| 305 | ++$i; |
||
| 306 | $modversion['config'][$i]['name'] = 'nav_date_day'; |
||
| 307 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_ND_DATE_PATTERN'; |
||
| 308 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_ND_DATE_PATTERN_DESC'; |
||
| 309 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 310 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 311 | $modversion['config'][$i]['default'] = _MI_EXTCAL_ND_DATE_PATTERN_VALUE; |
||
| 312 | ++$i; |
||
| 313 | $modversion['config'][$i]['name'] = 'event_date_day'; |
||
| 314 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_ED_DATE_PATTERN'; |
||
| 315 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_ED_DATE_PATTERN_DESC'; |
||
| 316 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 317 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 318 | $modversion['config'][$i]['default'] = _MI_EXTCAL_ED_DATE_PATTERN_VALUE; |
||
| 319 | ++$i; |
||
| 320 | $modversion['config'][$i]['name'] = 'event_date_event'; |
||
| 321 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EE_DATE_PATTERN'; |
||
| 322 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EE_DATE_PATTERN_DESC'; |
||
| 323 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 324 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 325 | $modversion['config'][$i]['default'] = _MI_EXTCAL_EE_DATE_PATTERN_VALUE; |
||
| 326 | ++$i; |
||
| 327 | $modversion['config'][$i]['name'] = 'event_date_block'; |
||
| 328 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EB_DATE_PATTERN'; |
||
| 329 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EB_DATE_PATTERN_DESC'; |
||
| 330 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 331 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 332 | $modversion['config'][$i]['default'] = _MI_EXTCAL_EB_DATE_PATTERN_VALUE; |
||
| 333 | ++$i; |
||
| 334 | $modversion['config'][$i]['name'] = 'diplay_past_event_list'; |
||
| 335 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_DISP_PAST_E_LIST'; |
||
| 336 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_DISP_PAST_E_LIST_DESC'; |
||
| 337 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 338 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 339 | $modversion['config'][$i]['default'] = 1; |
||
| 340 | ++$i; |
||
| 341 | $modversion['config'][$i]['name'] = 'diplay_past_event_cal'; |
||
| 342 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_DISP_PAST_E_CAL'; |
||
| 343 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_DISP_PAST_E_CAL_DESC'; |
||
| 344 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 345 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 346 | $modversion['config'][$i]['default'] = 1; |
||
| 347 | ++$i; |
||
| 348 | $modversion['config'][$i]['name'] = 'allowed_file_extention'; |
||
| 349 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_FILE_EXTENTION'; |
||
| 350 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_FILE_EXTENTION_DESC'; |
||
| 351 | $modversion['config'][$i]['formtype'] = 'select_multi'; |
||
| 352 | $modversion['config'][$i]['valuetype'] = 'array'; |
||
| 353 | $modversion['config'][$i]['default'] = array('doc', 'jpg', 'jpeg', 'gif', 'png', 'pdf', 'txt'); |
||
| 354 | $modversion['config'][$i]['options'] = array( |
||
| 355 | 'ai' => 'ai', |
||
| 356 | 'aif' => 'aif', |
||
| 357 | 'aiff' => 'aiff', |
||
| 358 | 'asc' => 'asc', |
||
| 359 | 'au' => 'au', |
||
| 360 | 'avi' => 'avi', |
||
| 361 | 'bin' => 'bin', |
||
| 362 | 'bmp' => 'bmp', |
||
| 363 | 'class' => 'class', |
||
| 364 | 'csh' => 'csh', |
||
| 365 | 'css' => 'css', |
||
| 366 | 'dcr' => 'dcr', |
||
| 367 | 'dir' => 'dir', |
||
| 368 | 'dll' => 'dll', |
||
| 369 | 'doc' => 'doc', |
||
| 370 | 'dot' => 'dot', |
||
| 371 | 'dtd' => 'dtd', |
||
| 372 | 'dxr' => 'dxr', |
||
| 373 | 'ent' => 'ent', |
||
| 374 | 'eps' => 'eps', |
||
| 375 | 'exe' => 'exe', |
||
| 376 | 'gif' => 'gif', |
||
| 377 | 'gtar' => 'gtar', |
||
| 378 | 'gz' => 'gz', |
||
| 379 | 'hqx' => 'hqx', |
||
| 380 | 'htm' => 'htm', |
||
| 381 | 'html' => 'html', |
||
| 382 | 'ics' => 'ics', |
||
| 383 | 'ifb' => 'ifb', |
||
| 384 | 'jpe' => 'jpe', |
||
| 385 | 'jpeg' => 'jpeg', |
||
| 386 | 'jpg' => 'jpg', |
||
| 387 | 'js' => 'js', |
||
| 388 | 'kar' => 'kar', |
||
| 389 | 'lha' => 'lha', |
||
| 390 | 'lzh' => 'lzh', |
||
| 391 | 'm3u' => 'm3u', |
||
| 392 | 'mid' => 'mid', |
||
| 393 | 'midi' => 'midi', |
||
| 394 | 'mod' => 'mod', |
||
| 395 | 'mov' => 'mov', |
||
| 396 | 'mp1' => 'mp1', |
||
| 397 | 'mp2' => 'mp2', |
||
| 398 | 'mp3' => 'mp3', |
||
| 399 | 'mpe' => 'mpe', |
||
| 400 | 'mpeg' => 'mpeg', |
||
| 401 | 'mpg' => 'mpg', |
||
| 402 | 'pbm' => 'pbm', |
||
| 403 | 'pdf' => 'pdf', |
||
| 404 | 'pgm' => 'pgm', |
||
| 405 | 'php' => 'php', |
||
| 406 | 'php3' => 'php3', |
||
| 407 | 'php5' => 'php5', |
||
| 408 | 'phtml' => 'phtml', |
||
| 409 | 'png' => 'png', |
||
| 410 | 'pnm' => 'pnm', |
||
| 411 | 'ppm' => 'ppm', |
||
| 412 | 'ppt' => 'ppt', |
||
| 413 | 'ps' => 'ps', |
||
| 414 | 'qt' => 'qt', |
||
| 415 | 'ra' => 'ra', |
||
| 416 | 'ram' => 'ram', |
||
| 417 | 'rm' => 'rm', |
||
| 418 | 'rpm' => 'rpm', |
||
| 419 | 'rtf' => 'rtf', |
||
| 420 | 'sgm' => 'sgm', |
||
| 421 | 'sgml' => 'sgml', |
||
| 422 | 'sh' => 'sh', |
||
| 423 | 'sit' => 'sit', |
||
| 424 | 'smi' => 'smi', |
||
| 425 | 'smil' => 'smil', |
||
| 426 | 'snd' => 'snd', |
||
| 427 | 'so' => 'so', |
||
| 428 | 'spl' => 'spl', |
||
| 429 | 'swf' => 'swf', |
||
| 430 | 'tar' => 'tar', |
||
| 431 | 'tcl' => 'tcl', |
||
| 432 | 'tif' => 'tif', |
||
| 433 | 'tiff' => 'tiff', |
||
| 434 | 'tsv' => 'tsv', |
||
| 435 | 'txt' => 'txt', |
||
| 436 | 'wav' => 'wav', |
||
| 437 | 'wbmp' => 'wbmp', |
||
| 438 | 'wbxml' => 'wbxml', |
||
| 439 | 'wml' => 'wml', |
||
| 440 | 'wmlc' => 'wmlc', |
||
| 441 | 'wmls' => 'wmls', |
||
| 442 | 'wmlsc' => 'wmlsc', |
||
| 443 | 'xbm' => 'xbm', |
||
| 444 | 'xht' => 'xht', |
||
| 445 | 'xhtml' => 'xhtml', |
||
| 446 | 'xla' => 'xla', |
||
| 447 | 'xls' => 'xls', |
||
| 448 | 'xlt' => 'xlt', |
||
| 449 | 'xpm' => 'xpm', |
||
| 450 | 'xsl' => 'xsl', |
||
| 451 | 'zip' => 'zip', |
||
| 452 | ); |
||
| 453 | ++$i; |
||
| 454 | $modversion['config'][$i]['name'] = 'allow_html'; |
||
| 455 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_HTML'; |
||
| 456 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_HTML_DESC'; |
||
| 457 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 458 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 459 | $modversion['config'][$i]['default'] = 0; |
||
| 460 | //modif JJD ------------------------------------------------------------ |
||
| 461 | ++$i; |
||
| 462 | $modversion['config'][$i]['name'] = 'agenda_tranche_minutes'; |
||
| 463 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_AGENDA_SLICE_MINUTES'; |
||
| 464 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_AGENDA_SLICE_MINUTES_DESC'; |
||
| 465 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 466 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 467 | $modversion['config'][$i]['default'] = 15; |
||
| 468 | ++$i; |
||
| 469 | $modversion['config'][$i]['name'] = 'agenda_start_hour'; |
||
| 470 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_AGENDA_START_HOUR'; |
||
| 471 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_AGENDA_START_HOUR_DESC'; |
||
| 472 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 473 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 474 | $modversion['config'][$i]['default'] = 8; |
||
| 475 | ++$i; |
||
| 476 | $modversion['config'][$i]['name'] = 'agenda_end_hour'; |
||
| 477 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_AGENDA_END_HOUR'; |
||
| 478 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_AGENDA_END_HOUR_DESC'; |
||
| 479 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 480 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 481 | $modversion['config'][$i]['default'] = 20; |
||
| 482 | ++$i; |
||
| 483 | $modversion['config'][$i]['name'] = 'agenda_nb_days_week'; |
||
| 484 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_AGENDA_NB_DAYS_WEEK'; |
||
| 485 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_AGENDA_NB_DAYS_WEEK_DESC'; |
||
| 486 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 487 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 488 | $modversion['config'][$i]['default'] = 10; |
||
| 489 | ++$i; |
||
| 490 | $modversion['config'][$i]['name'] = 'agenda_nb_days_day'; |
||
| 491 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_AGENDA_NB_DAYS_DAY'; |
||
| 492 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_AGENDA_NB_DAYS_DAY_DESC'; |
||
| 493 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 494 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 495 | $modversion['config'][$i]['default'] = 1; |
||
| 496 | |||
| 497 | ++$i; |
||
| 498 | $modversion['config'][$i]['name'] = 'agenda_nb_years_before'; |
||
| 499 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_NB_YEARS_BEFORE'; |
||
| 500 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_NB_YEARS_BEFORE_DESC'; |
||
| 501 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 502 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 503 | $modversion['config'][$i]['default'] = 0; |
||
| 504 | ++$i; |
||
| 505 | $modversion['config'][$i]['name'] = 'agenda_nb_years_after'; |
||
| 506 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_NB_YEARS_AFTER'; |
||
| 507 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_NB_YEARS_AFTER_DESC'; |
||
| 508 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 509 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 510 | $modversion['config'][$i]['default'] = 5; |
||
| 511 | |||
| 512 | ++$i; |
||
| 513 | $modversion['config'][$i]['name'] = 'break' . $i; |
||
| 514 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_OTHEROPTIONS'; |
||
| 515 | $modversion['config'][$i]['description'] = ''; |
||
| 516 | $modversion['config'][$i]['formtype'] = 'line_break'; |
||
| 517 | $modversion['config'][$i]['valuetype'] = 'textbox'; |
||
| 518 | $modversion['config'][$i]['default'] = 'head'; |
||
| 519 | |||
| 520 | //---------------------------------------------------------- |
||
| 521 | ++$i; |
||
| 522 | $modversion['config'][$i]['name'] = 'showInfoBulle'; |
||
| 523 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_INFOBULLE'; |
||
| 524 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_SHOW_INFOBULLE_DESC'; |
||
| 525 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 526 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 527 | $modversion['config'][$i]['default'] = 1; |
||
| 528 | |||
| 529 | ++$i; |
||
| 530 | $modversion['config'][$i]['name'] = 'showId'; |
||
| 531 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_ID'; |
||
| 532 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_SHOW_ID_DESC'; |
||
| 533 | $modversion['config'][$i]['formtype'] = 'yesno'; |
||
| 534 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 535 | $modversion['config'][$i]['default'] = 0; |
||
| 536 | |||
| 537 | /* |
||
| 538 | inutilise pour le moment, prevu pour ajout navigation dans minical |
||
| 539 | */ |
||
| 540 | ++$i; |
||
| 541 | $modversion['config'][$i]['name'] = 'offsetMinical'; |
||
| 542 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_OFFSET_MINICAL'; |
||
| 543 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_OFFSET_MINICAL_DESC'; |
||
| 544 | $modversion['config'][$i]['formtype'] = 'hidden'; |
||
| 545 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 546 | $modversion['config'][$i]['default'] = 0; |
||
| 547 | |||
| 548 | ++$i; |
||
| 549 | $modversion['config'][$i]['name'] = 'nbEventsByPage'; |
||
| 550 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_NB_EVENTS_BY_PAGE'; |
||
| 551 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_NB_EVENTS_BY_PAGE_DESC'; |
||
| 552 | $modversion['config'][$i]['formtype'] = 'int'; |
||
| 553 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 554 | $modversion['config'][$i]['default'] = 10; |
||
| 555 | |||
| 556 | // utilisation de security image |
||
| 557 | ++$i; |
||
| 558 | $modversion['config'][$i]['name'] = 'email_Mode'; |
||
| 559 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_EMAIL_MODE'; |
||
| 560 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_EMAIL_MODE_DESC'; |
||
| 561 | $modversion['config'][$i]['formtype'] = 'select'; |
||
| 562 | $modversion['config'][$i]['valuetype'] = 'int'; |
||
| 563 | $modversion['config'][$i]['default'] = 0; |
||
| 564 | $modversion['config'][$i]['options'] = array( |
||
| 565 | '_MI_EXTCAL_EMAIL_MODE_NONE' => 0, |
||
| 566 | '_MI_EXTCAL_EMAIL_MODE_TEXT' => 1, |
||
| 567 | '_MI_EXTCAL_EMAIL_MODE_HTML' => 2, |
||
| 568 | ); |
||
| 569 | |||
| 570 | ++$i; |
||
| 571 | $modversion['config'][$i]['name'] = 'pear_path'; |
||
| 572 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_PEAR_PATH'; |
||
| 573 | $modversion['config'][$i]['description'] = '_MI_EXTCAL_PEAR_PATH_DESC'; |
||
| 574 | $modversion['config'][$i]['formtype'] = 'textbox'; |
||
| 575 | $modversion['config'][$i]['valuetype'] = 'text'; |
||
| 576 | $modversion['config'][$i]['size'] = 80; |
||
| 577 | $modversion['config'][$i]['default'] = ''; |
||
| 578 | |||
| 579 | //modif JJD ------------------------------------------------------------ |
||
| 580 | |||
| 581 | // Templates |
||
| 582 | $i = 1; |
||
| 583 | $modversion['templates'][$i]['file'] = 'extcal_view_year.tpl'; |
||
| 584 | $modversion['templates'][$i]['description'] = ''; |
||
| 585 | ++$i; |
||
| 586 | $modversion['templates'][$i]['file'] = 'extcal_view_month.tpl'; |
||
| 587 | $modversion['templates'][$i]['description'] = ''; |
||
| 588 | ++$i; |
||
| 589 | $modversion['templates'][$i]['file'] = 'extcal_view_week.tpl'; |
||
| 590 | $modversion['templates'][$i]['description'] = ''; |
||
| 591 | ++$i; |
||
| 592 | $modversion['templates'][$i]['file'] = 'extcal_view_day.tpl'; |
||
| 593 | $modversion['templates'][$i]['description'] = ''; |
||
| 594 | ++$i; |
||
| 595 | $modversion['templates'][$i]['file'] = 'extcal_view_calendar-month.tpl'; |
||
| 596 | $modversion['templates'][$i]['description'] = ''; |
||
| 597 | ++$i; |
||
| 598 | $modversion['templates'][$i]['file'] = 'extcal_view_calendar-week.tpl'; |
||
| 599 | $modversion['templates'][$i]['description'] = ''; |
||
| 600 | //modif JJD |
||
| 601 | ++$i; |
||
| 602 | $modversion['templates'][$i]['file'] = 'extcal_view_agenda-day.tpl'; |
||
| 603 | $modversion['templates'][$i]['description'] = ''; |
||
| 604 | ++$i; |
||
| 605 | $modversion['templates'][$i]['file'] = 'extcal_view_agenda-week.tpl'; |
||
| 606 | $modversion['templates'][$i]['description'] = ''; |
||
| 607 | |||
| 608 | ++$i; |
||
| 609 | $modversion['templates'][$i]['file'] = 'extcal_view_search.tpl'; |
||
| 610 | $modversion['templates'][$i]['description'] = 'recherche evenements'; |
||
| 611 | |||
| 612 | ++$i; |
||
| 613 | $modversion['templates'][$i]['file'] = 'extcal_view_new-event.tpl'; |
||
| 614 | $modversion['templates'][$i]['description'] = 'Nouvel evenement'; |
||
| 615 | //------------------------------------------------------------ |
||
| 616 | ++$i; |
||
| 617 | $modversion['templates'][$i]['file'] = 'extcal_event_list1.tpl'; |
||
| 618 | $modversion['templates'][$i]['description'] = 'Liste des evennements'; |
||
| 619 | |||
| 620 | ++$i; |
||
| 621 | $modversion['templates'][$i]['file'] = 'extcal_event_nav_btn.tpl'; |
||
| 622 | $modversion['templates'][$i]['description'] = 'boutons de navigation'; |
||
| 623 | //------------------------------------------------------------ |
||
| 624 | |||
| 625 | ++$i; |
||
| 626 | $modversion['templates'][$i]['file'] = 'extcal_event.tpl'; |
||
| 627 | $modversion['templates'][$i]['description'] = ''; |
||
| 628 | ++$i; |
||
| 629 | $modversion['templates'][$i]['file'] = 'extcal_post.tpl'; |
||
| 630 | $modversion['templates'][$i]['description'] = ''; |
||
| 631 | ++$i; |
||
| 632 | $modversion['templates'][$i]['file'] = 'extcal_rss.tpl'; |
||
| 633 | $modversion['templates'][$i]['description'] = ''; |
||
| 634 | ++$i; |
||
| 635 | $modversion['templates'][$i]['file'] = 'extcal_navbar.tpl'; |
||
| 636 | $modversion['templates'][$i]['description'] = ''; |
||
| 637 | ++$i; |
||
| 638 | $modversion['templates'][$i]['file'] = 'extcal_etablissement.tpl'; |
||
| 639 | $modversion['templates'][$i]['description'] = 'etablissement'; |
||
| 640 | |||
| 641 | ++$i; |
||
| 642 | $modversion['templates'][$i]['file'] = 'extcal_info_bulle.tpl'; |
||
| 643 | $modversion['templates'][$i]['description'] = 'Info bulle'; |
||
| 644 | |||
| 645 | ++$i; |
||
| 646 | $modversion['templates'][$i]['file'] = 'extcal_categorie.tpl'; |
||
| 647 | $modversion['templates'][$i]['description'] = 'Categorie'; |
||
| 648 | |||
| 649 | ++$i; |
||
| 650 | $modversion['templates'][$i]['file'] = 'extcal_horloge.tpl'; |
||
| 651 | $modversion['templates'][$i]['description'] = 'Horloge'; |
||
| 652 | |||
| 653 | ++$i; |
||
| 654 | $modversion['templates'][$i]['file'] = 'extcal_imgXoops.tpl'; |
||
| 655 | $modversion['templates'][$i]['description'] = 'Images Xoops'; |
||
| 656 | |||
| 657 | ++$i; |
||
| 658 | $modversion['templates'][$i]['file'] = 'extcal_buttons_event.tpl'; |
||
| 659 | $modversion['templates'][$i]['description'] = 'buttons event'; |
||
| 660 | |||
| 661 | //------------------------------------------------------------- |
||
| 662 | ++$i; |
||
| 663 | $modversion['templates'][$i]['file'] = 'extcal_mail_member_text.tpl'; |
||
| 664 | $modversion['templates'][$i]['description'] = 'Mail text member inscription/desinscription'; |
||
| 665 | |||
| 666 | ++$i; |
||
| 667 | $modversion['templates'][$i]['file'] = 'extcal_mail_member_html.tpl'; |
||
| 668 | $modversion['templates'][$i]['description'] = 'Mail html member inscription/desinscription'; |
||
| 669 | //------------------------------------------------------------- |
||
| 670 | //template de l'admin |
||
| 671 | //------------------------------------------------------------- |
||
| 672 | ++$i; |
||
| 673 | $modversion['templates'][$i]['file'] = 'admin/extcal_admin_cat_list.tpl'; |
||
| 674 | $modversion['templates'][$i]['description'] = 'Category list'; |
||
| 675 | |||
| 676 | //------------------------------------------------------------- |
||
| 677 | |||
| 678 | // Blocs |
||
| 679 | $i = 1; |
||
| 680 | $modversion['blocks'][$i]['file'] = 'minical.php'; |
||
| 681 | $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME1; |
||
| 682 | $modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME1_DESC; |
||
| 683 | $modversion['blocks'][$i]['show_func'] = 'bExtcalMinicalShow'; |
||
| 684 | $modversion['blocks'][$i]['options'] = '0|0|150|225|1|3|10|0|1|1,2,3,4,5|| |120|120'; |
||
| 685 | $modversion['blocks'][$i]['edit_func'] = 'bExtcalMinicalEdit'; |
||
| 686 | $modversion['blocks'][$i]['template'] = 'extcal_block_minical.tpl'; |
||
| 687 | //++$i; |
||
| 688 | //$modversion['blocks'][$i]['file'] = "spotlight_events.php"; |
||
| 689 | //$modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME2; |
||
| 690 | //$modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME2_DESC; |
||
| 691 | //$modversion['blocks'][$i]['show_func'] = "bExtcalSpotlightShow"; |
||
| 692 | //$modversion['blocks'][$i]['options'] = "0|0|0|1|0"; |
||
| 693 | //$modversion['blocks'][$i]['edit_func'] = "bExtcalSpotlightEdit"; |
||
| 694 | //$modversion['blocks'][$i]['template'] = 'extcal_block_spotlight.tpl'; |
||
| 695 | ++$i; |
||
| 696 | $modversion['blocks'][$i]['file'] = 'upcoming.php'; |
||
| 697 | $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME3; |
||
| 698 | $modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME3_DESC; |
||
| 699 | $modversion['blocks'][$i]['show_func'] = 'bExtcalUpcomingShow'; |
||
| 700 | $modversion['blocks'][$i]['options'] = '5|25|30|0'; |
||
| 701 | $modversion['blocks'][$i]['edit_func'] = 'bExtcalUpcomingEdit'; |
||
| 702 | $modversion['blocks'][$i]['template'] = 'extcal_block_upcoming.tpl'; |
||
| 703 | ++$i; |
||
| 704 | $modversion['blocks'][$i]['file'] = 'day_events.php'; |
||
| 705 | $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME4; |
||
| 706 | $modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME4_DESC; |
||
| 707 | $modversion['blocks'][$i]['show_func'] = 'bExtcalDayShow'; |
||
| 708 | $modversion['blocks'][$i]['options'] = '5|25|0'; |
||
| 709 | $modversion['blocks'][$i]['edit_func'] = 'bExtcalDayEdit'; |
||
| 710 | $modversion['blocks'][$i]['template'] = 'extcal_block_day.tpl'; |
||
| 711 | ++$i; |
||
| 712 | $modversion['blocks'][$i]['file'] = 'new_events.php'; |
||
| 713 | $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME5; |
||
| 714 | $modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME5_DESC; |
||
| 715 | $modversion['blocks'][$i]['show_func'] = 'bExtcalNewShow'; |
||
| 716 | $modversion['blocks'][$i]['options'] = '5|25|0'; |
||
| 717 | $modversion['blocks'][$i]['edit_func'] = 'bExtcalNewEdit'; |
||
| 718 | $modversion['blocks'][$i]['template'] = 'extcal_block_new.tpl'; |
||
| 719 | ++$i; |
||
| 720 | $modversion['blocks'][$i]['file'] = 'random_events.php'; |
||
| 721 | $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME6; |
||
| 722 | $modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME6_DESC; |
||
| 723 | $modversion['blocks'][$i]['show_func'] = 'bExtcalRandomShow'; |
||
| 724 | $modversion['blocks'][$i]['options'] = '5|25|0'; |
||
| 725 | $modversion['blocks'][$i]['edit_func'] = 'bExtcalRandomEdit'; |
||
| 726 | $modversion['blocks'][$i]['template'] = 'extcal_block_random.tpl'; |
||
| 727 | ++$i; |
||
| 728 | $modversion['blocks'][$i]['file'] = 'category_events.php'; |
||
| 729 | $modversion['blocks'][$i]['name'] = _MI_EXTCAL_BNAME7; |
||
| 730 | $modversion['blocks'][$i]['description'] = _MI_EXTCAL_BNAME7_DESC; |
||
| 731 | $modversion['blocks'][$i]['show_func'] = 'bExtcalUpcomingByCategoryShow'; |
||
| 732 | $modversion['blocks'][$i]['options'] = '5|25|0'; |
||
| 733 | $modversion['blocks'][$i]['edit_func'] = 'bExtcalUpcomingByCategoryEdit'; |
||
| 734 | $modversion['blocks'][$i]['template'] = 'extcal_block_upcomingByCategory.tpl'; |
||
| 735 | |||
| 736 | //--------------------------------------------------------- |
||
| 737 | // Notifications |
||
| 738 | $modversion['hasNotification'] = 1; |
||
| 739 | $modversion['notification']['lookup_file'] = 'include/notification.inc.php'; |
||
| 740 | $modversion['notification']['lookup_func'] = 'extcal_notify_iteminfo'; |
||
| 741 | |||
| 742 | $modversion['notification']['category'][1]['name'] = 'global'; |
||
| 743 | $modversion['notification']['category'][1]['title'] = _MI_EXTCAL_GLOBAL_NOTIFY; |
||
| 744 | $modversion['notification']['category'][1]['description'] = _MI_EXTCAL_GLOBAL_NOTIFYDSC; |
||
| 745 | $modversion['notification']['category'][1]['subscribe_from'] = '*'; |
||
| 746 | $modversion['notification']['category'][1]['item_name'] = ''; |
||
| 747 | |||
| 748 | $modversion['notification']['category'][2]['name'] = 'cat'; |
||
| 749 | $modversion['notification']['category'][2]['title'] = _MI_EXTCAL_CAT_NOTIFY; |
||
| 750 | $modversion['notification']['category'][2]['description'] = _MI_EXTCAL_CAT_NOTIFYDSC; |
||
| 751 | $modversion['notification']['category'][2]['subscribe_from'] = array('calendar.php', 'year.php', 'day.php'); |
||
| 752 | $modversion['notification']['category'][2]['item_name'] = 'cat'; |
||
| 753 | |||
| 754 | $modversion['notification']['category'][3]['name'] = 'event'; |
||
| 755 | $modversion['notification']['category'][3]['title'] = _MI_EXTCAL_EVENT_NOTIFY; |
||
| 756 | $modversion['notification']['category'][3]['description'] = _MI_EXTCAL_EVENT_NOTIFYDSC; |
||
| 757 | $modversion['notification']['category'][3]['subscribe_from'] = 'event.php'; |
||
| 758 | $modversion['notification']['category'][3]['item_name'] = 'event'; |
||
| 759 | $modversion['notification']['category'][3]['allow_bookmark'] = 1; |
||
| 760 | |||
| 761 | $modversion['notification']['event'][1]['name'] = 'new_event'; |
||
| 762 | $modversion['notification']['event'][1]['category'] = 'global'; |
||
| 763 | $modversion['notification']['event'][1]['title'] = _MI_EXTCAL_NEW_EVENT_NOTIFY; |
||
| 764 | $modversion['notification']['event'][1]['caption'] = _MI_EXTCAL_NEW_EVENT_NOTIFYCAP; |
||
| 765 | $modversion['notification']['event'][1]['description'] = _MI_EXTCAL_NEW_EVENT_NOTIFYDSC; |
||
| 766 | $modversion['notification']['event'][1]['mail_template'] = 'global_new_event'; |
||
| 767 | $modversion['notification']['event'][1]['mail_subject'] = _MI_EXTCAL_NEW_EVENT_NOTIFYSBJ; |
||
| 768 | |||
| 769 | $modversion['notification']['event'][2]['name'] = 'new_event_pending'; |
||
| 770 | $modversion['notification']['event'][2]['category'] = 'global'; |
||
| 771 | $modversion['notification']['event'][2]['title'] = _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFY; |
||
| 772 | $modversion['notification']['event'][2]['caption'] = _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFYCAP; |
||
| 773 | $modversion['notification']['event'][2]['description'] = _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFYDSC; |
||
| 774 | $modversion['notification']['event'][2]['mail_template'] = 'global_new_event_pending'; |
||
| 775 | $modversion['notification']['event'][2]['mail_subject'] = _MI_EXTCAL_NEW_EVENT_PENDING_NOTIFYSBJ; |
||
| 776 | $modversion['notification']['event'][2]['admin_only'] = 1; |
||
| 777 | |||
| 778 | $modversion['notification']['event'][3]['name'] = 'new_event_cat'; |
||
| 779 | $modversion['notification']['event'][3]['category'] = 'cat'; |
||
| 780 | $modversion['notification']['event'][3]['title'] = _MI_EXTCAL_NEW_EVENT_CAT_NOTIFY; |
||
| 781 | $modversion['notification']['event'][3]['caption'] = _MI_EXTCAL_NEW_EVENT_CAT_NOTIFYCAP; |
||
| 782 | $modversion['notification']['event'][3]['description'] = _MI_EXTCAL_NEW_EVENT_CAT_NOTIFYDSC; |
||
| 783 | $modversion['notification']['event'][3]['mail_template'] = 'cat_new_event'; |
||
| 784 | $modversion['notification']['event'][3]['mail_subject'] = _MI_EXTCAL_NEW_EVENT_CAT_NOTIFYSBJ; |
||
| 785 | |||
| 786 | // XoopsInfo |
||
| 787 | $modversion['developer_website_url'] = 'http://www.zoullou.net/'; |
||
| 788 | $modversion['developer_website_name'] = 'eXtCal and eXtGallery module for XOOPS : Zoullou.net'; |
||
| 789 | $modversion['download_website'] = 'http://www.zoullou.net/'; |
||
| 790 | $modversion['status_fileinfo'] = ''; |
||
| 791 | $modversion['demo_site_url'] = 'http://www.zoullou.net/modules/extcal/'; |
||
| 792 | $modversion['demo_site_name'] = 'eXtCal and eXtGallery module for XOOPS : Zoullou.net'; |
||
| 793 | $modversion['support_site_url'] = 'http://www.zoullou.net/'; |
||
| 794 | $modversion['support_site_name'] = 'eXtCal and eXtGallery module for XOOPS : Zoullou.net'; |
||
| 795 | $modversion['submit_bug'] = 'http://sourceforge.net/tracker/?func=add&group_id=177145&atid=880070'; |
||
| 796 | $modversion['submit_feature'] = 'http://sourceforge.net/tracker/?func=add&group_id=177145&atid=880073'; |
||
| 797 |
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.