@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | //Kraven 30 |
22 | 22 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
23 | 23 | |
24 | -require_once XOOPS_ROOT_PATH . '/kernel/object.php'; |
|
24 | +require_once XOOPS_ROOT_PATH.'/kernel/object.php'; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Class EtablissementHandler. |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | if (!$skipPerm) { |
53 | 53 | $this->addCatPermCriteria($criteriaCompo, $user); |
54 | 54 | } |
55 | - $ret =& $this->getObjects($criteriaCompo); |
|
55 | + $ret = & $this->getObjects($criteriaCompo); |
|
56 | 56 | if (isset($ret[0])) { |
57 | 57 | return $ret[0]; |
58 | 58 | } else { |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $asObject = true, |
75 | 75 | $id_as_key = true) //getAll($criteria = null, $asObject = false) |
76 | 76 | { |
77 | - $rst =& $this->getObjects($criteria, $asObject); |
|
77 | + $rst = & $this->getObjects($criteria, $asObject); |
|
78 | 78 | if ($asObject) { |
79 | 79 | return $rst; |
80 | 80 | } else { |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | |
5 | 5 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
6 | 6 | |
7 | -require_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; |
|
7 | +require_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php'; |
|
8 | 8 | |
9 | 9 | $moduleDirName = basename(dirname(__DIR__)); |
10 | 10 | Extcal\Helper::getInstance()->loadLanguage('main'); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public function getFormatedDate($format, $timestamp) |
94 | 94 | { |
95 | - $patterns = [ |
|
95 | + $patterns = [ |
|
96 | 96 | '/January/', |
97 | 97 | '/February/', |
98 | 98 | '/March/', |
@@ -145,18 +145,18 @@ discard block |
||
145 | 145 | _CAL_OCTOBER, |
146 | 146 | _CAL_NOVEMBER, |
147 | 147 | _CAL_DECEMBER, |
148 | - substr(_CAL_JANUARY, 0, 3) . ' ', |
|
149 | - substr(_CAL_FEBRUARY, 0, 3) . ' ', |
|
150 | - substr(_CAL_MARCH, 0, 3) . ' ', |
|
151 | - substr(_CAL_APRIL, 0, 3) . ' ', |
|
152 | - substr(_CAL_MAY, 0, 3) . ' ', |
|
153 | - substr(_CAL_JUNE, 0, 3) . ' ', |
|
154 | - substr(_CAL_JULY, 0, 3) . ' ', |
|
155 | - substr(_CAL_AUGUST, 0, 3) . ' ', |
|
156 | - substr(_CAL_SEPTEMBER, 0, 3) . ' ', |
|
157 | - substr(_CAL_OCTOBER, 0, 3) . ' ', |
|
158 | - substr(_CAL_NOVEMBER, 0, 3) . ' ', |
|
159 | - substr(_CAL_DECEMBER, 0, 3) . ' ', |
|
148 | + substr(_CAL_JANUARY, 0, 3).' ', |
|
149 | + substr(_CAL_FEBRUARY, 0, 3).' ', |
|
150 | + substr(_CAL_MARCH, 0, 3).' ', |
|
151 | + substr(_CAL_APRIL, 0, 3).' ', |
|
152 | + substr(_CAL_MAY, 0, 3).' ', |
|
153 | + substr(_CAL_JUNE, 0, 3).' ', |
|
154 | + substr(_CAL_JULY, 0, 3).' ', |
|
155 | + substr(_CAL_AUGUST, 0, 3).' ', |
|
156 | + substr(_CAL_SEPTEMBER, 0, 3).' ', |
|
157 | + substr(_CAL_OCTOBER, 0, 3).' ', |
|
158 | + substr(_CAL_NOVEMBER, 0, 3).' ', |
|
159 | + substr(_CAL_DECEMBER, 0, 3).' ', |
|
160 | 160 | _CAL_SUNDAY, |
161 | 161 | _CAL_MONDAY, |
162 | 162 | _CAL_TUESDAY, |
@@ -164,13 +164,13 @@ discard block |
||
164 | 164 | _CAL_THURSDAY, |
165 | 165 | _CAL_FRIDAY, |
166 | 166 | _CAL_SATURDAY, |
167 | - substr(_CAL_SUNDAY, 0, 3) . ' ', |
|
168 | - substr(_CAL_MONDAY, 0, 3) . ' ', |
|
169 | - substr(_CAL_TUESDAY, 0, 3) . ' ', |
|
170 | - substr(_CAL_WEDNESDAY, 0, 3) . ' ', |
|
171 | - substr(_CAL_THURSDAY, 0, 3) . ' ', |
|
172 | - substr(_CAL_FRIDAY, 0, 3) . ' ', |
|
173 | - substr(_CAL_SATURDAY, 0, 3) . ' ', |
|
167 | + substr(_CAL_SUNDAY, 0, 3).' ', |
|
168 | + substr(_CAL_MONDAY, 0, 3).' ', |
|
169 | + substr(_CAL_TUESDAY, 0, 3).' ', |
|
170 | + substr(_CAL_WEDNESDAY, 0, 3).' ', |
|
171 | + substr(_CAL_THURSDAY, 0, 3).' ', |
|
172 | + substr(_CAL_FRIDAY, 0, 3).' ', |
|
173 | + substr(_CAL_SATURDAY, 0, 3).' ', |
|
174 | 174 | ]; |
175 | 175 | |
176 | 176 | return preg_replace($patterns, $replacements, date($format, $timestamp)); |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | array_shift($eventOptions); |
213 | 213 | $day = ''; |
214 | 214 | foreach ($eventOptions as $option) { |
215 | - $day .= ' ' . $daysName[$option] . ', '; |
|
215 | + $day .= ' '.$daysName[$option].', '; |
|
216 | 216 | } |
217 | 217 | $ret = sprintf(_MD_EXTCAL_RR_WEEKLY, $day, $interval); |
218 | 218 | |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | array_shift($eventOptions); |
332 | 332 | $month = ''; |
333 | 333 | foreach ($eventOptions as $option) { |
334 | - $month .= ' ' . $monthName[$option] . ', '; |
|
334 | + $month .= ' '.$monthName[$option].', '; |
|
335 | 335 | } |
336 | 336 | $dayString = $day; |
337 | 337 | if (array_key_exists($day, $monthDays)) { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | if (!$skipPerm) { |
130 | 130 | $this->addCatPermCriteria($criteriaCompo, $GLOBALS['xoopsUser']); |
131 | 131 | } |
132 | - $ret =& $this->getObjects($criteriaCompo); |
|
132 | + $ret = & $this->getObjects($criteriaCompo); |
|
133 | 133 | if (isset($ret[0])) { |
134 | 134 | return $ret[0]; |
135 | 135 | } else { |
@@ -186,10 +186,10 @@ discard block |
||
186 | 186 | $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view'); |
187 | 187 | $count = count($authorizedAccessCats); |
188 | 188 | if ($count > 0) { |
189 | - $in = '(' . $authorizedAccessCats[0]; |
|
189 | + $in = '('.$authorizedAccessCats[0]; |
|
190 | 190 | array_shift($authorizedAccessCats); |
191 | 191 | foreach ($authorizedAccessCats as $authorizedAccessCat) { |
192 | - $in .= ',' . $authorizedAccessCat; |
|
192 | + $in .= ','.$authorizedAccessCat; |
|
193 | 193 | } |
194 | 194 | $in .= ')'; |
195 | 195 | $criteria->add(new \Criteria('cat_id', $in, 'IN')); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | //Kraven 30 |
22 | 22 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
23 | 23 | |
24 | -require_once XOOPS_ROOT_PATH . '/kernel/object.php'; |
|
24 | +require_once XOOPS_ROOT_PATH.'/kernel/object.php'; |
|
25 | 25 | |
26 | 26 | //class Event extends \XoopsObject |
27 | 27 | //class extcal_etablissement extends \XoopsObject |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | |
72 | 72 | $title = $this->isNew() ? sprintf(_MD_EXTCAL_ETABLISSEMENT_ADD) : sprintf(_MD_EXTCAL_ETABLISSEMENT_EDIT); |
73 | 73 | |
74 | - require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
74 | + require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
75 | 75 | |
76 | 76 | $form = new \XoopsThemeForm($title, 'form', $action, 'post', true); |
77 | 77 | $form->setExtra('enctype="multipart/form-data"'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $form->addElement(new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_HORAIRES, 'horaires', $this->getVar('horaires'), 3, 40)); |
91 | 91 | $form->addElement(new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_DIVERS, 'divers', $this->getVar('divers'), 5, 40)); |
92 | 92 | //$form->addElement( new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_TARIFS, 'tarifs', $this->getVar("tarifs"), 5, 40)); |
93 | - $form->addElement(new \XoopsFormText(_MD_EXTCAL_ETABLISSEMENT_TARIFS . ' ( ' . _MD_EXTCAL_DEVISE2 . ' )', 'tarifs', 20, 20, $this->getVar('tarifs')), false); |
|
93 | + $form->addElement(new \XoopsFormText(_MD_EXTCAL_ETABLISSEMENT_TARIFS.' ( '._MD_EXTCAL_DEVISE2.' )', 'tarifs', 20, 20, $this->getVar('tarifs')), false); |
|
94 | 94 | |
95 | 95 | //$form->addElement( new \XoopsFormTextArea(_MD_EXTCAL_ETABLISSEMENT_MAP, 'map', $this->getVar("map"), 5, 40)); |
96 | 96 | $form->addElement(new \XoopsFormText(_MD_EXTCAL_ETABLISSEMENT_MAP, 'map', 150, 255, $this->getVar('map')), false); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | //Logo |
99 | 99 | $file_tray = new \XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 2), ''); |
100 | 100 | if ('' != $this->getVar('logo')) { |
101 | - $file_tray->addElement(new \XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/etablissement/' . $this->getVar('logo') . "' name='image' id='image' alt=''><br><br>")); |
|
101 | + $file_tray->addElement(new \XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/etablissement/'.$this->getVar('logo')."' name='image' id='image' alt=''><br><br>")); |
|
102 | 102 | $check_del_img = new \XoopsFormCheckBox('', 'delimg'); |
103 | 103 | $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG); |
104 | 104 | $file_tray->addElement($check_del_img); |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | } |
110 | 110 | $file_img->setExtra("size ='40'"); |
111 | 111 | $file_tray->addElement($file_img); |
112 | - $msg = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(3145728 / 1000), 500, 500); |
|
113 | - $file_label = new \XoopsFormLabel('', '<br>' . $msg); |
|
112 | + $msg = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (3145728 / 1000), 500, 500); |
|
113 | + $file_label = new \XoopsFormLabel('', '<br>'.$msg); |
|
114 | 114 | $file_tray->addElement($file_label); |
115 | 115 | $form->addElement($file_tray); |
116 | 116 | $form->addElement(new \XoopsFormHidden('file', $this->getVar('logo'))); |
@@ -21,8 +21,8 @@ |
||
21 | 21 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
22 | 22 | |
23 | 23 | // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
24 | -require_once __DIR__ . '/perm.php'; |
|
25 | -require_once __DIR__ . '/time.php'; |
|
24 | +require_once __DIR__.'/perm.php'; |
|
25 | +require_once __DIR__.'/time.php'; |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Class Category. |
@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | |
23 | 23 | use XoopsModules\Extcal; |
24 | 24 | |
25 | -require_once __DIR__ . '/../../../class/uploader.php'; |
|
26 | -require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
25 | +require_once __DIR__.'/../../../class/uploader.php'; |
|
26 | +require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
27 | 27 | // require_once __DIR__ . '/../class/Utility.php'; |
28 | -require_once __DIR__ . '/constantes.php'; |
|
29 | -require_once __DIR__ . '/../../../class/template.php'; |
|
28 | +require_once __DIR__.'/constantes.php'; |
|
29 | +require_once __DIR__.'/../../../class/template.php'; |
|
30 | 30 | |
31 | 31 | /******************************************************************** |
32 | 32 | * |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $action = ''; //a voir JJD |
141 | 141 | $message = sprintf($tplMessage, $acteur['name']); |
142 | 142 | //$subject .= ' (' . rand(1, 100) . ')'; |
143 | - $subject .= ' - ' . $acteur['name']; |
|
143 | + $subject .= ' - '.$acteur['name']; |
|
144 | 144 | //-------------------------------------------------------------- |
145 | 145 | //Chargement du template dans le dossier de langue |
146 | 146 | //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html'; |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | if (_EXTCAL_HEADER_HTML == $mode) { |
183 | 183 | $template = 'extcal_mail_member_html.tpl'; |
184 | 184 | } |
185 | - $mail_body = $tpl->fetch('db:' . $template); |
|
185 | + $mail_body = $tpl->fetch('db:'.$template); |
|
186 | 186 | |
187 | 187 | extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|'); |
188 | 188 | |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | $header = []; |
316 | 316 | $header[] = "From: {$emailSender}"; |
317 | 317 | $header[] = "Reply-To: {$emailSender}"; |
318 | - $header[] = 'X-Mailer: PHP/' . PHP_VERSION; |
|
318 | + $header[] = 'X-Mailer: PHP/'.PHP_VERSION; |
|
319 | 319 | |
320 | 320 | if (_EXTCAL_HEADER_HTML == $mode) { |
321 | 321 | $header[] = 'MIME-Version: 1.0'; |
@@ -22,34 +22,34 @@ discard block |
||
22 | 22 | |
23 | 23 | function getConfig() |
24 | 24 | { |
25 | - return (object)[ |
|
26 | - 'name' => strtoupper($moduleDirName) . ' Module Configurator', |
|
25 | + return (object) [ |
|
26 | + 'name' => strtoupper($moduleDirName).' Module Configurator', |
|
27 | 27 | 'paths' => [ |
28 | 28 | 'dirname' => $moduleDirName, |
29 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
30 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
31 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
32 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
33 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
29 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
30 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
31 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
32 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
33 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
34 | 34 | ], |
35 | 35 | 'uploadFolders' => [ |
36 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
37 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
38 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails' |
|
36 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
37 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
38 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails' |
|
39 | 39 | ], |
40 | 40 | 'copyBlankFiles' => [ |
41 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails' |
|
41 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
42 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails' |
|
43 | 43 | ], |
44 | 44 | |
45 | 45 | 'copyTestFolders' => [ |
46 | 46 | [ |
47 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images', |
|
48 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
47 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images', |
|
48 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
49 | 49 | ], |
50 | 50 | [ |
51 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
|
52 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs', |
|
51 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/thumbs', |
|
52 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/thumbs', |
|
53 | 53 | ] |
54 | 54 | ], |
55 | 55 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | '/images', |
72 | 72 | ], |
73 | 73 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
74 | - <img src='" . XOOPS_URL . '/modules/' . $moduleDirName . '_AUTHOR_LOGOIMG' . '\' alt=\'XOOPS Project\' /></a>', |
|
74 | + <img src='" . XOOPS_URL.'/modules/'.$moduleDirName.'_AUTHOR_LOGOIMG'.'\' alt=\'XOOPS Project\' /></a>', |
|
75 | 75 | |
76 | 76 | ]; |
77 | 77 | } |
@@ -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 | } |