@@ -463,8 +463,8 @@ |
||
| 463 | 463 | /**************************************************************************/ |
| 464 | 464 | /** |
| 465 | 465 | * @param $color |
| 466 | - * @param $plancher |
|
| 467 | - * @param $plafond |
|
| 466 | + * @param integer $plancher |
|
| 467 | + * @param integer $plafond |
|
| 468 | 468 | * |
| 469 | 469 | * @return string |
| 470 | 470 | */ |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | $cat_color = $catList->getVar('cat_color'); |
| 151 | 151 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 152 | 152 | $cat = '' . "<div style='float:left; margin-left:5px;'>" . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
| 153 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>'; |
|
| 153 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>'; |
|
| 154 | 154 | |
| 155 | 155 | $t[] = $cat; |
| 156 | 156 | } |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | * L'utilisation de ce formulaire d'adminitration suppose |
| 16 | 16 | * que la classe correspondante de la table a été générées avec classGenerator |
| 17 | 17 | **/ |
| 18 | -include_once XOOPS_ROOT_PATH . '/class/uploader.php'; |
|
| 18 | +include_once XOOPS_ROOT_PATH.'/class/uploader.php'; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Class ExtcalUtilities. |
@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | public static function extcal_loadImg(&$REQUEST, &$event_picture1, &$event_picture2) |
| 49 | 49 | { |
| 50 | 50 | /////////////////////////////////////////////////////////////////////////////// |
| 51 | - $uploaddir_event = XOOPS_ROOT_PATH . '/uploads/extcal/'; |
|
| 52 | - $uploadurl_event = XOOPS_URL . '/uploads/extcal/'; |
|
| 51 | + $uploaddir_event = XOOPS_ROOT_PATH.'/uploads/extcal/'; |
|
| 52 | + $uploadurl_event = XOOPS_URL.'/uploads/extcal/'; |
|
| 53 | 53 | //$picture = ''; |
| 54 | 54 | for ($j = 1; $j < 3; ++$j) { |
| 55 | - $delimg = @$REQUEST['delimg_' . $j . '']; |
|
| 56 | - $delimg = isset($delimg) ? (int)$delimg : 0; |
|
| 55 | + $delimg = @$REQUEST['delimg_'.$j.'']; |
|
| 56 | + $delimg = isset($delimg) ? (int) $delimg : 0; |
|
| 57 | 57 | if (0 == $delimg && !empty($REQUEST['xoops_upload_file'][$j])) { |
| 58 | 58 | $upload = new XoopsMediaUploader($uploaddir_event, array( |
| 59 | 59 | 'image/gif', |
@@ -76,15 +76,15 @@ discard block |
||
| 76 | 76 | $event_picture2 = $upload->getSavedFileName(); |
| 77 | 77 | } |
| 78 | 78 | } |
| 79 | - } elseif (!empty($REQUEST['file' . $j])) { |
|
| 79 | + } elseif (!empty($REQUEST['file'.$j])) { |
|
| 80 | 80 | if ($j == 1) { |
| 81 | - $event_picture1 = $REQUEST['file' . $j]; |
|
| 81 | + $event_picture1 = $REQUEST['file'.$j]; |
|
| 82 | 82 | } elseif ($j == 2) { |
| 83 | - $event_picture2 = $REQUEST['file' . $j]; |
|
| 83 | + $event_picture2 = $REQUEST['file'.$j]; |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | } else { |
| 87 | - $url_event = XOOPS_ROOT_PATH . '/uploads/extcal/' . $REQUEST['file' . $j]; |
|
| 87 | + $url_event = XOOPS_ROOT_PATH.'/uploads/extcal/'.$REQUEST['file'.$j]; |
|
| 88 | 88 | if ($j == 1) { |
| 89 | 89 | $event_picture1 = ''; |
| 90 | 90 | } elseif ($j == 2) { |
@@ -149,8 +149,8 @@ discard block |
||
| 149 | 149 | $name = $catList->getVar('cat_name'); |
| 150 | 150 | $cat_color = $catList->getVar('cat_color'); |
| 151 | 151 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
| 152 | - $cat = '' . "<div style='float:left; margin-left:5px;'>" . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 153 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>'; |
|
| 152 | + $cat = ''."<div style='float:left; margin-left:5px;'>"."<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
|
| 153 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"." {$name}".'</div>'; |
|
| 154 | 154 | |
| 155 | 155 | $t[] = $cat; |
| 156 | 156 | } |
@@ -176,17 +176,17 @@ discard block |
||
| 176 | 176 | $select->addOption('', ''); |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | - $select->addOption('year ASC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_ASC); |
|
| 180 | - $select->addOption('year DESC', _MD_EXTCAL_YEAR . ' ' . _MD_EXTCAL_ORDER_BY_DESC); |
|
| 179 | + $select->addOption('year ASC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_ASC); |
|
| 180 | + $select->addOption('year DESC', _MD_EXTCAL_YEAR.' '._MD_EXTCAL_ORDER_BY_DESC); |
|
| 181 | 181 | |
| 182 | - $select->addOption('month ASC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_ASC); |
|
| 183 | - $select->addOption('month DESC', _MD_EXTCAL_MONTH . ' ' . _MD_EXTCAL_ORDER_BY_DESC); |
|
| 182 | + $select->addOption('month ASC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_ASC); |
|
| 183 | + $select->addOption('month DESC', _MD_EXTCAL_MONTH.' '._MD_EXTCAL_ORDER_BY_DESC); |
|
| 184 | 184 | |
| 185 | - $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_ASC); |
|
| 186 | - $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA . ' ' . _MD_EXTCAL_ORDER_BY_DESC); |
|
| 185 | + $select->addOption('event_title ASC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_ASC); |
|
| 186 | + $select->addOption('event_title DESC', _MD_EXTCAL_ALPHA.' '._MD_EXTCAL_ORDER_BY_DESC); |
|
| 187 | 187 | |
| 188 | - $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_ASC); |
|
| 189 | - $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY . ' ' . _MD_EXTCAL_ORDER_BY_DESC); |
|
| 188 | + $select->addOption('cat_name ASC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_ASC); |
|
| 189 | + $select->addOption('cat_name DESC', _MD_EXTCAL_CATEGORY.' '._MD_EXTCAL_ORDER_BY_DESC); |
|
| 190 | 190 | |
| 191 | 191 | return $select; |
| 192 | 192 | } |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | public static function echoDateArray($period) |
| 301 | 301 | { |
| 302 | 302 | foreach ($period as $dt) { |
| 303 | - echo $dt->format("l Y-m-d H:i:s\n") . '<br>'; |
|
| 303 | + echo $dt->format("l Y-m-d H:i:s\n").'<br>'; |
|
| 304 | 304 | } |
| 305 | 305 | } |
| 306 | 306 | |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | $txt = print_r($t, true); |
| 319 | - echo '<pre>Number of items: ' . count($t) . "<br>{$txt}</pre>"; |
|
| 319 | + echo '<pre>Number of items: '.count($t)."<br>{$txt}</pre>"; |
|
| 320 | 320 | } |
| 321 | 321 | |
| 322 | 322 | /*****************************************************************/ |
@@ -329,7 +329,7 @@ discard block |
||
| 329 | 329 | if ($msg != '') { |
| 330 | 330 | echo "<hr>{$msg}<hr>"; |
| 331 | 331 | } |
| 332 | - echo $line . '<br>'; |
|
| 332 | + echo $line.'<br>'; |
|
| 333 | 333 | } |
| 334 | 334 | |
| 335 | 335 | /*****************************************************************/ |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | echo "<hr>{$msg}<hr>"; |
| 357 | 357 | } |
| 358 | 358 | |
| 359 | - echo 'date --->' . $tsName . ' = ' . $ts . ' - ' . date('d-m-Y H:m:s', $ts) . '<br>'; |
|
| 359 | + echo 'date --->'.$tsName.' = '.$ts.' - '.date('d-m-Y H:m:s', $ts).'<br>'; |
|
| 360 | 360 | } |
| 361 | 361 | |
| 362 | 362 | /*****************************************************************/ |
@@ -470,7 +470,7 @@ discard block |
||
| 470 | 470 | */ |
| 471 | 471 | public static function getLighterColor($color, $plancher, $plafond) |
| 472 | 472 | { |
| 473 | - include_once __DIR__ . '/colorTools.php'; |
|
| 473 | + include_once __DIR__.'/colorTools.php'; |
|
| 474 | 474 | |
| 475 | 475 | //$ct = new ColorTools(); |
| 476 | 476 | //return $ct->eclaircir($color,$plancher,$plafond); |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | if (!mkdir($folder) && !is_dir($folder)) { |
| 493 | 493 | throw new \RuntimeException(sprintf('Unable to create the %s directory', $folder)); |
| 494 | 494 | } else { |
| 495 | - file_put_contents($folder . '/index.html', '<script>history.go(-1);</script>'); |
|
| 495 | + file_put_contents($folder.'/index.html', '<script>history.go(-1);</script>'); |
|
| 496 | 496 | } |
| 497 | 497 | } |
| 498 | 498 | } catch (Exception $e) { |
@@ -530,10 +530,10 @@ discard block |
||
| 530 | 530 | // @mkdir($dst); |
| 531 | 531 | while (false !== ($file = readdir($dir))) { |
| 532 | 532 | if (($file !== '.') && ($file !== '..')) { |
| 533 | - if (is_dir($src . '/' . $file)) { |
|
| 534 | - self::recurseCopy($src . '/' . $file, $dst . '/' . $file); |
|
| 533 | + if (is_dir($src.'/'.$file)) { |
|
| 534 | + self::recurseCopy($src.'/'.$file, $dst.'/'.$file); |
|
| 535 | 535 | } else { |
| 536 | - copy($src . '/' . $file, $dst . '/' . $file); |
|
| 536 | + copy($src.'/'.$file, $dst.'/'.$file); |
|
| 537 | 537 | } |
| 538 | 538 | } |
| 539 | 539 | } |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | //check for minimum XOOPS version |
| 555 | 555 | $currentVer = substr(XOOPS_VERSION, 6); // get the numeric part of string |
| 556 | 556 | $currArray = explode('.', $currentVer); |
| 557 | - $requiredVer = '' . $module->getInfo('min_xoops'); //making sure it's a string |
|
| 557 | + $requiredVer = ''.$module->getInfo('min_xoops'); //making sure it's a string |
|
| 558 | 558 | $reqArray = explode('.', $requiredVer); |
| 559 | 559 | $success = true; |
| 560 | 560 | foreach ($reqArray as $k => $v) { |
@@ -568,7 +568,7 @@ discard block |
||
| 568 | 568 | break; |
| 569 | 569 | } |
| 570 | 570 | } else { |
| 571 | - if ((int)$v > 0) { // handles things like x.x.x.0_RC2 |
|
| 571 | + if ((int) $v > 0) { // handles things like x.x.x.0_RC2 |
|
| 572 | 572 | $success = false; |
| 573 | 573 | break; |
| 574 | 574 | } |
@@ -596,7 +596,7 @@ discard block |
||
| 596 | 596 | // check for minimum PHP version |
| 597 | 597 | $success = true; |
| 598 | 598 | $verNum = phpversion(); |
| 599 | - $reqVer =& $module->getInfo('min_php'); |
|
| 599 | + $reqVer = & $module->getInfo('min_php'); |
|
| 600 | 600 | if (false !== $reqVer && '' !== $reqVer) { |
| 601 | 601 | if (version_compare($verNum, $reqVer, '<')) { |
| 602 | 602 | $module->setErrors(sprintf(_AM_TAG_ERROR_BAD_PHP, $reqVer, $verNum)); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | * |
| 41 | 41 | * @internal param bool $encode To sanitizer the text? |
| 42 | 42 | * |
| 43 | - * @return array array of name/value pairs assigned to form elements |
|
| 43 | + * @return boolean|string array of name/value pairs assigned to form elements |
|
| 44 | 44 | */ |
| 45 | 45 | public function getAddBaliseTable() |
| 46 | 46 | { |
@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | */ |
| 56 | 56 | public function insertBreak($extra = '', $class = '') |
| 57 | 57 | { |
| 58 | - $class = ($class != '') ? " class='" . preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class) . "'" : ''; |
|
| 58 | + $class = ($class != '') ? " class='".preg_replace('/[^A-Za-z0-9\s\s_-]/i', '', $class)."'" : ''; |
|
| 59 | 59 | // Fix for $extra tag not showing |
| 60 | 60 | if ($extra) { |
| 61 | - $extra = '<tr><td colspan="2" ' . $class . '>' . $extra . '</td></tr>'; |
|
| 61 | + $extra = '<tr><td colspan="2" '.$class.'>'.$extra.'</td></tr>'; |
|
| 62 | 62 | $this->addElement($extra); |
| 63 | 63 | } else { |
| 64 | - $extra = '<tr><td colspan="2" ' . $class . '> </td></tr>'; |
|
| 64 | + $extra = '<tr><td colspan="2" '.$class.'> </td></tr>'; |
|
| 65 | 65 | $this->addElement($extra); |
| 66 | 66 | } |
| 67 | 67 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | if ($title != '') { |
| 93 | - $ret .= '<tr><th colspan="2">' . $title . '</th></tr>'; |
|
| 93 | + $ret .= '<tr><th colspan="2">'.$title.'</th></tr>'; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $hidden = ''; |
@@ -102,24 +102,24 @@ discard block |
||
| 102 | 102 | if (!$ele->getNocolspan()) { |
| 103 | 103 | $ret .= '<tr valign="top" align="left"><td class="head">'; |
| 104 | 104 | if (($caption = $ele->getCaption()) != '') { |
| 105 | - $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
|
| 106 | - $ret .= '<span class="caption-text">' . $caption . '</span>'; |
|
| 105 | + $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">'; |
|
| 106 | + $ret .= '<span class="caption-text">'.$caption.'</span>'; |
|
| 107 | 107 | $ret .= '<span class="caption-marker">*</span>'; |
| 108 | 108 | $ret .= '</div>'; |
| 109 | 109 | } |
| 110 | 110 | if (($desc = $ele->getDescription()) != '') { |
| 111 | - $ret .= '<div class="xoops-form-element-help">' . $desc . '</div>'; |
|
| 111 | + $ret .= '<div class="xoops-form-element-help">'.$desc.'</div>'; |
|
| 112 | 112 | } |
| 113 | - $ret .= '</td><td class="' . $class . '">' . $ele->render() . '</td></tr>' . NWLINE; |
|
| 113 | + $ret .= '</td><td class="'.$class.'">'.$ele->render().'</td></tr>'.NWLINE; |
|
| 114 | 114 | } else { |
| 115 | 115 | $ret .= '<tr valign="top" align="left"><td class="head" colspan="2">'; |
| 116 | 116 | if (($caption = $ele->getCaption()) != '') { |
| 117 | - $ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
|
| 118 | - $ret .= '<span class="caption-text">' . $caption . '</span>'; |
|
| 117 | + $ret .= '<div class="xoops-form-element-caption'.($ele->isRequired() ? '-required' : '').'">'; |
|
| 118 | + $ret .= '<span class="caption-text">'.$caption.'</span>'; |
|
| 119 | 119 | $ret .= '<span class="caption-marker">*</span>'; |
| 120 | 120 | $ret .= '</div>'; |
| 121 | 121 | } |
| 122 | - $ret .= '</td></tr><tr valign="top" align="left"><td class="' . $class . '" colspan="2">' . $ele->render() . '</td></tr>'; |
|
| 122 | + $ret .= '</td></tr><tr valign="top" align="left"><td class="'.$class.'" colspan="2">'.$ele->render().'</td></tr>'; |
|
| 123 | 123 | } |
| 124 | 124 | } else { |
| 125 | 125 | $hidden .= $ele->render(); |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | $ret .= '</table>'; |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | - $ret .= NWLINE . ' ' . $hidden . NWLINE; |
|
| 133 | + $ret .= NWLINE.' '.$hidden.NWLINE; |
|
| 134 | 134 | |
| 135 | 135 | return $ret; |
| 136 | 136 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include_once __DIR__ . '/../../include/constantes.php'; |
|
| 3 | +include_once __DIR__.'/../../include/constantes.php'; |
|
| 4 | 4 | define('_MI_EXTCAL_NAME', 'eXtCal'); |
| 5 | 5 | define('_MI_EXTCAL_ABOUT', 'About'); |
| 6 | 6 | define('_MI_EXTCAL_AFTER', 'After'); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | define('_MI_EXTCAL_START_PAGE', 'Module home page'); |
| 136 | 136 | define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event'); |
| 137 | 137 | define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs'); |
| 138 | -define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line'); |
|
| 138 | +define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line'); |
|
| 139 | 139 | define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.'); |
| 140 | 140 | define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab'); |
| 141 | 141 | define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day'); |
@@ -1,23 +1,23 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
| 3 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
| 4 | 4 | |
| 5 | -include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
| 5 | +include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
| 6 | 6 | |
| 7 | -include_once __DIR__ . '/include/agenda_fnc.php'; |
|
| 8 | -include_once __DIR__ . '/class/utilities.php'; |
|
| 7 | +include_once __DIR__.'/include/agenda_fnc.php'; |
|
| 8 | +include_once __DIR__.'/class/utilities.php'; |
|
| 9 | 9 | |
| 10 | -include_once __DIR__ . '/class/perm.php'; |
|
| 11 | -include_once __DIR__ . '/class/form/extcalform.php'; |
|
| 10 | +include_once __DIR__.'/class/perm.php'; |
|
| 11 | +include_once __DIR__.'/class/form/extcalform.php'; |
|
| 12 | 12 | |
| 13 | 13 | xoops_loadLanguage('modinfo', _EXTCAL_MODULE); |
| 14 | 14 | |
| 15 | 15 | //------------------------------------------------------ |
| 16 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
| 17 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
| 18 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php'; |
|
| 19 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php'; |
|
| 20 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
| 16 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
| 17 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
| 18 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php'; |
|
| 19 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php'; |
|
| 20 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
| 21 | 21 | |
| 22 | 22 | //------------------------------------------------------ |
| 23 | 23 | // Getting eXtCal object's handler |
@@ -102,8 +102,8 @@ |
||
| 102 | 102 | define('_EXTCAL_NAV_NEW_EVENT', 'new-event'); |
| 103 | 103 | |
| 104 | 104 | define('_EXTCAL_NAV_LIST', |
| 105 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" |
|
| 106 | - . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT); |
|
| 105 | + _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" |
|
| 106 | + . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT); |
|
| 107 | 107 | |
| 108 | 108 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
| 109 | 109 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | define('_EXTCAL_CLN_EVENT', 'ExtcalEvent'); |
| 38 | 38 | |
| 39 | 39 | //------------------------------------------------------------------- |
| 40 | -define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear'); |
|
| 40 | +define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear'); |
|
| 41 | 41 | //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' ); |
| 42 | 42 | |
| 43 | 43 | $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT; |
@@ -72,22 +72,22 @@ discard block |
||
| 72 | 72 | //} |
| 73 | 73 | define('_EXTCAL_PEAR_ROOT', $pear_path); |
| 74 | 74 | |
| 75 | -define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar'); |
|
| 76 | -define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/'); |
|
| 75 | +define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar'); |
|
| 76 | +define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/'); |
|
| 77 | 77 | |
| 78 | 78 | //------------------------------------------------------------------- |
| 79 | 79 | define('_EXTCAL_SHOW_NO_PICTURE', false); |
| 80 | 80 | |
| 81 | 81 | define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/'); |
| 82 | -define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'); |
|
| 83 | -define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/'); |
|
| 84 | -define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/'); |
|
| 85 | -define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/'); |
|
| 86 | -define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/'); |
|
| 82 | +define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/'); |
|
| 83 | +define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/'); |
|
| 84 | +define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/'); |
|
| 85 | +define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/'); |
|
| 86 | +define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/'); |
|
| 87 | 87 | |
| 88 | 88 | define('_EXTCAL_IMG_INTERVAL', 'interval04.png'); |
| 89 | -define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL); |
|
| 90 | -define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL); |
|
| 89 | +define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL); |
|
| 90 | +define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL); |
|
| 91 | 91 | |
| 92 | 92 | //define('_EXTCAL_DIRNAME', $xoopsModule->getVar('dirname')); |
| 93 | 93 | |
@@ -103,22 +103,22 @@ discard block |
||
| 103 | 103 | define('_EXTCAL_NAV_NEW_EVENT', 'new-event'); |
| 104 | 104 | |
| 105 | 105 | define('_EXTCAL_NAV_LIST', |
| 106 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" |
|
| 107 | - . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT); |
|
| 106 | + _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n"._EXTCAL_NAV_AGENDA_DAY."\n" |
|
| 107 | + . _EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT); |
|
| 108 | 108 | |
| 109 | 109 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
| 110 | 110 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
| 111 | 111 | |
| 112 | -define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW); |
|
| 113 | -define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW); |
|
| 114 | -define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW); |
|
| 115 | -define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW); |
|
| 116 | -define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
| 117 | -define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW); |
|
| 118 | -define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
| 119 | -define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW); |
|
| 120 | -define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW); |
|
| 121 | -define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW); |
|
| 112 | +define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW); |
|
| 113 | +define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW); |
|
| 114 | +define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW); |
|
| 115 | +define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW); |
|
| 116 | +define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW); |
|
| 117 | +define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW); |
|
| 118 | +define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW); |
|
| 119 | +define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW); |
|
| 120 | +define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW); |
|
| 121 | +define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW); |
|
| 122 | 122 | |
| 123 | 123 | define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php'); |
| 124 | 124 | |
@@ -166,8 +166,8 @@ |
||
| 166 | 166 | |
| 167 | 167 | //delete .html entries from the tpl table |
| 168 | 168 | $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', |
| 169 | - 'n') |
|
| 170 | - . "' AND `tpl_file` LIKE '%.html%'"; |
|
| 169 | + 'n') |
|
| 170 | + . "' AND `tpl_file` LIKE '%.html%'"; |
|
| 171 | 171 | $xoopsDB->queryF($sql); |
| 172 | 172 | |
| 173 | 173 | // Load class XoopsFile ==================== |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser) |
| 20 | 20 | || !$GLOBALS['xoopsUser']->IsAdmin() |
| 21 | 21 | ) { |
| 22 | - exit('Restricted access' . PHP_EOL); |
|
| 22 | + exit('Restricted access'.PHP_EOL); |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | function xoops_module_pre_update_extcal(XoopsModule $module) |
| 45 | 45 | { |
| 46 | 46 | $moduleDirName = basename(dirname(__DIR__)); |
| 47 | - $classUtilities = ucfirst($moduleDirName) . 'Utilities'; |
|
| 47 | + $classUtilities = ucfirst($moduleDirName).'Utilities'; |
|
| 48 | 48 | if (!class_exists($classUtilities)) { |
| 49 | 49 | xoops_load('utilities', $moduleDirName); |
| 50 | 50 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | |
| 85 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
| 85 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
| 86 | 86 | $cls = 'extcal_%1$s'; |
| 87 | 87 | |
| 88 | 88 | $version = array( |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | while (list($key, $val) = each($version)) { |
| 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>"; |
@@ -115,8 +115,8 @@ discard block |
||
| 115 | 115 | if ($previousVersion < 240) { |
| 116 | 116 | |
| 117 | 117 | |
| 118 | - $configurator = include __DIR__ . '/config.php'; |
|
| 119 | - $classUtilities = ucfirst($moduleDirName) . 'Utilities'; |
|
| 118 | + $configurator = include __DIR__.'/config.php'; |
|
| 119 | + $classUtilities = ucfirst($moduleDirName).'Utilities'; |
|
| 120 | 120 | if (!class_exists($classUtilities)) { |
| 121 | 121 | xoops_load('utilities', $moduleDirName); |
| 122 | 122 | } |
@@ -125,14 +125,14 @@ discard block |
||
| 125 | 125 | //delete old HTML templates |
| 126 | 126 | if (count($configurator['templateFolders']) > 0) { |
| 127 | 127 | foreach ($configurator['templateFolders'] as $folder) { |
| 128 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
| 128 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
| 129 | 129 | if (is_dir($templateFolder)) { |
| 130 | 130 | $templateList = array_diff(scandir($templateFolder), array('..', '.')); |
| 131 | 131 | foreach ($templateList as $k => $v) { |
| 132 | - $fileInfo = new SplFileInfo($templateFolder . $v); |
|
| 132 | + $fileInfo = new SplFileInfo($templateFolder.$v); |
|
| 133 | 133 | if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') { |
| 134 | - if (file_exists($templateFolder . $v)) { |
|
| 135 | - unlink($templateFolder . $v); |
|
| 134 | + if (file_exists($templateFolder.$v)) { |
|
| 135 | + unlink($templateFolder.$v); |
|
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | 138 | } |
@@ -144,9 +144,9 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | // --- COPY blank.png FILES --------------- |
| 146 | 146 | if (count($configurator['copyFiles']) > 0) { |
| 147 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
| 147 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
| 148 | 148 | foreach (array_keys($configurator['copyFiles']) as $i) { |
| 149 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
| 149 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
| 150 | 150 | $classUtilities::copyFile($file, $dest); |
| 151 | 151 | } |
| 152 | 152 | } |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | if (count($configurator['oldFiles']) > 0) { |
| 156 | 156 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
| 157 | 157 | foreach (array_keys($configurator['oldFiles']) as $i) { |
| 158 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]); |
|
| 158 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]); |
|
| 159 | 159 | if (is_file($tempFile)) { |
| 160 | 160 | unlink($tempFile); |
| 161 | 161 | } |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | //--------------------- |
| 166 | 166 | |
| 167 | 167 | //delete .html entries from the tpl table |
| 168 | - $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', |
|
| 168 | + $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', |
|
| 169 | 169 | 'n') |
| 170 | 170 | . "' AND `tpl_file` LIKE '%.html%'"; |
| 171 | 171 | $xoopsDB->queryF($sql); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | xoops_load('XoopsFile'); |
| 175 | 175 | |
| 176 | 176 | //delete /images directory ============ |
| 177 | - $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname', 'n') . '/images/'); |
|
| 177 | + $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname', 'n').'/images/'); |
|
| 178 | 178 | $folderHandler = XoopsFile::getHandler('folder', $imagesDirectory); |
| 179 | 179 | $folderHandler->delete($imagesDirectory); |
| 180 | 180 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | function xoops_module_pre_install_extcal(XoopsModule $module) |
| 26 | 26 | { |
| 27 | 27 | $moduleDirName = basename(dirname(__DIR__)); |
| 28 | - $className = ucfirst($moduleDirName) . 'Utilities'; |
|
| 28 | + $className = ucfirst($moduleDirName).'Utilities'; |
|
| 29 | 29 | if (!class_exists($className)) { |
| 30 | 30 | xoops_load('utilities', $moduleDirName); |
| 31 | 31 | } |
@@ -39,9 +39,9 @@ discard block |
||
| 39 | 39 | return false; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | - $mod_tables =& $module->getInfo('tables'); |
|
| 42 | + $mod_tables = & $module->getInfo('tables'); |
|
| 43 | 43 | foreach ($mod_tables as $table) { |
| 44 | - $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
|
| 44 | + $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';'); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | return true; |
@@ -70,20 +70,20 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | |
| 72 | 72 | // Access right |
| 73 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 74 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
| 75 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
| 73 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 74 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
| 75 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
| 76 | 76 | |
| 77 | 77 | // Can submit |
| 78 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 78 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 79 | 79 | |
| 80 | 80 | // Auto approve |
| 81 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 81 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
| 82 | 82 | |
| 83 | 83 | // $moduleDirName = $xoopsModule->getVar('dirname'); |
| 84 | - $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php'); |
|
| 84 | + $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php'); |
|
| 85 | 85 | |
| 86 | - $classUtilities = ucfirst($moduleDirName) . 'Utilities'; |
|
| 86 | + $classUtilities = ucfirst($moduleDirName).'Utilities'; |
|
| 87 | 87 | if (!class_exists($classUtilities)) { |
| 88 | 88 | xoops_load('utilities', $moduleDirName); |
| 89 | 89 | } |
@@ -95,9 +95,9 @@ discard block |
||
| 95 | 95 | } |
| 96 | 96 | } |
| 97 | 97 | if (count($configurator['copyFiles']) > 0) { |
| 98 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
| 98 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
| 99 | 99 | foreach (array_keys($configurator['copyFiles']) as $i) { |
| 100 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
| 100 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
| 101 | 101 | $classUtilities::copyFile($file, $dest); |
| 102 | 102 | } |
| 103 | 103 | } |
@@ -1,9 +1,9 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined'); |
| 4 | -include_once __DIR__ . '/include/constantes.php'; |
|
| 5 | -include_once __DIR__ . '/include/agenda_fnc.php'; |
|
| 6 | -include_once __DIR__ . '/class/config.php'; |
|
| 4 | +include_once __DIR__.'/include/constantes.php'; |
|
| 5 | +include_once __DIR__.'/include/agenda_fnc.php'; |
|
| 6 | +include_once __DIR__.'/class/config.php'; |
|
| 7 | 7 | //$loc_de = setlocale (LC_ALL, 'french'); |
| 8 | 8 | |
| 9 | 9 | //echo "local :" . setlocale(LC_TIME, $xoopsConfig['language'])."</ br>"; |
@@ -78,12 +78,12 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | // Tables created by sql file (without prefix!) |
| 80 | 80 | $modversion['tables'] = array( |
| 81 | - $moduleDirName . '_' . 'cat', |
|
| 82 | - $moduleDirName . '_' . 'event', |
|
| 83 | - $moduleDirName . '_' . 'eventmember', |
|
| 84 | - $moduleDirName . '_' . 'eventnotmember', |
|
| 85 | - $moduleDirName . '_' . 'file', |
|
| 86 | - $moduleDirName . '_' . 'etablissement' |
|
| 81 | + $moduleDirName.'_'.'cat', |
|
| 82 | + $moduleDirName.'_'.'event', |
|
| 83 | + $moduleDirName.'_'.'eventmember', |
|
| 84 | + $moduleDirName.'_'.'eventnotmember', |
|
| 85 | + $moduleDirName.'_'.'file', |
|
| 86 | + $moduleDirName.'_'.'etablissement' |
|
| 87 | 87 | ); |
| 88 | 88 | |
| 89 | 89 | // SQL |
@@ -496,7 +496,7 @@ discard block |
||
| 496 | 496 | $modversion['config'][$i]['default'] = 5; |
| 497 | 497 | |
| 498 | 498 | ++$i; |
| 499 | -$modversion['config'][$i]['name'] = 'break' . $i; |
|
| 499 | +$modversion['config'][$i]['name'] = 'break'.$i; |
|
| 500 | 500 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_OTHEROPTIONS'; |
| 501 | 501 | $modversion['config'][$i]['description'] = ''; |
| 502 | 502 | $modversion['config'][$i]['formtype'] = 'line_break'; |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | // Flag current day |
| 145 | 145 | $selectedDays = array( |
| 146 | 146 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
| 147 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 147 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
| 148 | 148 | ); |
| 149 | 149 | |
| 150 | 150 | // Build calendar object |
@@ -1,9 +1,9 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | global $extcalConfig, $xoopsUser; |
| 4 | -include_once __DIR__ . '/../include/constantes.php'; |
|
| 5 | -include_once __DIR__ . '/../class/utilities.php'; |
|
| 6 | -include_once __DIR__ . '/../class/tableForm.php'; |
|
| 4 | +include_once __DIR__.'/../include/constantes.php'; |
|
| 5 | +include_once __DIR__.'/../class/utilities.php'; |
|
| 6 | +include_once __DIR__.'/../class/tableForm.php'; |
|
| 7 | 7 | //--------------------------------------------------------------------------- |
| 8 | 8 | /** |
| 9 | 9 | * @param $options |
@@ -16,11 +16,11 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | extcal_getDefautminicalOption($options); |
| 18 | 18 | |
| 19 | - include_once __DIR__ . '/../class/config.php'; |
|
| 19 | + include_once __DIR__.'/../class/config.php'; |
|
| 20 | 20 | |
| 21 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
| 22 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
| 23 | - require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
| 21 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
| 22 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
| 23 | + require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
| 24 | 24 | // require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
| 25 | 25 | // require_once CALENDAR_ROOT . 'Day.php'; |
| 26 | 26 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 'cat' => $tCatSelected, |
| 107 | 107 | 'externalKeys' => 'cat_id', |
| 108 | 108 | ); |
| 109 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 109 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
| 110 | 110 | } else { |
| 111 | 111 | $events = array(); |
| 112 | 112 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | 'number' => $dayCalObj->thisDay(), |
| 169 | 169 | 'isSelected' => $dayCalObj->isSelected(), |
| 170 | 170 | ); |
| 171 | - $day = $dayCalObj->thisDay(); |
|
| 171 | + $day = $dayCalObj->thisDay(); |
|
| 172 | 172 | if (isset($eventsArray[$day]) && !$dayCalObj->isEmpty()) { |
| 173 | 173 | $tableRows[$rowId]['week'][$cellId]['haveEvents'] = true; |
| 174 | 174 | $tableRows[$rowId]['week'][$cellId]['color'] = $eventsArray[$day]['color']; |
@@ -198,15 +198,15 @@ discard block |
||
| 198 | 198 | // Making navig data |
| 199 | 199 | $navig = array( |
| 200 | 200 | 'page' => $extcalConfig['start_page'], |
| 201 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
| 201 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
| 202 | 202 | 'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
| 203 | 203 | ); |
| 204 | 204 | |
| 205 | 205 | $horloge = array(); |
| 206 | 206 | $horloge['display'] = (trim($options[11]) != ''); |
| 207 | - $horloge['fullName'] = XOOPS_URL . _EXTCAL_PATH_HORLOGES . $options[11]; |
|
| 208 | - $horloge['width'] = $options[12] . 'px'; |
|
| 209 | - $horloge['height'] = $options[13] . 'px'; |
|
| 207 | + $horloge['fullName'] = XOOPS_URL._EXTCAL_PATH_HORLOGES.$options[11]; |
|
| 208 | + $horloge['width'] = $options[12].'px'; |
|
| 209 | + $horloge['height'] = $options[13].'px'; |
|
| 210 | 210 | |
| 211 | 211 | $ret = array( |
| 212 | 212 | 'imageParam' => $imageParam, |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | */ |
| 233 | 233 | function bExtcalMinicalEdit($options) |
| 234 | 234 | { |
| 235 | - include_once __DIR__ . '/../class/form/spin/formspin.php'; |
|
| 235 | + include_once __DIR__.'/../class/form/spin/formspin.php'; |
|
| 236 | 236 | global $xoopsUser; |
| 237 | 237 | |
| 238 | 238 | // $t = print_r(get_defined_vars(),true); |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | $imageCatHandler = xoops_getHandler('imagecategory'); |
| 254 | 254 | |
| 255 | 255 | //===================================================================== |
| 256 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SLIDE_SHOW . '</div>', 'head'); |
|
| 256 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SLIDE_SHOW.'</div>', 'head'); |
|
| 257 | 257 | |
| 258 | 258 | $k = 0; |
| 259 | 259 | $xfValue[$k] = new XoopsFormRadio(_MB_EXTCAL_DISPLAY_IMG, "options[{$k}]", $options[$k]); |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | $xfValue[$k] = new ExtcalFormSpin(_MB_EXTCAL_SS_NB_PHOTOS, "options[{$k}]", $options[$k], 0, 50, 1, 0, 8, _MB_EXTCAL_PX, $imgFolder = ''); |
| 295 | 295 | $form->addElement($xfValue[$k], false); |
| 296 | 296 | //===================================================================== |
| 297 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_OPT_SHOW . '</div>', 'head'); |
|
| 297 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_OPT_SHOW.'</div>', 'head'); |
|
| 298 | 298 | |
| 299 | 299 | $t = array( |
| 300 | 300 | -1 => _MB_EXTCAL_PREVIEW, |
@@ -333,9 +333,9 @@ discard block |
||
| 333 | 333 | $form->addElement($xfValue[$k], false); |
| 334 | 334 | |
| 335 | 335 | //===================================================================== |
| 336 | - $form->insertBreak('<div style="text-align: center;font-weight: bold;">' . _MB_EXTCAL_HORLOGE_OPT . '</div>', 'head'); |
|
| 336 | + $form->insertBreak('<div style="text-align: center;font-weight: bold;">'._MB_EXTCAL_HORLOGE_OPT.'</div>', 'head'); |
|
| 337 | 337 | //--------------------------------------------------------------------- |
| 338 | - $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH . _EXTCAL_PATH_HORLOGES); |
|
| 338 | + $t = XoopsLists::getFileListAsArray(XOOPS_ROOT_PATH._EXTCAL_PATH_HORLOGES); |
|
| 339 | 339 | $t = array_merge(array(' ' => _NONE), $t); |
| 340 | 340 | |
| 341 | 341 | $k = 11; |
@@ -418,12 +418,12 @@ discard block |
||
| 418 | 418 | // $src = $doc->createElement('src'); |
| 419 | 419 | $src = clone $tempSrc; |
| 420 | 420 | $src = $photo->appendChild($src); |
| 421 | - $value = $doc->createTextNode(XOOPS_URL . '/uploads/' . $images->getVar('image_name')); |
|
| 421 | + $value = $doc->createTextNode(XOOPS_URL.'/uploads/'.$images->getVar('image_name')); |
|
| 422 | 422 | $src->appendChild($value); |
| 423 | 423 | } |
| 424 | 424 | |
| 425 | 425 | // get completed xml document |
| 426 | - $xml_string = $doc->save(XOOPS_ROOT_PATH . '/cache/extcalSlideShowParam.xml'); |
|
| 426 | + $xml_string = $doc->save(XOOPS_ROOT_PATH.'/cache/extcalSlideShowParam.xml'); |
|
| 427 | 427 | } |
| 428 | 428 | |
| 429 | 429 | /**************************************************************************/ |
@@ -432,11 +432,11 @@ |
||
| 432 | 432 | * @param array $event |
| 433 | 433 | * @param array $eventsArray |
| 434 | 434 | * @param ExtcalTime $extcalTimeHandler |
| 435 | - * @param $startMonth |
|
| 436 | - * @param $endMonth |
|
| 435 | + * @param integer $startMonth |
|
| 436 | + * @param integer $endMonth |
|
| 437 | 437 | * @param $cats |
| 438 | 438 | * |
| 439 | - * @return bool |
|
| 439 | + * @return false|null |
|
| 440 | 440 | */ |
| 441 | 441 | function bExtcalMinicalAddEventToArray($event, &$eventsArray, $extcalTimeHandler, $startMonth, $endMonth, $cats) |
| 442 | 442 | { |