@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | } |
98 | 98 | if (!$engine) { |
99 | 99 | if (!class_exists($class)) { |
100 | - require_once CALENDAR_ROOT . 'Engine' . '/' . CALENDAR_ENGINE . '.php'; |
|
100 | + require_once CALENDAR_ROOT.'Engine'.'/'.CALENDAR_ENGINE.'.php'; |
|
101 | 101 | } |
102 | 102 | $engine = new $class(); |
103 | 103 | } |
@@ -209,13 +209,13 @@ discard block |
||
209 | 209 | if (!isset($cE)) { |
210 | 210 | $cE = Calendar_Engine_Factory::getEngine(); |
211 | 211 | } |
212 | - $this->cE =& $cE; |
|
213 | - $this->year = (int)$y; |
|
214 | - $this->month = (int)$m; |
|
215 | - $this->day = (int)$d; |
|
216 | - $this->hour = (int)$h; |
|
217 | - $this->minute = (int)$i; |
|
218 | - $this->second = (int)$s; |
|
212 | + $this->cE = & $cE; |
|
213 | + $this->year = (int) $y; |
|
214 | + $this->month = (int) $m; |
|
215 | + $this->day = (int) $d; |
|
216 | + $this->hour = (int) $h; |
|
217 | + $this->minute = (int) $i; |
|
218 | + $this->second = (int) $s; |
|
219 | 219 | } |
220 | 220 | |
221 | 221 | /** |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | return $this->toArray($stamp); |
332 | 332 | break; |
333 | 333 | case 'object': |
334 | - require_once CALENDAR_ROOT . 'Factory.php'; |
|
334 | + require_once CALENDAR_ROOT.'Factory.php'; |
|
335 | 335 | |
336 | 336 | return Calendar_Factory::createByTimestamp($returnType, $stamp); |
337 | 337 | break; |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | */ |
354 | 354 | public function build($sDates = []) |
355 | 355 | { |
356 | - require_once __DIR__ . '/PEAR.php'; |
|
356 | + require_once __DIR__.'/PEAR.php'; |
|
357 | 357 | PEAR::raiseError('Calendar::build is abstract', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar::build()'); |
358 | 358 | |
359 | 359 | return false; |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | */ |
370 | 370 | public function setSelection($sDates) |
371 | 371 | { |
372 | - require_once __DIR__ . '/PEAR.php'; |
|
372 | + require_once __DIR__.'/PEAR.php'; |
|
373 | 373 | PEAR::raiseError('Calendar::setSelection is abstract', null, PEAR_ERROR_TRIGGER, E_USER_NOTICE, 'Calendar::setSelection()'); |
374 | 374 | |
375 | 375 | return false; |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | public function &getValidator() |
437 | 437 | { |
438 | 438 | if (!isset($this->validator)) { |
439 | - require_once CALENDAR_ROOT . 'Validator.php'; |
|
439 | + require_once CALENDAR_ROOT.'Validator.php'; |
|
440 | 440 | $this->validator = new Calendar_Validator($this); |
441 | 441 | } |
442 | 442 | |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | { |
471 | 471 | if (defined('CALENDAR_FIRST_DAY_OF_WEEK')) { |
472 | 472 | if ((CALENDAR_FIRST_DAY_OF_WEEK != $firstDay) && !is_null($firstDay)) { |
473 | - $msg = 'CALENDAR_FIRST_DAY_OF_WEEK constant already defined.' . ' The $firstDay parameter will be ignored.'; |
|
473 | + $msg = 'CALENDAR_FIRST_DAY_OF_WEEK constant already defined.'.' The $firstDay parameter will be ignored.'; |
|
474 | 474 | trigger_error($msg, E_USER_WARNING); |
475 | 475 | } |
476 | 476 |
@@ -34,9 +34,9 @@ |
||
34 | 34 | if ('add' === $_POST['mode']) { |
35 | 35 | $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser); |
36 | 36 | $eventNotMemberHandler->createEventNotMember([ |
37 | - 'event_id' => (int)$_POST['event'], |
|
38 | - 'uid' => $xoopsUser->getVar('uid'), |
|
39 | - ]); |
|
37 | + 'event_id' => (int)$_POST['event'], |
|
38 | + 'uid' => $xoopsUser->getVar('uid'), |
|
39 | + ]); |
|
40 | 40 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
41 | 41 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_ADDED_TO_EVENT; |
42 | 42 |
@@ -2,10 +2,10 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -include __DIR__ . '/../../mainfile.php'; |
|
5 | +include __DIR__.'/../../mainfile.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/include/constantes.php'; |
|
8 | -require_once __DIR__ . '/include/mail_fnc.php'; |
|
7 | +require_once __DIR__.'/include/constantes.php'; |
|
8 | +require_once __DIR__.'/include/mail_fnc.php'; |
|
9 | 9 | |
10 | 10 | /* |
11 | 11 | Extcal\Utility::echoArray($_POST); |
@@ -22,20 +22,20 @@ discard block |
||
22 | 22 | $member_uid = $xoopsUser->getVar('uid'); |
23 | 23 | |
24 | 24 | if (!$GLOBALS['xoopsSecurity']->check()) { |
25 | - redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
25 | + redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) { |
29 | 29 | // If param are right |
30 | - if ((int)$_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) { |
|
30 | + if ((int) $_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) { |
|
31 | 31 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
32 | 32 | $eventNotMemberHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_NOT_MEMBER); |
33 | 33 | |
34 | 34 | // If the user have to be added |
35 | 35 | if ('add' === $_POST['mode']) { |
36 | - $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser); |
|
36 | + $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser); |
|
37 | 37 | $eventNotMemberHandler->createEventNotMember([ |
38 | - 'event_id' => (int)$_POST['event'], |
|
38 | + 'event_id' => (int) $_POST['event'], |
|
39 | 39 | 'uid' => $xoopsUser->getVar('uid'), |
40 | 40 | ]); |
41 | 41 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
@@ -44,12 +44,12 @@ discard block |
||
44 | 44 | // If the user have to be remove |
45 | 45 | } else { |
46 | 46 | if ('remove' === $_POST['mode']) { |
47 | - $eventNotMemberHandler->deleteEventNotMember([(int)$_POST['event'], $xoopsUser->getVar('uid')]); |
|
47 | + $eventNotMemberHandler->deleteEventNotMember([(int) $_POST['event'], $xoopsUser->getVar('uid')]); |
|
48 | 48 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4); |
49 | 49 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT; |
50 | 50 | } |
51 | 51 | } |
52 | - redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false); |
|
52 | + redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false); |
|
53 | 53 | } else { |
54 | 54 | redirect_header('index.php', 3, _NOPERM, false); |
55 | 55 | } |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | $step = $_POST['step']; |
6 | 6 | } |
7 | 7 | |
8 | -require_once __DIR__ . '/../../../include/cp_header.php'; |
|
9 | -include __DIR__ . '/function.php'; |
|
8 | +require_once __DIR__.'/../../../include/cp_header.php'; |
|
9 | +include __DIR__.'/function.php'; |
|
10 | 10 | |
11 | 11 | // Change this variable if you use a cloned version of eXtGallery |
12 | 12 | $localModuleDir = 'extcal'; |
@@ -16,9 +16,9 @@ discard block |
||
16 | 16 | $downloadServer = 'http://downloads.sourceforge.net/zoullou/'; |
17 | 17 | |
18 | 18 | $lastVersion = @file_get_contents($versionFile); |
19 | -$lastVersionString = substr($lastVersion, 0, 1) . '.' . substr($lastVersion, 1, 1) . '.' . substr($lastVersion, 2, 1); |
|
20 | -$moduleFileName = $moduleName . '-' . $lastVersionString . '.tar.gz'; |
|
21 | -$langFileName = $moduleName . '-lang-' . $lastVersionString . '_' . $xoopsConfig['language'] . '.tar.gz'; |
|
19 | +$lastVersionString = substr($lastVersion, 0, 1).'.'.substr($lastVersion, 1, 1).'.'.substr($lastVersion, 2, 1); |
|
20 | +$moduleFileName = $moduleName.'-'.$lastVersionString.'.tar.gz'; |
|
21 | +$langFileName = $moduleName.'-lang-'.$lastVersionString.'_'.$xoopsConfig['language'].'.tar.gz'; |
|
22 | 22 | |
23 | 23 | switch ($step) { |
24 | 24 | case 'download': |
@@ -30,12 +30,12 @@ discard block |
||
30 | 30 | break; |
31 | 31 | } |
32 | 32 | |
33 | - if (!$handle = @fopen($downloadServer . $moduleFileName, 'r')) { |
|
33 | + if (!$handle = @fopen($downloadServer.$moduleFileName, 'r')) { |
|
34 | 34 | printf(_AM_EXTCAL_MD_FILE_DONT_EXIST, $downloadServer, $moduleFileName); |
35 | 35 | xoops_cp_footer(); |
36 | 36 | break; |
37 | 37 | } |
38 | - $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, 'w+'); |
|
38 | + $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, 'w+'); |
|
39 | 39 | |
40 | 40 | // Downlad module archive |
41 | 41 | if ($handle) { |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | |
50 | 50 | // English file are included on module package |
51 | 51 | if ('english' !== $xoopsConfig['language']) { |
52 | - if (!$handle = @fopen($downloadServer . $langFileName, 'r')) { |
|
52 | + if (!$handle = @fopen($downloadServer.$langFileName, 'r')) { |
|
53 | 53 | printf(_AM_EXTCAL_LG_FILE_DONT_EXIST, $downloadServer, $langFileName); |
54 | 54 | } else { |
55 | - $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, 'w+'); |
|
55 | + $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, 'w+'); |
|
56 | 56 | // Download language archive |
57 | 57 | if ($handle) { |
58 | 58 | while (!feof($handle)) { |
@@ -75,35 +75,35 @@ discard block |
||
75 | 75 | xoops_cp_header(); |
76 | 76 | adminMenu(); |
77 | 77 | |
78 | - if (!file_exists(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName)) { |
|
78 | + if (!file_exists(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName)) { |
|
79 | 79 | echo _AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT; |
80 | 80 | xoops_cp_footer(); |
81 | 81 | |
82 | 82 | break; |
83 | 83 | } |
84 | 84 | |
85 | - $gPcltarLibDir = XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/class'; |
|
86 | - include __DIR__ . '/../class/pcltar.lib.php'; |
|
85 | + $gPcltarLibDir = XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/class'; |
|
86 | + include __DIR__.'/../class/pcltar.lib.php'; |
|
87 | 87 | |
88 | 88 | //TrOn(5); |
89 | 89 | |
90 | 90 | // Extract module files |
91 | - PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/'); |
|
91 | + PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/'); |
|
92 | 92 | // Delete downloaded module's files |
93 | - unlink(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName); |
|
93 | + unlink(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName); |
|
94 | 94 | |
95 | - if (file_exists(XOOPS_ROOT_PATH . '/uploads/' . $langFileName)) { |
|
95 | + if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$langFileName)) { |
|
96 | 96 | // Extract language files |
97 | - PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/'); |
|
97 | + PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/'); |
|
98 | 98 | // Delete downloaded module's files |
99 | - unlink(XOOPS_ROOT_PATH . '/uploads/' . $langFileName); |
|
99 | + unlink(XOOPS_ROOT_PATH.'/uploads/'.$langFileName); |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | // Delete template_c file |
103 | - if ($handle = opendir(XOOPS_ROOT_PATH . '/templates_c')) { |
|
103 | + if ($handle = opendir(XOOPS_ROOT_PATH.'/templates_c')) { |
|
104 | 104 | while (false !== ($file = readdir($handle))) { |
105 | 105 | if ('.' !== $file && '..' !== $file && 'index.html' !== $file) { |
106 | - unlink(XOOPS_ROOT_PATH . '/templates_c/' . $file); |
|
106 | + unlink(XOOPS_ROOT_PATH.'/templates_c/'.$file); |
|
107 | 107 | } |
108 | 108 | } |
109 | 109 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | //TrDisplay(); |
113 | 113 | |
114 | - xoops_confirm(['dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'], XOOPS_URL . '/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE); |
|
114 | + xoops_confirm(['dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'], XOOPS_URL.'/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE); |
|
115 | 115 | |
116 | 116 | xoops_cp_footer(); |
117 | 117 |
@@ -2,20 +2,20 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -include __DIR__ . '/../../mainfile.php'; |
|
6 | -require_once __DIR__ . '/include/constantes.php'; |
|
5 | +include __DIR__.'/../../mainfile.php'; |
|
6 | +require_once __DIR__.'/include/constantes.php'; |
|
7 | 7 | $params = ['view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH]; |
8 | 8 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
9 | 9 | |
10 | 10 | //include __DIR__ . '/preloads/autoloader.php'; |
11 | 11 | //$catHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_CAT); |
12 | 12 | |
13 | -require_once __DIR__ . '/header.php'; |
|
13 | +require_once __DIR__.'/header.php'; |
|
14 | 14 | |
15 | 15 | /* ========================================================================== */ |
16 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
17 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
18 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
16 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
17 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
18 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
19 | 19 | /* ========================================================================== */ |
20 | 20 | |
21 | 21 | $form = new \XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get'); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'cat' => $cat, |
38 | 38 | 'externalKeys' => 'cat_id', |
39 | 39 | ]; |
40 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
40 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
41 | 41 | /**********************************************************************/ |
42 | 42 | |
43 | 43 | // Calculating timestamp for the begin and the end of the month |
@@ -133,21 +133,21 @@ discard block |
||
133 | 133 | // Making navig data |
134 | 134 | $navig = [ |
135 | 135 | 'prev' => [ |
136 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
136 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
137 | 137 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
138 | 138 | ], |
139 | 139 | 'this' => [ |
140 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
140 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
141 | 141 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
142 | 142 | ], |
143 | 143 | 'next' => [ |
144 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
144 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
145 | 145 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
146 | 146 | ], |
147 | 147 | ]; |
148 | 148 | |
149 | 149 | // Title of the page |
150 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
150 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
151 | 151 | |
152 | 152 | // Assigning navig data to the template |
153 | 153 | $xoopsTpl->assign('navig', $navig); |
@@ -187,4 +187,4 @@ discard block |
||
187 | 187 | $xoopsTpl->assign('lang', $lang); |
188 | 188 | $xoopsTpl->assign('view', 'calmonth'); |
189 | 189 | |
190 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
190 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
22 | 22 | $event = $eventHandler->getEvent($itemId, 0, true); |
23 | 23 | $item['name'] = $event->getVar('event_title'); |
24 | - $item['url'] = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'); |
|
24 | + $item['url'] = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'); |
|
25 | 25 | |
26 | 26 | return $item; |
27 | 27 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | function xoops_module_pre_install_extcal(\XoopsModule $module) |
29 | 29 | { |
30 | 30 | $moduleDirName = basename(dirname(__DIR__)); |
31 | - $className = ucfirst($moduleDirName) . 'Utility'; |
|
31 | + $className = ucfirst($moduleDirName).'Utility'; |
|
32 | 32 | if (!class_exists($className)) { |
33 | 33 | xoops_load('utility', $moduleDirName); |
34 | 34 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $mod_tables = $module->getInfo('tables'); |
46 | 46 | foreach ($mod_tables as $table) { |
47 | - $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
|
47 | + $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return true; |
@@ -73,21 +73,21 @@ discard block |
||
73 | 73 | */ |
74 | 74 | |
75 | 75 | // Access right |
76 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
77 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
78 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
76 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
77 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
78 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
79 | 79 | |
80 | 80 | // Can submit |
81 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
81 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
82 | 82 | |
83 | 83 | // Auto approve |
84 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
84 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
85 | 85 | |
86 | 86 | // $moduleDirName = $xoopsModule->getVar('dirname'); |
87 | - $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php'); |
|
87 | + $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php'); |
|
88 | 88 | |
89 | 89 | /** @var Extcal\Utility $utilityClass */ |
90 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
90 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
91 | 91 | if (!class_exists($utilityClass)) { |
92 | 92 | xoops_load('utility', $moduleDirName); |
93 | 93 | } |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | } |
100 | 100 | } |
101 | 101 | if (count($configurator['copyFiles']) > 0) { |
102 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
102 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
103 | 103 | foreach (array_keys($configurator['copyFiles']) as $i) { |
104 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
104 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
105 | 105 | $utilityClass::copyFile($file, $dest); |
106 | 106 | } |
107 | 107 | } |
@@ -28,6 +28,6 @@ |
||
28 | 28 | */ |
29 | 29 | public static function eventCoreIncludeCommonEnd($args) |
30 | 30 | { |
31 | - include __DIR__ . '/autoloader.php'; |
|
31 | + include __DIR__.'/autoloader.php'; |
|
32 | 32 | } |
33 | 33 | } |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -include __DIR__ . '/../../mainfile.php'; |
|
6 | -require_once __DIR__ . '/include/constantes.php'; |
|
7 | -require_once __DIR__ . '/header.php'; |
|
5 | +include __DIR__.'/../../mainfile.php'; |
|
6 | +require_once __DIR__.'/include/constantes.php'; |
|
7 | +require_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | // Getting eXtCal object's handler |
10 | 10 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | $permHandler = Extcal\Perm::getHandler(); |
13 | 13 | $xoopsUser = $xoopsUser ?: null; |
14 | 14 | if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) { |
15 | - include XOOPS_ROOT_PATH . '/header.php'; |
|
15 | + include XOOPS_ROOT_PATH.'/header.php'; |
|
16 | 16 | |
17 | 17 | // Title of the page |
18 | 18 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | //$form->display(); |
24 | 24 | |
25 | - include XOOPS_ROOT_PATH . '/footer.php'; |
|
25 | + include XOOPS_ROOT_PATH.'/footer.php'; |
|
26 | 26 | } else { |
27 | 27 | redirect_header('index.php', 3); |
28 | 28 | } |
@@ -19,20 +19,20 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -include __DIR__ . '/../../mainfile.php'; |
|
23 | -require_once __DIR__ . '/include/constantes.php'; |
|
22 | +include __DIR__.'/../../mainfile.php'; |
|
23 | +require_once __DIR__.'/include/constantes.php'; |
|
24 | 24 | $params = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT]; |
25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl'; |
26 | -require_once __DIR__ . '/header.php'; |
|
26 | +require_once __DIR__.'/header.php'; |
|
27 | 27 | |
28 | 28 | //exit; |
29 | 29 | |
30 | -include XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
30 | +include XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
31 | 31 | |
32 | 32 | if (!isset($_GET['event'])) { |
33 | 33 | $eventId = 0; |
34 | 34 | } else { |
35 | - $eventId = (int)$_GET['event']; |
|
35 | + $eventId = (int) $_GET['event']; |
|
36 | 36 | } |
37 | 37 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
38 | 38 | $fileHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_FILE); |
@@ -230,4 +230,4 @@ discard block |
||
230 | 230 | |
231 | 231 | //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array()); |
232 | 232 | |
233 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
233 | +include XOOPS_ROOT_PATH.'/footer.php'; |