Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
admin/permissions.php 2 patches
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
          * Public category permission mask
94 94
          */
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96
-             . _AM_EXTCAL_PUBLIC_PERM_MASK
97
-             . '</a></legend><div id="default">';
96
+                . _AM_EXTCAL_PUBLIC_PERM_MASK
97
+                . '</a></legend><div id="default">';
98 98
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         echo '<fieldset id="'
147
-             . $permName
148
-             . 'Bookmark"><legend><a href="#'
149
-             . $permName
150
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
-             . $permName
152
-             . '\'); toggleIcon(\''
153
-             . $permName
154
-             . 'Icon\');"><img id="'
155
-             . $permName
156
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
-             . $titleOfForm
158
-             . '</a></legend><div id="'
159
-             . $permName
160
-             . '">';
147
+                . $permName
148
+                . 'Bookmark"><legend><a href="#'
149
+                . $permName
150
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
+                . $permName
152
+                . '\'); toggleIcon(\''
153
+                . $permName
154
+                . 'Icon\');"><img id="'
155
+                . $permName
156
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
+                . $titleOfForm
158
+                . '</a></legend><div id="'
159
+                . $permName
160
+                . '">';
161 161
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
         }
183 183
 
184 184
         echo '<fieldset id="'
185
-             . $permName
186
-             . 'Bookmark"><legend><a href="#'
187
-             . $permName
188
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
-             . $permName
190
-             . '\'); toggleIcon(\''
191
-             . $permName
192
-             . 'Icon\');"><img id="'
193
-             . $permName
194
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
-             . $titleOfForm
196
-             . '</a></legend><div id="'
197
-             . $permName
198
-             . '">';
185
+                . $permName
186
+                . 'Bookmark"><legend><a href="#'
187
+                . $permName
188
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
+                . $permName
190
+                . '\'); toggleIcon(\''
191
+                . $permName
192
+                . 'Icon\');"><img id="'
193
+                . $permName
194
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
+                . $titleOfForm
196
+                . '</a></legend><div id="'
197
+                . $permName
198
+                . '">';
199 199
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
@@ -219,20 +219,20 @@  discard block
 block discarded – undo
219 219
         }
220 220
 
221 221
         echo '<fieldset id="'
222
-             . $permName
223
-             . 'Bookmark"><legend><a href="#'
224
-             . $permName
225
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
-             . $permName
227
-             . '\'); toggleIcon(\''
228
-             . $permName
229
-             . 'Icon\');"><img id="'
230
-             . $permName
231
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
-             . $titleOfForm
233
-             . '</a></legend><div id="'
234
-             . $permName
235
-             . '">';
222
+                . $permName
223
+                . 'Bookmark"><legend><a href="#'
224
+                . $permName
225
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
+                . $permName
227
+                . '\'); toggleIcon(\''
228
+                . $permName
229
+                . 'Icon\');"><img id="'
230
+                . $permName
231
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
+                . $titleOfForm
233
+                . '</a></legend><div id="'
234
+                . $permName
235
+                . '">';
236 236
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
@@ -256,20 +256,20 @@  discard block
 block discarded – undo
256 256
         }
257 257
 
258 258
         echo '<fieldset id="'
259
-             . $permName
260
-             . 'Bookmark"><legend><a href="#'
261
-             . $permName
262
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
-             . $permName
264
-             . '\'); toggleIcon(\''
265
-             . $permName
266
-             . 'Icon\');"><img id="'
267
-             . $permName
268
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
-             . $titleOfForm
270
-             . '</a></legend><div id="'
271
-             . $permName
272
-             . '">';
259
+                . $permName
260
+                . 'Bookmark"><legend><a href="#'
261
+                . $permName
262
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
+                . $permName
264
+                . '\'); toggleIcon(\''
265
+                . $permName
266
+                . 'Icon\');"><img id="'
267
+                . $permName
268
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
+                . $titleOfForm
270
+                . '</a></legend><div id="'
271
+                . $permName
272
+                . '">';
273 273
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  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/xoopsform/grouppermform.php';
22
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
22
+require_once __DIR__.'/admin_header.php';
23 23
 
24 24
 $step = 'default';
25 25
 if (isset($_POST['step'])) {
@@ -95,35 +95,35 @@  discard block
 block discarded – undo
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96 96
              . _AM_EXTCAL_PUBLIC_PERM_MASK
97 97
              . '</a></legend><div id="default">';
98
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
98
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
101 101
         echo '<table class="outer" style="width:100%;">';
102 102
         echo '<form method="post" action="permissions.php">';
103 103
         echo '<tr>';
104
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
104
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
105 105
         echo '</tr>';
106 106
         echo '<tr>';
107
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
108
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
109
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
110
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
111
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
107
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
108
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
109
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
110
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
111
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
112 112
         echo '</tr>';
113 113
         $i = 0;
114 114
         foreach ($glist as $k => $v) {
115 115
             $style = (++$i % 2 == 0) ? 'odd' : 'even';
116 116
             echo '<tr>';
117
-            echo '<td class="' . $style . '">' . $v . '</td>';
118
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . '></td>';
119
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . '></td>';
120
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . '></td>';
121
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . '></td>';
117
+            echo '<td class="'.$style.'">'.$v.'</td>';
118
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).'></td>';
119
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).'></td>';
120
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).'></td>';
121
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).'></td>';
122 122
             echo '</tr>';
123 123
         }
124 124
         echo '<input type="hidden" name="type" value="public">';
125 125
         echo '<input type="hidden" name="step" value="enreg">';
126
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '"></td></tr></form>';
126
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'"></td></tr></form>';
127 127
         echo '</table><br>';
128 128
 
129 129
         echo '</div></fieldset><br>';
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
              . '</a></legend><div id="'
159 159
              . $permName
160 160
              . '">';
161
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
161
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
164 164
 
165 165
         if ($catHandler->getCount()) {
166
-            echo $form->render() . '<br>';
166
+            echo $form->render().'<br>';
167 167
         } else {
168 168
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
169 169
         }
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
              . '</a></legend><div id="'
197 197
              . $permName
198 198
              . '">';
199
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
199
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
202 202
         if ($catHandler->getCount()) {
203
-            echo $form->render() . '<br>';
203
+            echo $form->render().'<br>';
204 204
         } else {
205 205
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
206 206
         }
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
              . '</a></legend><div id="'
234 234
              . $permName
235 235
              . '">';
236
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
236
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
239 239
         if ($catHandler->getCount()) {
240
-            echo $form->render() . '<br>';
240
+            echo $form->render().'<br>';
241 241
         } else {
242 242
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
243 243
         }
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
              . '</a></legend><div id="'
271 271
              . $permName
272 272
              . '">';
273
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
273
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
276 276
         if ($catHandler->getCount()) {
277
-            echo $form->render() . '<br>';
277
+            echo $form->render().'<br>';
278 278
         } else {
279 279
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
280 280
         }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
292 292
         echo '</script>';
293 293
 
294
-        require_once __DIR__ . '/admin_footer.php';
294
+        require_once __DIR__.'/admin_footer.php';
295 295
 
296 296
         break;
297 297
 
Please login to merge, or discard this patch.
admin/about.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
  *
17 17
  * @author       Mage, Mamba
18 18
  **/
19
-require_once __DIR__ . '/admin_header.php';
19
+require_once __DIR__.'/admin_header.php';
20 20
 xoops_cp_header();
21 21
 
22 22
 $adminObject->displayNavigation(basename(__FILE__));
23 23
 $adminObject->displayAbout('[email protected]', false);
24 24
 
25
-require_once __DIR__ . '/admin_footer.php';
25
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/cat.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,11 +17,11 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
21
-include __DIR__ . '/../../../class/xoopsformloader.php';
22
-require_once __DIR__ . '/admin_header.php';
23
-require_once __DIR__ . '/../class/utility.php';
24
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+include __DIR__.'/../../../class/xoopsformloader.php';
22
+require_once __DIR__.'/admin_header.php';
23
+require_once __DIR__.'/../class/utility.php';
24
+require_once __DIR__.'/../include/constantes.php';
25 25
 
26 26
 $gepeto = array_merge($_GET, $_POST);
27 27
 //while (list($key, $value) = each($gepeto)) {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, 0), false);
80 80
         $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#FF0000'));
81 81
 
82
-        $file_path = __DIR__ . '/../assets/css/images';
82
+        $file_path = __DIR__.'/../assets/css/images';
83 83
         $tf        = XoopsLists::getImgListAsArray($file_path);
84 84
         array_unshift($tf, _MD_EXTCAL_NONE);
85 85
         //$xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, "cat_icone", $cat->getVar('cat_icone'), '');
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
         $form->display();
93 93
 
94
-        require_once __DIR__ . '/admin_footer.php';
94
+        require_once __DIR__.'/admin_footer.php';
95 95
         break;
96 96
 
97 97
     case 'edit':
@@ -104,15 +104,15 @@  discard block
 block discarded – undo
104 104
             $cat = $catHandler->getCat($cat_id, true);
105 105
         }
106 106
 
107
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_EDIT_CATEGORY . '</legend>';
107
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_EDIT_CATEGORY.'</legend>';
108 108
 
109 109
         $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
110 110
         $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
111 111
         $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc')), false);
112 112
         $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
113
-        $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#' . $cat->getVar('cat_color')));
113
+        $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#'.$cat->getVar('cat_color')));
114 114
 
115
-        $file_path = __DIR__ . '/../assets/css/images';
115
+        $file_path = __DIR__.'/../assets/css/images';
116 116
         $tf        = XoopsLists::getImgListAsArray($file_path);
117 117
         array_unshift($tf, _MD_EXTCAL_NONE);
118 118
         $xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, 'cat_icone', $cat->getVar('cat_icone'), '');
@@ -268,6 +268,6 @@  discard block
 block discarded – undo
268 268
         //$xoopsTpl->assign("module_dirname",    $xoopsModule->getVar("dirname") );
269 269
 
270 270
         $xoopsTpl->display('db:admin/extcal_admin_cat_list.tpl');
271
-        require_once __DIR__ . '/admin_footer.php';
271
+        require_once __DIR__.'/admin_footer.php';
272 272
         break;
273 273
 }
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[] = array(
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[] = array(
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[] = array(
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[] = array(
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[] = array(
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[] = array(
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/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
 
24
-$classUtility = ucfirst($moduleDirName) . 'Utility';
24
+$classUtility = ucfirst($moduleDirName).'Utility';
25 25
 if (!class_exists($classUtility)) {
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
     $classUtility::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.
post.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -17,20 +17,20 @@  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
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_post.tpl';
22 22
 
23
-include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
24
-include __DIR__ . '/class/form/extcalform.php';
25
-include __DIR__ . '/class/perm.php';
23
+include XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
24
+include __DIR__.'/class/form/extcalform.php';
25
+include __DIR__.'/class/perm.php';
26 26
 
27
-require_once __DIR__ . '/class/utility.php';
28
-require_once __DIR__ . '/include/constantes.php';
27
+require_once __DIR__.'/class/utility.php';
28
+require_once __DIR__.'/include/constantes.php';
29 29
 
30 30
 $permHandler = ExtcalPerm::getHandler();
31 31
 $xoopsUser   = $xoopsUser ?: null;
32 32
 
33
-if (!$permHandler->isAllowed($xoopsUser, 'extcal_cat_submit', (int)$_POST['cat_id'])) {
33
+if (!$permHandler->isAllowed($xoopsUser, 'extcal_cat_submit', (int) $_POST['cat_id'])) {
34 34
     redirect_header('index.php', 3);
35 35
     exit;
36 36
 }
@@ -39,16 +39,16 @@  discard block
 block discarded – undo
39 39
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
40 40
 
41 41
 if (isset($_POST['form_preview'])) {
42
-    include XOOPS_ROOT_PATH . '/header.php';
42
+    include XOOPS_ROOT_PATH.'/header.php';
43 43
 
44 44
     // Title of the page
45 45
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
46 46
 
47 47
     $data = array(
48 48
         'event_title'        => $_POST['event_title'],
49
-        'cat_id'             => (int)$_POST['cat_id'],
49
+        'cat_id'             => (int) $_POST['cat_id'],
50 50
         'event_desc'         => $_POST['event_desc'],
51
-        'event_nbmember'     => (int)$_POST['event_nbmember'],
51
+        'event_nbmember'     => (int) $_POST['event_nbmember'],
52 52
         'event_contact'      => $_POST['event_contact'],
53 53
         'event_url'          => $_POST['event_url'],
54 54
         'event_email'        => $_POST['event_email'],
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
         'event_start'        => $_POST['event_start'],
58 58
         'have_end'           => $_POST['have_end'],
59 59
         'event_end'          => $_POST['event_end'],
60
-        'dohtml'             => (int)$xoopsModuleConfig['allow_html'],
60
+        'dohtml'             => (int) $xoopsModuleConfig['allow_html'],
61 61
         'event_price'        => $_POST['event_price'],
62 62
         'event_organisateur' => $_POST['event_organisateur'],
63 63
         'event_icone'        => $_POST['event_icone'],
64 64
     );
65 65
 
66 66
     if (isset($_POST['event_id'])) {
67
-        $data['event_id'] = (int)$_POST['event_id'];
67
+        $data['event_id'] = (int) $_POST['event_id'];
68 68
     }
69 69
 
70 70
     // Creating tempory event object to apply Object data filtering
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     //     // Assigning language data to the template
84 84
     //     $xoopsTpl->assign('lang', $lang);
85 85
 
86
-    $event['cat_id']   = (int)$_POST['cat_id'];
86
+    $event['cat_id']   = (int) $_POST['cat_id'];
87 87
     $event['have_end'] = $_POST['have_end'];
88 88
 
89 89
     // Display the submit form
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     $xoopsTpl->assign('preview', true);
93 93
     $xoopsTpl->assign('formBody', $formBody);
94 94
 
95
-    include XOOPS_ROOT_PATH . '/footer.php';
95
+    include XOOPS_ROOT_PATH.'/footer.php';
96 96
 } elseif (isset($_POST['form_submit'])) {
97 97
     if (!isset($_POST['rrule_weekly_interval'])) {
98 98
         $_POST['rrule_weekly_interval'] = 0;
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
     ExtcalUtility::extcal_loadImg($_REQUEST, $event_picture1, $event_picture2);
117 117
     ///////////////////////////////////////////////////////////////////////////////
118 118
 
119
-    require_once __DIR__ . '/class/perm.php';
119
+    require_once __DIR__.'/class/perm.php';
120 120
 
121 121
     $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
122 122
     $permHandler = ExtcalPerm::getHandler();
123
-    $approve     = $permHandler->isAllowed($xoopsUser, 'extcal_cat_autoapprove', (int)$_POST['cat_id']);
123
+    $approve     = $permHandler->isAllowed($xoopsUser, 'extcal_cat_autoapprove', (int) $_POST['cat_id']);
124 124
 
125 125
     $data = array(
126 126
         'event_title'         => $_POST['event_title'],
@@ -146,11 +146,11 @@  discard block
 block discarded – undo
146 146
     );
147 147
 
148 148
     if (isset($_POST['event_id'])) {
149
-        $eventHandler->modifyEvent((int)$_POST['event_id'], $data);
150
-        $fileHandler->updateEventFile((int)$_POST['event_id']);
151
-        $fileHandler->createFile((int)$_POST['event_id']);
149
+        $eventHandler->modifyEvent((int) $_POST['event_id'], $data);
150
+        $fileHandler->updateEventFile((int) $_POST['event_id']);
151
+        $fileHandler->createFile((int) $_POST['event_id']);
152 152
 
153
-        redirect_header('event.php?event=' . $_POST['event_id'], 3, _MD_EXTCAL_EVENT_UPDATED, false);
153
+        redirect_header('event.php?event='.$_POST['event_id'], 3, _MD_EXTCAL_EVENT_UPDATED, false);
154 154
     } else {
155 155
         $data['event_submitter']  = $xoopsUser ? $xoopsUser->getVar('uid') : 0;
156 156
         $data['event_submitdate'] = time();
@@ -167,8 +167,8 @@  discard block
 block discarded – undo
167 167
         $notificationHandler->triggerEvent('global', 0, $notifyEvent, array('EVENT_TITLE' => $_POST['event_title']));
168 168
         if ($approve == 1) {
169 169
             $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
170
-            $cat        = $catHandler->getCat((int)$_POST['cat_id'], $xoopsUser, 'all');
171
-            $notificationHandler->triggerEvent('cat', (int)$_POST['cat_id'], 'new_event_cat', array(
170
+            $cat        = $catHandler->getCat((int) $_POST['cat_id'], $xoopsUser, 'all');
171
+            $notificationHandler->triggerEvent('cat', (int) $_POST['cat_id'], 'new_event_cat', array(
172 172
                 'EVENT_TITLE' => $_POST['event_title'],
173 173
                 'CAT_NAME'    => $cat->getVar('cat_name'),
174 174
             ));
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>";
@@ -93,12 +93,12 @@  discard block
 block discarded – undo
93 93
 
94 94
 // Tables created by sql file (without prefix!)
95 95
 $modversion['tables'] = array(
96
-    $moduleDirName . '_' . 'cat',
97
-    $moduleDirName . '_' . 'event',
98
-    $moduleDirName . '_' . 'eventmember',
99
-    $moduleDirName . '_' . 'eventnotmember',
100
-    $moduleDirName . '_' . 'file',
101
-    $moduleDirName . '_' . 'etablissement'
96
+    $moduleDirName.'_'.'cat',
97
+    $moduleDirName.'_'.'event',
98
+    $moduleDirName.'_'.'eventmember',
99
+    $moduleDirName.'_'.'eventnotmember',
100
+    $moduleDirName.'_'.'file',
101
+    $moduleDirName.'_'.'etablissement'
102 102
 );
103 103
 
104 104
 // SQL
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
 $modversion['config'][$i]['default']     = 5;
511 511
 
512 512
 ++$i;
513
-$modversion['config'][$i]['name']        = 'break' . $i;
513
+$modversion['config'][$i]['name']        = 'break'.$i;
514 514
 $modversion['config'][$i]['title']       = '_MI_EXTCAL_SHOW_OTHEROPTIONS';
515 515
 $modversion['config'][$i]['description'] = '';
516 516
 $modversion['config'][$i]['formtype']    = 'line_break';
Please login to merge, or discard this patch.
versions/extcal_2_21.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
 
45 45
         // Create who's not going table to fix bug. If the table exist, the query will faile
46 46
         $sql = 'CREATE TABLE `'
47
-               . $xoopsDB->prefix('extcal_eventnotmember')
48
-               . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
47
+                . $xoopsDB->prefix('extcal_eventnotmember')
48
+                . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
49 49
         $xoopsDB->query($sql);
50 50
     }
51 51
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,13 +33,13 @@
 block discarded – undo
33 33
         global $xoopsDB;
34 34
 
35 35
         // Create eXtcal upload directory if don't exist
36
-        $dir = XOOPS_ROOT_PATH . '/uploads/extcal';
36
+        $dir = XOOPS_ROOT_PATH.'/uploads/extcal';
37 37
         if (!is_dir($dir)) {
38 38
             mkdir($dir);
39 39
 
40 40
             // Copy index.html files on uploads folders
41
-            $indexFile = __DIR__ . '/index.html';
42
-            copy($indexFile, XOOPS_ROOT_PATH . '/uploads/extcal/index.html');
41
+            $indexFile = __DIR__.'/index.html';
42
+            copy($indexFile, XOOPS_ROOT_PATH.'/uploads/extcal/index.html');
43 43
         }
44 44
 
45 45
         // Create who's not going table to fix bug. If the table exist, the query will faile
Please login to merge, or discard this patch.
versions/extcal_2_15.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
         $xoopsDB->query($sql);
52 52
 
53 53
         $sql = 'CREATE TABLE `'
54
-               . $xoopsDB->prefix('extcal_event')
55
-               . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
54
+                . $xoopsDB->prefix('extcal_event')
55
+                . "` (`eventnotmember_id` INT(11) NOT NULL AUTO_INCREMENT,`event_id` INT(11) NOT NULL DEFAULT '0',`uid` INT(11) NOT NULL DEFAULT '0',PRIMARY KEY  (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;";
56 56
         $xoopsDB->query($sql);
57 57
 
58 58
         $sql = 'CREATE TABLE `'
59
-               . $xoopsDB->prefix('extcal_file')
60
-               . "` (`file_id` INT(11) NOT NULL AUTO_INCREMENT,`file_name` VARCHAR(255) NOT NULL,`file_nicename` VARCHAR(255) NOT NULL,`file_mimetype` VARCHAR(255) NOT NULL,`file_size` INT(11) NOT NULL,`file_download` INT(11) NOT NULL,`file_date` INT(11) NOT NULL,`file_approved` TINYINT(1) NOT NULL,`event_id` INT(11) NOT NULL,`uid` INT(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
59
+                . $xoopsDB->prefix('extcal_file')
60
+                . "` (`file_id` INT(11) NOT NULL AUTO_INCREMENT,`file_name` VARCHAR(255) NOT NULL,`file_nicename` VARCHAR(255) NOT NULL,`file_mimetype` VARCHAR(255) NOT NULL,`file_size` INT(11) NOT NULL,`file_download` INT(11) NOT NULL,`file_date` INT(11) NOT NULL,`file_approved` TINYINT(1) NOT NULL,`event_id` INT(11) NOT NULL,`uid` INT(11) NOT NULL,PRIMARY KEY  (`file_id`)) COMMENT='eXtcal By Zoullou' ;";
61 61
         $xoopsDB->query($sql);
62 62
     }
63 63
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,19 +35,19 @@
 block discarded – undo
35 35
         //$xoopsDB = XoopsDatabaseFactory::getDatabaseConnection();
36 36
         $xoopsDB = XoopsDatabaseFactory::getDatabaseConnection();
37 37
 
38
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . "` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
38
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event')."` CHANGE `event_approved` `event_approved` TINYINT( 1 ) NOT NULL DEFAULT '0' ;";
39 39
         $xoopsDB->query($sql);
40 40
 
41
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
41
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_isrecur` TINYINT( 1 ) NOT NULL AFTER `event_nbmember` ;';
42 42
         $xoopsDB->query($sql);
43 43
 
44
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
44
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_rules` VARCHAR( 255 ) NOT NULL AFTER `event_isrecur` ';
45 45
         $xoopsDB->query($sql);
46 46
 
47
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
47
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_start` INT( 11 ) NOT NULL AFTER `event_recur_rules` ;';
48 48
         $xoopsDB->query($sql);
49 49
 
50
-        $sql = 'ALTER TABLE `' . $xoopsDB->prefix('extcal_event') . '` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
50
+        $sql = 'ALTER TABLE `'.$xoopsDB->prefix('extcal_event').'` ADD `event_recur_end` INT( 11 ) NOT NULL AFTER `event_recur_start` ;';
51 51
         $xoopsDB->query($sql);
52 52
 
53 53
         $sql = 'CREATE TABLE `'
Please login to merge, or discard this patch.