@@ -21,7 +21,7 @@ |
||
| 21 | 21 | // defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
| 22 | 22 | |
| 23 | 23 | // require_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
| 24 | -require_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
| 24 | +require_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Class File. |
@@ -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)) { |
@@ -34,19 +34,19 @@ discard block |
||
| 34 | 34 | // $sql .= " WHERE metakey='version' LIMIT 1"; |
| 35 | 35 | // $query = $GLOBALS['xoopsDB']->query($sql); |
| 36 | 36 | // list($meta) = $GLOBALS['xoopsDB']->fetchRow($query); |
| 37 | - $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>" . constant('CO_' . $moduleDirNameUpper . '_IMAGEINFO') . "</legend>\n"; |
|
| 37 | + $html .= "<fieldset><legend style='font-weight: bold; color: #900;'>".constant('CO_'.$moduleDirNameUpper.'_IMAGEINFO')."</legend>\n"; |
|
| 38 | 38 | $html .= "<div style='padding: 8px;'>\n"; |
| 39 | 39 | // $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_METAVERSION') . $meta . "</div>\n"; |
| 40 | 40 | // $html .= "<br>\n"; |
| 41 | 41 | // $html .= "<br>\n"; |
| 42 | - $html .= '<div>' . constant('CO_' . $moduleDirNameUpper . '_SPHPINI') . "</div>\n"; |
|
| 42 | + $html .= '<div>'.constant('CO_'.$moduleDirNameUpper.'_SPHPINI')."</div>\n"; |
|
| 43 | 43 | $html .= "<ul>\n"; |
| 44 | 44 | // |
| 45 | - $gdlib = function_exists('gd_info') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_GDON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_GDOFF') . '</span>'; |
|
| 46 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS') . $gdlib; |
|
| 45 | + $gdlib = function_exists('gd_info') ? '<span style="color: green;">'.constant('CO_'.$moduleDirNameUpper.'_GDON').'</span>' : '<span style="color: red;">'.constant('CO_'.$moduleDirNameUpper.'_GDOFF').'</span>'; |
|
| 46 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS').$gdlib; |
|
| 47 | 47 | if (function_exists('gd_info')) { |
| 48 | 48 | if (true === ($gdlib = gd_info())) { |
| 49 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_GDLIBVERSION') . '<b>' . $gdlib['GD Version'] . '</b>'; |
|
| 49 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_GDLIBVERSION').'<b>'.$gdlib['GD Version'].'</b>'; |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | // |
@@ -56,18 +56,18 @@ discard block |
||
| 56 | 56 | // $registerglobals = (!ini_get('register_globals')) ? "<span style=\"color: green;\">" . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>' : "<span style=\"color: red;\">" . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>'; |
| 57 | 57 | // $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_REGISTERGLOBALS . $registerglobals; |
| 58 | 58 | // |
| 59 | - $downloads = ini_get('file_uploads') ? '<span style="color: green;">' . constant('CO_' . $moduleDirNameUpper . '_ON') . '</span>' : '<span style="color: red;">' . constant('CO_' . $moduleDirNameUpper . '_OFF') . '</span>'; |
|
| 60 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS') . $downloads; |
|
| 59 | + $downloads = ini_get('file_uploads') ? '<span style="color: green;">'.constant('CO_'.$moduleDirNameUpper.'_ON').'</span>' : '<span style="color: red;">'.constant('CO_'.$moduleDirNameUpper.'_OFF').'</span>'; |
|
| 60 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS').$downloads; |
|
| 61 | 61 | // |
| 62 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE') . ' <b><span style="color: blue;">' . ini_get('upload_max_filesize') . "</span></b>\n"; |
|
| 63 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE') . ' <b><span style="color: blue;">' . ini_get('post_max_size') . "</span></b>\n"; |
|
| 64 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT') . ' <b><span style="color: blue;">' . ini_get('memory_limit') . "</span></b>\n"; |
|
| 62 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE').' <b><span style="color: blue;">'.ini_get('upload_max_filesize')."</span></b>\n"; |
|
| 63 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE').' <b><span style="color: blue;">'.ini_get('post_max_size')."</span></b>\n"; |
|
| 64 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT').' <b><span style="color: blue;">'.ini_get('memory_limit')."</span></b>\n"; |
|
| 65 | 65 | $html .= "</ul>\n"; |
| 66 | 66 | $html .= "<ul>\n"; |
| 67 | - $html .= '<li>' . constant('CO_' . $moduleDirNameUpper . '_SERVERPATH') . ' <b>' . XOOPS_ROOT_PATH . "</b>\n"; |
|
| 67 | + $html .= '<li>'.constant('CO_'.$moduleDirNameUpper.'_SERVERPATH').' <b>'.XOOPS_ROOT_PATH."</b>\n"; |
|
| 68 | 68 | $html .= "</ul>\n"; |
| 69 | 69 | $html .= "<br>\n"; |
| 70 | - $html .= constant('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC') . "\n"; |
|
| 70 | + $html .= constant('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC')."\n"; |
|
| 71 | 71 | $html .= '</div>'; |
| 72 | 72 | $html .= '</fieldset><br>'; |
| 73 | 73 | |
@@ -23,34 +23,34 @@ discard block |
||
| 23 | 23 | $moduleDirName = basename(dirname(__DIR__)); |
| 24 | 24 | $moduleDirNameUpper = strtoupper($moduleDirName); |
| 25 | 25 | |
| 26 | - return (object)[ |
|
| 27 | - 'name' => strtoupper($moduleDirName) . ' Module Configurator', |
|
| 26 | + return (object) [ |
|
| 27 | + 'name' => strtoupper($moduleDirName).' Module Configurator', |
|
| 28 | 28 | 'paths' => [ |
| 29 | 29 | 'dirname' => $moduleDirName, |
| 30 | - 'admin' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin', |
|
| 31 | - 'modPath' => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName, |
|
| 32 | - 'modUrl' => XOOPS_URL . '/modules/' . $moduleDirName, |
|
| 33 | - 'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 34 | - 'uploadUrl' => XOOPS_UPLOAD_URL . '/' . $moduleDirName, |
|
| 30 | + 'admin' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/admin', |
|
| 31 | + 'modPath' => XOOPS_ROOT_PATH.'/modules/'.$moduleDirName, |
|
| 32 | + 'modUrl' => XOOPS_URL.'/modules/'.$moduleDirName, |
|
| 33 | + 'uploadPath' => XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 34 | + 'uploadUrl' => XOOPS_UPLOAD_URL.'/'.$moduleDirName, |
|
| 35 | 35 | ], |
| 36 | 36 | 'uploadFolders' => [ |
| 37 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName, |
|
| 38 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
| 39 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails' |
|
| 37 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName, |
|
| 38 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
| 39 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails' |
|
| 40 | 40 | ], |
| 41 | 41 | 'copyBlankFiles' => [ |
| 42 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
| 43 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/thumbnails' |
|
| 42 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
| 43 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images/thumbnails' |
|
| 44 | 44 | ], |
| 45 | 45 | |
| 46 | 46 | 'copyTestFolders' => [ |
| 47 | 47 | [ |
| 48 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/images', |
|
| 49 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images', |
|
| 48 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/images', |
|
| 49 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/images', |
|
| 50 | 50 | ], |
| 51 | 51 | [ |
| 52 | - XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/testdata/thumbs', |
|
| 53 | - XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/thumbs', |
|
| 52 | + XOOPS_ROOT_PATH.'/modules/'.$moduleDirName.'/testdata/thumbs', |
|
| 53 | + XOOPS_UPLOAD_PATH.'/'.$moduleDirName.'/thumbs', |
|
| 54 | 54 | ] |
| 55 | 55 | ], |
| 56 | 56 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | '/images', |
| 73 | 73 | ], |
| 74 | 74 | 'modCopyright' => "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
| 75 | - <img src='" . XOOPS_URL . '/modules/' . $moduleDirName . '_AUTHOR_LOGOIMG' . '\' alt=\'XOOPS Project\' /></a>', |
|
| 75 | + <img src='" . XOOPS_URL.'/modules/'.$moduleDirName.'_AUTHOR_LOGOIMG'.'\' alt=\'XOOPS Project\' /></a>', |
|
| 76 | 76 | |
| 77 | 77 | ]; |
| 78 | 78 | } |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | new Calendar_Day( |
| 169 | 169 | date('Y', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))), |
| 170 | 170 | date('n', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))), |
| 171 | - date('j', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))) |
|
| 171 | + date('j', xoops_getUserTimestamp(time(), $timeHandler->getUserTimeZone($GLOBALS['xoopsUser']))) |
|
| 172 | 172 | ), |
| 173 | 173 | ]; |
| 174 | 174 | |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | 22 | global $extcalConfig, $xoopsUser; |
| 23 | -require_once dirname(__DIR__) . '/include/constantes.php'; |
|
| 23 | +require_once dirname(__DIR__).'/include/constantes.php'; |
|
| 24 | 24 | // require_once dirname(__DIR__) . '/class/Utility.php'; |
| 25 | 25 | // require_once dirname(__DIR__) . '/class/tableForm.php'; |
| 26 | 26 | //--------------------------------------------------------------------------- |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | // // require_once dirname(__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 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | 'number' => $dayCalObj->thisDay(), |
| 194 | 194 | 'isSelected' => $dayCalObj->isSelected(), |
| 195 | 195 | ]; |
| 196 | - $day = $dayCalObj->thisDay(); |
|
| 196 | + $day = $dayCalObj->thisDay(); |
|
| 197 | 197 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
| 198 | 198 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
| 199 | 199 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -223,15 +223,15 @@ discard block |
||
| 223 | 223 | // Making navig data |
| 224 | 224 | $navig = [ |
| 225 | 225 | 'page' => $extcalConfig['start_page'], |
| 226 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 226 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 227 | 227 | 'name' => $timeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 228 | 228 | ]; |
| 229 | 229 | |
| 230 | 230 | $horloge = []; |
| 231 | 231 | $horloge['display'] = ('' != trim($options[11])); |
| 232 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
| 233 | - $horloge['width'] = $options[12] . 'px'; |
|
| 234 | - $horloge['height'] = $options[13] . 'px'; |
|
| 232 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
| 233 | + $horloge['width'] = $options[12].'px'; |
|
| 234 | + $horloge['height'] = $options[13].'px'; |
|
| 235 | 235 | |
| 236 | 236 | $ret = [ |
| 237 | 237 | 'imageParam' => $imageParam, |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | $imageCatHandler = xoops_getHandler('imagecategory'); |
| 279 | 279 | |
| 280 | 280 | //===================================================================== |
| 281 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
| 281 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
| 282 | 282 | |
| 283 | 283 | $k = 0; |
| 284 | 284 | $xfValue[$k] = new \XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | $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 = ''); |
| 320 | 320 | $form->addElement($xfValue[$k], false); |
| 321 | 321 | //===================================================================== |
| 322 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
| 322 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
| 323 | 323 | |
| 324 | 324 | $t = [ |
| 325 | 325 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -358,9 +358,9 @@ discard block |
||
| 358 | 358 | $form->addElement($xfValue[$k], false); |
| 359 | 359 | |
| 360 | 360 | //===================================================================== |
| 361 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
| 361 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
| 362 | 362 | //--------------------------------------------------------------------- |
| 363 | - $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
| 363 | + $t = \XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
| 364 | 364 | $t = array_merge([' ' => _NONE], $t); |
| 365 | 365 | |
| 366 | 366 | $k = 11; |
@@ -445,12 +445,12 @@ discard block |
||
| 445 | 445 | // $src = $doc->createElement('src'); |
| 446 | 446 | $src = clone $tempSrc; |
| 447 | 447 | $src = $photo->appendChild($src); |
| 448 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
| 448 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
| 449 | 449 | $src->appendChild($value); |
| 450 | 450 | } |
| 451 | 451 | |
| 452 | 452 | // get completed xml document |
| 453 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
| 453 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
| 454 | 454 | } |
| 455 | 455 | |
| 456 | 456 | /**************************************************************************/ |
@@ -19,11 +19,11 @@ discard block |
||
| 19 | 19 | * @author XOOPS Development Team, |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 23 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 22 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 23 | +require_once __DIR__.'/include/constantes.php'; |
|
| 24 | 24 | $params = ['view' => _EXTCAL_NAV_DAY, 'file' => _EXTCAL_FILE_DAY]; |
| 25 | 25 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 26 | -require_once __DIR__ . '/header.php'; |
|
| 26 | +require_once __DIR__.'/header.php'; |
|
| 27 | 27 | |
| 28 | 28 | /** @var Extcal\Helper $helper */ |
| 29 | 29 | $helper = Extcal\Helper::getInstance(); |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | 'cat' => $cat, |
| 57 | 57 | 'externalKeys' => 'cat_id', |
| 58 | 58 | ]; |
| 59 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 59 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 60 | 60 | /**********************************************************************/ |
| 61 | 61 | $eventsArray = $events; |
| 62 | 62 | |
@@ -102,21 +102,21 @@ discard block |
||
| 102 | 102 | |
| 103 | 103 | $navig = [ |
| 104 | 104 | 'prev' => [ |
| 105 | - 'uri' => 'year=' . $pDayCalObj->thisYear() . '&month=' . $pDayCalObj->thisMonth() . '&day=' . $pDayCalObj->thisDay(), |
|
| 105 | + 'uri' => 'year='.$pDayCalObj->thisYear().'&month='.$pDayCalObj->thisMonth().'&day='.$pDayCalObj->thisDay(), |
|
| 106 | 106 | 'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $pDayCalObj->getTimestamp()), |
| 107 | 107 | ], |
| 108 | 108 | 'this' => [ |
| 109 | - 'uri' => 'year=' . $dayCalObj->thisYear() . '&month=' . $dayCalObj->thisMonth() . '&day=' . $dayCalObj->thisDay(), |
|
| 109 | + 'uri' => 'year='.$dayCalObj->thisYear().'&month='.$dayCalObj->thisMonth().'&day='.$dayCalObj->thisDay(), |
|
| 110 | 110 | 'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $dayCalObj->getTimestamp()), |
| 111 | 111 | ], |
| 112 | 112 | 'next' => [ |
| 113 | - 'uri' => 'year=' . $nDayCalObj->thisYear() . '&month=' . $nDayCalObj->thisMonth() . '&day=' . $nDayCalObj->thisDay(), |
|
| 113 | + 'uri' => 'year='.$nDayCalObj->thisYear().'&month='.$nDayCalObj->thisMonth().'&day='.$nDayCalObj->thisDay(), |
|
| 114 | 114 | 'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_day'), $nDayCalObj->getTimestamp()), |
| 115 | 115 | ], |
| 116 | 116 | ]; |
| 117 | 117 | |
| 118 | 118 | // Title of the page |
| 119 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
| 119 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
| 120 | 120 | |
| 121 | 121 | // Assigning navig data to the template |
| 122 | 122 | $xoopsTpl->assign('navig', $navig); |
@@ -175,4 +175,4 @@ discard block |
||
| 175 | 175 | $xoopsTpl->assign('lang', $lang); |
| 176 | 176 | $xoopsTpl->assign('view', 'day'); |
| 177 | 177 | |
| 178 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 178 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -19,10 +19,10 @@ discard block |
||
| 19 | 19 | |
| 20 | 20 | use XoopsModules\Extcal; |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 22 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 23 | 23 | |
| 24 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 25 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 24 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 25 | +require_once __DIR__.'/include/constantes.php'; |
|
| 26 | 26 | |
| 27 | 27 | $permHandler = Extcal\Perm::getHandler(); |
| 28 | 28 | $xoopsUser = $xoopsUser ?: null; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | $params = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT]; |
| 36 | 36 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
| 37 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 37 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 38 | 38 | /* ========================================================================== */ |
| 39 | 39 | |
| 40 | 40 | // Tooltips include |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | // Getting eXtCal object's handler |
| 49 | 49 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
| 50 | 50 | |
| 51 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
| 51 | +require_once XOOPS_ROOT_PATH.'/header.php'; |
|
| 52 | 52 | |
| 53 | 53 | // Title of the page |
| 54 | 54 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -57,4 +57,4 @@ discard block |
||
| 57 | 57 | $form = $eventHandler->getEventForm('user', $action, ['event_id' => $eventId]); |
| 58 | 58 | $form->display(); |
| 59 | 59 | |
| 60 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
| 60 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
|
@@ -2,11 +2,11 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | use XoopsModules\Extcal; |
| 4 | 4 | |
| 5 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 6 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 7 | -require_once __DIR__ . '/header.php'; |
|
| 5 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 6 | +require_once __DIR__.'/include/constantes.php'; |
|
| 7 | +require_once __DIR__.'/header.php'; |
|
| 8 | 8 | |
| 9 | -require_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
| 9 | +require_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
| 10 | 10 | |
| 11 | 11 | /** @var Extcal\Helper $helper */ |
| 12 | 12 | $helper = Extcal\Helper::getInstance(); |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | $events = $eventHandler->getUpcommingEvent($helper->getConfig('rss_nb_event'), $cat); |
| 27 | 27 | if (is_array($events)) { |
| 28 | 28 | $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); |
| 29 | - $tpl->assign('channel_link', XOOPS_URL . '/'); |
|
| 29 | + $tpl->assign('channel_link', XOOPS_URL.'/'); |
|
| 30 | 30 | $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES))); |
| 31 | 31 | $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss')); |
| 32 | 32 | $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']); |
@@ -34,14 +34,14 @@ discard block |
||
| 34 | 34 | $tpl->assign('channel_category', 'Event'); |
| 35 | 35 | $tpl->assign('channel_generator', 'XOOPS'); |
| 36 | 36 | $tpl->assign('channel_language', _LANGCODE); |
| 37 | - $tpl->assign('image_url', XOOPS_URL . '/modules/extcal/assets/images/extcal_logo.png'); |
|
| 37 | + $tpl->assign('image_url', XOOPS_URL.'/modules/extcal/assets/images/extcal_logo.png'); |
|
| 38 | 38 | $tpl->assign('image_width', 92); |
| 39 | 39 | $tpl->assign('image_height', 52); |
| 40 | 40 | foreach ($events as $event) { |
| 41 | 41 | $tpl->append('items', [ |
| 42 | 42 | 'title' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_title'), ENT_QUOTES)), |
| 43 | - 'link' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
| 44 | - 'guid' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
| 43 | + 'link' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
| 44 | + 'guid' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
| 45 | 45 | 'pubdate' => formatTimestamp($event->getVar('event_start'), 'rss'), |
| 46 | 46 | 'description' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_desc'), ENT_QUOTES)), |
| 47 | 47 | ]); |
@@ -37,9 +37,9 @@ |
||
| 37 | 37 | if ('add' === $_POST['mode']) { |
| 38 | 38 | $event = $eventHandler->getEvent(\Xmf\Request::getInt('event', 0, 'POST'), $xoopsUser); |
| 39 | 39 | $eventNotMemberHandler->createEventNotMember([ |
| 40 | - 'event_id' => \Xmf\Request::getInt('event', 0, 'POST'), |
|
| 41 | - 'uid' => $xoopsUser->getVar('uid'), |
|
| 42 | - ]); |
|
| 40 | + 'event_id' => \Xmf\Request::getInt('event', 0, 'POST'), |
|
| 41 | + 'uid' => $xoopsUser->getVar('uid'), |
|
| 42 | + ]); |
|
| 43 | 43 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
| 44 | 44 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_ADDED_TO_EVENT; |
| 45 | 45 | |
@@ -1,10 +1,10 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use XoopsModules\Extcal; |
| 4 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
| 4 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
| 5 | 5 | |
| 6 | -require_once __DIR__ . '/include/constantes.php'; |
|
| 7 | -require_once __DIR__ . '/include/mail_fnc.php'; |
|
| 6 | +require_once __DIR__.'/include/constantes.php'; |
|
| 7 | +require_once __DIR__.'/include/mail_fnc.php'; |
|
| 8 | 8 | |
| 9 | 9 | /* |
| 10 | 10 | Extcal\Utility::echoArray($_POST); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | $member_uid = $xoopsUser->getVar('uid'); |
| 25 | 25 | |
| 26 | 26 | if (!$GLOBALS['xoopsSecurity']->check()) { |
| 27 | - redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 27 | + redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if ($xoopsUser && $helper->getConfig('whosnot_going')) { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT; |
| 52 | 52 | } |
| 53 | 53 | } |
| 54 | - redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false); |
|
| 54 | + redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false); |
|
| 55 | 55 | } else { |
| 56 | 56 | redirect_header('index.php', 3, _NOPERM, false); |
| 57 | 57 | } |