@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d'); |
19 | 19 | define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i'); |
20 | 20 | |
21 | -require_once __DIR__ . '/constantes.php'; |
|
22 | -require_once __DIR__ . '/../class/utility.php'; |
|
21 | +require_once __DIR__.'/constantes.php'; |
|
22 | +require_once __DIR__.'/../class/utility.php'; |
|
23 | 23 | |
24 | 24 | $moduleDirName = basename(dirname(__DIR__)); |
25 | 25 | xoops_loadLanguage('main', $moduleDirName); |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $tj[$kj]['dayWeek'] = date('w', $tsj); |
72 | 72 | $tj[$kj]['jour'] = $jName[$tj[$kj]['dayWeek']]; //date('l', $tsj); |
73 | 73 | if (0 == $tj[$kj]['dayWeek']) { |
74 | - $tj[$kj]['bg'] = "background='" . XOOPS_URL . "/modules/extcal/assets/images/trame.png'"; |
|
74 | + $tj[$kj]['bg'] = "background='".XOOPS_URL."/modules/extcal/assets/images/trame.png'"; |
|
75 | 75 | } else { |
76 | 76 | $tj[$kj]['bg'] = ''; |
77 | 77 | } |
@@ -151,16 +151,16 @@ discard block |
||
151 | 151 | $kd = date(_EXTCAL_FORMAT_AGENDA_KEYD, $ts); |
152 | 152 | $hour = date('H', $ts); |
153 | 153 | $minute = date('i', $ts); |
154 | - $m = (int)($minute / $mPlage) * $mPlage; |
|
154 | + $m = (int) ($minute / $mPlage) * $mPlage; |
|
155 | 155 | // echo "--->{$minute} / {$mPlage} = {$m}<br>"; |
156 | - $sMinute = (($m < 10) ? '0' . $m : $m); |
|
156 | + $sMinute = (($m < 10) ? '0'.$m : $m); |
|
157 | 157 | //$kt = date(_EXTCAL_FORMAT_AGENDA_KEYT, $ts); |
158 | 158 | if ($hour < $hStart) { |
159 | 159 | $kt = $tk0; |
160 | 160 | } elseif ($hour >= ($hEnd + 1)) { |
161 | 161 | $kt = $tk1; |
162 | 162 | } else { |
163 | - $kt = $hour . ':' . $sMinute; |
|
163 | + $kt = $hour.':'.$sMinute; |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | $tAgenda[$kt]['jours'][$kd]['events'][] = $e; |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | return false; |
310 | 310 | } |
311 | 311 | |
312 | - $file = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/' . $f; |
|
312 | + $file = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/'.$f; |
|
313 | 313 | $prefix = (defined($name) ? '_MI' : '_MD'); |
314 | 314 | require_once $file; |
315 | 315 | } |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | // while (list($k, $v) = each($tNavBar)) { |
450 | 450 | foreach ($tNavBar as $k => $v) { |
451 | 451 | if (isset($tWeight[$k])) { |
452 | - $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module |
|
452 | + $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module |
|
453 | 453 | } else { |
454 | 454 | $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar |
455 | 455 | } |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser) |
22 | 22 | || !$GLOBALS['xoopsUser']->IsAdmin()) { |
23 | - exit('Restricted access' . PHP_EOL); |
|
23 | + exit('Restricted access'.PHP_EOL); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | function xoops_module_pre_update_extcal(XoopsModule $xoopsModule) |
46 | 46 | { |
47 | 47 | $moduleDirName = basename(dirname(__DIR__)); |
48 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
48 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
49 | 49 | if (!class_exists($utilityClass)) { |
50 | 50 | xoops_load('utility', $moduleDirName); |
51 | 51 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | return true; |
82 | 82 | } |
83 | 83 | |
84 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
84 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
85 | 85 | $cls = 'extcal_%1$s'; |
86 | 86 | |
87 | 87 | $version = [ |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | foreach ($version as $key => $val) { |
101 | 101 | if ($previousVersion < $val) { |
102 | 102 | $name = sprintf($cls, $key); |
103 | - $f = $fld . $name . '.php'; |
|
103 | + $f = $fld.$name.'.php'; |
|
104 | 104 | //ext_echo ("<hr>{$f}<hr>"); |
105 | 105 | if (is_readable($f)) { |
106 | 106 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -111,9 +111,9 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | if ($previousVersion < 240) { |
114 | - $configurator = include __DIR__ . '/config.php'; |
|
114 | + $configurator = include __DIR__.'/config.php'; |
|
115 | 115 | /** @var ExtcalUtility $utilityClass */ |
116 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
116 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
117 | 117 | if (!class_exists($utilityClass)) { |
118 | 118 | xoops_load('utility', $moduleDirName); |
119 | 119 | } |
@@ -121,14 +121,14 @@ discard block |
||
121 | 121 | //delete old HTML templates |
122 | 122 | if (count($configurator['templateFolders']) > 0) { |
123 | 123 | foreach ($configurator['templateFolders'] as $folder) { |
124 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
124 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
125 | 125 | if (is_dir($templateFolder)) { |
126 | 126 | $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), ['..', '.']); |
127 | 127 | foreach ($templateList as $k => $v) { |
128 | - $fileInfo = new SplFileInfo($templateFolder . $v); |
|
128 | + $fileInfo = new SplFileInfo($templateFolder.$v); |
|
129 | 129 | if ('html' === $fileInfo->getExtension() && 'index.html' !== $fileInfo->getFilename()) { |
130 | - if (file_exists($templateFolder . $v)) { |
|
131 | - unlink($templateFolder . $v); |
|
130 | + if (file_exists($templateFolder.$v)) { |
|
131 | + unlink($templateFolder.$v); |
|
132 | 132 | } |
133 | 133 | } |
134 | 134 | } |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | |
139 | 139 | // --- COPY blank.png FILES --------------- |
140 | 140 | if (count($configurator['copyFiles']) > 0) { |
141 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
141 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
142 | 142 | foreach (array_keys($configurator['copyFiles']) as $i) { |
143 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
143 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
144 | 144 | $utilityClass::copyFile($file, $dest); |
145 | 145 | } |
146 | 146 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | if (count($configurator['oldFiles']) > 0) { |
150 | 150 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
151 | 151 | foreach (array_keys($configurator['oldFiles']) as $i) { |
152 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]); |
|
152 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]); |
|
153 | 153 | if (is_file($tempFile)) { |
154 | 154 | unlink($tempFile); |
155 | 155 | } |
@@ -159,14 +159,14 @@ discard block |
||
159 | 159 | //--------------------- |
160 | 160 | |
161 | 161 | //delete .html entries from the tpl table |
162 | - $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $xoopsModule->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
|
162 | + $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$xoopsModule->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'"; |
|
163 | 163 | $xoopsDB->queryF($sql); |
164 | 164 | |
165 | 165 | // Load class XoopsFile ==================== |
166 | 166 | xoops_load('XoopsFile'); |
167 | 167 | |
168 | 168 | //delete /images directory ============ |
169 | - $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/images/'); |
|
169 | + $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/images/'); |
|
170 | 170 | $folderHandler = XoopsFile::getHandler('folder', $imagesDirectory); |
171 | 171 | $folderHandler->delete($imagesDirectory); |
172 | 172 | } |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | * que la classe correspondante de la table a été générées avec classGenerator |
21 | 21 | **/ |
22 | 22 | |
23 | -require_once __DIR__ . '/../../../class/uploader.php'; |
|
24 | -require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
25 | -require_once __DIR__ . '/../class/utility.php'; |
|
26 | -require_once __DIR__ . '/constantes.php'; |
|
27 | -require_once __DIR__ . '/../../../class/template.php'; |
|
23 | +require_once __DIR__.'/../../../class/uploader.php'; |
|
24 | +require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
25 | +require_once __DIR__.'/../class/utility.php'; |
|
26 | +require_once __DIR__.'/constantes.php'; |
|
27 | +require_once __DIR__.'/../../../class/template.php'; |
|
28 | 28 | |
29 | 29 | /******************************************************************** |
30 | 30 | * |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $action = ''; //a voir JJD |
139 | 139 | $message = sprintf($tplMessage, $acteur['name']); |
140 | 140 | //$subject .= ' (' . rand(1, 100) . ')'; |
141 | - $subject .= ' - ' . $acteur['name']; |
|
141 | + $subject .= ' - '.$acteur['name']; |
|
142 | 142 | //-------------------------------------------------------------- |
143 | 143 | //Chargement du template dans le dossier de langue |
144 | 144 | //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html'; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | if (_EXTCAL_HEADER_HTML == $mode) { |
181 | 181 | $template = 'extcal_mail_member_html.tpl'; |
182 | 182 | } |
183 | - $mail_body = $tpl->fetch('db:' . $template); |
|
183 | + $mail_body = $tpl->fetch('db:'.$template); |
|
184 | 184 | |
185 | 185 | extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|'); |
186 | 186 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | $header = []; |
314 | 314 | $header[] = "From: {$emailSender}"; |
315 | 315 | $header[] = "Reply-To: {$emailSender}"; |
316 | - $header[] = 'X-Mailer: PHP/' . PHP_VERSION; |
|
316 | + $header[] = 'X-Mailer: PHP/'.PHP_VERSION; |
|
317 | 317 | |
318 | 318 | if (_EXTCAL_HEADER_HTML == $mode) { |
319 | 319 | $header[] = 'MIME-Version: 1.0'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalNewShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | |
65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
66 | 66 | |
67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
70 | 70 | array_shift($options); |
71 | 71 | array_shift($options); |
72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
73 | 73 | if (false === array_search(0, $options)) { |
74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
75 | 75 | } else { |
76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } |
78 | 78 | foreach ($cats as $cat) { |
79 | 79 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalDayShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | |
65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
66 | 66 | |
67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
70 | 70 | array_shift($options); |
71 | 71 | array_shift($options); |
72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
73 | 73 | if (false === array_search(0, $options)) { |
74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
75 | 75 | } else { |
76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } |
78 | 78 | foreach ($cats as $cat) { |
79 | 79 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | $form .= '</select>'; |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | */ |
19 | 19 | |
20 | 20 | global $extcalConfig, $xoopsUser; |
21 | -require_once __DIR__ . '/../include/constantes.php'; |
|
22 | -require_once __DIR__ . '/../class/utility.php'; |
|
23 | -require_once __DIR__ . '/../class/tableForm.php'; |
|
21 | +require_once __DIR__.'/../include/constantes.php'; |
|
22 | +require_once __DIR__.'/../class/utility.php'; |
|
23 | +require_once __DIR__.'/../class/tableForm.php'; |
|
24 | 24 | //--------------------------------------------------------------------------- |
25 | 25 | /** |
26 | 26 | * @param $options |
@@ -33,11 +33,11 @@ discard block |
||
33 | 33 | |
34 | 34 | extcal_getDefautminicalOption($options); |
35 | 35 | |
36 | - require_once __DIR__ . '/../class/config.php'; |
|
36 | + require_once __DIR__.'/../class/config.php'; |
|
37 | 37 | |
38 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
39 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
40 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
38 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
39 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
40 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
41 | 41 | // require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
42 | 42 | // require_once CALENDAR_ROOT . 'Day.php'; |
43 | 43 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'cat' => $tCatSelected, |
125 | 125 | 'externalKeys' => 'cat_id', |
126 | 126 | ]; |
127 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
127 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
128 | 128 | } else { |
129 | 129 | $events = []; |
130 | 130 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | 'number' => $dayCalObj->thisDay(), |
190 | 190 | 'isSelected' => $dayCalObj->isSelected(), |
191 | 191 | ]; |
192 | - $day = $dayCalObj->thisDay(); |
|
192 | + $day = $dayCalObj->thisDay(); |
|
193 | 193 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
194 | 194 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
195 | 195 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -219,15 +219,15 @@ discard block |
||
219 | 219 | // Making navig data |
220 | 220 | $navig = [ |
221 | 221 | 'page' => $extcalConfig['start_page'], |
222 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
222 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
223 | 223 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
224 | 224 | ]; |
225 | 225 | |
226 | 226 | $horloge = []; |
227 | 227 | $horloge['display'] = ('' != trim($options[11])); |
228 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
229 | - $horloge['width'] = $options[12] . 'px'; |
|
230 | - $horloge['height'] = $options[13] . 'px'; |
|
228 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
229 | + $horloge['width'] = $options[12].'px'; |
|
230 | + $horloge['height'] = $options[13].'px'; |
|
231 | 231 | |
232 | 232 | $ret = [ |
233 | 233 | 'imageParam' => $imageParam, |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | */ |
254 | 254 | function bExtcalMinicalEdit($options) |
255 | 255 | { |
256 | - require_once __DIR__ . '/../class/form/spin/formspin.php'; |
|
256 | + require_once __DIR__.'/../class/form/spin/formspin.php'; |
|
257 | 257 | global $xoopsUser; |
258 | 258 | |
259 | 259 | // $t = print_r(get_defined_vars(),true); |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | $imageCatHandler = xoops_getHandler('imagecategory'); |
275 | 275 | |
276 | 276 | //===================================================================== |
277 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
277 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
278 | 278 | |
279 | 279 | $k = 0; |
280 | 280 | $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
316 | 316 | $form->addElement($xfValue[$k], false); |
317 | 317 | //===================================================================== |
318 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
318 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
319 | 319 | |
320 | 320 | $t = [ |
321 | 321 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -354,9 +354,9 @@ discard block |
||
354 | 354 | $form->addElement($xfValue[$k], false); |
355 | 355 | |
356 | 356 | //===================================================================== |
357 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
357 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
358 | 358 | //--------------------------------------------------------------------- |
359 | - $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
359 | + $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
360 | 360 | $t = array_merge([' ' => _NONE], $t); |
361 | 361 | |
362 | 362 | $k = 11; |
@@ -441,12 +441,12 @@ discard block |
||
441 | 441 | // $src = $doc->createElement('src'); |
442 | 442 | $src = clone $tempSrc; |
443 | 443 | $src = $photo->appendChild($src); |
444 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
444 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
445 | 445 | $src->appendChild($value); |
446 | 446 | } |
447 | 447 | |
448 | 448 | // get completed xml document |
449 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
449 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
450 | 450 | } |
451 | 451 | |
452 | 452 | /**************************************************************************/ |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /******************************************************/ |
23 | 23 | /* Ajour JJD - Evenements par categries */ |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | global $xoopsUser, $extcalConfig; |
33 | 33 | |
34 | - require_once __DIR__ . '/../class/config.php'; |
|
34 | + require_once __DIR__.'/../class/config.php'; |
|
35 | 35 | |
36 | 36 | // Retriving module config |
37 | 37 | // $extcalConfig = ExtcalConfig::getHandler(); |
@@ -88,22 +88,22 @@ discard block |
||
88 | 88 | |
89 | 89 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
90 | 90 | |
91 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
92 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
93 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
91 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
92 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
93 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
94 | 94 | array_shift($options); |
95 | 95 | array_shift($options); |
96 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
96 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
97 | 97 | if (false === array_search(0, $options)) { |
98 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
98 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
99 | 99 | } else { |
100 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
100 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
101 | 101 | } |
102 | 102 | foreach ($cats as $cat) { |
103 | 103 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
104 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
104 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
105 | 105 | } else { |
106 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
106 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
107 | 107 | } |
108 | 108 | } |
109 | 109 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalRandomShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | |
65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
66 | 66 | |
67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
70 | 70 | array_shift($options); |
71 | 71 | array_shift($options); |
72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
73 | 73 | if (false === array_search(0, $options)) { |
74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
75 | 75 | } else { |
76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } |
78 | 78 | foreach ($cats as $cat) { |
79 | 79 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalUpcomingShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
52 | 52 | |
53 | 53 | /* ========================================================================== */ |
54 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
55 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
56 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
57 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
54 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
55 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
56 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
57 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
58 | 58 | /* ========================================================================== */ |
59 | 59 | |
60 | 60 | // Validate the date (day, month and year) |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'nbEvent' => $nbEvent, |
88 | 88 | 'nbDays' => $nbDays, |
89 | 89 | ]; |
90 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
90 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
91 | 91 | |
92 | 92 | //---------------------------- |
93 | 93 | |
@@ -114,27 +114,27 @@ discard block |
||
114 | 114 | |
115 | 115 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
116 | 116 | |
117 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
118 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
119 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
117 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
118 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
119 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
120 | 120 | |
121 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>'; |
|
121 | + $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>'; |
|
122 | 122 | |
123 | 123 | array_shift($options); |
124 | 124 | array_shift($options); |
125 | 125 | array_shift($options); |
126 | 126 | |
127 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
127 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
128 | 128 | if (false === array_search(0, $options)) { |
129 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
129 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
130 | 130 | } else { |
131 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
131 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
132 | 132 | } |
133 | 133 | foreach ($cats as $cat) { |
134 | 134 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
135 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
135 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
136 | 136 | } else { |
137 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
137 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | $form .= '</select>'; |