Completed
Push — master ( d79f0a...abdca8 )
by Michael
06:29
created
event_notmember.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5
-include_once __DIR__ . '/include/constantes.php';
6
-include_once __DIR__ . '/include/mail_fnc.php';
7
-include_once __DIR__ . '/class/utilities.php';
5
+include_once __DIR__.'/include/constantes.php';
6
+include_once __DIR__.'/include/mail_fnc.php';
7
+include_once __DIR__.'/class/utilities.php';
8 8
 
9 9
 /*
10 10
 ext_echoArray($_POST);
@@ -21,20 +21,20 @@  discard block
 block discarded – undo
21 21
 $member_uid = $xoopsUser->getVar('uid');
22 22
 
23 23
 if (!$GLOBALS['xoopsSecurity']->check()) {
24
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
24
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
25 25
 }
26 26
 
27 27
 if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) {
28 28
     // If param are right
29
-    if ((int)$_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
29
+    if ((int) $_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
30 30
         $eventHandler          = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
31 31
         $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE);
32 32
 
33 33
         // If the user have to be added
34 34
         if ($_POST['mode'] === 'add') {
35
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
35
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
36 36
             $eventNotMemberHandler->createEventNotMember(array(
37
-                                                             'event_id' => (int)$_POST['event'],
37
+                                                             'event_id' => (int) $_POST['event'],
38 38
                                                              'uid'      => $xoopsUser->getVar('uid'),
39 39
                                                          ));
40 40
             sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
             // If the user have to be remove
44 44
         } else {
45 45
             if ($_POST['mode'] === 'remove') {
46
-                $eventNotMemberHandler->deleteEventNotMember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
46
+                $eventNotMemberHandler->deleteEventNotMember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
47 47
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4);
48 48
                 $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT;
49 49
             }
50 50
         }
51
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
51
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
52 52
     } else {
53 53
         redirect_header('index.php', 3, _NOPERM, false);
54 54
     }
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 );
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 
37 37
 // Calculating timestamp for the begin and the end of the month
@@ -128,21 +128,21 @@  discard block
 block discarded – undo
128 128
 // Making navig data
129 129
 $navig = array(
130 130
     'prev' => array(
131
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
131
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
132 132
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
133 133
     ),
134 134
     'this' => array(
135
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
135
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
136 136
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
137 137
     ),
138 138
     'next' => array(
139
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
139
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
140 140
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
141 141
     ),
142 142
 );
143 143
 
144 144
 // Title of the page
145
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
145
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
146 146
 
147 147
 // Assigning navig data to the template
148 148
 $xoopsTpl->assign('navig', $navig);
@@ -182,4 +182,4 @@  discard block
 block discarded – undo
182 182
 $xoopsTpl->assign('lang', $lang);
183 183
 $xoopsTpl->assign('view', 'calmonth');
184 184
 
185
-include XOOPS_ROOT_PATH . '/footer.php';
185
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
print.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 
6
-include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php';
6
+include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php';
7 7
 
8 8
 if (!isset($_GET['event'])) {
9 9
     $eventId = 0;
10 10
 } else {
11
-    $eventId = (int)$_GET['event'];
11
+    $eventId = (int) $_GET['event'];
12 12
 }
13 13
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
14 14
 $event        = $eventHandler->objectToArray($eventHandler->getEvent($eventId), array('cat_id'));
@@ -23,136 +23,136 @@  discard block
 block discarded – undo
23 23
 // Adding formated date for start and end event
24 24
 $eventHandler->formatEventDate($event, $xoopsModuleConfig['event_date_event']);
25 25
 
26
-echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
27
-echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n";
28
-echo '<head>' . "\n";
29
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />' . "\n";
30
-echo '<title>' . $event['cat']['cat_name'] . ' - ' . $event['event_title'] . '</title>' . "\n";
31
-echo '</head>' . "\n";
32
-echo '<body onload="window.print()">' . "\n";
33
-echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">' . "\n";
34
-echo '<tr>' . "\n";
35
-echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">' . "\n";
36
-echo $event['event_title'] . "\n";
37
-echo '</td>' . "\n";
38
-echo '</tr>' . "\n";
39
-echo '<tr>' . "\n";
40
-echo '<td style="width:50%; border:1px solid black;">' . "\n";
41
-echo '<b>' . $event['cat']['cat_name'] . '</b><br>' . "\n";
42
-echo '<span style="font-weight:normal;">' . $event['cat']['cat_desc'] . '</span>' . "\n";
43
-echo '</td>' . "\n";
44
-echo '<td style="border:1px solid black;">' . "\n";
26
+echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
27
+echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
28
+echo '<head>'."\n";
29
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" />'."\n";
30
+echo '<title>'.$event['cat']['cat_name'].' - '.$event['event_title'].'</title>'."\n";
31
+echo '</head>'."\n";
32
+echo '<body onload="window.print()">'."\n";
33
+echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">'."\n";
34
+echo '<tr>'."\n";
35
+echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">'."\n";
36
+echo $event['event_title']."\n";
37
+echo '</td>'."\n";
38
+echo '</tr>'."\n";
39
+echo '<tr>'."\n";
40
+echo '<td style="width:50%; border:1px solid black;">'."\n";
41
+echo '<b>'.$event['cat']['cat_name'].'</b><br>'."\n";
42
+echo '<span style="font-weight:normal;">'.$event['cat']['cat_desc'].'</span>'."\n";
43
+echo '</td>'."\n";
44
+echo '<td style="border:1px solid black;">'."\n";
45 45
 if (!$event['event_isrecur']) {
46
-    echo '<b>' . _MD_EXTCAL_START . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_start'] . '</span><br>' . "\n";
47
-    echo '<b>' . _MD_EXTCAL_END . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_end'] . '</span>' . "\n";
46
+    echo '<b>'._MD_EXTCAL_START.' :</b> <span style="font-weight:normal;">'.$event['formated_event_start'].'</span><br>'."\n";
47
+    echo '<b>'._MD_EXTCAL_END.' :</b> <span style="font-weight:normal;">'.$event['formated_event_end'].'</span>'."\n";
48 48
 } else {
49
-    echo '<b>' . _MD_EXTCAL_RECCUR_RULE . ' :</b> <span style="font-weight:normal;">' . $event['formated_reccur_rule'] . '</span>' . "\n";
49
+    echo '<b>'._MD_EXTCAL_RECCUR_RULE.' :</b> <span style="font-weight:normal;">'.$event['formated_reccur_rule'].'</span>'."\n";
50 50
 }
51
-echo '</td>' . "\n";
52
-echo '</tr>' . "\n";
51
+echo '</td>'."\n";
52
+echo '</tr>'."\n";
53 53
 
54
-echo '<tr>' . "\n";
54
+echo '<tr>'."\n";
55 55
 if ($event['event_desc'] != '') {
56
-    echo '<td style="border:1px solid black;">' . $event['event_desc'] . '</td>' . "\n";
56
+    echo '<td style="border:1px solid black;">'.$event['event_desc'].'</td>'."\n";
57 57
 }
58 58
 if ($event['event_price'] != '') {
59
-    echo '<td style="border:1px solid black;">' . _MD_EXTCAL_ETABLISSEMENT_PRICE . $event['event_price'] . ' ' . _MD_EXTCAL_DEVISE2 . '</td>' . "\n";
59
+    echo '<td style="border:1px solid black;">'._MD_EXTCAL_ETABLISSEMENT_PRICE.$event['event_price'].' '._MD_EXTCAL_DEVISE2.'</td>'."\n";
60 60
 }
61
-echo '</tr>' . "\n";
61
+echo '</tr>'."\n";
62 62
 
63 63
 //show contact info
64 64
 if ($event['event_contact'] != '') {
65
-    echo '<tr>' . "\n";
66
-    echo '<td style="border:1px solid black;">' . "\n";
67
-    echo '<b>' . _MD_EXTCAL_CONTACT_INFO . '</b><br>' . "\n";
68
-    echo '<span style="font-weight:normal;">' . $event['event_organisateur'] . '<br>' . "\n";
69
-    echo '<span style="font-weight:normal;">' . $event['event_contact'] . '<br>' . "\n";
70
-    echo $event['event_address'] . '</span>' . "\n";
71
-    echo '</td>' . "\n";
72
-    echo '<td style="border:1px solid black;">' . "\n";
73
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $event['event_email'] . '">' . $event['event_email'] . '</a><br>' . "\n";
74
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $event['event_url'] . '">' . $event['event_url'] . '</a>' . "\n";
75
-    echo '</td>' . "\n";
76
-    echo '</tr>' . "\n";
65
+    echo '<tr>'."\n";
66
+    echo '<td style="border:1px solid black;">'."\n";
67
+    echo '<b>'._MD_EXTCAL_CONTACT_INFO.'</b><br>'."\n";
68
+    echo '<span style="font-weight:normal;">'.$event['event_organisateur'].'<br>'."\n";
69
+    echo '<span style="font-weight:normal;">'.$event['event_contact'].'<br>'."\n";
70
+    echo $event['event_address'].'</span>'."\n";
71
+    echo '</td>'."\n";
72
+    echo '<td style="border:1px solid black;">'."\n";
73
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$event['event_email'].'">'.$event['event_email'].'</a><br>'."\n";
74
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$event['event_url'].'">'.$event['event_url'].'</a>'."\n";
75
+    echo '</td>'."\n";
76
+    echo '</tr>'."\n";
77 77
 }
78 78
 
79 79
 //show location
80 80
 if ($event['event_etablissement'] = 0) {
81
-    echo '<tr>' . "\n";
81
+    echo '<tr>'."\n";
82 82
 
83 83
     //    echo($location['nom']);
84 84
     //    var_dump($location);
85 85
     //    var_dump($event);
86 86
 
87
-    echo '<td style="border:1px solid black;">' . "\n";
88
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT . '</b>' . "\n";
87
+    echo '<td style="border:1px solid black;">'."\n";
88
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT.'</b>'."\n";
89 89
     if ($location['categorie'] != '') {
90
-        echo '<span style="font-weight:normal;"> (' . $location['categorie'] . ') <br>' . "\n";
90
+        echo '<span style="font-weight:normal;"> ('.$location['categorie'].') <br>'."\n";
91 91
     }
92 92
     if ($location['logo'] != '') {
93
-        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/etablissement/' . $location['logo'] . ' height="75px" />' . '' . "\n";
93
+        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/etablissement/'.$location['logo'].' height="75px" />'.''."\n";
94 94
     }
95 95
 
96
-    echo '<span style="font-weight:normal;">' . $location['nom'] . '<br>' . "\n";
97
-    echo $location['description'] . '<br>' . "\n";
98
-    echo $location['adresse'] . '</span> <br>' . "\n";
96
+    echo '<span style="font-weight:normal;">'.$location['nom'].'<br>'."\n";
97
+    echo $location['description'].'<br>'."\n";
98
+    echo $location['adresse'].'</span> <br>'."\n";
99 99
     if ($location['adresse2'] != '') {
100
-        echo $location['adresse2'] . '</span> <br>' . "\n";
100
+        echo $location['adresse2'].'</span> <br>'."\n";
101 101
     }
102
-    echo $location['ville'] . "\n";
103
-    echo $location['cp'] . '<br>' . "\n";
102
+    echo $location['ville']."\n";
103
+    echo $location['cp'].'<br>'."\n";
104 104
 
105 105
     if ($location['horaires'] != '') {
106
-        echo $location['horaires'] . '</span> <br>' . "\n";
106
+        echo $location['horaires'].'</span> <br>'."\n";
107 107
     }
108 108
 
109 109
     if ($location['divers'] != '') {
110
-        echo $location['divers'] . '</span> <br>' . "\n";
110
+        echo $location['divers'].'</span> <br>'."\n";
111 111
     }
112 112
 
113 113
     if ($location['tarifs'] != '') {
114
-        echo $location['tarifs'] . '</span> ' . _MD_EXTCAL_DEVISE2 . "\n";
114
+        echo $location['tarifs'].'</span> '._MD_EXTCAL_DEVISE2."\n";
115 115
     }
116 116
 
117
-    echo '</td>' . "\n";
118
-    echo '<td style="border:1px solid black;">' . "\n";
117
+    echo '</td>'."\n";
118
+    echo '<td style="border:1px solid black;">'."\n";
119 119
 
120 120
     if ($location['tel_fixe'] != '') {
121
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_FIXE . ' :</b>' . $location['tel_fixe'] . '<br>' . "\n";
121
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_FIXE.' :</b>'.$location['tel_fixe'].'<br>'."\n";
122 122
     }
123 123
     if ($location['tel_portable'] != '') {
124
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE . ' :</b>' . $location['tel_portable'] . '<br>' . "\n";
124
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE.' :</b>'.$location['tel_portable'].'<br>'."\n";
125 125
     }
126 126
 
127
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $location['mail'] . '">' . $location['mail'] . '</a><br>' . "\n";
128
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $location['site'] . '">' . $location['site'] . '</a>' . '<br>' . "\n";
129
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_MAP . ' :</b> <a href="' . $location['map'] . '">' . _MD_EXTCAL_ETABLISSEMENT_MAP2 . '</a>' . "\n";
127
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$location['mail'].'">'.$location['mail'].'</a><br>'."\n";
128
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$location['site'].'">'.$location['site'].'</a>'.'<br>'."\n";
129
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT_MAP.' :</b> <a href="'.$location['map'].'">'._MD_EXTCAL_ETABLISSEMENT_MAP2.'</a>'."\n";
130 130
 
131
-    echo '</td>' . "\n";
132
-    echo '</tr>' . "\n";
131
+    echo '</td>'."\n";
132
+    echo '</tr>'."\n";
133 133
 }
134 134
 //show images
135 135
 
136 136
 if (($event['event_picture1'] != '') || ($event['event_picture2'] != '')) {
137
-    echo '<tr>' . "\n";
137
+    echo '<tr>'."\n";
138 138
     if ($event['event_picture1'] != '') {
139
-        echo '<td style="border:1px solid black;">' . "\n";
140
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture1'] . ' height="100px" />' . '' . "\n";
141
-        echo '</td>' . "\n";
139
+        echo '<td style="border:1px solid black;">'."\n";
140
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture1'].' height="100px" />'.''."\n";
141
+        echo '</td>'."\n";
142 142
     }
143 143
     if ($event['event_picture2'] != '') {
144
-        echo '<td style="border:1px solid black;">' . "\n";
145
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture2'] . ' height="100px" />' . '' . "\n";
146
-        echo '</td>' . "\n";
144
+        echo '<td style="border:1px solid black;">'."\n";
145
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture2'].' height="100px" />'.''."\n";
146
+        echo '</td>'."\n";
147 147
     }
148
-    echo '</tr>' . "\n";
148
+    echo '</tr>'."\n";
149 149
 }
150 150
 //--------------------
151 151
 
152
-echo '</table><br>' . "\n";
152
+echo '</table><br>'."\n";
153 153
 echo '<div style="text-align:center; width:640px;">';
154
-echo $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan'] . '<br>';
155
-echo '<a href="' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '">' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '</a>';
154
+echo $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'].'<br>';
155
+echo '<a href="'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'">'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'</a>';
156 156
 echo '</div>';
157
-echo '</body>' . "\n";
158
-echo '</html>' . "\n";
157
+echo '</body>'."\n";
158
+echo '</html>'."\n";
Please login to merge, or discard this patch.
view_new-event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10 10
 //ext_echoArray($_GET);
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 //exit;
18 18
 if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) {
19
-    include XOOPS_ROOT_PATH . '/header.php';
19
+    include XOOPS_ROOT_PATH.'/header.php';
20 20
 
21 21
     // Title of the page
22 22
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     $xoopsTpl->assign('lang', $lang);
59 59
     $xoopsTpl->assign('view', 'newevent');
60 60
 
61
-    include XOOPS_ROOT_PATH . '/footer.php';
61
+    include XOOPS_ROOT_PATH.'/footer.php';
62 62
 } else {
63 63
     redirect_header('index.php', 3);
64 64
 }
Please login to merge, or discard this patch.
view_agenda-day.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10 10
 //recupe des variables get
11
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
12
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
13
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
14
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
11
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
12
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
13
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
14
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
15 15
 /* ========================================================================== */
16 16
 
17 17
 //echo "{$params['view']}-{$year}-{$month}-{$day}<hr>extcal_{$params['view']}.html<br>";
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     'nbJours'      => $nbJours,
45 45
     'externalKeys' => 'cat_id',
46 46
 );
47
-$events   = $eventHandler->getEventsOnPeriode($criteres);
47
+$events = $eventHandler->getEventsOnPeriode($criteres);
48 48
 /**********************************************************************/
49 49
 $eventsArray = $events;
50 50
 $startDay    = mktime(0, 0, 0, $month, $day, $year);
@@ -99,21 +99,21 @@  discard block
 block discarded – undo
99 99
 
100 100
 $navig = array(
101 101
     'prev' => array(
102
-        'uri'  => 'year=' . $pDayCalObj->thisYear() . '&amp;month=' . $pDayCalObj->thisMonth() . '&amp;day=' . $pDayCalObj->thisDay(),
102
+        'uri'  => 'year='.$pDayCalObj->thisYear().'&amp;month='.$pDayCalObj->thisMonth().'&amp;day='.$pDayCalObj->thisDay(),
103 103
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()),
104 104
     ),
105 105
     'this' => array(
106
-        'uri'  => 'year=' . $dayCalObj->thisYear() . '&amp;month=' . $dayCalObj->thisMonth() . '&amp;day=' . $dayCalObj->thisDay(),
106
+        'uri'  => 'year='.$dayCalObj->thisYear().'&amp;month='.$dayCalObj->thisMonth().'&amp;day='.$dayCalObj->thisDay(),
107 107
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()),
108 108
     ),
109 109
     'next' => array(
110
-        'uri'  => 'year=' . $nDayCalObj->thisYear() . '&amp;month=' . $nDayCalObj->thisMonth() . '&amp;day=' . $nDayCalObj->thisDay(),
110
+        'uri'  => 'year='.$nDayCalObj->thisYear().'&amp;month='.$nDayCalObj->thisMonth().'&amp;day='.$nDayCalObj->thisDay(),
111 111
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()),
112 112
     ),
113 113
 );
114 114
 
115 115
 // Title of the page
116
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
116
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
117 117
 
118 118
 // Assigning navig data to the template
119 119
 $xoopsTpl->assign('navig', $navig);
@@ -154,4 +154,4 @@  discard block
 block discarded – undo
154 154
 $xoopsTpl->assign('lang', $lang);
155 155
 $xoopsTpl->assign('view', 'agendaday');
156 156
 
157
-include XOOPS_ROOT_PATH . '/footer.php';
157
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_reply.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
 //  along with this program; if not, write to the Free Software              //
25 25
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26 26
 //  ------------------------------------------------------------------------ //
27
-include __DIR__ . '/../../mainfile.php';
28
-include XOOPS_ROOT_PATH . '/include/comment_reply.php';
27
+include __DIR__.'/../../mainfile.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_reply.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
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__ . '/../../../include/cp_header.php';
4
-include __DIR__ . '/../../../class/xoopsformloader.php';
5
-include_once __DIR__ . '/admin_header.php';
6
-include_once __DIR__ . '/../class/utilities.php';
7
-include_once __DIR__ . '/../include/constantes.php';
3
+include_once __DIR__.'/../../../include/cp_header.php';
4
+include __DIR__.'/../../../class/xoopsformloader.php';
5
+include_once __DIR__.'/admin_header.php';
6
+include_once __DIR__.'/../class/utilities.php';
7
+include_once __DIR__.'/../include/constantes.php';
8 8
 
9 9
 $gepeto = array_merge($_GET, $_POST);
10 10
 while (list($k, $v) = each($gepeto)) {
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, 0), false);
62 62
         $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#FF0000'));
63 63
 
64
-        $file_path = __DIR__ . '/../assets/css/images';
64
+        $file_path = __DIR__.'/../assets/css/images';
65 65
         $tf        = XoopsLists::getImgListAsArray($file_path);
66 66
         array_unshift($tf, _MD_EXTCAL_NONE);
67 67
         //$xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, "cat_icone", $cat->getVar('cat_icone'), '');
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
         $form->display();
75 75
 
76
-        include_once __DIR__ . '/admin_footer.php';
76
+        include_once __DIR__.'/admin_footer.php';
77 77
         break;
78 78
 
79 79
     case 'edit':
@@ -86,15 +86,15 @@  discard block
 block discarded – undo
86 86
             $cat = $catHandler->getCat($cat_id, true);
87 87
         }
88 88
 
89
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_EDIT_CATEGORY . '</legend>';
89
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_EDIT_CATEGORY.'</legend>';
90 90
 
91 91
         $form = new XoopsThemeForm(_AM_EXTCAL_ADD_CATEGORY, 'add_cat', 'cat.php?op=enreg', 'post', true);
92 92
         $form->addElement(new XoopsFormText(_AM_EXTCAL_NAME, 'cat_name', 30, 255, $cat->getVar('cat_name')), true);
93 93
         $form->addElement(new XoopsFormDhtmlTextArea(_AM_EXTCAL_DESCRIPTION, 'cat_desc', $cat->getVar('cat_desc')), false);
94 94
         $form->addElement(new XoopsFormText(_AM_EXTCAL_WEIGHT, 'cat_weight', 30, 5, $cat->getVar('cat_weight')), false);
95
-        $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#' . $cat->getVar('cat_color')));
95
+        $form->addElement(new XoopsFormColorPicker(_AM_EXTCAL_COLOR, 'cat_color', '#'.$cat->getVar('cat_color')));
96 96
 
97
-        $file_path = __DIR__ . '/../assets/css/images';
97
+        $file_path = __DIR__.'/../assets/css/images';
98 98
         $tf        = XoopsLists::getImgListAsArray($file_path);
99 99
         array_unshift($tf, _MD_EXTCAL_NONE);
100 100
         $xfIcones = new XoopsFormSelect(_AM_EXTCAL_ICONE, 'cat_icone', $cat->getVar('cat_icone'), '');
@@ -250,6 +250,6 @@  discard block
 block discarded – undo
250 250
         //$xoopsTpl->assign("module_dirname",    $xoopsModule->getVar("dirname") );
251 251
 
252 252
         $xoopsTpl->display('db:admin/extcal_admin_cat_list.tpl');
253
-        include_once __DIR__ . '/admin_footer.php';
253
+        include_once __DIR__.'/admin_footer.php';
254 254
         break;
255 255
 }
Please login to merge, or discard this patch.
admin/upgrade.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@  discard block
 block discarded – undo
5 5
     $step = $_POST['step'];
6 6
 }
7 7
 
8
-include_once __DIR__ . '/../../../include/cp_header.php';
9
-include __DIR__ . '/function.php';
8
+include_once __DIR__.'/../../../include/cp_header.php';
9
+include __DIR__.'/function.php';
10 10
 
11 11
 // Change this variable if you use a cloned version of eXtGallery
12 12
 $localModuleDir = 'extcal';
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
 $downloadServer = 'http://downloads.sourceforge.net/zoullou/';
17 17
 
18 18
 $lastVersion       = @file_get_contents($versionFile);
19
-$lastVersionString = substr($lastVersion, 0, 1) . '.' . substr($lastVersion, 1, 1) . '.' . substr($lastVersion, 2, 1);
20
-$moduleFileName    = $moduleName . '-' . $lastVersionString . '.tar.gz';
21
-$langFileName      = $moduleName . '-lang-' . $lastVersionString . '_' . $xoopsConfig['language'] . '.tar.gz';
19
+$lastVersionString = substr($lastVersion, 0, 1).'.'.substr($lastVersion, 1, 1).'.'.substr($lastVersion, 2, 1);
20
+$moduleFileName    = $moduleName.'-'.$lastVersionString.'.tar.gz';
21
+$langFileName      = $moduleName.'-lang-'.$lastVersionString.'_'.$xoopsConfig['language'].'.tar.gz';
22 22
 
23 23
 switch ($step) {
24 24
     case 'download':
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
             break;
31 31
         }
32 32
 
33
-        if (!$handle = @fopen($downloadServer . $moduleFileName, 'r')) {
33
+        if (!$handle = @fopen($downloadServer.$moduleFileName, 'r')) {
34 34
             printf(_AM_EXTCAL_MD_FILE_DONT_EXIST, $downloadServer, $moduleFileName);
35 35
             xoops_cp_footer();
36 36
             break;
37 37
         }
38
-        $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, 'w+');
38
+        $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, 'w+');
39 39
 
40 40
         // Downlad module archive
41 41
         if ($handle) {
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 
50 50
         // English file are included on module package
51 51
         if ($xoopsConfig['language'] !== 'english') {
52
-            if (!$handle = @fopen($downloadServer . $langFileName, 'r')) {
52
+            if (!$handle = @fopen($downloadServer.$langFileName, 'r')) {
53 53
                 printf(_AM_EXTCAL_LG_FILE_DONT_EXIST, $downloadServer, $langFileName);
54 54
             } else {
55
-                $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, 'w+');
55
+                $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, 'w+');
56 56
                 // Download language archive
57 57
                 if ($handle) {
58 58
                     while (!feof($handle)) {
@@ -75,35 +75,35 @@  discard block
 block discarded – undo
75 75
         xoops_cp_header();
76 76
         adminMenu();
77 77
 
78
-        if (!file_exists(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName)) {
78
+        if (!file_exists(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName)) {
79 79
             echo _AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT;
80 80
             xoops_cp_footer();
81 81
 
82 82
             break;
83 83
         }
84 84
 
85
-        $gPcltarLibDir = XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/class';
86
-        include __DIR__ . '/../class/pcltar.lib.php';
85
+        $gPcltarLibDir = XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/class';
86
+        include __DIR__.'/../class/pcltar.lib.php';
87 87
 
88 88
         //TrOn(5);
89 89
 
90 90
         // Extract module files
91
-        PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/');
91
+        PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/');
92 92
         // Delete downloaded module's files
93
-        unlink(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName);
93
+        unlink(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName);
94 94
 
95
-        if (file_exists(XOOPS_ROOT_PATH . '/uploads/' . $langFileName)) {
95
+        if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$langFileName)) {
96 96
             // Extract language files
97
-            PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/');
97
+            PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/');
98 98
             // Delete downloaded module's files
99
-            unlink(XOOPS_ROOT_PATH . '/uploads/' . $langFileName);
99
+            unlink(XOOPS_ROOT_PATH.'/uploads/'.$langFileName);
100 100
         }
101 101
 
102 102
         // Delete template_c file
103
-        if ($handle = opendir(XOOPS_ROOT_PATH . '/templates_c')) {
103
+        if ($handle = opendir(XOOPS_ROOT_PATH.'/templates_c')) {
104 104
             while (false !== ($file = readdir($handle))) {
105 105
                 if ($file !== '.' && $file !== '..' && $file !== 'index.html') {
106
-                    unlink(XOOPS_ROOT_PATH . '/templates_c/' . $file);
106
+                    unlink(XOOPS_ROOT_PATH.'/templates_c/'.$file);
107 107
                 }
108 108
             }
109 109
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         }
112 112
         //TrDisplay();
113 113
 
114
-        xoops_confirm(array('dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'), XOOPS_URL . '/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE);
114
+        xoops_confirm(array('dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'), XOOPS_URL.'/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE);
115 115
 
116 116
         xoops_cp_footer();
117 117
 
Please login to merge, or discard this patch.
admin/permissions.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__ . '/../../../include/cp_header.php';
4
-include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
5
-include_once __DIR__ . '/admin_header.php';
3
+include_once __DIR__.'/../../../include/cp_header.php';
4
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
5
+include_once __DIR__.'/admin_header.php';
6 6
 
7 7
 $step = 'default';
8 8
 if (isset($_POST['step'])) {
@@ -76,36 +76,36 @@  discard block
 block discarded – undo
76 76
          * Public category permission mask
77 77
          */
78 78
         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;'
79
-             . _AM_EXTCAL_PUBLIC_PERM_MASK . '</a></legend><div id="default">';
80
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
79
+             . _AM_EXTCAL_PUBLIC_PERM_MASK.'</a></legend><div id="default">';
80
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
81 81
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
82 82
         echo '</fieldset><br>';
83 83
         echo '<table class="outer" style="width:100%;">';
84 84
         echo '<form method="post" action="permissions.php">';
85 85
         echo '<tr>';
86
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
86
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
87 87
         echo '</tr>';
88 88
         echo '<tr>';
89
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
90
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
91
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
92
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
93
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
89
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
90
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
91
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
92
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
93
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
94 94
         echo '</tr>';
95 95
         $i = 0;
96 96
         foreach ($glist as $k => $v) {
97 97
             $style = (++$i % 2 == 0) ? 'odd' : 'even';
98 98
             echo '<tr>';
99
-            echo '<td class="' . $style . '">' . $v . '</td>';
100
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . ' /></td>';
101
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . ' /></td>';
102
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . ' /></td>';
103
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . ' /></td>';
99
+            echo '<td class="'.$style.'">'.$v.'</td>';
100
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).' /></td>';
101
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).' /></td>';
102
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).' /></td>';
103
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).' /></td>';
104 104
             echo '</tr>';
105 105
         }
106 106
         echo '<input type="hidden" name="type" value="public" />';
107 107
         echo '<input type="hidden" name="step" value="enreg" />';
108
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '" /></td></tr></form>';
108
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'" /></td></tr></form>';
109 109
         echo '</table><br>';
110 110
 
111 111
         echo '</div></fieldset><br>';
@@ -125,14 +125,14 @@  discard block
 block discarded – undo
125 125
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
126 126
         }
127 127
 
128
-        echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName
129
-             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
130
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
128
+        echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName
129
+             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
130
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
131 131
         echo $permDesc;
132 132
         echo '</fieldset>';
133 133
 
134 134
         if ($catHandler->getCount()) {
135
-            echo $form->render() . '<br>';
135
+            echo $form->render().'<br>';
136 136
         } else {
137 137
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
138 138
         }
@@ -150,13 +150,13 @@  discard block
 block discarded – undo
150 150
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
151 151
         }
152 152
 
153
-        echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName
154
-             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
155
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
153
+        echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName
154
+             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
155
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
156 156
         echo $permDesc;
157 157
         echo '</fieldset>';
158 158
         if ($catHandler->getCount()) {
159
-            echo $form->render() . '<br>';
159
+            echo $form->render().'<br>';
160 160
         } else {
161 161
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
162 162
         }
@@ -174,13 +174,13 @@  discard block
 block discarded – undo
174 174
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
175 175
         }
176 176
 
177
-        echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName
178
-             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
179
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
177
+        echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName
178
+             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
179
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
180 180
         echo $permDesc;
181 181
         echo '</fieldset>';
182 182
         if ($catHandler->getCount()) {
183
-            echo $form->render() . '<br>';
183
+            echo $form->render().'<br>';
184 184
         } else {
185 185
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
186 186
         }
@@ -198,13 +198,13 @@  discard block
 block discarded – undo
198 198
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
199 199
         }
200 200
 
201
-        echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName
202
-             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
203
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
201
+        echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName
202
+             . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
203
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
204 204
         echo $permDesc;
205 205
         echo '</fieldset>';
206 206
         if ($catHandler->getCount()) {
207
-            echo $form->render() . '<br>';
207
+            echo $form->render().'<br>';
208 208
         } else {
209 209
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
210 210
         }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
222 222
         echo '</script>';
223 223
 
224
-        include_once __DIR__ . '/admin_footer.php';
224
+        include_once __DIR__.'/admin_footer.php';
225 225
 
226 226
         break;
227 227
 
Please login to merge, or discard this patch.