@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d'); |
22 | 22 | define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i'); |
23 | 23 | |
24 | -require_once __DIR__ . '/constantes.php'; |
|
24 | +require_once __DIR__.'/constantes.php'; |
|
25 | 25 | // require_once __DIR__ . '/../class/Utility.php'; |
26 | 26 | |
27 | 27 | $moduleDirName = basename(dirname(__DIR__)); |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $tj[$kj]['dayWeek'] = date('w', $tsj); |
75 | 75 | $tj[$kj]['jour'] = $jName[$tj[$kj]['dayWeek']]; //date('l', $tsj); |
76 | 76 | if (0 == $tj[$kj]['dayWeek']) { |
77 | - $tj[$kj]['bg'] = "background='" . XOOPS_URL . "/modules/extcal/assets/images/trame.png'"; |
|
77 | + $tj[$kj]['bg'] = "background='".XOOPS_URL."/modules/extcal/assets/images/trame.png'"; |
|
78 | 78 | } else { |
79 | 79 | $tj[$kj]['bg'] = ''; |
80 | 80 | } |
@@ -154,16 +154,16 @@ discard block |
||
154 | 154 | $kd = date(_EXTCAL_FORMAT_AGENDA_KEYD, $ts); |
155 | 155 | $hour = date('H', $ts); |
156 | 156 | $minute = date('i', $ts); |
157 | - $m = (int)($minute / $mPlage) * $mPlage; |
|
157 | + $m = (int) ($minute / $mPlage) * $mPlage; |
|
158 | 158 | // echo "--->{$minute} / {$mPlage} = {$m}<br>"; |
159 | - $sMinute = (($m < 10) ? '0' . $m : $m); |
|
159 | + $sMinute = (($m < 10) ? '0'.$m : $m); |
|
160 | 160 | //$kt = date(_EXTCAL_FORMAT_AGENDA_KEYT, $ts); |
161 | 161 | if ($hour < $hStart) { |
162 | 162 | $kt = $tk0; |
163 | 163 | } elseif ($hour >= ($hEnd + 1)) { |
164 | 164 | $kt = $tk1; |
165 | 165 | } else { |
166 | - $kt = $hour . ':' . $sMinute; |
|
166 | + $kt = $hour.':'.$sMinute; |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | $tAgenda[$kt]['jours'][$kd]['events'][] = $e; |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | return false; |
313 | 313 | } |
314 | 314 | |
315 | - $file = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/' . $f; |
|
315 | + $file = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/'.$f; |
|
316 | 316 | $prefix = (defined($name) ? '_MI' : '_MD'); |
317 | 317 | require_once $file; |
318 | 318 | } |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | // while (list($k, $v) = each($tNavBar)) { |
453 | 453 | foreach ($tNavBar as $k => $v) { |
454 | 454 | if (isset($tWeight[$k])) { |
455 | - $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module |
|
455 | + $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module |
|
456 | 456 | } else { |
457 | 457 | $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar |
458 | 458 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof \XoopsUser) |
24 | 24 | || !$GLOBALS['xoopsUser']->IsAdmin()) { |
25 | - exit('Restricted access' . PHP_EOL); |
|
25 | + exit('Restricted access'.PHP_EOL); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | return true; |
76 | 76 | } |
77 | 77 | |
78 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/versions/'; |
|
78 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname').'/versions/'; |
|
79 | 79 | $cls = 'Extcal_%1$s'; |
80 | 80 | |
81 | 81 | $version = [ |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | foreach ($version as $key => $val) { |
95 | 95 | if ($previousVersion < $val) { |
96 | 96 | $name = sprintf($cls, $key); |
97 | - $f = $fld . $name . '.php'; |
|
97 | + $f = $fld.$name.'.php'; |
|
98 | 98 | //ext_echo ("<hr>{$f}<hr>"); |
99 | 99 | if (is_readable($f)) { |
100 | 100 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -118,14 +118,14 @@ discard block |
||
118 | 118 | //delete old HTML templates |
119 | 119 | if (count($configurator['templateFolders']) > 0) { |
120 | 120 | foreach ($configurator['templateFolders'] as $folder) { |
121 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
121 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
122 | 122 | if (is_dir($templateFolder)) { |
123 | 123 | $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), ['..', '.']); |
124 | 124 | foreach ($templateList as $k => $v) { |
125 | - $fileInfo = new \SplFileInfo($templateFolder . $v); |
|
125 | + $fileInfo = new \SplFileInfo($templateFolder.$v); |
|
126 | 126 | if ('html' === $fileInfo->getExtension() && 'index.html' !== $fileInfo->getFilename()) { |
127 | - if (file_exists($templateFolder . $v)) { |
|
128 | - unlink($templateFolder . $v); |
|
127 | + if (file_exists($templateFolder.$v)) { |
|
128 | + unlink($templateFolder.$v); |
|
129 | 129 | } |
130 | 130 | } |
131 | 131 | } |
@@ -135,9 +135,9 @@ discard block |
||
135 | 135 | |
136 | 136 | // --- COPY blank.png FILES --------------- |
137 | 137 | if (count($configurator['copyFiles']) > 0) { |
138 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
138 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
139 | 139 | foreach (array_keys($configurator['copyFiles']) as $i) { |
140 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
140 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
141 | 141 | $utilityClass::copyFile($file, $dest); |
142 | 142 | } |
143 | 143 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | if (count($configurator['oldFiles']) > 0) { |
147 | 147 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
148 | 148 | foreach (array_keys($configurator['oldFiles']) as $i) { |
149 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]); |
|
149 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]); |
|
150 | 150 | if (is_file($tempFile)) { |
151 | 151 | unlink($tempFile); |
152 | 152 | } |
@@ -156,14 +156,14 @@ discard block |
||
156 | 156 | //--------------------- |
157 | 157 | |
158 | 158 | //delete .html entries from the tpl table |
159 | - $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
|
159 | + $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'"; |
|
160 | 160 | $xoopsDB->queryF($sql); |
161 | 161 | |
162 | 162 | // Load class XoopsFile ==================== |
163 | 163 | xoops_load('XoopsFile'); |
164 | 164 | |
165 | 165 | //delete /images directory ============ |
166 | - $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname', 'n') . '/images/'); |
|
166 | + $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname', 'n').'/images/'); |
|
167 | 167 | $folderHandler = \XoopsFile::getHandler('folder', $imagesDirectory); |
168 | 168 | $folderHandler->delete($imagesDirectory); |
169 | 169 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | 22 | global $extcalConfig, $xoopsUser; |
23 | -require_once __DIR__ . '/../include/constantes.php'; |
|
23 | +require_once __DIR__.'/../include/constantes.php'; |
|
24 | 24 | // require_once __DIR__ . '/../class/Utility.php'; |
25 | 25 | // require_once __DIR__ . '/../class/tableForm.php'; |
26 | 26 | //--------------------------------------------------------------------------- |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | |
38 | 38 | // // require_once __DIR__ . '/../class/config.php'; |
39 | 39 | |
40 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
41 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
42 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
40 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
41 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
42 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
43 | 43 | // require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
44 | 44 | // require_once CALENDAR_ROOT . 'Day.php'; |
45 | 45 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | 'category' => $tCatSelected, |
129 | 129 | 'externalKeys' => 'cat_id', |
130 | 130 | ]; |
131 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
131 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
132 | 132 | } else { |
133 | 133 | $events = []; |
134 | 134 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | 'number' => $dayCalObj->thisDay(), |
191 | 191 | 'isSelected' => $dayCalObj->isSelected(), |
192 | 192 | ]; |
193 | - $day = $dayCalObj->thisDay(); |
|
193 | + $day = $dayCalObj->thisDay(); |
|
194 | 194 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
195 | 195 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
196 | 196 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -220,15 +220,15 @@ discard block |
||
220 | 220 | // Making navig data |
221 | 221 | $navig = [ |
222 | 222 | 'page' => $extcalConfig['start_page'], |
223 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
223 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
224 | 224 | 'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
225 | 225 | ]; |
226 | 226 | |
227 | 227 | $horloge = []; |
228 | 228 | $horloge['display'] = ('' != trim($options[11])); |
229 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
230 | - $horloge['width'] = $options[12] . 'px'; |
|
231 | - $horloge['height'] = $options[13] . 'px'; |
|
229 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
230 | + $horloge['width'] = $options[12].'px'; |
|
231 | + $horloge['height'] = $options[13].'px'; |
|
232 | 232 | |
233 | 233 | $ret = [ |
234 | 234 | 'imageParam' => $imageParam, |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | $imageCatHandler = xoops_getHandler('imagecategory'); |
276 | 276 | |
277 | 277 | //===================================================================== |
278 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
278 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
279 | 279 | |
280 | 280 | $k = 0; |
281 | 281 | $xfValue[$k] = new \XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | $xfValue[$k] = new Extcal\Form\Spin\FormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
317 | 317 | $form->addElement($xfValue[$k], false); |
318 | 318 | //===================================================================== |
319 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
319 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
320 | 320 | |
321 | 321 | $t = [ |
322 | 322 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -355,9 +355,9 @@ discard block |
||
355 | 355 | $form->addElement($xfValue[$k], false); |
356 | 356 | |
357 | 357 | //===================================================================== |
358 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
358 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
359 | 359 | //--------------------------------------------------------------------- |
360 | - $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
360 | + $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
361 | 361 | $t = array_merge([' ' => _NONE], $t); |
362 | 362 | |
363 | 363 | $k = 11; |
@@ -442,12 +442,12 @@ discard block |
||
442 | 442 | // $src = $doc->createElement('src'); |
443 | 443 | $src = clone $tempSrc; |
444 | 444 | $src = $photo->appendChild($src); |
445 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
445 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
446 | 446 | $src->appendChild($value); |
447 | 447 | } |
448 | 448 | |
449 | 449 | // get completed xml document |
450 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
450 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
451 | 451 | } |
452 | 452 | |
453 | 453 | /**************************************************************************/ |
@@ -21,13 +21,13 @@ discard block |
||
21 | 21 | |
22 | 22 | // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined'); |
23 | 23 | |
24 | -include __DIR__ . '/preloads/autoloader.php'; |
|
24 | +include __DIR__.'/preloads/autoloader.php'; |
|
25 | 25 | |
26 | 26 | $moduleDirName = basename(__DIR__); |
27 | 27 | |
28 | -require_once __DIR__ . '/include/constantes.php'; |
|
29 | -require_once __DIR__ . '/include/agenda_fnc.php'; |
|
30 | -require_once __DIR__ . '/class/config.php'; |
|
28 | +require_once __DIR__.'/include/constantes.php'; |
|
29 | +require_once __DIR__.'/include/agenda_fnc.php'; |
|
30 | +require_once __DIR__.'/class/config.php'; |
|
31 | 31 | //$loc_de = setlocale (LC_ALL, 'french'); |
32 | 32 | |
33 | 33 | //echo "local :" . setlocale(LC_TIME, $xoopsConfig['language'])."</ br>"; |
@@ -99,12 +99,12 @@ discard block |
||
99 | 99 | |
100 | 100 | // Tables created by sql file (without prefix!) |
101 | 101 | $modversion['tables'] = [ |
102 | - $moduleDirName . '_' . 'cat', |
|
103 | - $moduleDirName . '_' . 'event', |
|
104 | - $moduleDirName . '_' . 'eventmember', |
|
105 | - $moduleDirName . '_' . 'eventnotmember', |
|
106 | - $moduleDirName . '_' . 'file', |
|
107 | - $moduleDirName . '_' . 'etablissement' |
|
102 | + $moduleDirName.'_'.'cat', |
|
103 | + $moduleDirName.'_'.'event', |
|
104 | + $moduleDirName.'_'.'eventmember', |
|
105 | + $moduleDirName.'_'.'eventnotmember', |
|
106 | + $moduleDirName.'_'.'file', |
|
107 | + $moduleDirName.'_'.'etablissement' |
|
108 | 108 | ]; |
109 | 109 | |
110 | 110 | // SQL |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | $modversion['config'][$i]['default'] = 5; |
517 | 517 | |
518 | 518 | ++$i; |
519 | -$modversion['config'][$i]['name'] = 'break' . $i; |
|
519 | +$modversion['config'][$i]['name'] = 'break'.$i; |
|
520 | 520 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_OTHEROPTIONS'; |
521 | 521 | $modversion['config'][$i]['description'] = ''; |
522 | 522 | $modversion['config'][$i]['formtype'] = 'line_break'; |