Completed
Push — master ( a9decc...a21b67 )
by Michael
02:51
created
include/constantes.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -107,24 +107,24 @@
 block discarded – undo
107 107
 define('_EXTCAL_NAV_NEW_EVENT', 'new-event');
108 108
 
109 109
 define('_EXTCAL_NAV_LIST', _EXTCAL_NAV_CALMONTH
110
-                           . "\n"
111
-                           . _EXTCAL_NAV_CALWEEK
112
-                           . "\n"
113
-                           . _EXTCAL_NAV_YEAR
114
-                           . "\n"
115
-                           . _EXTCAL_NAV_MONTH
116
-                           . "\n"
117
-                           . _EXTCAL_NAV_WEEK
118
-                           . "\n"
119
-                           . _EXTCAL_NAV_DAY
120
-                           . "\n"
121
-                           . _EXTCAL_NAV_AGENDA_WEEK
122
-                           . "\n"
123
-                           . _EXTCAL_NAV_AGENDA_DAY
124
-                           . "\n"
125
-                           . _EXTCAL_NAV_SEARCH
126
-                           . "\n"
127
-                           . _EXTCAL_NAV_NEW_EVENT);
110
+                            . "\n"
111
+                            . _EXTCAL_NAV_CALWEEK
112
+                            . "\n"
113
+                            . _EXTCAL_NAV_YEAR
114
+                            . "\n"
115
+                            . _EXTCAL_NAV_MONTH
116
+                            . "\n"
117
+                            . _EXTCAL_NAV_WEEK
118
+                            . "\n"
119
+                            . _EXTCAL_NAV_DAY
120
+                            . "\n"
121
+                            . _EXTCAL_NAV_AGENDA_WEEK
122
+                            . "\n"
123
+                            . _EXTCAL_NAV_AGENDA_DAY
124
+                            . "\n"
125
+                            . _EXTCAL_NAV_SEARCH
126
+                            . "\n"
127
+                            . _EXTCAL_NAV_NEW_EVENT);
128 128
 
129 129
 define('_EXTCAL_PREFIX_VIEW', 'view_');
130 130
 define('_EXTCAL_SUFFIX_VIEW', '.php');
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 define('_EXTCAL_CLN_EVENT', 'ExtcalEvent');
42 42
 
43 43
 //-------------------------------------------------------------------
44
-define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear');
44
+define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear');
45 45
 //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' );
46 46
 
47 47
 $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT;
@@ -76,22 +76,22 @@  discard block
 block discarded – undo
76 76
 //}
77 77
 define('_EXTCAL_PEAR_ROOT', $pear_path);
78 78
 
79
-define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar');
80
-define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/');
79
+define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar');
80
+define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/');
81 81
 
82 82
 //-------------------------------------------------------------------
83 83
 define('_EXTCAL_SHOW_NO_PICTURE', false);
84 84
 
85 85
 define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/');
86
-define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/');
87
-define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/');
88
-define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/');
89
-define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/');
90
-define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/');
86
+define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/');
87
+define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/');
88
+define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/');
89
+define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/');
90
+define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/');
91 91
 
92 92
 define('_EXTCAL_IMG_INTERVAL', 'interval04.png');
93
-define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL);
94
-define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL);
93
+define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL);
94
+define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL);
95 95
 
96 96
 //define('_EXTCAL_DIRNAME',    $xoopsModule->getVar('dirname'));
97 97
 
@@ -129,16 +129,16 @@  discard block
 block discarded – undo
129 129
 define('_EXTCAL_PREFIX_VIEW', 'view_');
130 130
 define('_EXTCAL_SUFFIX_VIEW', '.php');
131 131
 
132
-define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW);
133
-define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW);
134
-define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW);
135
-define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW);
136
-define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW);
137
-define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW);
138
-define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW);
139
-define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW);
140
-define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW);
141
-define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW);
132
+define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW);
133
+define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW);
134
+define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW);
135
+define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW);
136
+define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW);
137
+define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW);
138
+define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW);
139
+define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW);
140
+define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW);
141
+define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW);
142 142
 
143 143
 define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php');
144 144
 
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 );
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 
37 37
 // Calculating timestamp for the begin and the end of the month
@@ -128,21 +128,21 @@  discard block
 block discarded – undo
128 128
 // Making navig data
129 129
 $navig = array(
130 130
     'prev' => array(
131
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
131
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
132 132
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
133 133
     ),
134 134
     'this' => array(
135
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
135
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
136 136
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
137 137
     ),
138 138
     'next' => array(
139
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
139
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
140 140
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
141 141
     ),
142 142
 );
143 143
 
144 144
 // Title of the page
145
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
145
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
146 146
 
147 147
 // Assigning navig data to the template
148 148
 $xoopsTpl->assign('navig', $navig);
@@ -182,4 +182,4 @@  discard block
 block discarded – undo
182 182
 $xoopsTpl->assign('lang', $lang);
183 183
 $xoopsTpl->assign('view', 'calmonth');
184 184
 
185
-include XOOPS_ROOT_PATH . '/footer.php';
185
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
rss.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
5
-require_once __DIR__ . '/header.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5
+require_once __DIR__.'/header.php';
6 6
 
7
-require_once XOOPS_ROOT_PATH . '/class/template.php';
7
+require_once XOOPS_ROOT_PATH.'/class/template.php';
8 8
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
9 9
 if (!isset($_GET['cat'])) {
10 10
     $cat = 0;
11 11
 } else {
12
-    $cat = (int)$_GET['cat'];
12
+    $cat = (int) $_GET['cat'];
13 13
 }
14 14
 if (function_exists('mb_http_output')) {
15 15
     mb_http_output('pass');
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     $events = $eventHandler->getUpcommingEvent($xoopsModuleConfig['rss_nb_event'], $cat);
23 23
     if (is_array($events)) {
24 24
         $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));
25
-        $tpl->assign('channel_link', XOOPS_URL . '/');
25
+        $tpl->assign('channel_link', XOOPS_URL.'/');
26 26
         $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
27 27
         $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
28 28
         $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']);
@@ -30,14 +30,14 @@  discard block
 block discarded – undo
30 30
         $tpl->assign('channel_category', 'Event');
31 31
         $tpl->assign('channel_generator', 'XOOPS');
32 32
         $tpl->assign('channel_language', _LANGCODE);
33
-        $tpl->assign('image_url', XOOPS_URL . '/modules/extcal/assets/images/extcal_logo.png');
33
+        $tpl->assign('image_url', XOOPS_URL.'/modules/extcal/assets/images/extcal_logo.png');
34 34
         $tpl->assign('image_width', 92);
35 35
         $tpl->assign('image_height', 52);
36 36
         foreach ($events as $event) {
37 37
             $tpl->append('items', array(
38 38
                 'title'       => xoops_utf8_encode(htmlspecialchars($event->getVar('event_title'), ENT_QUOTES)),
39
-                'link'        => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
40
-                'guid'        => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
39
+                'link'        => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
40
+                'guid'        => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
41 41
                 'pubdate'     => formatTimestamp($event->getVar('event_start'), 'rss'),
42 42
                 'description' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_desc'), ENT_QUOTES)),
43 43
             ));
Please login to merge, or discard this patch.
view_calendar-week.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
13
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
13
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
14 14
 /* ========================================================================== */
15 15
 
16 16
 // Validate the date (day, month and year)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     'cat'          => $cat,
48 48
     'externalKeys' => 'cat_id',
49 49
 );
50
-$events   = $eventHandler->getEventsOnPeriode($criteres);
50
+$events = $eventHandler->getEventsOnPeriode($criteres);
51 51
 /**********************************************************************/
52 52
 //$eventsArray = $events;
53 53
 
@@ -137,21 +137,21 @@  discard block
 block discarded – undo
137 137
 // Making navig data
138 138
 $navig = array(
139 139
     'prev' => array(
140
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
140
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
141 141
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
142 142
     ),
143 143
     'this' => array(
144
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
144
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
145 145
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()),
146 146
     ),
147 147
     'next' => array(
148
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
148
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
149 149
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
150 150
     ),
151 151
 );
152 152
 
153 153
 // Title of the page
154
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
154
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
155 155
 
156 156
 // Assigning navig data to the template
157 157
 $xoopsTpl->assign('navig', $navig);
@@ -191,4 +191,4 @@  discard block
 block discarded – undo
191 191
 $xoopsTpl->assign('lang', $lang);
192 192
 $xoopsTpl->assign('view', 'calweek');
193 193
 
194
-include XOOPS_ROOT_PATH . '/footer.php';
194
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_day.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+include __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $params                                  = array('view' => _EXTCAL_NAV_DAY, 'file' => _EXTCAL_FILE_DAY);
23 23
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
24
-require_once __DIR__ . '/header.php';
24
+require_once __DIR__.'/header.php';
25 25
 
26 26
 /* ========================================================================== */
27
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
28
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
29
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
30
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
27
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
28
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
29
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
30
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
31 31
 /* ========================================================================== */
32 32
 
33 33
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     'cat'          => $cat,
52 52
     'externalKeys' => 'cat_id',
53 53
 );
54
-$events   = $eventHandler->getEventsOnPeriode($criteres);
54
+$events = $eventHandler->getEventsOnPeriode($criteres);
55 55
 /**********************************************************************/
56 56
 $eventsArray = $events;
57 57
 
@@ -97,21 +97,21 @@  discard block
 block discarded – undo
97 97
 
98 98
 $navig = array(
99 99
     'prev' => array(
100
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
100
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
101 101
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()),
102 102
     ),
103 103
     'this' => array(
104
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
104
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
105 105
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()),
106 106
     ),
107 107
     'next' => array(
108
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
108
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
109 109
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()),
110 110
     ),
111 111
 );
112 112
 
113 113
 // Title of the page
114
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
114
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
115 115
 
116 116
 // Assigning navig data to the template
117 117
 $xoopsTpl->assign('navig', $navig);
@@ -170,4 +170,4 @@  discard block
 block discarded – undo
170 170
 $xoopsTpl->assign('lang', $lang);
171 171
 $xoopsTpl->assign('view', 'day');
172 172
 
173
-include XOOPS_ROOT_PATH . '/footer.php';
173
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0;
20
+include __DIR__.'/../../mainfile.php';
21
+$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0;
22 22
 if ($com_itemid > 0) {
23 23
     // Get link title
24
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . '';
24
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.'';
25 25
     $result         = $xoopsDB->query($sql);
26 26
     $row            = $xoopsDB->fetchArray($result);
27 27
     $com_replytitle = $row['event_title'];
28 28
     $com_replytext  = $row['event_desc'];
29
-    include XOOPS_ROOT_PATH . '/include/comment_new.php';
29
+    include XOOPS_ROOT_PATH.'/include/comment_new.php';
30 30
 }
Please login to merge, or discard this patch.
view_agenda-week.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_AGENDA_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
13
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
13
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
14 14
 
15 15
 // Validate the date (day, month and year)
16 16
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     'nbJours'      => $nbJours,
50 50
     'externalKeys' => 'cat_id',
51 51
 );
52
-$events   = $eventHandler->getEventsOnPeriode($criteres);
52
+$events = $eventHandler->getEventsOnPeriode($criteres);
53 53
 /**********************************************************************/
54 54
 $eventsArray = $events;
55 55
 // Formating date
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 //-------------------------------------------------------------------
82 82
 
83 83
 //$params['colJourWidth'] = (int)((((500-50)/$nbJours)/500*100)+.5);
84
-$params['colJourWidth'] = (int)((((500 - 50) / $nbJours) / 500 * 100) + .6);
84
+$params['colJourWidth'] = (int) ((((500 - 50) / $nbJours) / 500 * 100) + .6);
85 85
 //  echo "agenda_week : {$dayTS}<br>";
86 86
 $tAgenda = agenda_getEvents($eventsArray, $dayTS, $hStart, $hEnd, $mTranche, $nbJours);
87 87
 //$exp = print_r($eventsArray, true);
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 
104 104
 $navig = array(
105 105
     'prev' => array(
106
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
106
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
107 107
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
108 108
     ),
109 109
     'this' => array(
110
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
110
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
111 111
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()),
112 112
     ),
113 113
     'next' => array(
114
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
114
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
115 115
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
116 116
     ),
117 117
 );
118 118
 
119 119
 // Title of the page
120
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
120
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
121 121
 
122 122
 // Assigning navig data to the template
123 123
 $xoopsTpl->assign('navig', $navig);
@@ -158,4 +158,4 @@  discard block
 block discarded – undo
158 158
 $xoopsTpl->assign('lang', $lang);
159 159
 $xoopsTpl->assign('view', 'agendaweek');
160 160
 
161
-include XOOPS_ROOT_PATH . '/footer.php';
161
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
edit_event.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,12 +17,12 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
20
+include __DIR__.'/../../mainfile.php';
21 21
 
22
-include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
23
-include __DIR__ . '/class/form/extcalform.php';
24
-include __DIR__ . '/class/perm.php';
25
-require_once __DIR__ . '/include/constantes.php';
22
+include XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
23
+include __DIR__.'/class/form/extcalform.php';
24
+include __DIR__.'/class/perm.php';
25
+require_once __DIR__.'/include/constantes.php';
26 26
 
27 27
 $permHandler = ExtcalPerm::getHandler();
28 28
 $xoopsUser   = $xoopsUser ?: null;
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 $params                                  = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT);
38 38
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
39
-include XOOPS_ROOT_PATH . '/header.php';
39
+include XOOPS_ROOT_PATH.'/header.php';
40 40
 /* ========================================================================== */
41 41
 
42 42
 // Tooltips include
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 if (!isset($_GET['event'])) {
48 48
     $eventId = 0;
49 49
 } else {
50
-    $eventId = (int)$_GET['event'];
50
+    $eventId = (int) $_GET['event'];
51 51
 }
52 52
 if (!isset($_GET['action'])) {
53 53
     $action = 'edit';
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 // Getting eXtCal object's handler
59 59
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
60 60
 
61
-include XOOPS_ROOT_PATH . '/header.php';
61
+include XOOPS_ROOT_PATH.'/header.php';
62 62
 
63 63
 // Title of the page
64 64
 $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -67,4 +67,4 @@  discard block
 block discarded – undo
67 67
 $form = $eventHandler->getEventForm('user', $action, array('event_id' => $eventId));
68 68
 $form->display();
69 69
 
70
-include XOOPS_ROOT_PATH . '/footer.php';
70
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_agenda-day.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-require_once __DIR__ . '/header.php';
7
+require_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10 10
 //recupe des variables get
11
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
12
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
13
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
14
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
11
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
12
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
13
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
14
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
15 15
 /* ========================================================================== */
16 16
 
17 17
 //echo "{$params['view']}-{$year}-{$month}-{$day}<hr>extcal_{$params['view']}.html<br>";
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     'nbJours'      => $nbJours,
45 45
     'externalKeys' => 'cat_id',
46 46
 );
47
-$events   = $eventHandler->getEventsOnPeriode($criteres);
47
+$events = $eventHandler->getEventsOnPeriode($criteres);
48 48
 /**********************************************************************/
49 49
 $eventsArray = $events;
50 50
 $startDay    = mktime(0, 0, 0, $month, $day, $year);
@@ -99,21 +99,21 @@  discard block
 block discarded – undo
99 99
 
100 100
 $navig = array(
101 101
     'prev' => array(
102
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
102
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
103 103
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()),
104 104
     ),
105 105
     'this' => array(
106
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
106
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
107 107
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()),
108 108
     ),
109 109
     'next' => array(
110
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
110
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
111 111
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()),
112 112
     ),
113 113
 );
114 114
 
115 115
 // Title of the page
116
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
116
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
117 117
 
118 118
 // Assigning navig data to the template
119 119
 $xoopsTpl->assign('navig', $navig);
@@ -154,4 +154,4 @@  discard block
 block discarded – undo
154 154
 $xoopsTpl->assign('lang', $lang);
155 155
 $xoopsTpl->assign('view', 'agendaday');
156 156
 
157
-include XOOPS_ROOT_PATH . '/footer.php';
157
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.