Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
class/pear/Calendar/docs/examples/9.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 if (!@include 'Calendar/Calendar.php') {
6 6
     define('CALENDAR_ROOT', '../../');
7 7
 }
8
-require_once CALENDAR_ROOT . 'Day.php';
8
+require_once CALENDAR_ROOT.'Day.php';
9 9
 
10 10
 $Day = new Calendar_Day(2003, 10, 23);
11 11
 
Please login to merge, or discard this patch.
blocks/spotlight_events.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../include/constantes.php';
3
+require_once __DIR__.'/../include/constantes.php';
4 4
 
5 5
 //---------------------------------------------------------------------
6 6
 
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
  **/
20 20
 
21 21
 $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
22
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
22
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
23 23
 
24 24
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/main.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-require_once __DIR__ . '/../../../include/cp_header.php';
4
-include __DIR__ . '/../../../class/xoopsformloader.php';
5
-require_once __DIR__ . '/admin_header.php';
3
+require_once __DIR__.'/../../../include/cp_header.php';
4
+include __DIR__.'/../../../class/xoopsformloader.php';
5
+require_once __DIR__.'/admin_header.php';
6 6
 
7 7
 function extgalleryLastVersion()
8 8
 {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         switch ($fct) {
38 38
             case 'send':
39 39
                 if (!$GLOBALS['xoopsSecurity']->check()) {
40
-                    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
40
+                    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
41 41
                 }
42 42
                 xoops_cp_header();
43 43
                 adminMenu(1);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     'EV_TITLE' => $event->getVar('event_title'),
71 71
                     'EV_START' => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_start')),
72 72
                     'EV_END'   => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_end')),
73
-                    'EV_LINK'  => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
73
+                    'EV_LINK'  => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
74 74
                 );
75 75
                 $xoopsMailer->assign($tag);
76 76
                 $xoopsMailer->send(true);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             default:
86 86
                 xoops_cp_header();
87 87
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
88
-                $subjectCaption = _AM_EXTCAL_SUBJECT . "<br><br><span style='font-size:x-small;font-weight:bold;'>" . _AM_EXTCAL_USEFUL_TAGS . "</span><br><span style='font-size:x-small;font-weight:normal;'>" . _AM_EXTCAL_MAILTAGS6 . '<br>' . _AM_EXTCAL_MAILTAGS2 . '</span>&nbsp;&nbsp;&nbsp;';
88
+                $subjectCaption = _AM_EXTCAL_SUBJECT."<br><br><span style='font-size:x-small;font-weight:bold;'>"._AM_EXTCAL_USEFUL_TAGS."</span><br><span style='font-size:x-small;font-weight:normal;'>"._AM_EXTCAL_MAILTAGS6.'<br>'._AM_EXTCAL_MAILTAGS2.'</span>&nbsp;&nbsp;&nbsp;';
89 89
                 $bodyCaption    = _AM_EXTCAL_BODY
90 90
                                   . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
91 91
                                   . _AM_EXTCAL_USEFUL_TAGS
@@ -108,12 +108,12 @@  discard block
 block discarded – undo
108 108
                                   . '<br>'
109 109
                                   . _AM_EXTCAL_MAILTAGS9
110 110
                                   . '</span>&nbsp;&nbsp;&nbsp;';
111
-                $toCheckBbox    = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
111
+                $toCheckBbox = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
112 112
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
113 113
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
114 114
 
115
-                echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
116
-                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
115
+                echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
116
+                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
117 117
                 echo _AM_EXTCAL_INFO_SEND_NOTIF;
118 118
                 echo '</fieldset><br>';
119 119
                 $form = new XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&amp;fct=send', 'post', true);
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
         //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
144 144
         $adminObject = \Xmf\Module\Admin::getInstance();
145 145
         $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
146
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount(), 'Green');
147
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
148
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
146
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount(), 'Green');
147
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
148
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
149 149
         $criteriaCompo = new CriteriaCompo();
150 150
         $criteriaCompo->add(new Criteria('event_approved', 1));
151 151
         $criteriaCompo->add(new Criteria('event_start', time(), '>='));
152
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>', 'Green');
152
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>', 'Green');
153 153
 
154 154
         $adminObject->addConfigBoxLine();
155 155
         $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
@@ -166,42 +166,42 @@  discard block
 block discarded – undo
166 166
         $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
167 167
         $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
168 168
 
169
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
170
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
169
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
170
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
171 171
         //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
172
-        echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
173
-        echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
172
+        echo '<img src='.$pathIcon16.'/edit.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
173
+        echo '<img src='.$pathIcon16.'/delete.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
174 174
         echo '</fieldset><br>';
175 175
 
176 176
         echo '<table class="outer" style="width:100%;">';
177 177
         echo '<tr style="text-align:center;">';
178
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
179
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
180
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
181
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
178
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
179
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
180
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
181
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
182 182
         echo '</tr>';
183 183
 
184 184
         if (count($pendingEvent) > 0) {
185 185
             $i = 0;
186 186
             foreach ($pendingEvent as $event) {
187 187
                 $class = (++$i % 2 == 0) ? 'even' : 'odd';
188
-                echo '<tr style="text-align:center;" class="' . $class . '">';
189
-                echo '<td>' . $event['cat']['cat_name'] . '</td>';
190
-                echo '<td>' . $event['event_title'] . '</td>';
191
-                echo '<td>' . $event['formated_event_start'] . '</td>';
188
+                echo '<tr style="text-align:center;" class="'.$class.'">';
189
+                echo '<td>'.$event['cat']['cat_name'].'</td>';
190
+                echo '<td>'.$event['event_title'].'</td>';
191
+                echo '<td>'.$event['formated_event_start'].'</td>';
192 192
                 echo '<td style="width:10%; text-align:center;">';
193
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
194
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
193
+                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png></a>&nbsp;&nbsp;';
194
+                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png></a>';
195 195
                 echo '</td>';
196 196
                 echo '</tr>';
197 197
             }
198 198
         } else {
199
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
199
+            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
200 200
         }
201 201
 
202 202
         echo '</table></fieldset><br>';
203 203
 
204
-        require_once __DIR__ . '/admin_footer.php';
204
+        require_once __DIR__.'/admin_footer.php';
205 205
 
206 206
         break;
207 207
 }
Please login to merge, or discard this patch.
admin/etablissement.php 1 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 ($delimg == 0 && !empty($_REQUEST['xoops_upload_file'][0])) {
209 209
             $upload = new XoopsMediaUploader($uploaddir_etablissement, array(
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.
admin/event.php 1 patch
Spacing   +45 added lines, -45 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
-require_once __DIR__ . '/../../../include/cp_header.php';
21
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
22
-require_once XOOPS_ROOT_PATH . '/class/pagenav.php';
23
-require_once __DIR__ . '/../class/form/extcalform.php';
24
-require_once __DIR__ . '/admin_header.php';
25
-require_once __DIR__ . '/../class/utility.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
22
+require_once XOOPS_ROOT_PATH.'/class/pagenav.php';
23
+require_once __DIR__.'/../class/form/extcalform.php';
24
+require_once __DIR__.'/admin_header.php';
25
+require_once __DIR__.'/../class/utility.php';
26 26
 
27 27
 $gepeto = array_merge($_GET, $_POST);
28 28
 //while (list($k, $v) = each($gepeto)) {
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
     //    while (list($k, $t) = each($rst)) {
51 51
     foreach ($rst as $k => $t) {
52 52
         if ($t['event_picture1'] != '') {
53
-            $f = XOOPS_ROOT_PATH . '/uploads/extcal/' . $t['event_picture1'];
53
+            $f = XOOPS_ROOT_PATH.'/uploads/extcal/'.$t['event_picture1'];
54 54
             unlink($f);
55
-            echo $f . '<br>';
55
+            echo $f.'<br>';
56 56
         }
57 57
 
58 58
         if ($t['event_picture2'] != '') {
59
-            $f = XOOPS_ROOT_PATH . '/uploads/extcal/' . $t['event_picture1'];
59
+            $f = XOOPS_ROOT_PATH.'/uploads/extcal/'.$t['event_picture1'];
60 60
             unlink($f);
61
-            echo $f . '<br>';
61
+            echo $f.'<br>';
62 62
         }
63 63
     }
64 64
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             if (!$eventHandler->modifyEvent($_POST['event_id'], $data)) {
121 121
                 redirect_header('event.php', 3, _AM_EXTCAL_EVENT_EDIT_FAILED, false);
122 122
             } else {
123
-                $fileHandler->createFile((int)$_POST['event_id']);
123
+                $fileHandler->createFile((int) $_POST['event_id']);
124 124
                 redirect_header('event.php', 3, _AM_EXTCAL_EVENT_EDITED, false);
125 125
             }
126 126
 
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         $eventId      = $_GET['event_id'];
192 192
         $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
193 193
 
194
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _MD_EXTCAL_EDIT_EVENT . '</legend>';
194
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._MD_EXTCAL_EDIT_EVENT.'</legend>';
195 195
 
196 196
         if ($form = $eventHandler->getEventForm('admin', $action, array('event_id' => $eventId))) {
197 197
             $form->display();
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
             $data[$key] = $val['value'];
217 217
         }
218 218
 
219
-        $data['event_id']    = 0;
220
-        $data['event_title'] .= ' (' . _AM_EXTCAL_CLONE_OF . $eventId . ')';
219
+        $data['event_id'] = 0;
220
+        $data['event_title'] .= ' ('._AM_EXTCAL_CLONE_OF.$eventId.')';
221 221
 
222 222
         $newEvent = $eventHandler->create();
223 223
         $newEvent->setVars($data);
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
         if (isset($_POST['confirm'])) {
235 235
             if (!$GLOBALS['xoopsSecurity']->check()) {
236
-                redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
236
+                redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
237 237
                 exit;
238 238
             }
239 239
             //             $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
         if (isset($_POST['deleteSelection'][0])) {
300 300
         } else {
301 301
             if (!$GLOBALS['xoopsSecurity']->check()) {
302
-                redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
302
+                redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
303 303
                 exit;
304 304
             }
305 305
 
@@ -332,32 +332,32 @@  discard block
 block discarded – undo
332 332
         $events       = $eventHandler->objectToArray($eventHandler->getNewEvent($start, $nbEventsByPage, 0, true), array('cat_id'));
333 333
         $eventHandler->formatEventsDate($events, _SHORTDATESTRING);
334 334
 
335
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
336
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
335
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
336
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
337 337
         //echo'<img src='. XOOPS_URL .'/'. $moduleInfo->getInfo('dirmoduleadmin').'/assets/images/action/edit.png' .' '.'style=vertical-align:middle;>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT . '<br>';
338 338
         //echo'<img src='. XOOPS_URL .'/'. $moduleInfo->getInfo('dirmoduleadmin').'/assets/images/action/delete.png'. ' '."style=vertical-align:middle;>&nbsp;&nbsp;". _AM_EXTCAL_INFO_DELETE;
339 339
 
340
-        echo '<img src=' . $pathIcon16 . '/edit.png' . ' ' . 'style=vertical-align:middle;>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT . '<br>';
341
-        echo '<img src=' . $pathIcon16 . '/delete.png' . ' ' . 'style=vertical-align:middle;>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE . '<br>';
340
+        echo '<img src='.$pathIcon16.'/edit.png'.' '.'style=vertical-align:middle;>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT.'<br>';
341
+        echo '<img src='.$pathIcon16.'/delete.png'.' '.'style=vertical-align:middle;>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE.'<br>';
342 342
 
343 343
         echo '</fieldset><br>';
344 344
 
345
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _MD_EXTCAL_SUBMITED_EVENT . '</legend>';
345
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._MD_EXTCAL_SUBMITED_EVENT.'</legend>';
346 346
 
347 347
         echo '<form method="POST" action="event.php">';
348 348
         echo '<input type="hidden" name="op" value="deleteSelection">';
349 349
 
350 350
         echo '<table class="outer" style="width:100%;">';
351 351
         echo '<tr style="text-align:center;">';
352
-        echo '<th>' . _AM_EXTCAL_DELETE . '</th>';
352
+        echo '<th>'._AM_EXTCAL_DELETE.'</th>';
353 353
         echo '<th>#</th>';
354
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
355
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
356
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
357
-        echo '<th>' . _AM_EXTCAL_END_DATE . '</th>';
358
-        echo '<th>' . _AM_EXTCAL_RECURRENT . '</th>';
359
-        echo '<th>' . _AM_EXTCAL_START_RULES . '</th>';
360
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
354
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
355
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
356
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
357
+        echo '<th>'._AM_EXTCAL_END_DATE.'</th>';
358
+        echo '<th>'._AM_EXTCAL_RECURRENT.'</th>';
359
+        echo '<th>'._AM_EXTCAL_START_RULES.'</th>';
360
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
361 361
 
362 362
         echo '</tr>';
363 363
 
@@ -365,15 +365,15 @@  discard block
 block discarded – undo
365 365
             $i = 0;
366 366
             foreach ($events as $event) {
367 367
                 $class = (++$i % 2 == 0) ? 'even' : 'odd';
368
-                echo '<tr style="text-align:left;" class="' . $class . '">';
368
+                echo '<tr style="text-align:left;" class="'.$class.'">';
369 369
                 echo "<td width='10%' align='center'>";
370 370
                 echo "<input type='checkbox' name='deleteEvents[{$event['event_id']}]' value='1' >";
371 371
                 echo "<input type='hidden' name='deleteAllEvents[{$event['event_id']}]' value='1'>";
372 372
                 echo '</td>';
373
-                echo "<td align = 'center' width='5%'>" . $event['event_id'] . '</td>';
374
-                echo "<td  width='10%'>" . '<a href=cat.php?op=modify&amp;cat_id=' . $event['cat']['cat_id'] . '&form_modify' . '>' . $event['cat']['cat_name'] . '</a>' . '</td>';
373
+                echo "<td align = 'center' width='5%'>".$event['event_id'].'</td>';
374
+                echo "<td  width='10%'>".'<a href=cat.php?op=modify&amp;cat_id='.$event['cat']['cat_id'].'&form_modify'.'>'.$event['cat']['cat_name'].'</a>'.'</td>';
375 375
 
376
-                echo '<td>' . '<a href=event.php?op=modify&amp;event_id=' . $event['event_id'] . '>' . $event['event_title'] . '</a>' . '</td>';
376
+                echo '<td>'.'<a href=event.php?op=modify&amp;event_id='.$event['event_id'].'>'.$event['event_title'].'</a>'.'</td>';
377 377
 
378 378
                 //                 if ($event['event_isrecur']) {
379 379
                 //                     echo '<td>' . $event['formated_reccur_rule'] . '</td>';
@@ -381,18 +381,18 @@  discard block
 block discarded – undo
381 381
                 //                     echo '<td>' . $event['formated_event_start'] . '</td>';
382 382
                 //                 }
383 383
 
384
-                echo "<td align = 'center' width='10%'>" . $event['formated_event_start'] . '</td>';
385
-                echo "<td align = 'center' width='10%'>" . $event['formated_event_end'] . '</td>';
386
-                echo '<td align="center">' . (($event['event_isrecur'] == 1) ? _YES : _NO) . '</td>';
384
+                echo "<td align = 'center' width='10%'>".$event['formated_event_start'].'</td>';
385
+                echo "<td align = 'center' width='10%'>".$event['formated_event_end'].'</td>';
386
+                echo '<td align="center">'.(($event['event_isrecur'] == 1) ? _YES : _NO).'</td>';
387 387
                 if (!isset($event['formated_reccur_rule'])) {
388 388
                     $event['formated_reccur_rule'] = '';
389 389
                 }
390
-                echo '<td>' . $event['formated_reccur_rule'] . '</td>';
390
+                echo '<td>'.$event['formated_reccur_rule'].'</td>';
391 391
 
392 392
                 echo '<td style="width:10%; text-align:center;">';
393
-                echo '<a href=event.php?op=modify&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/edit.png' title='" . _AM_EXTCAL_ICONE_EDIT . "'></a>&nbsp;&nbsp;";
394
-                echo '<a href=event.php?op=delete&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/delete.png' title='" . _AM_EXTCAL_ICONE_DELETE . "'></a>&nbsp;&nbsp;";
395
-                echo '<a href=event.php?op=clone&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/editcopy.png' title='" . _AM_EXTCAL_ICONE_CLONE . "'></a>";
393
+                echo '<a href=event.php?op=modify&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/edit.png' title='"._AM_EXTCAL_ICONE_EDIT."'></a>&nbsp;&nbsp;";
394
+                echo '<a href=event.php?op=delete&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/delete.png' title='"._AM_EXTCAL_ICONE_DELETE."'></a>&nbsp;&nbsp;";
395
+                echo '<a href=event.php?op=clone&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/editcopy.png' title='"._AM_EXTCAL_ICONE_CLONE."'></a>";
396 396
                 echo '</td>';
397 397
 
398 398
                 echo '</tr>';
@@ -406,13 +406,13 @@  discard block
 block discarded – undo
406 406
 
407 407
             echo '<td colspan="2" style="text-align: right;">';
408 408
 
409
-            echo '<input type="submit" value="' . _AM_EXTCAL_DELETE_ALL . '" name="deleteSelection[0]">';
410
-            echo '<input type="submit" value="' . _AM_EXTCAL_DELETE_SELECTION . '" name="deleteSelection[1]">';
409
+            echo '<input type="submit" value="'._AM_EXTCAL_DELETE_ALL.'" name="deleteSelection[0]">';
410
+            echo '<input type="submit" value="'._AM_EXTCAL_DELETE_SELECTION.'" name="deleteSelection[1]">';
411 411
 
412 412
             echo '</td>';
413 413
             echo '</tr>';
414 414
         } else {
415
-            echo '<tr><td colspan="5">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
415
+            echo '<tr><td colspan="5">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
416 416
         }
417 417
         echo '</table>';
418 418
         echo '</form>';
@@ -420,14 +420,14 @@  discard block
 block discarded – undo
420 420
         echo '</fieldset>';
421 421
         echo '</fieldset><br><br>';
422 422
         //Fin de la liste des evennement -------------------------------------
423
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _MD_EXTCAL_SUBMIT_EVENT . '</legend>';
423
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._MD_EXTCAL_SUBMIT_EVENT.'</legend>';
424 424
 
425 425
         $form = $eventHandler->getEventForm('admin');
426 426
         $form->display();
427 427
 
428 428
         echo '</fieldset>';
429 429
 
430
-        require_once __DIR__ . '/admin_footer.php';
430
+        require_once __DIR__.'/admin_footer.php';
431 431
 
432 432
         break;
433 433
 }
Please login to merge, or discard this patch.
include/constantes.php 1 patch
Spacing   +21 added lines, -21 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
 
@@ -107,21 +107,21 @@  discard block
 block discarded – undo
107 107
 define('_EXTCAL_NAV_NEW_EVENT', 'new-event');
108 108
 
109 109
 define('_EXTCAL_NAV_LIST',
110
-       _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" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT);
110
+       _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"._EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT);
111 111
 
112 112
 define('_EXTCAL_PREFIX_VIEW', 'view_');
113 113
 define('_EXTCAL_SUFFIX_VIEW', '.php');
114 114
 
115
-define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW);
116
-define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW);
117
-define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW);
118
-define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW);
119
-define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW);
120
-define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW);
121
-define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW);
122
-define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW);
123
-define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW);
124
-define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW);
115
+define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW);
116
+define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW);
117
+define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW);
118
+define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW);
119
+define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW);
120
+define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW);
121
+define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW);
122
+define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW);
123
+define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW);
124
+define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW);
125 125
 
126 126
 define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php');
127 127
 
Please login to merge, or discard this patch.
include/install_function.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 {
10 10
 
11 11
     // Create eXtCal upload directory
12
-    $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
12
+    $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
13 13
     if (!is_dir($dir)) {
14 14
         mkdir($dir);
15
-        mkdir($dir . '/etablissement');
15
+        mkdir($dir.'/etablissement');
16 16
 
17 17
         // Copy index.html files on uploads folders
18
-        $indexFile = __DIR__ . '/index.html';
19
-        copy($indexFile, $dir . '/index.html');
20
-        copy($indexFile, $dir . '/etablissement/index.html');
18
+        $indexFile = __DIR__.'/index.html';
19
+        copy($indexFile, $dir.'/index.html');
20
+        copy($indexFile, $dir.'/etablissement/index.html');
21 21
     }
22 22
 
23 23
     $moduleId               = $xoopsModule->getVar('mid');
Please login to merge, or discard this patch.
include/onupdate.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
 if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser)
22 22
     || !$GLOBALS['xoopsUser']->IsAdmin()) {
23
-    exit('Restricted access' . PHP_EOL);
23
+    exit('Restricted access'.PHP_EOL);
24 24
 }
25 25
 
26 26
 /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 function xoops_module_pre_update_extcal(XoopsModule $xoopsModule)
46 46
 {
47 47
     $moduleDirName = basename(dirname(__DIR__));
48
-    $classUtility  = ucfirst($moduleDirName) . 'Utility';
48
+    $classUtility  = ucfirst($moduleDirName).'Utility';
49 49
     if (!class_exists($classUtility)) {
50 50
         xoops_load('utility', $moduleDirName);
51 51
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         return true;
82 82
     }
83 83
 
84
-    $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/';
84
+    $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/';
85 85
     $cls = 'extcal_%1$s';
86 86
 
87 87
     $version = array(
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     foreach ($version as $key => $val) {
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>";
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     if ($previousVersion < 240) {
114
-        $configurator = include __DIR__ . '/config.php';
115
-        $classUtility = ucfirst($moduleDirName) . 'Utility';
114
+        $configurator = include __DIR__.'/config.php';
115
+        $classUtility = ucfirst($moduleDirName).'Utility';
116 116
         if (!class_exists($classUtility)) {
117 117
             xoops_load('utility', $moduleDirName);
118 118
         }
@@ -120,14 +120,14 @@  discard block
 block discarded – undo
120 120
         //delete old HTML templates
121 121
         if (count($configurator['templateFolders']) > 0) {
122 122
             foreach ($configurator['templateFolders'] as $folder) {
123
-                $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder);
123
+                $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder);
124 124
                 if (is_dir($templateFolder)) {
125 125
                     $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), array('..', '.'));
126 126
                     foreach ($templateList as $k => $v) {
127
-                        $fileInfo = new SplFileInfo($templateFolder . $v);
127
+                        $fileInfo = new SplFileInfo($templateFolder.$v);
128 128
                         if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') {
129
-                            if (file_exists($templateFolder . $v)) {
130
-                                unlink($templateFolder . $v);
129
+                            if (file_exists($templateFolder.$v)) {
130
+                                unlink($templateFolder.$v);
131 131
                             }
132 132
                         }
133 133
                     }
@@ -137,9 +137,9 @@  discard block
 block discarded – undo
137 137
 
138 138
         //  ---  COPY blank.png FILES ---------------
139 139
         if (count($configurator['copyFiles']) > 0) {
140
-            $file = __DIR__ . '/../assets/images/blank.png';
140
+            $file = __DIR__.'/../assets/images/blank.png';
141 141
             foreach (array_keys($configurator['copyFiles']) as $i) {
142
-                $dest = $configurator['copyFiles'][$i] . '/blank.png';
142
+                $dest = $configurator['copyFiles'][$i].'/blank.png';
143 143
                 $classUtility::copyFile($file, $dest);
144 144
             }
145 145
         }
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         if (count($configurator['oldFiles']) > 0) {
149 149
             //    foreach (array_keys($GLOBALS['uploadFolders']) as $i) {
150 150
             foreach (array_keys($configurator['oldFiles']) as $i) {
151
-                $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]);
151
+                $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]);
152 152
                 if (is_file($tempFile)) {
153 153
                     unlink($tempFile);
154 154
                 }
@@ -158,14 +158,14 @@  discard block
 block discarded – undo
158 158
         //---------------------
159 159
 
160 160
         //delete .html entries from the tpl table
161
-        $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $xoopsModule->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'";
161
+        $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$xoopsModule->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'";
162 162
         $xoopsDB->queryF($sql);
163 163
 
164 164
         // Load class XoopsFile ====================
165 165
         xoops_load('XoopsFile');
166 166
 
167 167
         //delete /images directory ============
168
-        $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $xoopsModule->getVar('dirname', 'n') . '/images/');
168
+        $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$xoopsModule->getVar('dirname', 'n').'/images/');
169 169
         $folderHandler   = XoopsFile::getHandler('folder', $imagesDirectory);
170 170
         $folderHandler->delete($imagesDirectory);
171 171
     }
Please login to merge, or discard this patch.