Completed
Push — master ( 92c65a...a0a739 )
by Michael
02:30
created
class/utility.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -151,11 +151,11 @@
 block discarded – undo
151 151
             $cat_color = $catList->getVar('cat_color');
152 152
             $checked   = in_array($cat_id, $cat) ? 'checked' : '';
153 153
             $cat       = ''
154
-                         . "<div style='float:left; margin-left:5px;'>"
155
-                         . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
156
-                         . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
157
-                         . " {$name}"
158
-                         . '</div>';
154
+                            . "<div style='float:left; margin-left:5px;'>"
155
+                            . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>"
156
+                            . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>"
157
+                            . " {$name}"
158
+                            . '</div>';
159 159
 
160 160
             $t[] = $cat;
161 161
         }
Please login to merge, or discard this patch.
admin/permissions.php 1 patch
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.
versions/extcal_2_21.php 1 patch
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.
versions/extcal_2_15.php 1 patch
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.
admin/main.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -87,27 +87,27 @@
 block discarded – undo
87 87
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
88 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
-                                  . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
91
-                                  . _AM_EXTCAL_USEFUL_TAGS
92
-                                  . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
93
-                                  . _AM_EXTCAL_MAILTAGS1
94
-                                  . '<br>'
95
-                                  . _AM_EXTCAL_MAILTAGS2
96
-                                  . '<br>'
97
-                                  . _AM_EXTCAL_MAILTAGS3
98
-                                  . '<br>'
99
-                                  . _AM_EXTCAL_MAILTAGS4
100
-                                  . '<br>'
101
-                                  . _AM_EXTCAL_MAILTAGS5
102
-                                  . '<br>'
103
-                                  . _AM_EXTCAL_MAILTAGS6
104
-                                  . '<br>'
105
-                                  . _AM_EXTCAL_MAILTAGS7
106
-                                  . '<br>'
107
-                                  . _AM_EXTCAL_MAILTAGS8
108
-                                  . '<br>'
109
-                                  . _AM_EXTCAL_MAILTAGS9
110
-                                  . '</span>&nbsp;&nbsp;&nbsp;';
90
+                                    . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
91
+                                    . _AM_EXTCAL_USEFUL_TAGS
92
+                                    . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
93
+                                    . _AM_EXTCAL_MAILTAGS1
94
+                                    . '<br>'
95
+                                    . _AM_EXTCAL_MAILTAGS2
96
+                                    . '<br>'
97
+                                    . _AM_EXTCAL_MAILTAGS3
98
+                                    . '<br>'
99
+                                    . _AM_EXTCAL_MAILTAGS4
100
+                                    . '<br>'
101
+                                    . _AM_EXTCAL_MAILTAGS5
102
+                                    . '<br>'
103
+                                    . _AM_EXTCAL_MAILTAGS6
104
+                                    . '<br>'
105
+                                    . _AM_EXTCAL_MAILTAGS7
106
+                                    . '<br>'
107
+                                    . _AM_EXTCAL_MAILTAGS8
108
+                                    . '<br>'
109
+                                    . _AM_EXTCAL_MAILTAGS9
110
+                                    . '</span>&nbsp;&nbsp;&nbsp;';
111 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);
Please login to merge, or discard this patch.
etablissement.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -55,22 +55,22 @@
 block discarded – undo
55 55
 $edit_delete = '';
56 56
 if (is_object($xoopsUser) && $isAdmin) {
57 57
     $edit_delete = '<a href="'
58
-                   . XOOPS_URL
59
-                   . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='
60
-                   . $etablissement_id
61
-                   . '"><img src="'
62
-                   . $pathIcon16
63
-                   . '/edit.png" width="16px" height="16px" border="0" title="'
64
-                   . _MD_EXTCAL_ETABLISSEMENT_EDIT
65
-                   . '"></a><a href="'
66
-                   . XOOPS_URL
67
-                   . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='
68
-                   . $etablissement_id
69
-                   . '"><img src="'
70
-                   . $pathIcon16
71
-                   . '/delete.png" width="16px" height="16px" border="0" title="'
72
-                   . _MD_EXTCAL_ETABLISSEMENT_DELETE
73
-                   . '"></a>';
58
+                    . XOOPS_URL
59
+                    . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='
60
+                    . $etablissement_id
61
+                    . '"><img src="'
62
+                    . $pathIcon16
63
+                    . '/edit.png" width="16px" height="16px" border="0" title="'
64
+                    . _MD_EXTCAL_ETABLISSEMENT_EDIT
65
+                    . '"></a><a href="'
66
+                    . XOOPS_URL
67
+                    . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='
68
+                    . $etablissement_id
69
+                    . '"><img src="'
70
+                    . $pathIcon16
71
+                    . '/delete.png" width="16px" height="16px" border="0" title="'
72
+                    . _MD_EXTCAL_ETABLISSEMENT_DELETE
73
+                    . '"></a>';
74 74
 }
75 75
 $xoopsTpl->assign('edit_delete', $edit_delete);
76 76
 
Please login to merge, or discard this patch.
include/constantes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
 define(
110 110
     '_EXTCAL_NAV_LIST',
111
-       _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
+        _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
112 112
 );
113 113
 
114 114
 define('_EXTCAL_PREFIX_VIEW', 'view_');
Please login to merge, or discard this patch.
blocks/minical.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
         new Calendar_Day(
165 165
             date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
166 166
             date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))),
167
-                         date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))
167
+                            date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))
168 168
         ),
169 169
     ];
170 170
 
Please login to merge, or discard this patch.
admin/etablissement.php 1 patch
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.