Completed
Push — master ( d44352...76d45c )
by Michael
08:21
created
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 dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
4
-include dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
5
-include_once __DIR__ . '/admin_header.php';
6
-include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/functions.php');
7
-include_once(XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php');
3
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
4
+include dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php';
5
+include_once __DIR__.'/admin_header.php';
6
+include_once(XOOPS_ROOT_PATH.'/modules/extcal/include/functions.php');
7
+include_once(XOOPS_ROOT_PATH.'/modules/extcal/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 = XOOPS_ROOT_PATH . '/modules/extcal/assets/css/images';
64
+        $file_path = XOOPS_ROOT_PATH.'/modules/extcal/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 = XOOPS_ROOT_PATH . '/modules/extcal/assets/css/images';
97
+        $file_path = XOOPS_ROOT_PATH.'/modules/extcal/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'), '');
@@ -249,6 +249,6 @@  discard block
 block discarded – undo
249 249
         //$xoopsTpl->assign("module_dirname",    $xoopsModule->getVar("dirname") );
250 250
 
251 251
         $xoopsTpl->display('db:admin/extcal_admin_cat_list.tpl');
252
-        include_once __DIR__ . '/admin_footer.php';
252
+        include_once __DIR__.'/admin_footer.php';
253 253
         break;
254 254
 }
Please login to merge, or discard this patch.
admin/admin_footer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
  * @version   ::     $Id $
19 19
  **/
20 20
 
21
-echo "<div class='adminfooter'>\n" . "  <div style='text-align: center;'>\n" . "    <a href='http://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . "  </div>\n" . '  ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>';
21
+echo "<div class='adminfooter'>\n"."  <div style='text-align: center;'>\n"."    <a href='http://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"."  </div>\n".'  '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>';
22 22
 
23 23
 xoops_cp_footer();
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
 //  ------------------------------------------------------------------------ //
27 27
 
28 28
 $path = dirname(dirname(dirname(__DIR__)));
29
-include_once $path . '/mainfile.php';
30
-include_once $path . '/include/cp_functions.php';
31
-require_once $path . '/include/cp_header.php';
29
+include_once $path.'/mainfile.php';
30
+include_once $path.'/include/cp_functions.php';
31
+require_once $path.'/include/cp_header.php';
32 32
 
33 33
 global $xoopsModule;
34 34
 
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
 xoops_loadLanguage('modinfo', $moduleDirName);
40 40
 xoops_loadLanguage('main', $moduleDirName);
41 41
 
42
-$pathIcon16      = '../' . $xoopsModule->getInfo('icons16');
43
-$pathIcon32      = '../' . $xoopsModule->getInfo('icons32');
42
+$pathIcon16      = '../'.$xoopsModule->getInfo('icons16');
43
+$pathIcon32      = '../'.$xoopsModule->getInfo('icons32');
44 44
 $pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
45 45
 
46
-if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php'))) {
47
-    include_once $GLOBALS['xoops']->path($pathModuleAdmin . '/moduleadmin.php');
46
+if (file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))) {
47
+    include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
48 48
 } else {
49 49
     redirect_header('../../../admin.php', 5, _AM_EXTCAL_MODULEADMIN_MISSING, false);
50 50
 }
Please login to merge, or discard this patch.
admin/index.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
4
-include dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php';
5
-include_once __DIR__ . '/admin_header.php';
3
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
4
+include dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php';
5
+include_once __DIR__.'/admin_header.php';
6 6
 
7 7
 function extgalleryLastVersion()
8 8
 {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             case 'send':
42 42
 
43 43
                 if (!$GLOBALS['xoopsSecurity']->check()) {
44
-                    redirect_header('index.php', 3, _NOPERM . '<br />' . implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
44
+                    redirect_header('index.php', 3, _NOPERM.'<br />'.implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
45 45
                     exit;
46 46
                 }
47 47
                 xoops_cp_header();
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
                     'EV_TITLE' => $event->getVar('event_title'),
76 76
                     'EV_START' => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_start')),
77 77
                     'EV_END'   => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_end')),
78
-                    'EV_LINK'  => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'));
78
+                    'EV_LINK'  => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'));
79 79
                 $xoopsMailer->assign($tag);
80 80
                 $xoopsMailer->send(true);
81 81
                 echo $xoopsMailer->getSuccess();
@@ -91,14 +91,14 @@  discard block
 block discarded – undo
91 91
                 xoops_cp_header();
92 92
 
93 93
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
94
-                $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;';
95
-                $bodyCaption    = _AM_EXTCAL_BODY . "<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_MAILTAGS1 . '<br />' . _AM_EXTCAL_MAILTAGS2 . '<br />' . _AM_EXTCAL_MAILTAGS3 . '<br />' . _AM_EXTCAL_MAILTAGS4 . '<br />' . _AM_EXTCAL_MAILTAGS5 . '<br />' . _AM_EXTCAL_MAILTAGS6 . '<br />' . _AM_EXTCAL_MAILTAGS7 . '<br />' . _AM_EXTCAL_MAILTAGS8 . '<br />' . _AM_EXTCAL_MAILTAGS9 . '</span>&nbsp;&nbsp;&nbsp;';
94
+                $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;';
95
+                $bodyCaption    = _AM_EXTCAL_BODY."<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_MAILTAGS1.'<br />'._AM_EXTCAL_MAILTAGS2.'<br />'._AM_EXTCAL_MAILTAGS3.'<br />'._AM_EXTCAL_MAILTAGS4.'<br />'._AM_EXTCAL_MAILTAGS5.'<br />'._AM_EXTCAL_MAILTAGS6.'<br />'._AM_EXTCAL_MAILTAGS7.'<br />'._AM_EXTCAL_MAILTAGS8.'<br />'._AM_EXTCAL_MAILTAGS9.'</span>&nbsp;&nbsp;&nbsp;';
96 96
                 $toCheckBbox    = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
97 97
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
98 98
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
99 99
 
100
-                echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
101
-                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
100
+                echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
101
+                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
102 102
                 echo _AM_EXTCAL_INFO_SEND_NOTIF;
103 103
                 echo '</fieldset><br />';
104 104
                 $form = new XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&amp;fct=send', 'post', true);
@@ -130,13 +130,13 @@  discard block
 block discarded – undo
130 130
         $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
131 131
         $indexAdmin   = new ModuleAdmin();
132 132
         $indexAdmin->addInfoBox(_MI_EXTCAL_DASHBOARD);
133
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount(), 'Green');
134
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
135
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
133
+        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount(), 'Green');
134
+        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
135
+        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
136 136
         $criteriaCompo = new CriteriaCompo();
137 137
         $criteriaCompo->add(new Criteria('event_approved', 1));
138 138
         $criteriaCompo->add(new Criteria('event_start', time(), '>='));
139
-        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>', 'Green');
139
+        $indexAdmin->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>', 'Green');
140 140
 
141 141
         $indexAdmin->addConfigBoxLine();
142 142
         $indexAdmin->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
@@ -153,42 +153,42 @@  discard block
 block discarded – undo
153 153
         $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
154 154
         $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
155 155
 
156
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
157
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
156
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
157
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
158 158
         //        echo '<img src="../assets/images/icons/on.png"  />&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br />';
159
-        echo '<img src=' . $pathIcon16 . '/edit.png />&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br />';
160
-        echo '<img src=' . $pathIcon16 . '/delete.png />&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br />';
159
+        echo '<img src='.$pathIcon16.'/edit.png />&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br />';
160
+        echo '<img src='.$pathIcon16.'/delete.png />&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br />';
161 161
         echo '</fieldset><br />';
162 162
 
163 163
         echo '<table class="outer" style="width:100%;">';
164 164
         echo '<tr style="text-align:center;">';
165
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
166
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
167
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
168
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
165
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
166
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
167
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
168
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
169 169
         echo '</tr>';
170 170
 
171 171
         if (count($pendingEvent) > 0) {
172 172
             $i = 0;
173 173
             foreach ($pendingEvent as $event) {
174 174
                 $class = (++$i % 2 == 0) ? 'even' : 'odd';
175
-                echo '<tr style="text-align:center;" class="' . $class . '">';
176
-                echo '<td>' . $event['cat']['cat_name'] . '</td>';
177
-                echo '<td>' . $event['event_title'] . '</td>';
178
-                echo '<td>' . $event['formated_event_start'] . '</td>';
175
+                echo '<tr style="text-align:center;" class="'.$class.'">';
176
+                echo '<td>'.$event['cat']['cat_name'].'</td>';
177
+                echo '<td>'.$event['event_title'].'</td>';
178
+                echo '<td>'.$event['formated_event_start'].'</td>';
179 179
                 echo '<td style="width:10%; text-align:center;">';
180
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png /></a>&nbsp;&nbsp;';
181
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png /></a>';
180
+                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png /></a>&nbsp;&nbsp;';
181
+                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png /></a>';
182 182
                 echo '</td>';
183 183
                 echo '</tr>';
184 184
             }
185 185
         } else {
186
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
186
+            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
187 187
         }
188 188
 
189 189
         echo '</table></fieldset><br />';
190 190
 
191
-        include_once __DIR__ . '/admin_footer.php';
191
+        include_once __DIR__.'/admin_footer.php';
192 192
 
193 193
         break;
194 194
 }
Please login to merge, or discard this patch.
admin/etablissement.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -18,18 +18,18 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 // Include xoops admin header
21
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
22
-include_once XOOPS_ROOT_PATH . '/modules/extcal/class/ExtcalPersistableObjectHandler.php';
23
-include_once(XOOPS_ROOT_PATH . '/kernel/module.php');
24
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
25
-include_once XOOPS_ROOT_PATH . '/class/tree.php';
26
-include_once XOOPS_ROOT_PATH . '/class/xoopslists.php';
27
-include_once XOOPS_ROOT_PATH . '/modules/extcal/class/etablissement.php';
28
-include_once XOOPS_ROOT_PATH . '/modules/extcal/include/constantes.php';
29
-include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
30
-include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
31
-include_once(XOOPS_ROOT_PATH . '/class/uploader.php');
32
-include_once __DIR__ . '/admin_header.php';
21
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
22
+include_once XOOPS_ROOT_PATH.'/modules/extcal/class/ExtcalPersistableObjectHandler.php';
23
+include_once(XOOPS_ROOT_PATH.'/kernel/module.php');
24
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
25
+include_once XOOPS_ROOT_PATH.'/class/tree.php';
26
+include_once XOOPS_ROOT_PATH.'/class/xoopslists.php';
27
+include_once XOOPS_ROOT_PATH.'/modules/extcal/class/etablissement.php';
28
+include_once XOOPS_ROOT_PATH.'/modules/extcal/include/constantes.php';
29
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
30
+include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
31
+include_once(XOOPS_ROOT_PATH.'/class/uploader.php');
32
+include_once __DIR__.'/admin_header.php';
33 33
 
34 34
 //include_once("functions.php");
35 35
 //include_once("../include/functions.php");
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
 if ($xoopsUser) {
38 38
     $xoopsModule = XoopsModule::getByDirname('extcal');
39 39
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
40
-        redirect_header(XOOPS_URL . '/', 3, _NOPERM);
40
+        redirect_header(XOOPS_URL.'/', 3, _NOPERM);
41 41
     }
42 42
 } else {
43
-    redirect_header(XOOPS_URL . '/', 3, _NOPERM);
43
+    redirect_header(XOOPS_URL.'/', 3, _NOPERM);
44 44
 }
45 45
 
46 46
 // Include language file
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $etablissement_arr = $etablissementHandler->getObjects($criteria);
99 99
         $numrows           = $etablissementHandler->getCount($criteria);
100 100
         if ($numrows > $limit) {
101
-            $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit);
101
+            $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit='.$limit);
102 102
             $pagenav = $pagenav->renderNav(4);
103 103
         } else {
104 104
             $pagenav = '';
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
         if ($numrows > 0) {
108 108
             echo '<table width="100%" cellspacing="1" class="outer">';
109 109
             echo '<tr>';
110
-            echo '<th align="center">' . _AM_EXTCAL_ETABLISSEMENT_FORM_NOM . '</th>';
111
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE . '</th>';
112
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_CITY . '</th>';
113
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE . '</th>';
114
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ACTION . '</th>';
110
+            echo '<th align="center">'._AM_EXTCAL_ETABLISSEMENT_FORM_NOM.'</th>';
111
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE.'</th>';
112
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_CITY.'</th>';
113
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE.'</th>';
114
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ACTION.'</th>';
115 115
             echo '</tr>';
116 116
             $class = 'odd';
117 117
             foreach (array_keys($etablissement_arr) as $i) {
@@ -121,21 +121,21 @@  discard block
 block discarded – undo
121 121
                 $etablissement_adresse   = $etablissement_arr[$i]->getVar('adresse');
122 122
                 $etablissement_city      = $etablissement_arr[$i]->getVar('ville');
123 123
                 $etablissement_telephone = $etablissement_arr[$i]->getVar('tel_fixe');
124
-                echo '<tr class="' . $class . '">';
125
-                echo '<td align="left">' . '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '">' . $etablissement_nom . '</a>' . '</td>';
124
+                echo '<tr class="'.$class.'">';
125
+                echo '<td align="left">'.'<a href="etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'">'.$etablissement_nom.'</a>'.'</td>';
126 126
 
127
-                echo '<td align="center"><b>' . $etablissement_adresse . '</td>';
128
-                echo '<td align="center"><b>' . $etablissement_city . '</td>';
129
-                echo '<td align="center"><b>' . $etablissement_telephone . '</td>';
127
+                echo '<td align="center"><b>'.$etablissement_adresse.'</td>';
128
+                echo '<td align="center"><b>'.$etablissement_city.'</td>';
129
+                echo '<td align="center"><b>'.$etablissement_telephone.'</td>';
130 130
                 echo '<td align="center" width="15%">';
131
-                echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '"><img src=' . $pathIcon16 . '/edit.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT . '"></a> ';
132
-                echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id=' . $etablissement_id . '"><img src=' . $pathIcon16 . '/delete.png alt="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '" title="' . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE . '"></a> ';
131
+                echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'"><img src='.$pathIcon16.'/edit.png alt="'._AM_EXTCAL_ETABLISSEMENT_FORM_EDIT.'" title="'._AM_EXTCAL_ETABLISSEMENT_FORM_EDIT.'"></a> ';
132
+                echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src='.$pathIcon16.'/delete.png alt="'._AM_EXTCAL_ETABLISSEMENT_FORM_DELETE.'" title="'._AM_EXTCAL_ETABLISSEMENT_FORM_DELETE.'"></a> ';
133 133
                 echo '</td>';
134 134
             }
135 135
             echo '</table><br />';
136
-            echo '<br /><div align=right>' . $pagenav . '</div><br />';
136
+            echo '<br /><div align=right>'.$pagenav.'</div><br />';
137 137
         } else {
138
-            echo '<div class="errorMsg" style="text-align: center;">' . _AM_EXTCAL_ERREUR_NO_ETABLISSEMENT . '</div>';
138
+            echo '<div class="errorMsg" style="text-align: center;">'._AM_EXTCAL_ERREUR_NO_ETABLISSEMENT.'</div>';
139 139
         }
140 140
 
141 141
         // Affichage du formulaire
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                 redirect_header('etablissement.php', 1, _AM_EXTCAL_REDIRECT_DELOK);
155 155
             }
156 156
         } else {
157
-            xoops_confirm(array('ok' => 1, 'etablissement_id' => $_REQUEST['etablissement_id'], 'op' => 'delete_etablissement'), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
157
+            xoops_confirm(array('ok' => 1, 'etablissement_id' => $_REQUEST['etablissement_id'], 'op' => 'delete_etablissement'), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL.'<br>');
158 158
         }
159 159
         break;
160 160
 
@@ -174,9 +174,9 @@  discard block
 block discarded – undo
174 174
             redirect_header('etablissement.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
175 175
         }
176 176
         if (isset($_REQUEST['etablissement_id'])) {
177
-            $obj =& $etablissementHandler->get($_REQUEST['etablissement_id']);
177
+            $obj = & $etablissementHandler->get($_REQUEST['etablissement_id']);
178 178
         } else {
179
-            $obj =& $etablissementHandler->create();
179
+            $obj = & $etablissementHandler->create();
180 180
         }
181 181
 
182 182
         $obj->setVar('nom', $_REQUEST['nom']);
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
         $obj->setVar('map', $_REQUEST['map']);
197 197
 
198 198
         //Logo
199
-        $uploaddir_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/';
200
-        $uploadurl_etablissement = XOOPS_URL . '/uploads/extcal/etablissement/';
199
+        $uploaddir_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/';
200
+        $uploadurl_etablissement = XOOPS_URL.'/uploads/extcal/etablissement/';
201 201
 
202 202
         $delimg = @$_REQUEST['delimg'];
203
-        $delimg = isset($delimg) ? (int)$delimg : 0;
203
+        $delimg = isset($delimg) ? (int) $delimg : 0;
204 204
         if ($delimg == 0 && !empty($_REQUEST['xoops_upload_file'][0])) {
205 205
             $upload = new XoopsMediaUploader($uploaddir_etablissement, array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png'), 3145728, null, null);
206 206
             if ($upload->fetchMedia($_REQUEST['xoops_upload_file'][0])) {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             }
218 218
         } else {
219 219
             $logo              = '';
220
-            $url_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/' . $_REQUEST['file'];
220
+            $url_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/'.$_REQUEST['file'];
221 221
             if (is_file($url_etablissement)) {
222 222
                 chmod($url_etablissement, 0777);
223 223
                 unlink($url_etablissement);
@@ -237,4 +237,4 @@  discard block
 block discarded – undo
237 237
         break;
238 238
 }
239 239
 
240
-include_once __DIR__ . '/admin_footer.php';
240
+include_once __DIR__.'/admin_footer.php';
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 dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
9
-include __DIR__ . '/function.php';
8
+include_once dirname(dirname(dirname(__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
 
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
             break;
34 34
         }
35 35
 
36
-        if (!$handle = @fopen($downloadServer . $moduleFileName, 'r')) {
36
+        if (!$handle = @fopen($downloadServer.$moduleFileName, 'r')) {
37 37
             printf(_AM_EXTCAL_MD_FILE_DONT_EXIST, $downloadServer, $moduleFileName);
38 38
             xoops_cp_footer();
39 39
             break;
40 40
         }
41
-        $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, 'w+');
41
+        $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, 'w+');
42 42
 
43 43
         // Downlad module archive
44 44
         if ($handle) {
@@ -52,10 +52,10 @@  discard block
 block discarded – undo
52 52
 
53 53
         // English file are included on module package
54 54
         if ($xoopsConfig['language'] !== 'english') {
55
-            if (!$handle = @fopen($downloadServer . $langFileName, 'r')) {
55
+            if (!$handle = @fopen($downloadServer.$langFileName, 'r')) {
56 56
                 printf(_AM_EXTCAL_LG_FILE_DONT_EXIST, $downloadServer, $langFileName);
57 57
             } else {
58
-                $localHandle = @fopen(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, 'w+');
58
+                $localHandle = @fopen(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, 'w+');
59 59
                 // Download language archive
60 60
                 if ($handle) {
61 61
                     while (!feof($handle)) {
@@ -79,35 +79,35 @@  discard block
 block discarded – undo
79 79
         xoops_cp_header();
80 80
         adminMenu();
81 81
 
82
-        if (!file_exists(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName)) {
82
+        if (!file_exists(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName)) {
83 83
             echo _AM_EXTCAL_MD_FILE_DONT_EXIST_SHORT;
84 84
             xoops_cp_footer();
85 85
 
86 86
             break;
87 87
         }
88 88
 
89
-        $gPcltarLibDir = XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/class';
90
-        include dirname(__DIR__) . '/class/pcltar.lib.php';
89
+        $gPcltarLibDir = XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/class';
90
+        include dirname(__DIR__).'/class/pcltar.lib.php';
91 91
 
92 92
         //TrOn(5);
93 93
 
94 94
         // Extract module files
95
-        PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/');
95
+        PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/');
96 96
         // Delete downloaded module's files
97
-        unlink(XOOPS_ROOT_PATH . '/uploads/' . $moduleFileName);
97
+        unlink(XOOPS_ROOT_PATH.'/uploads/'.$moduleFileName);
98 98
 
99
-        if (file_exists(XOOPS_ROOT_PATH . '/uploads/' . $langFileName)) {
99
+        if (file_exists(XOOPS_ROOT_PATH.'/uploads/'.$langFileName)) {
100 100
             // Extract language files
101
-            PclTarExtract(XOOPS_ROOT_PATH . '/uploads/' . $langFileName, XOOPS_ROOT_PATH . '/modules/' . $localModuleDir . '/', 'modules/' . $moduleName . '/');
101
+            PclTarExtract(XOOPS_ROOT_PATH.'/uploads/'.$langFileName, XOOPS_ROOT_PATH.'/modules/'.$localModuleDir.'/', 'modules/'.$moduleName.'/');
102 102
             // Delete downloaded module's files
103
-            unlink(XOOPS_ROOT_PATH . '/uploads/' . $langFileName);
103
+            unlink(XOOPS_ROOT_PATH.'/uploads/'.$langFileName);
104 104
         }
105 105
 
106 106
         // Delete template_c file
107
-        if ($handle = opendir(XOOPS_ROOT_PATH . '/templates_c')) {
107
+        if ($handle = opendir(XOOPS_ROOT_PATH.'/templates_c')) {
108 108
             while (false !== ($file = readdir($handle))) {
109 109
                 if ($file !== '.' && $file !== '..' && $file !== 'index.html') {
110
-                    unlink(XOOPS_ROOT_PATH . '/templates_c/' . $file);
110
+                    unlink(XOOPS_ROOT_PATH.'/templates_c/'.$file);
111 111
                 }
112 112
             }
113 113
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         }
116 116
         //TrDisplay();
117 117
 
118
-        xoops_confirm(array('dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'), XOOPS_URL . '/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE);
118
+        xoops_confirm(array('dirname' => $localModuleDir, 'op' => 'update_ok', 'fct' => 'modulesadmin'), XOOPS_URL.'/modules/system/admin.php', _AM_EXTCAL_INSTALL_DONE, _AM_EXTCAL_UPDATE);
119 119
 
120 120
         xoops_cp_footer();
121 121
 
Please login to merge, or discard this patch.
admin/event.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php';
4
-include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
5
-include_once XOOPS_ROOT_PATH . '/class/pagenav.php';
6
-include_once dirname(__DIR__) . '/class/form/extcalform.php';
7
-include_once __DIR__ . '/admin_header.php';
3
+include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php';
4
+include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
5
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
6
+include_once dirname(__DIR__).'/class/form/extcalform.php';
7
+include_once __DIR__.'/admin_header.php';
8 8
 
9
-include_once XOOPS_ROOT_PATH . '/modules/extcal/include/functions.php';
9
+include_once XOOPS_ROOT_PATH.'/modules/extcal/include/functions.php';
10 10
 
11 11
 $gepeto = array_merge($_GET, $_POST);
12 12
 while (list($k, $v) = each($gepeto)) {
@@ -31,15 +31,15 @@  discard block
 block discarded – undo
31 31
 
32 32
     while (list($k, $t) = each($rst)) {
33 33
         if ($t['event_picture1'] != '') {
34
-            $f = XOOPS_ROOT_PATH . '/uploads/extcal/' . $t['event_picture1'];
34
+            $f = XOOPS_ROOT_PATH.'/uploads/extcal/'.$t['event_picture1'];
35 35
             unlink($f);
36
-            echo $f . '<br>';
36
+            echo $f.'<br>';
37 37
         }
38 38
 
39 39
         if ($t['event_picture2'] != '') {
40
-            $f = XOOPS_ROOT_PATH . '/uploads/extcal/' . $t['event_picture1'];
40
+            $f = XOOPS_ROOT_PATH.'/uploads/extcal/'.$t['event_picture1'];
41 41
             unlink($f);
42
-            echo $f . '<br>';
42
+            echo $f.'<br>';
43 43
         }
44 44
     }
45 45
 
@@ -100,13 +100,13 @@  discard block
 block discarded – undo
100 100
             if (!$eventHandler->modifyEvent($_POST['event_id'], $data)) {
101 101
                 redirect_header('event.php', 3, _AM_EXTCAL_EVENT_EDIT_FAILED, false);
102 102
             } else {
103
-                $fileHandler->createFile((int)$_POST['event_id']);
103
+                $fileHandler->createFile((int) $_POST['event_id']);
104 104
                 redirect_header('event.php', 3, _AM_EXTCAL_EVENT_EDITED, false);
105 105
             }
106 106
 
107 107
             // New event
108 108
         } else {
109
-            $notificationHandler =& xoops_getHandler('notification');
109
+            $notificationHandler = & xoops_getHandler('notification');
110 110
             $catHandler          = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
111 111
 
112 112
             $data['event_submitter']  = $xoopsUser ? $xoopsUser->getVar('uid') : 0;
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         $eventId      = $_GET['event_id'];
168 168
         $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
169 169
 
170
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _MD_EXTCAL_EDIT_EVENT . '</legend>';
170
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._MD_EXTCAL_EDIT_EVENT.'</legend>';
171 171
 
172 172
         if ($form = $eventHandler->getEventForm('admin', $action, array('event_id' => $eventId))) {
173 173
             $form->display();
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         }
193 193
 
194 194
         $data['event_id'] = 0;
195
-        $data['event_title'] .= ' (' . _AM_EXTCAL_CLONE_OF . $eventId . ')';
195
+        $data['event_title'] .= ' ('._AM_EXTCAL_CLONE_OF.$eventId.')';
196 196
 
197 197
         $newEvent = $eventHandler->create();
198 198
         $newEvent->setVars($data);
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 
209 209
         if (isset($_POST['confirm'])) {
210 210
             if (!$GLOBALS['xoopsSecurity']->check()) {
211
-                redirect_header('index.php', 3, _NOPERM . '<br />' . implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
211
+                redirect_header('index.php', 3, _NOPERM.'<br />'.implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
212 212
                 exit;
213 213
             }
214 214
             //             $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         if (isset($_POST['deleteSelection'][0])) {
275 275
         } else {
276 276
             if (!$GLOBALS['xoopsSecurity']->check()) {
277
-                redirect_header('index.php', 3, _NOPERM . '<br />' . implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
277
+                redirect_header('index.php', 3, _NOPERM.'<br />'.implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()));
278 278
                 exit;
279 279
             }
280 280
 
@@ -307,32 +307,32 @@  discard block
 block discarded – undo
307 307
         $events       = $eventHandler->objectToArray($eventHandler->getNewEvent($start, $nbEventsByPage, 0, true), array('cat_id'));
308 308
         $eventHandler->formatEventsDate($events, _SHORTDATESTRING);
309 309
 
310
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
311
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
310
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
311
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
312 312
         //echo'<img src='. XOOPS_URL .'/'. $moduleInfo->getInfo('dirmoduleadmin').'/assets/images/action/edit.png' .' '.'style=vertical-align:middle;/>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT . '<br />';
313 313
         //echo'<img src='. XOOPS_URL .'/'. $moduleInfo->getInfo('dirmoduleadmin').'/assets/images/action/delete.png'. ' '."style=vertical-align:middle;/>&nbsp;&nbsp;". _AM_EXTCAL_INFO_DELETE;
314 314
 
315
-        echo '<img src=' . $pathIcon16 . '/edit.png' . ' ' . 'style=vertical-align:middle;/>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT . '<br />';
316
-        echo '<img src=' . $pathIcon16 . '/delete.png' . ' ' . 'style=vertical-align:middle;/>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE . '<br />';
315
+        echo '<img src='.$pathIcon16.'/edit.png'.' '.'style=vertical-align:middle;/>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT.'<br />';
316
+        echo '<img src='.$pathIcon16.'/delete.png'.' '.'style=vertical-align:middle;/>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE.'<br />';
317 317
 
318 318
         echo '</fieldset><br />';
319 319
 
320
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _MD_EXTCAL_SUBMITED_EVENT . '</legend>';
320
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._MD_EXTCAL_SUBMITED_EVENT.'</legend>';
321 321
 
322 322
         echo '<form method="POST" action="event.php">';
323 323
         echo '<input type="hidden" name="op" value="deleteSelection" />';
324 324
 
325 325
         echo '<table class="outer" style="width:100%;">';
326 326
         echo '<tr style="text-align:center;">';
327
-        echo '<th>' . _AM_EXTCAL_DELETE . '</th>';
327
+        echo '<th>'._AM_EXTCAL_DELETE.'</th>';
328 328
         echo '<th>#</th>';
329
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
330
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
331
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
332
-        echo '<th>' . _AM_EXTCAL_END_DATE . '</th>';
333
-        echo '<th>' . _AM_EXTCAL_RECURRENT . '</th>';
334
-        echo '<th>' . _AM_EXTCAL_START_RULES . '</th>';
335
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
329
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
330
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
331
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
332
+        echo '<th>'._AM_EXTCAL_END_DATE.'</th>';
333
+        echo '<th>'._AM_EXTCAL_RECURRENT.'</th>';
334
+        echo '<th>'._AM_EXTCAL_START_RULES.'</th>';
335
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
336 336
 
337 337
         echo '</tr>';
338 338
 
@@ -340,15 +340,15 @@  discard block
 block discarded – undo
340 340
             $i = 0;
341 341
             foreach ($events as $event) {
342 342
                 $class = (++$i % 2 == 0) ? 'even' : 'odd';
343
-                echo '<tr style="text-align:left;" class="' . $class . '">';
343
+                echo '<tr style="text-align:left;" class="'.$class.'">';
344 344
                 echo "<td width='10%' align='center'>";
345 345
                 echo "<input type='checkbox' name='deleteEvents[{$event['event_id']}]' value='1' >";
346 346
                 echo "<input type='hidden' name='deleteAllEvents[{$event['event_id']}]' value='1' />";
347 347
                 echo '</td>';
348
-                echo "<td align = 'center' width='5%'>" . $event['event_id'] . '</td>';
349
-                echo "<td  width='10%'>" . '<a href=cat.php?op=modify&amp;cat_id=' . $event['cat']['cat_id'] . '&form_modify' . '>' . $event['cat']['cat_name'] . '</a>' . '</td>';
348
+                echo "<td align = 'center' width='5%'>".$event['event_id'].'</td>';
349
+                echo "<td  width='10%'>".'<a href=cat.php?op=modify&amp;cat_id='.$event['cat']['cat_id'].'&form_modify'.'>'.$event['cat']['cat_name'].'</a>'.'</td>';
350 350
 
351
-                echo '<td>' . '<a href=event.php?op=modify&amp;event_id=' . $event['event_id'] . '>' . $event['event_title'] . '</a>' . '</td>';
351
+                echo '<td>'.'<a href=event.php?op=modify&amp;event_id='.$event['event_id'].'>'.$event['event_title'].'</a>'.'</td>';
352 352
 
353 353
                 //                 if ($event['event_isrecur']) {
354 354
                 //                     echo '<td>' . $event['formated_reccur_rule'] . '</td>';
@@ -356,18 +356,18 @@  discard block
 block discarded – undo
356 356
                 //                     echo '<td>' . $event['formated_event_start'] . '</td>';
357 357
                 //                 }
358 358
 
359
-                echo "<td align = 'center' width='10%'>" . $event['formated_event_start'] . '</td>';
360
-                echo "<td align = 'center' width='10%'>" . $event['formated_event_end'] . '</td>';
361
-                echo '<td align="center">' . (($event['event_isrecur'] == 1) ? _YES : _NO) . '</td>';
359
+                echo "<td align = 'center' width='10%'>".$event['formated_event_start'].'</td>';
360
+                echo "<td align = 'center' width='10%'>".$event['formated_event_end'].'</td>';
361
+                echo '<td align="center">'.(($event['event_isrecur'] == 1) ? _YES : _NO).'</td>';
362 362
                 if (!isset($event['formated_reccur_rule'])) {
363 363
                     $event['formated_reccur_rule'] = '';
364 364
                 }
365
-                echo '<td>' . $event['formated_reccur_rule'] . '</td>';
365
+                echo '<td>'.$event['formated_reccur_rule'].'</td>';
366 366
 
367 367
                 echo '<td style="width:10%; text-align:center;">';
368
-                echo '<a href=event.php?op=modify&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/edit.png' title='" . _AM_EXTCAL_ICONE_EDIT . "' /></a>&nbsp;&nbsp;";
369
-                echo '<a href=event.php?op=delete&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/delete.png' title='" . _AM_EXTCAL_ICONE_DELETE . "' /></a>&nbsp;&nbsp;";
370
-                echo '<a href=event.php?op=clone&amp;event_id=' . $event['event_id'] . "><img src='" . $pathIcon16 . "/editcopy.png' title='" . _AM_EXTCAL_ICONE_CLONE . "' /></a>";
368
+                echo '<a href=event.php?op=modify&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/edit.png' title='"._AM_EXTCAL_ICONE_EDIT."' /></a>&nbsp;&nbsp;";
369
+                echo '<a href=event.php?op=delete&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/delete.png' title='"._AM_EXTCAL_ICONE_DELETE."' /></a>&nbsp;&nbsp;";
370
+                echo '<a href=event.php?op=clone&amp;event_id='.$event['event_id']."><img src='".$pathIcon16."/editcopy.png' title='"._AM_EXTCAL_ICONE_CLONE."' /></a>";
371 371
                 echo '</td>';
372 372
 
373 373
                 echo '</tr>';
@@ -381,13 +381,13 @@  discard block
 block discarded – undo
381 381
 
382 382
             echo '<td colspan="2" style="text-align: right;">';
383 383
 
384
-            echo '<input type="submit" value="' . _AM_EXTCAL_DELETE_ALL . '" name="deleteSelection[0]">';
385
-            echo '<input type="submit" value="' . _AM_EXTCAL_DELETE_SELECTION . '" name="deleteSelection[1]">';
384
+            echo '<input type="submit" value="'._AM_EXTCAL_DELETE_ALL.'" name="deleteSelection[0]">';
385
+            echo '<input type="submit" value="'._AM_EXTCAL_DELETE_SELECTION.'" name="deleteSelection[1]">';
386 386
 
387 387
             echo '</td>';
388 388
             echo '</tr>';
389 389
         } else {
390
-            echo '<tr><td colspan="5">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
390
+            echo '<tr><td colspan="5">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
391 391
         }
392 392
         echo '</table>';
393 393
         echo '</form>';
@@ -395,14 +395,14 @@  discard block
 block discarded – undo
395 395
         echo '</fieldset>';
396 396
         echo '</fieldset><br /><br />';
397 397
         //Fin de la liste des evennement -------------------------------------
398
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _MD_EXTCAL_SUBMIT_EVENT . '</legend>';
398
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._MD_EXTCAL_SUBMIT_EVENT.'</legend>';
399 399
 
400 400
         $form = $eventHandler->getEventForm('admin');
401 401
         $form->display();
402 402
 
403 403
         echo '</fieldset>';
404 404
 
405
-        include_once __DIR__ . '/admin_footer.php';
405
+        include_once __DIR__.'/admin_footer.php';
406 406
 
407 407
         break;
408 408
 }
Please login to merge, or discard this patch.
admin/menu.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -3,17 +3,17 @@  discard block
 block discarded – undo
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5 5
 $path = dirname(dirname(dirname(__DIR__)));
6
-include_once $path . '/mainfile.php';
6
+include_once $path.'/mainfile.php';
7 7
 
8 8
 $dirname         = basename(dirname(__DIR__));
9 9
 $module_handler  = xoops_getHandler('module');
10 10
 $module          = $module_handler->getByDirname($dirname);
11 11
 $pathIcon32      = $module->getInfo('icons32');
12 12
 $pathModuleAdmin = $module->getInfo('dirmoduleadmin');
13
-$pathLanguage    = $path . $pathModuleAdmin;
13
+$pathLanguage    = $path.$pathModuleAdmin;
14 14
 
15
-if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) {
16
-    $fileinc = $pathLanguage . '/language/english/main.php';
15
+if (!file_exists($fileinc = $pathLanguage.'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.'main.php')) {
16
+    $fileinc = $pathLanguage.'/language/english/main.php';
17 17
 }
18 18
 
19 19
 include_once $fileinc;
@@ -23,15 +23,15 @@  discard block
 block discarded – undo
23 23
 $i                      = 1;
24 24
 $adminmenu[$i]['title'] = _MI_EXTCAL_INDEX;
25 25
 $adminmenu[$i]['link']  = 'admin/index.php';
26
-$adminmenu[$i]['icon']  = $pathIcon32 . '/home.png';
26
+$adminmenu[$i]['icon']  = $pathIcon32.'/home.png';
27 27
 ++$i;
28 28
 $adminmenu[$i]['title'] = _MI_EXTCAL_CATEGORY;
29 29
 $adminmenu[$i]['link']  = 'admin/cat.php';
30
-$adminmenu[$i]['icon']  = $pathIcon32 . '/category.png';
30
+$adminmenu[$i]['icon']  = $pathIcon32.'/category.png';
31 31
 ++$i;
32 32
 $adminmenu[$i]['title'] = _MI_EXTCAL_EVENT;
33 33
 $adminmenu[$i]['link']  = 'admin/event.php';
34
-$adminmenu[$i]['icon']  = $pathIcon32 . '/event.png';
34
+$adminmenu[$i]['icon']  = $pathIcon32.'/event.png';
35 35
 ++$i;
36 36
 $adminmenu[$i]['title'] = _MI_EXTCAL_ETABLISSEMENTS;
37 37
 $adminmenu[$i]['link']  = 'admin/etablissement.php';
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 ++$i;
43 43
 $adminmenu[$i]['title'] = _MI_EXTCAL_PERMISSIONS;
44 44
 $adminmenu[$i]['link']  = 'admin/permissions.php';
45
-$adminmenu[$i]['icon']  = $pathIcon32 . '/permissions.png';
45
+$adminmenu[$i]['icon']  = $pathIcon32.'/permissions.png';
46 46
 //++$i;
47 47
 //$adminmenu[$i]['title'] = _MI_EXTCAL_PRUNING;
48 48
 //$adminmenu[$i]['link'] = "admin/prune.php";
@@ -50,4 +50,4 @@  discard block
 block discarded – undo
50 50
 ++$i;
51 51
 $adminmenu[$i]['title'] = _MI_EXTCAL_ABOUT;
52 52
 $adminmenu[$i]['link']  = 'admin/about.php';
53
-$adminmenu[$i]['icon']  = $pathIcon32 . '/about.png';
53
+$adminmenu[$i]['icon']  = $pathIcon32.'/about.png';
Please login to merge, or discard this patch.
admin/permissions.php 1 patch
Spacing   +30 added lines, -30 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 dirname(dirname(dirname(__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 dirname(dirname(dirname(__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'])) {
@@ -75,36 +75,36 @@  discard block
 block discarded – undo
75 75
         /**
76 76
          * Public category permission mask
77 77
          */
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;' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</a></legend><div id="default">';
79
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
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;'._AM_EXTCAL_PUBLIC_PERM_MASK.'</a></legend><div id="default">';
79
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
80 80
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
81 81
         echo '</fieldset><br />';
82 82
         echo '<table class="outer" style="width:100%;">';
83 83
         echo '<form method="post" action="permissions.php">';
84 84
         echo '<tr>';
85
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
85
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
86 86
         echo '</tr>';
87 87
         echo '<tr>';
88
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
89
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
90
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
91
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
92
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
88
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
89
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
90
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
91
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
92
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
93 93
         echo '</tr>';
94 94
         $i = 0;
95 95
         foreach ($glist as $k => $v) {
96 96
             $style = (++$i % 2 == 0) ? 'odd' : 'even';
97 97
             echo '<tr>';
98
-            echo '<td class="' . $style . '">' . $v . '</td>';
99
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . ' /></td>';
100
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . ' /></td>';
101
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . ' /></td>';
102
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . ' /></td>';
98
+            echo '<td class="'.$style.'">'.$v.'</td>';
99
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).' /></td>';
100
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).' /></td>';
101
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).' /></td>';
102
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).' /></td>';
103 103
             echo '</tr>';
104 104
         }
105 105
         echo '<input type="hidden" name="type" value="public" />';
106 106
         echo '<input type="hidden" name="step" value="enreg" />';
107
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '" /></td></tr></form>';
107
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'" /></td></tr></form>';
108 108
         echo '</table><br />';
109 109
 
110 110
         echo '</div></fieldset><br />';
@@ -124,13 +124,13 @@  discard block
 block discarded – undo
124 124
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
125 125
         }
126 126
 
127
-        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 . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
128
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
127
+        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.'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
128
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
129 129
         echo $permDesc;
130 130
         echo '</fieldset>';
131 131
 
132 132
         if ($catHandler->getCount()) {
133
-            echo $form->render() . '<br />';
133
+            echo $form->render().'<br />';
134 134
         } else {
135 135
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
136 136
         }
@@ -148,12 +148,12 @@  discard block
 block discarded – undo
148 148
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
149 149
         }
150 150
 
151
-        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 . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
152
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
151
+        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.'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
152
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
153 153
         echo $permDesc;
154 154
         echo '</fieldset>';
155 155
         if ($catHandler->getCount()) {
156
-            echo $form->render() . '<br />';
156
+            echo $form->render().'<br />';
157 157
         } else {
158 158
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
159 159
         }
@@ -171,12 +171,12 @@  discard block
 block discarded – undo
171 171
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
172 172
         }
173 173
 
174
-        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 . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
175
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
174
+        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.'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
175
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
176 176
         echo $permDesc;
177 177
         echo '</fieldset>';
178 178
         if ($catHandler->getCount()) {
179
-            echo $form->render() . '<br />';
179
+            echo $form->render().'<br />';
180 180
         } else {
181 181
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
182 182
         }
@@ -194,12 +194,12 @@  discard block
 block discarded – undo
194 194
             $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name'));
195 195
         }
196 196
 
197
-        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 . 'Icon" src="../assets/images/icons/minus.gif" />&nbsp;' . $titleOfForm . '</a></legend><div id="' . $permName . '">';
198
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
197
+        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.'Icon" src="../assets/images/icons/minus.gif" />&nbsp;'.$titleOfForm.'</a></legend><div id="'.$permName.'">';
198
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
199 199
         echo $permDesc;
200 200
         echo '</fieldset>';
201 201
         if ($catHandler->getCount()) {
202
-            echo $form->render() . '<br />';
202
+            echo $form->render().'<br />';
203 203
         } else {
204 204
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
205 205
         }
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
217 217
         echo '</script>';
218 218
 
219
-        include_once __DIR__ . '/admin_footer.php';
219
+        include_once __DIR__.'/admin_footer.php';
220 220
 
221 221
         break;
222 222
 
Please login to merge, or discard this patch.