@@ -159,9 +159,9 @@ |
||
| 159 | 159 | $tHex = array('', '', '', ''); |
| 160 | 160 | |
| 161 | 161 | $tHex[0] = $aColors[0]; |
| 162 | - $tHex[1] = substr('00' . dechex($aColors[1]), -2); |
|
| 163 | - $tHex[2] = substr('00' . dechex($aColors[2]), -2); |
|
| 164 | - $tHex[3] = substr('00' . dechex($aColors[3]), -2); |
|
| 162 | + $tHex[1] = substr('00'.dechex($aColors[1]), -2); |
|
| 163 | + $tHex[2] = substr('00'.dechex($aColors[2]), -2); |
|
| 164 | + $tHex[3] = substr('00'.dechex($aColors[3]), -2); |
|
| 165 | 165 | |
| 166 | 166 | $colorHexa = implode('', $tHex); |
| 167 | 167 | |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | public function setMin($min) |
| 205 | 205 | { |
| 206 | - $this->_min = (int)$min; |
|
| 206 | + $this->_min = (int) $min; |
|
| 207 | 207 | } |
| 208 | 208 | /*-----------------------------------------------------------------*/ |
| 209 | 209 | /** |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | */ |
| 222 | 222 | public function setMax($max) |
| 223 | 223 | { |
| 224 | - $this->_max = (int)$max; |
|
| 224 | + $this->_max = (int) $max; |
|
| 225 | 225 | } |
| 226 | 226 | |
| 227 | 227 | /*-----------------------------------------------------------------*/ |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | public function setSmallIncrement($smallIncrement) |
| 244 | 244 | { |
| 245 | - $this->_smallIncrement = (int)$smallIncrement; |
|
| 245 | + $this->_smallIncrement = (int) $smallIncrement; |
|
| 246 | 246 | if ($this->_smallIncrement == 0) { |
| 247 | 247 | $this->_smallIncrement = 1; |
| 248 | 248 | } |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | */ |
| 265 | 265 | public function setLargeIncrement($largeIncrement) |
| 266 | 266 | { |
| 267 | - $this->_largeIncrement = (int)$largeIncrement; |
|
| 267 | + $this->_largeIncrement = (int) $largeIncrement; |
|
| 268 | 268 | if ($this->_largeIncrement == 0) { |
| 269 | 269 | $this->_largeIncrement = 10; |
| 270 | 270 | } |
@@ -405,7 +405,7 @@ discard block |
||
| 405 | 405 | $sFolderImg = "{$sSpinFolder}/images/{$this->getImgFolder()}/"; |
| 406 | 406 | |
| 407 | 407 | $prefixe = $this->getName(); |
| 408 | - $prefixe2 = 'spin' . $prefixe; |
|
| 408 | + $prefixe2 = 'spin'.$prefixe; |
|
| 409 | 409 | |
| 410 | 410 | $smallIncrement = $this->getSmallIncrement(); |
| 411 | 411 | $largeIncrement = $this->getLargeIncrement(); |
@@ -424,7 +424,7 @@ discard block |
||
| 424 | 424 | $t = array(); |
| 425 | 425 | |
| 426 | 426 | if ($this->_loadJS) { |
| 427 | - $js = $sSpinFolder . '/js/spin.js'; |
|
| 427 | + $js = $sSpinFolder.'/js/spin.js'; |
|
| 428 | 428 | $t[] = "<script src='{$js}' type='text/javascript'></script>"; |
| 429 | 429 | } |
| 430 | 430 | |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | //------------------------------------------------------- |
| 470 | 470 | |
| 471 | 471 | $t[] = ' </tr>'; |
| 472 | - $t[] = '</table>' . "\n"; |
|
| 472 | + $t[] = '</table>'."\n"; |
|
| 473 | 473 | $t[] = '</div>'; |
| 474 | 474 | //------------------------------------------- |
| 475 | 475 | $html = implode("\n", $t); |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
| 22 | 22 | $event = $eventHandler->getEvent($itemId, 0, true); |
| 23 | 23 | $item['name'] = $event->getVar('event_title'); |
| 24 | - $item['url'] = XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'); |
|
| 24 | + $item['url'] = XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'); |
|
| 25 | 25 | |
| 26 | 26 | return $item; |
| 27 | 27 | } |
@@ -144,8 +144,8 @@ |
||
| 144 | 144 | // Flag current day |
| 145 | 145 | $selectedDays = array( |
| 146 | 146 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
| 147 | - date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
|
| 148 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 147 | + date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
|
| 148 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 149 | 149 | ); |
| 150 | 150 | |
| 151 | 151 | // Build calendar object |
@@ -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 = array(); |
| 130 | 130 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | 'number' => $dayCalObj->thisDay(), |
| 188 | 188 | 'isSelected' => $dayCalObj->isSelected(), |
| 189 | 189 | ); |
| 190 | - $day = $dayCalObj->thisDay(); |
|
| 190 | + $day = $dayCalObj->thisDay(); |
|
| 191 | 191 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
| 192 | 192 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
| 193 | 193 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -217,15 +217,15 @@ discard block |
||
| 217 | 217 | // Making navig data |
| 218 | 218 | $navig = array( |
| 219 | 219 | 'page' => $extcalConfig['start_page'], |
| 220 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 220 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 221 | 221 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 222 | 222 | ); |
| 223 | 223 | |
| 224 | 224 | $horloge = array(); |
| 225 | 225 | $horloge['display'] = (trim($options[11]) != ''); |
| 226 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
| 227 | - $horloge['width'] = $options[12] . 'px'; |
|
| 228 | - $horloge['height'] = $options[13] . 'px'; |
|
| 226 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
| 227 | + $horloge['width'] = $options[12].'px'; |
|
| 228 | + $horloge['height'] = $options[13].'px'; |
|
| 229 | 229 | |
| 230 | 230 | $ret = array( |
| 231 | 231 | 'imageParam' => $imageParam, |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | function bExtcalMinicalEdit($options) |
| 253 | 253 | { |
| 254 | - require_once __DIR__ . '/../class/form/spin/formspin.php'; |
|
| 254 | + require_once __DIR__.'/../class/form/spin/formspin.php'; |
|
| 255 | 255 | global $xoopsUser; |
| 256 | 256 | |
| 257 | 257 | // $t = print_r(get_defined_vars(),true); |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | $imageCatHandler = xoops_getHandler('imagecategory'); |
| 273 | 273 | |
| 274 | 274 | //===================================================================== |
| 275 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
| 275 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
| 276 | 276 | |
| 277 | 277 | $k = 0; |
| 278 | 278 | $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
| 314 | 314 | $form->addElement($xfValue[$k], false); |
| 315 | 315 | //===================================================================== |
| 316 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
| 316 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
| 317 | 317 | |
| 318 | 318 | $t = array( |
| 319 | 319 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | $form->addElement($xfValue[$k], false); |
| 353 | 353 | |
| 354 | 354 | //===================================================================== |
| 355 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
| 355 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
| 356 | 356 | //--------------------------------------------------------------------- |
| 357 | - $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
| 357 | + $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
| 358 | 358 | $t = array_merge(array(' ' => _NONE), $t); |
| 359 | 359 | |
| 360 | 360 | $k = 11; |
@@ -437,12 +437,12 @@ discard block |
||
| 437 | 437 | // $src = $doc->createElement('src'); |
| 438 | 438 | $src = clone $tempSrc; |
| 439 | 439 | $src = $photo->appendChild($src); |
| 440 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
| 440 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
| 441 | 441 | $src->appendChild($value); |
| 442 | 442 | } |
| 443 | 443 | |
| 444 | 444 | // get completed xml document |
| 445 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
| 445 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
| 446 | 446 | } |
| 447 | 447 | |
| 448 | 448 | /**************************************************************************/ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | define('_AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT', "Module files don't exist"); |
| 94 | 94 | define('_AM_EXTCAL_MODULE_ADMIN_SUMMARY', 'eXtCal Administration Summary'); |
| 95 | 95 | define('_AM_EXTCAL_MULTIUPLOADS_NOT_OK', |
| 96 | - "The multiuploads component is not installed.<br><br><a href='http://xoops.kiolo.com/modules/mydownloads/'>Download here the multiuploads component</a><br><br>and install it in the folder 'class/xoopsform/'"); |
|
| 96 | + "The multiuploads component is not installed.<br><br><a href='http://xoops.kiolo.com/modules/mydownloads/'>Download here the multiuploads component</a><br><br>and install it in the folder 'class/xoopsform/'"); |
|
| 97 | 97 | define('_AM_EXTCAL_NAME', 'Name'); |
| 98 | 98 | define('_AM_EXTCAL_NOPERMSSET', 'Permission cannot be set: There are no Categories created yet! Please create a Category first.'); |
| 99 | 99 | define('_AM_EXTCAL_PENDING', 'Pending'); |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | define('_AM_EXTCAL_PREFERENCES', 'Preferences'); |
| 104 | 104 | define('_AM_EXTCAL_PUBLIC_PERM_MASK', 'Public permissions mask'); |
| 105 | 105 | define('_AM_EXTCAL_PUBLIC_PERM_MASK_INFO', |
| 106 | - "You can set here the default mask permission who will be apply to new category. Be careful to don't give excessive permissions here because all new category will give them."); |
|
| 106 | + "You can set here the default mask permission who will be apply to new category. Be careful to don't give excessive permissions here because all new category will give them."); |
|
| 107 | 107 | define('_AM_EXTCAL_REDIRECT_DELOK', 'successfully deleted'); |
| 108 | 108 | define('_AM_EXTCAL_START_DATE', 'Start Date'); |
| 109 | 109 | define('_AM_EXTCAL_SUBMIT_PERMISSION', 'Submit permission'); |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | public function testPrevDay_Array() |
| 28 | 28 | { |
| 29 | 29 | $this->assertEqual(array( |
| 30 | - 'year' => 2003, |
|
| 31 | - 'month' => 10, |
|
| 32 | - 'day' => 24, |
|
| 33 | - 'hour' => 0, |
|
| 34 | - 'minute' => 0, |
|
| 35 | - 'second' => 0, |
|
| 36 | - ), $this->cal->prevDay('array')); |
|
| 30 | + 'year' => 2003, |
|
| 31 | + 'month' => 10, |
|
| 32 | + 'day' => 24, |
|
| 33 | + 'hour' => 0, |
|
| 34 | + 'minute' => 0, |
|
| 35 | + 'second' => 0, |
|
| 36 | + ), $this->cal->prevDay('array')); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function testPrevHour() |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | public function testPrevDay_Array() |
| 28 | 28 | { |
| 29 | 29 | $this->assertEqual(array( |
| 30 | - 'year' => 2003, |
|
| 31 | - 'month' => 10, |
|
| 32 | - 'day' => 24, |
|
| 33 | - 'hour' => 0, |
|
| 34 | - 'minute' => 0, |
|
| 35 | - 'second' => 0, |
|
| 36 | - ), $this->cal->prevDay('array')); |
|
| 30 | + 'year' => 2003, |
|
| 31 | + 'month' => 10, |
|
| 32 | + 'day' => 24, |
|
| 33 | + 'hour' => 0, |
|
| 34 | + 'minute' => 0, |
|
| 35 | + 'second' => 0, |
|
| 36 | + ), $this->cal->prevDay('array')); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function testPrevSecond() |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | public function testPrevDay_Array() |
| 28 | 28 | { |
| 29 | 29 | $this->assertEqual(array( |
| 30 | - 'year' => 2003, |
|
| 31 | - 'month' => 10, |
|
| 32 | - 'day' => 24, |
|
| 33 | - 'hour' => 0, |
|
| 34 | - 'minute' => 0, |
|
| 35 | - 'second' => 0, |
|
| 36 | - ), $this->cal->prevDay('array')); |
|
| 30 | + 'year' => 2003, |
|
| 31 | + 'month' => 10, |
|
| 32 | + 'day' => 24, |
|
| 33 | + 'hour' => 0, |
|
| 34 | + 'minute' => 0, |
|
| 35 | + 'second' => 0, |
|
| 36 | + ), $this->cal->prevDay('array')); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | public function testPrevMinute() |
@@ -42,13 +42,13 @@ discard block |
||
| 42 | 42 | public function testPrevMonth_Array() |
| 43 | 43 | { |
| 44 | 44 | $this->assertEqual(array( |
| 45 | - 'year' => 2002, |
|
| 46 | - 'month' => 12, |
|
| 47 | - 'day' => 1, |
|
| 48 | - 'hour' => 0, |
|
| 49 | - 'minute' => 0, |
|
| 50 | - 'second' => 0, |
|
| 51 | - ), $this->cal->prevMonth('array')); |
|
| 45 | + 'year' => 2002, |
|
| 46 | + 'month' => 12, |
|
| 47 | + 'day' => 1, |
|
| 48 | + 'hour' => 0, |
|
| 49 | + 'minute' => 0, |
|
| 50 | + 'second' => 0, |
|
| 51 | + ), $this->cal->prevMonth('array')); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function testThisMonth() |
@@ -69,13 +69,13 @@ discard block |
||
| 69 | 69 | public function testPrevDay_Array() |
| 70 | 70 | { |
| 71 | 71 | $this->assertEqual(array( |
| 72 | - 'year' => 2002, |
|
| 73 | - 'month' => 12, |
|
| 74 | - 'day' => 31, |
|
| 75 | - 'hour' => 0, |
|
| 76 | - 'minute' => 0, |
|
| 77 | - 'second' => 0, |
|
| 78 | - ), $this->cal->prevDay('array')); |
|
| 72 | + 'year' => 2002, |
|
| 73 | + 'month' => 12, |
|
| 74 | + 'day' => 31, |
|
| 75 | + 'hour' => 0, |
|
| 76 | + 'minute' => 0, |
|
| 77 | + 'second' => 0, |
|
| 78 | + ), $this->cal->prevDay('array')); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | public function testThisDay() |