Completed
Push — master ( 26b490...31307f )
by Michael
03:13
created
view_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                                  = ['view' => _EXTCAL_NAV_MONTH, 'file' => _EXTCAL_FILE_MONTH];
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
 $eventsArray = $events;
37 37
 
@@ -88,21 +88,21 @@  discard block
 block discarded – undo
88 88
 $nMonthCalObj = $monthCalObj->nextMonth('object');
89 89
 $navig        = [
90 90
     'prev' => [
91
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
91
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
92 92
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
93 93
     ],
94 94
     'this' => [
95
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
95
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
96 96
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
97 97
     ],
98 98
     'next' => [
99
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
99
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
100 100
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
101 101
     ],
102 102
 ];
103 103
 
104 104
 // Title of the page
105
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
105
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
106 106
 
107 107
 // Assigning navig data to the template
108 108
 $xoopsTpl->assign('navig', $navig);
@@ -159,4 +159,4 @@  discard block
 block discarded – undo
159 159
 $xoopsTpl->assign('lang', $lang);
160 160
 $xoopsTpl->assign('view', 'month');
161 161
 
162
-include XOOPS_ROOT_PATH . '/footer.php';
162
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_calendar-week.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  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                                  = ['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)
17 17
 $dayTS = mktime(0, 0, 0, $month, $day, $year);
18 18
 //$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day'];
19 19
 $offset = date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] < 7 ? date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] : 0;
20
-$dayTS  -= ($offset * _EXTCAL_TS_DAY);
20
+$dayTS -= ($offset * _EXTCAL_TS_DAY);
21 21
 $year   = date('Y', $dayTS);
22 22
 $month  = date('n', $dayTS);
23 23
 $day    = date('j', $dayTS);
@@ -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
 
@@ -135,21 +135,21 @@  discard block
 block discarded – undo
135 135
 // Making navig data
136 136
 $navig = [
137 137
     'prev' => [
138
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
138
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
139 139
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
140 140
     ],
141 141
     'this' => [
142
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
142
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
143 143
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()),
144 144
     ],
145 145
     'next' => [
146
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
146
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
147 147
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
148 148
     ],
149 149
 ];
150 150
 
151 151
 // Title of the page
152
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
152
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
153 153
 
154 154
 // Assigning navig data to the template
155 155
 $xoopsTpl->assign('navig', $navig);
@@ -189,4 +189,4 @@  discard block
 block discarded – undo
189 189
 $xoopsTpl->assign('lang', $lang);
190 190
 $xoopsTpl->assign('view', 'calweek');
191 191
 
192
-include XOOPS_ROOT_PATH . '/footer.php';
192
+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;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
 $params                                  = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT];
36 36
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
37
-include XOOPS_ROOT_PATH . '/header.php';
37
+include XOOPS_ROOT_PATH.'/header.php';
38 38
 /* ========================================================================== */
39 39
 
40 40
 // Tooltips include
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 if (!isset($_GET['event'])) {
46 46
     $eventId = 0;
47 47
 } else {
48
-    $eventId = (int)$_GET['event'];
48
+    $eventId = (int) $_GET['event'];
49 49
 }
50 50
 if (!isset($_GET['action'])) {
51 51
     $action = 'edit';
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 // Getting eXtCal object's handler
57 57
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
58 58
 
59
-include XOOPS_ROOT_PATH . '/header.php';
59
+include XOOPS_ROOT_PATH.'/header.php';
60 60
 
61 61
 // Title of the page
62 62
 $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -65,4 +65,4 @@  discard block
 block discarded – undo
65 65
 $form = $eventHandler->getEventForm('user', $action, ['event_id' => $eventId]);
66 66
 $form->display();
67 67
 
68
-include XOOPS_ROOT_PATH . '/footer.php';
68
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_week.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                                  = ['view' => _EXTCAL_NAV_WEEK, 'file' => _EXTCAL_FILE_WEEK];
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
 // Validate the date (day, month and year)
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     'cat'          => $cat,
63 63
     'externalKeys' => 'cat_id',
64 64
 ];
65
-$events   = $eventHandler->getEventsOnPeriode($criteres);
65
+$events = $eventHandler->getEventsOnPeriode($criteres);
66 66
 /**********************************************************************/
67 67
 $eventsArray = $events;
68 68
 // Formating date
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 $nWeekCalObj = $weekCalObj->nextWeek('object');
104 104
 $navig       = [
105 105
     'prev' => [
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($extcalConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
108 108
     ],
109 109
     'this' => [
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($extcalConfig['nav_date_week'], $weekCalObj->getTimestamp()),
112 112
     ],
113 113
     'next' => [
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($extcalConfig['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);
@@ -177,4 +177,4 @@  discard block
 block discarded – undo
177 177
 $xoopsTpl->assign('lang', $lang);
178 178
 $xoopsTpl->assign('view', 'week');
179 179
 
180
-include XOOPS_ROOT_PATH . '/footer.php';
180
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/admin_header.php';
21 21
 // Display Admin header
22 22
 xoops_cp_header();
23 23
 /** @var ExtcalUtility $utilityClass */
24
-$utilityClass = ucfirst($moduleDirName) . 'Utility';
24
+$utilityClass = ucfirst($moduleDirName).'Utility';
25 25
 if (!class_exists($utilityClass)) {
26 26
     xoops_load('utility', $moduleDirName);
27 27
 }
28 28
 
29
-$configurator = include __DIR__ . '/../include/config.php';
29
+$configurator = include __DIR__.'/../include/config.php';
30 30
 
31 31
 foreach (array_keys($configurator['uploadFolders']) as $i) {
32 32
     $utilityClass::createFolder($configurator['uploadFolders'][$i]);
@@ -37,4 +37,4 @@  discard block
 block discarded – undo
37 37
 $adminObject->displayNavigation(basename(__FILE__));
38 38
 $adminObject->displayIndex();
39 39
 
40
-require_once __DIR__ . '/admin_footer.php';
40
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,33 +35,33 @@
 block discarded – undo
35 35
 $adminmenu[] = [
36 36
     'title' => _AM_MODULEADMIN_HOME,
37 37
     'link'  => 'admin/index.php',
38
-    'icon'  => $pathIcon32 . '/home.png'
38
+    'icon'  => $pathIcon32.'/home.png'
39 39
 ];
40 40
 
41 41
 $adminmenu[] = [
42 42
     'title' => _MI_EXTCAL_CATEGORY,
43 43
     'link'  => 'admin/cat.php',
44
-    'icon'  => $pathIcon32 . '/category.png'
44
+    'icon'  => $pathIcon32.'/category.png'
45 45
 ];
46 46
 
47 47
 $adminmenu[] = [
48 48
     'title' => _MI_EXTCAL_EVENT,
49 49
     'link'  => 'admin/event.php',
50
-    'icon'  => $pathIcon32 . '/event.png'
50
+    'icon'  => $pathIcon32.'/event.png'
51 51
 ];
52 52
 $adminmenu[] = [
53 53
     'title' => _MI_EXTCAL_ETABLISSEMENTS,
54 54
     'link'  => 'admin/etablissement.php',
55
-    'icon'  => $pathModIcon32 . '/etablissement.png'
55
+    'icon'  => $pathModIcon32.'/etablissement.png'
56 56
 ];
57 57
 $adminmenu[] = [
58 58
     'title' => _MI_EXTCAL_PERMISSIONS,
59 59
     'link'  => 'admin/permissions.php',
60
-    'icon'  => $pathIcon32 . '/permissions.png'
60
+    'icon'  => $pathIcon32.'/permissions.png'
61 61
 ];
62 62
 
63 63
 $adminmenu[] = [
64 64
     'title' => _AM_MODULEADMIN_ABOUT,
65 65
     'link'  => 'admin/about.php',
66
-    'icon'  => $pathIcon32 . '/about.png'
66
+    'icon'  => $pathIcon32.'/about.png'
67 67
 ];
Please login to merge, or discard this patch.
admin/etablissement.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,10 +155,10 @@
 block discarded – undo
155 155
             }
156 156
         } else {
157 157
             xoops_confirm([
158
-                              'ok'               => 1,
159
-                              'etablissement_id' => $_REQUEST['etablissement_id'],
160
-                              'op'               => 'delete_etablissement',
161
-                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
158
+                                'ok'               => 1,
159
+                                'etablissement_id' => $_REQUEST['etablissement_id'],
160
+                                'op'               => 'delete_etablissement',
161
+                            ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
162 162
         }
163 163
         break;
164 164
 
Please login to merge, or discard this patch.
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 // Include xoops admin header
21
-require_once __DIR__ . '/../../../include/cp_header.php';
22
-require_once __DIR__ . '/../class/ExtcalPersistableObjectHandler.php';
23
-require_once __DIR__ . '/../../../kernel/module.php';
24
-require_once __DIR__ . '/../../../class/xoopsformloader.php';
25
-require_once __DIR__ . '/../../../class/tree.php';
26
-require_once __DIR__ . '/../../../class/xoopslists.php';
27
-require_once __DIR__ . '/../../../class/pagenav.php';
28
-require_once __DIR__ . '/../../../class/xoopsform/grouppermform.php';
29
-require_once __DIR__ . '/../../../class/uploader.php';
30
-require_once __DIR__ . '/../class/etablissement.php';
31
-require_once __DIR__ . '/../include/constantes.php';
32
-
33
-require_once __DIR__ . '/admin_header.php';
21
+require_once __DIR__.'/../../../include/cp_header.php';
22
+require_once __DIR__.'/../class/ExtcalPersistableObjectHandler.php';
23
+require_once __DIR__.'/../../../kernel/module.php';
24
+require_once __DIR__.'/../../../class/xoopsformloader.php';
25
+require_once __DIR__.'/../../../class/tree.php';
26
+require_once __DIR__.'/../../../class/xoopslists.php';
27
+require_once __DIR__.'/../../../class/pagenav.php';
28
+require_once __DIR__.'/../../../class/xoopsform/grouppermform.php';
29
+require_once __DIR__.'/../../../class/uploader.php';
30
+require_once __DIR__.'/../class/etablissement.php';
31
+require_once __DIR__.'/../include/constantes.php';
32
+
33
+require_once __DIR__.'/admin_header.php';
34 34
 
35 35
 //include_once("functions.php");
36 36
 //include_once("../include/functions.php");
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
 if ($xoopsUser) {
39 39
     $xoopsModule = XoopsModule::getByDirname('extcal');
40 40
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
41
-        redirect_header(XOOPS_URL . '/', 3, _NOPERM);
41
+        redirect_header(XOOPS_URL.'/', 3, _NOPERM);
42 42
     }
43 43
 } else {
44
-    redirect_header(XOOPS_URL . '/', 3, _NOPERM);
44
+    redirect_header(XOOPS_URL.'/', 3, _NOPERM);
45 45
 }
46 46
 
47 47
 // Include language file
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $etablissement_arr = $etablissementHandler->getObjects($criteria);
99 99
         $numrows           = $etablissementHandler->getCount($criteria);
100 100
         if ($numrows > $limit) {
101
-            $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit);
101
+            $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit='.$limit);
102 102
             $pagenav = $pagenav->renderNav(4);
103 103
         } else {
104 104
             $pagenav = '';
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
         if ($numrows > 0) {
108 108
             echo '<table width="100%" cellspacing="1" class="outer">';
109 109
             echo '<tr>';
110
-            echo '<th align="center">' . _AM_EXTCAL_ETABLISSEMENT_FORM_NOM . '</th>';
111
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE . '</th>';
112
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_CITY . '</th>';
113
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE . '</th>';
114
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ACTION . '</th>';
110
+            echo '<th align="center">'._AM_EXTCAL_ETABLISSEMENT_FORM_NOM.'</th>';
111
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE.'</th>';
112
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_CITY.'</th>';
113
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE.'</th>';
114
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ACTION.'</th>';
115 115
             echo '</tr>';
116 116
             $class = 'odd';
117 117
             foreach (array_keys($etablissement_arr) as $i) {
@@ -121,21 +121,21 @@  discard block
 block discarded – undo
121 121
                 $etablissement_adresse   = $etablissement_arr[$i]->getVar('adresse');
122 122
                 $etablissement_city      = $etablissement_arr[$i]->getVar('ville');
123 123
                 $etablissement_telephone = $etablissement_arr[$i]->getVar('tel_fixe');
124
-                echo '<tr class="' . $class . '">';
125
-                echo '<td align="left">' . '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '">' . $etablissement_nom . '</a>' . '</td>';
124
+                echo '<tr class="'.$class.'">';
125
+                echo '<td align="left">'.'<a href="etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'">'.$etablissement_nom.'</a>'.'</td>';
126 126
 
127
-                echo '<td align="center"><b>' . $etablissement_adresse . '</td>';
128
-                echo '<td align="center"><b>' . $etablissement_city . '</td>';
129
-                echo '<td align="center"><b>' . $etablissement_telephone . '</td>';
127
+                echo '<td align="center"><b>'.$etablissement_adresse.'</td>';
128
+                echo '<td align="center"><b>'.$etablissement_city.'</td>';
129
+                echo '<td align="center"><b>'.$etablissement_telephone.'</td>';
130 130
                 echo '<td align="center" width="15%">';
131
-                echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '"><img src=' . $pathIcon16 . '/edit.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '"></a> ';
132
-                echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id=' . $etablissement_id . '"><img src=' . $pathIcon16 . '/delete.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '"></a> ';
131
+                echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'"><img src='.$pathIcon16.'/edit.png alt="'._AM_EXTCAL_ETABLISSEMENT_FORM_EDIT.'" title="'._AM_EXTCAL_ETABLISSEMENT_FORM_EDIT.'"></a> ';
132
+                echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src='.$pathIcon16.'/delete.png alt="'._AM_EXTCAL_ETABLISSEMENT_FORM_DELETE.'" title="'._AM_EXTCAL_ETABLISSEMENT_FORM_DELETE.'"></a> ';
133 133
                 echo '</td>';
134 134
             }
135 135
             echo '</table><br>';
136
-            echo '<br><div align=right>' . $pagenav . '</div><br>';
136
+            echo '<br><div align=right>'.$pagenav.'</div><br>';
137 137
         } else {
138
-            echo '<div class="errorMsg" style="text-align: center;">' . _AM_EXTCAL_ERREUR_NO_ETABLISSEMENT . '</div>';
138
+            echo '<div class="errorMsg" style="text-align: center;">'._AM_EXTCAL_ERREUR_NO_ETABLISSEMENT.'</div>';
139 139
         }
140 140
 
141 141
         // Affichage du formulaire
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
                               'ok'               => 1,
159 159
                               'etablissement_id' => $_REQUEST['etablissement_id'],
160 160
                               'op'               => 'delete_etablissement',
161
-                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
161
+                          ], $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL.'<br>');
162 162
         }
163 163
         break;
164 164
 
@@ -200,11 +200,11 @@  discard block
 block discarded – undo
200 200
         $obj->setVar('map', $_REQUEST['map']);
201 201
 
202 202
         //Logo
203
-        $uploaddir_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/';
204
-        $uploadurl_etablissement = XOOPS_URL . '/uploads/extcal/etablissement/';
203
+        $uploaddir_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/';
204
+        $uploadurl_etablissement = XOOPS_URL.'/uploads/extcal/etablissement/';
205 205
 
206 206
         $delimg = @$_REQUEST['delimg'];
207
-        $delimg = isset($delimg) ? (int)$delimg : 0;
207
+        $delimg = isset($delimg) ? (int) $delimg : 0;
208 208
         if (0 == $delimg && !empty($_REQUEST['xoops_upload_file'][0])) {
209 209
             $upload = new XoopsMediaUploader($uploaddir_etablissement, [
210 210
                 'image/gif',
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             }
228 228
         } else {
229 229
             $logo              = '';
230
-            $url_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/' . $_REQUEST['file'];
230
+            $url_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/'.$_REQUEST['file'];
231 231
             if (is_file($url_etablissement)) {
232 232
                 chmod($url_etablissement, 0777);
233 233
                 unlink($url_etablissement);
@@ -247,4 +247,4 @@  discard block
 block discarded – undo
247 247
         break;
248 248
 }
249 249
 
250
-require_once __DIR__ . '/admin_footer.php';
250
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
view_year.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@  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                                  = ['view' => _EXTCAL_NAV_YEAR, 'file' => _EXTCAL_FILE_YEAR];
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
-$cat  = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
27
+$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
28
+$cat  = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
29 29
 
30 30
 // Getting eXtCal object's handler
31 31
 $catHandler   = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     'cat'          => $cat,
55 55
     'externalKeys' => 'cat_id',
56 56
 ];
57
-$events   = $eventHandler->getEventsOnPeriode($criteres);
57
+$events = $eventHandler->getEventsOnPeriode($criteres);
58 58
 /**********************************************************************/
59 59
 $eventsArray = $events;
60 60
 // Formating date
@@ -98,21 +98,21 @@  discard block
 block discarded – undo
98 98
 // Making navig data
99 99
 $navig = [
100 100
     'prev' => [
101
-        'uri'  => 'year=' . $prevYear,
101
+        'uri'  => 'year='.$prevYear,
102 102
         'name' => $prevYear,
103 103
     ],
104 104
     'this' => [
105
-        'uri'  => 'year=' . $year,
105
+        'uri'  => 'year='.$year,
106 106
         'name' => $year,
107 107
     ],
108 108
     'next' => [
109
-        'uri'  => 'year=' . $nexYear,
109
+        'uri'  => 'year='.$nexYear,
110 110
         'name' => $nexYear,
111 111
     ],
112 112
 ];
113 113
 
114 114
 // Title of the page
115
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
115
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
116 116
 
117 117
 // Assigning navig data to the template
118 118
 $xoopsTpl->assign('navig', $navig);
@@ -166,4 +166,4 @@  discard block
 block discarded – undo
166 166
 $xoopsTpl->assign('lang', $lang);
167 167
 $xoopsTpl->assign('view', 'year');
168 168
 
169
-include XOOPS_ROOT_PATH . '/footer.php';
169
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
xoops_version.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined');
21
-require_once __DIR__ . '/include/constantes.php';
22
-require_once __DIR__ . '/include/agenda_fnc.php';
23
-require_once __DIR__ . '/class/config.php';
21
+require_once __DIR__.'/include/constantes.php';
22
+require_once __DIR__.'/include/agenda_fnc.php';
23
+require_once __DIR__.'/class/config.php';
24 24
 //$loc_de = setlocale (LC_ALL, 'french');
25 25
 
26 26
 //echo "local :" .  setlocale(LC_TIME, $xoopsConfig['language'])."</ br>";
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
 
93 93
 // Tables created by sql file (without prefix!)
94 94
 $modversion['tables'] = [
95
-    $moduleDirName . '_' . 'cat',
96
-    $moduleDirName . '_' . 'event',
97
-    $moduleDirName . '_' . 'eventmember',
98
-    $moduleDirName . '_' . 'eventnotmember',
99
-    $moduleDirName . '_' . 'file',
100
-    $moduleDirName . '_' . 'etablissement'
95
+    $moduleDirName.'_'.'cat',
96
+    $moduleDirName.'_'.'event',
97
+    $moduleDirName.'_'.'eventmember',
98
+    $moduleDirName.'_'.'eventnotmember',
99
+    $moduleDirName.'_'.'file',
100
+    $moduleDirName.'_'.'etablissement'
101 101
 ];
102 102
 
103 103
 // SQL
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
 $modversion['config'][$i]['default']     = 5;
510 510
 
511 511
 ++$i;
512
-$modversion['config'][$i]['name']        = 'break' . $i;
512
+$modversion['config'][$i]['name']        = 'break'.$i;
513 513
 $modversion['config'][$i]['title']       = '_MI_EXTCAL_SHOW_OTHEROPTIONS';
514 514
 $modversion['config'][$i]['description'] = '';
515 515
 $modversion['config'][$i]['formtype']    = 'line_break';
Please login to merge, or discard this patch.