Completed
Push — master ( a9decc...a21b67 )
by Michael
02:51
created
event_member.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 __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5
-require_once __DIR__ . '/include/constantes.php';
6
-require_once __DIR__ . '/include/mail_fnc.php';
7
-require_once __DIR__ . '/class/utility.php';
5
+require_once __DIR__.'/include/constantes.php';
6
+require_once __DIR__.'/include/mail_fnc.php';
7
+require_once __DIR__.'/class/utility.php';
8 8
 
9 9
 // $member_uid = 1;
10 10
 // $event_id = 393;
@@ -39,27 +39,27 @@  discard block
 block discarded – undo
39 39
 //echo "<hr>";
40 40
 
41 41
 if (!$GLOBALS['xoopsSecurity']->check()) {
42
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
42
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
43 43
 }
44 44
 
45 45
 if ($xoopsUser && $xoopsModuleConfig['whos_going']) {
46 46
     // If param are right
47
-    if ((int)$_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
47
+    if ((int) $_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
48 48
         $eventHandler       = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
49 49
         $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE);
50 50
 
51 51
         // If the user have to be added
52 52
         if ($_POST['mode'] === 'add') {
53
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
53
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
54 54
 
55 55
             if ($event->getVar('event_nbmember') > 0
56
-                && $eventMemberHandler->getNbMember((int)$_POST['event']) >= $event->getVar('event_nbmember')
56
+                && $eventMemberHandler->getNbMember((int) $_POST['event']) >= $event->getVar('event_nbmember')
57 57
             ) {
58 58
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_0, _MD_EXTCAL_MSG_0);
59 59
                 $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED;
60 60
             } else {
61 61
                 $eventMemberHandler->createEventmember(array(
62
-                                                           'event_id' => (int)$_POST['event'],
62
+                                                           'event_id' => (int) $_POST['event'],
63 63
                                                            'uid'      => $xoopsUser->getVar('uid'),
64 64
                                                        ));
65 65
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1);
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
             // If the user have to be remove
69 69
         } else {
70 70
             if ($_POST['mode'] === 'remove') {
71
-                $eventMemberHandler->deleteEventmember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
71
+                $eventMemberHandler->deleteEventmember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
72 72
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_2, _MD_EXTCAL_MSG_2);
73 73
                 $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT;
74 74
             }
75 75
         }
76
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
76
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
77 77
     } else {
78 78
         redirect_header('index.php', 3, _NOPERM, false);
79 79
     }
Please login to merge, or discard this patch.
view_search.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
5
-$params                                  = array(
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5
+$params = array(
6 6
     'view' => _EXTCAL_NAV_SEARCH,
7 7
     'file' => _EXTCAL_FILE_SEARCH,
8 8
 );
9 9
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
10
-require_once __DIR__ . '/header.php';
10
+require_once __DIR__.'/header.php';
11 11
 
12 12
 $recurEventsArray = array();
13 13
 //needed to save the state of the form, so we don't show on the first time the list of available events
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 /***************************************************************/
20 20
 $searchExp = isset($_POST['searchExp']) ? $_POST['searchExp'] : '';
21 21
 $andor     = isset($_POST['andor']) ? $_POST['andor'] : '';
22
-$year      = isset($_POST['year']) ? (int)$_POST['year'] : date('Y');
23
-$month     = isset($_POST['month']) ? (int)$_POST['month'] : date('n');
24
-$day       = isset($_POST['day']) ? (int)$_POST['day'] : 0;
25
-$cat       = isset($_POST['cat']) ? (int)$_POST['cat'] : 0;
22
+$year      = isset($_POST['year']) ? (int) $_POST['year'] : date('Y');
23
+$month     = isset($_POST['month']) ? (int) $_POST['month'] : date('n');
24
+$day       = isset($_POST['day']) ? (int) $_POST['day'] : 0;
25
+$cat       = isset($_POST['cat']) ? (int) $_POST['cat'] : 0;
26 26
 $orderby1  = isset($_POST['orderby1']) ? $_POST['orderby1'] : 'cat_name ASC';
27 27
 $orderby2  = isset($_POST['orderby2']) ? $_POST['orderby2'] : 'event_title ASC';
28 28
 $orderby3  = isset($_POST['orderby3']) ? $_POST['orderby3'] : '';
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     }
144 144
 }
145 145
 
146
-$eventsArray = array_merge((array)$eventsArray, (array)$recurEventsArray);
146
+$eventsArray = array_merge((array) $eventsArray, (array) $recurEventsArray);
147 147
 
148 148
 // Sort event array by event start
149 149
 //usort($eventsArray, "orderEvents");
@@ -234,4 +234,4 @@  discard block
 block discarded – undo
234 234
 $xoopsTpl->assign('lang', $lang);
235 235
 $xoopsTpl->assign('view', 'search');
236 236
 
237
-include XOOPS_ROOT_PATH . '/footer.php';
237
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
etablissement.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -55,22 +55,22 @@  discard block
 block discarded – undo
55 55
 $edit_delete = '';
56 56
 if (is_object($xoopsUser) && $isAdmin) {
57 57
     $edit_delete = '<a href="'
58
-                   . XOOPS_URL
59
-                   . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='
60
-                   . $etablissement_id
61
-                   . '"><img src="'
62
-                   . $pathIcon16
63
-                   . '/edit.png" width="16px" height="16px" border="0" title="'
64
-                   . _MD_EXTCAL_ETABLISSEMENT_EDIT
65
-                   . '"/></a><a href="'
66
-                   . XOOPS_URL
67
-                   . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='
68
-                   . $etablissement_id
69
-                   . '"><img src="'
70
-                   . $pathIcon16
71
-                   . '/delete.png" width="16px" height="16px" border="0" title="'
72
-                   . _MD_EXTCAL_ETABLISSEMENT_DELETE
73
-                   . '"/></a>';
58
+                    . XOOPS_URL
59
+                    . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='
60
+                    . $etablissement_id
61
+                    . '"><img src="'
62
+                    . $pathIcon16
63
+                    . '/edit.png" width="16px" height="16px" border="0" title="'
64
+                    . _MD_EXTCAL_ETABLISSEMENT_EDIT
65
+                    . '"/></a><a href="'
66
+                    . XOOPS_URL
67
+                    . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='
68
+                    . $etablissement_id
69
+                    . '"><img src="'
70
+                    . $pathIcon16
71
+                    . '/delete.png" width="16px" height="16px" border="0" title="'
72
+                    . _MD_EXTCAL_ETABLISSEMENT_DELETE
73
+                    . '"/></a>';
74 74
 }
75 75
 $xoopsTpl->assign('edit_delete', $edit_delete);
76 76
 
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
 $date = mktime(0, 0, 0, date('m'), date('d'), date('y'));
80 80
 
81 81
 $requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM '
82
-                           . $xoopsDB->prefix('extcal_event')
83
-                           . " WHERE event_etablissement='"
84
-                           . $etablissement_id
85
-                           . "' AND event_start >='"
86
-                           . $date
87
-                           . "'");
82
+                            . $xoopsDB->prefix('extcal_event')
83
+                            . " WHERE event_etablissement='"
84
+                            . $etablissement_id
85
+                            . "' AND event_start >='"
86
+                            . $date
87
+                            . "'");
88 88
 while ($donnees = $xoopsDB->fetchArray($requete)) {
89 89
     if ($donnees['event_desc'] > 210) {
90 90
         $event_desc = $donnees['event_desc'];
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+require_once __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_etablissement.tpl';
23
-require_once __DIR__ . '/header.php';
23
+require_once __DIR__.'/header.php';
24 24
 
25 25
 //require_once XOOPS_ROOT_PATH."/modules/extcal/class/etablissement.php";
26 26
 $etablissementHandler = xoops_getModuleHandler(_EXTCAL_CLS_ETABLISSEMENT, _EXTCAL_MODULE);
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 $etablissement_exist = $etablissementHandler->getCount($criteria);
37 37
 
38 38
 if ($etablissement_exist == 0) {
39
-    redirect_header(XOOPS_URL . '/modules/extcal/index.php', 3, _NOPERM);
39
+    redirect_header(XOOPS_URL.'/modules/extcal/index.php', 3, _NOPERM);
40 40
 }
41 41
 
42 42
 $view_etablissement = $etablissementHandler->getEtablissement($etablissement_id, true);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 /* todo a deplacer dans le template JJD */
51 51
 $uid = $xoopsUser ? $xoopsUser->getVar('uid') : 0;
52 52
 global $xoopsModule;
53
-$pathIcon16      = \Xmf\Module\Admin::iconUrl('', 16);
53
+$pathIcon16 = \Xmf\Module\Admin::iconUrl('', 16);
54 54
 
55 55
 $edit_delete = '';
56 56
 if (is_object($xoopsUser) && $isAdmin) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     if ($donnees['event_desc'] > 210) {
90 90
         $event_desc = $donnees['event_desc'];
91 91
     } else {
92
-        $event_desc = substr($donnees['event_desc'], 0, 210) . '...';
92
+        $event_desc = substr($donnees['event_desc'], 0, 210).'...';
93 93
     }
94 94
     $xoopsTpl->append('events', array(
95 95
         'event_picture1' => $donnees['event_picture1'],
@@ -102,4 +102,4 @@  discard block
 block discarded – undo
102 102
 /** @var xos_opal_Theme $xoTheme */
103 103
 $xoTheme->addScript('browse.php?modules/extcal/assets/js/highslide.js');
104 104
 $xoTheme->addStylesheet('browse.php?modules/extcal/assets/js/highslide.css');
105
-require_once XOOPS_ROOT_PATH . '/footer.php';
105
+require_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
admin/admin_footer.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
 
21 21
 $pathIcon32      = \Xmf\Module\Admin::iconUrl('', 32);
22 22
 echo "<div class='adminfooter'>\n"
23
-     . "  <div style='text-align: center;'>\n"
24
-     . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
25
-     . "  </div>\n"
26
-     . '  '
27
-     . _AM_MODULEADMIN_ADMIN_FOOTER
28
-     . "\n"
29
-     . '</div>';
23
+        . "  <div style='text-align: center;'>\n"
24
+        . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
25
+        . "  </div>\n"
26
+        . '  '
27
+        . _AM_MODULEADMIN_ADMIN_FOOTER
28
+        . "\n"
29
+        . '</div>';
30 30
 
31 31
 xoops_cp_footer();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
  * @author    Mamba (www.xoops.org)
19 19
  **/
20 20
 
21
-$pathIcon32      = \Xmf\Module\Admin::iconUrl('', 32);
21
+$pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32);
22 22
 echo "<div class='adminfooter'>\n"
23 23
      . "  <div style='text-align: center;'>\n"
24 24
      . "    <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21 21
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
22 22
 
23 23
 $moduleDirName = basename(dirname(__DIR__));
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
-require_once __DIR__ . '/../../../include/cp_header.php';
9
-include __DIR__ . '/function.php';
8
+require_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/etablissement.php 2 patches
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -129,23 +129,23 @@  discard block
 block discarded – undo
129 129
                 echo '<td align="center"><b>' . $etablissement_telephone . '</td>';
130 130
                 echo '<td align="center" width="15%">';
131 131
                 echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id='
132
-                     . $etablissement_id
133
-                     . '"><img src='
134
-                     . $pathIcon16
135
-                     . '/edit.png alt="'
136
-                     . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT
137
-                     . '" title="'
138
-                     . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT
139
-                     . '"></a> ';
132
+                        . $etablissement_id
133
+                        . '"><img src='
134
+                        . $pathIcon16
135
+                        . '/edit.png alt="'
136
+                        . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT
137
+                        . '" title="'
138
+                        . _AM_EXTCAL_ETABLISSEMENT_FORM_EDIT
139
+                        . '"></a> ';
140 140
                 echo '<a href="etablissement.php?op=delete_etablissement&etablissement_id='
141
-                     . $etablissement_id
142
-                     . '"><img src='
143
-                     . $pathIcon16
144
-                     . '/delete.png alt="'
145
-                     . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE
146
-                     . '" title="'
147
-                     . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE
148
-                     . '"></a> ';
141
+                        . $etablissement_id
142
+                        . '"><img src='
143
+                        . $pathIcon16
144
+                        . '/delete.png alt="'
145
+                        . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE
146
+                        . '" title="'
147
+                        . _AM_EXTCAL_ETABLISSEMENT_FORM_DELETE
148
+                        . '"></a> ';
149 149
                 echo '</td>';
150 150
             }
151 151
             echo '</table><br>';
@@ -171,10 +171,10 @@  discard block
 block discarded – undo
171 171
             }
172 172
         } else {
173 173
             xoops_confirm(array(
174
-                              'ok'               => 1,
175
-                              'etablissement_id' => $_REQUEST['etablissement_id'],
176
-                              'op'               => 'delete_etablissement',
177
-                          ), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
174
+                                'ok'               => 1,
175
+                                'etablissement_id' => $_REQUEST['etablissement_id'],
176
+                                'op'               => 'delete_etablissement',
177
+                            ), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
178 178
         }
179 179
         break;
180 180
 
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -18,19 +18,19 @@  discard block
 block discarded – undo
18 18
  */
19 19
 
20 20
 // Include xoops admin header
21
-require_once __DIR__ . '/../../../include/cp_header.php';
22
-require_once __DIR__ . '/../class/ExtcalPersistableObjectHandler.php';
23
-require_once __DIR__ . '/../../../kernel/module.php';
24
-require_once __DIR__ . '/../../../class/xoopsformloader.php';
25
-require_once __DIR__ . '/../../../class/tree.php';
26
-require_once __DIR__ . '/../../../class/xoopslists.php';
27
-require_once __DIR__ . '/../../../class/pagenav.php';
28
-require_once __DIR__ . '/../../../class/xoopsform/grouppermform.php';
29
-require_once __DIR__ . '/../../../class/uploader.php';
30
-require_once __DIR__ . '/../class/etablissement.php';
31
-require_once __DIR__ . '/../include/constantes.php';
21
+require_once __DIR__.'/../../../include/cp_header.php';
22
+require_once __DIR__.'/../class/ExtcalPersistableObjectHandler.php';
23
+require_once __DIR__.'/../../../kernel/module.php';
24
+require_once __DIR__.'/../../../class/xoopsformloader.php';
25
+require_once __DIR__.'/../../../class/tree.php';
26
+require_once __DIR__.'/../../../class/xoopslists.php';
27
+require_once __DIR__.'/../../../class/pagenav.php';
28
+require_once __DIR__.'/../../../class/xoopsform/grouppermform.php';
29
+require_once __DIR__.'/../../../class/uploader.php';
30
+require_once __DIR__.'/../class/etablissement.php';
31
+require_once __DIR__.'/../include/constantes.php';
32 32
 
33
-require_once __DIR__ . '/admin_header.php';
33
+require_once __DIR__.'/admin_header.php';
34 34
 
35 35
 //include_once("functions.php");
36 36
 //include_once("../include/functions.php");
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
 if ($xoopsUser) {
39 39
     $xoopsModule = XoopsModule::getByDirname('extcal');
40 40
     if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
41
-        redirect_header(XOOPS_URL . '/', 3, _NOPERM);
41
+        redirect_header(XOOPS_URL.'/', 3, _NOPERM);
42 42
     }
43 43
 } else {
44
-    redirect_header(XOOPS_URL . '/', 3, _NOPERM);
44
+    redirect_header(XOOPS_URL.'/', 3, _NOPERM);
45 45
 }
46 46
 
47 47
 // Include language file
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $etablissement_arr = $etablissementHandler->getObjects($criteria);
99 99
         $numrows           = $etablissementHandler->getCount($criteria);
100 100
         if ($numrows > $limit) {
101
-            $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit=' . $limit);
101
+            $pagenav = new XoopsPageNav($numrows, $limit, $start, 'start', 'op=liste&limit='.$limit);
102 102
             $pagenav = $pagenav->renderNav(4);
103 103
         } else {
104 104
             $pagenav = '';
@@ -107,11 +107,11 @@  discard block
 block discarded – undo
107 107
         if ($numrows > 0) {
108 108
             echo '<table width="100%" cellspacing="1" class="outer">';
109 109
             echo '<tr>';
110
-            echo '<th align="center">' . _AM_EXTCAL_ETABLISSEMENT_FORM_NOM . '</th>';
111
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE . '</th>';
112
-            echo '<th align="center" width="20%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_CITY . '</th>';
113
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE . '</th>';
114
-            echo '<th align="center" width="15%">' . _AM_EXTCAL_ETABLISSEMENT_FORM_ACTION . '</th>';
110
+            echo '<th align="center">'._AM_EXTCAL_ETABLISSEMENT_FORM_NOM.'</th>';
111
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ADRESSE.'</th>';
112
+            echo '<th align="center" width="20%">'._AM_EXTCAL_ETABLISSEMENT_FORM_CITY.'</th>';
113
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_TELEPHONE.'</th>';
114
+            echo '<th align="center" width="15%">'._AM_EXTCAL_ETABLISSEMENT_FORM_ACTION.'</th>';
115 115
             echo '</tr>';
116 116
             $class = 'odd';
117 117
             foreach (array_keys($etablissement_arr) as $i) {
@@ -121,12 +121,12 @@  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 131
                 echo '<a href="etablissement.php?op=edit_etablissement&etablissement_id='
132 132
                      . $etablissement_id
@@ -149,9 +149,9 @@  discard block
 block discarded – undo
149 149
                 echo '</td>';
150 150
             }
151 151
             echo '</table><br>';
152
-            echo '<br><div align=right>' . $pagenav . '</div><br>';
152
+            echo '<br><div align=right>'.$pagenav.'</div><br>';
153 153
         } else {
154
-            echo '<div class="errorMsg" style="text-align: center;">' . _AM_EXTCAL_ERREUR_NO_ETABLISSEMENT . '</div>';
154
+            echo '<div class="errorMsg" style="text-align: center;">'._AM_EXTCAL_ERREUR_NO_ETABLISSEMENT.'</div>';
155 155
         }
156 156
 
157 157
         // Affichage du formulaire
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
                               'ok'               => 1,
175 175
                               'etablissement_id' => $_REQUEST['etablissement_id'],
176 176
                               'op'               => 'delete_etablissement',
177
-                          ), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL . '<br>');
177
+                          ), $_SERVER['REQUEST_URI'], _AM_EXTCAL_ETABLISSEMENT_SURDEL.'<br>');
178 178
         }
179 179
         break;
180 180
 
@@ -216,11 +216,11 @@  discard block
 block discarded – undo
216 216
         $obj->setVar('map', $_REQUEST['map']);
217 217
 
218 218
         //Logo
219
-        $uploaddir_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/';
220
-        $uploadurl_etablissement = XOOPS_URL . '/uploads/extcal/etablissement/';
219
+        $uploaddir_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/';
220
+        $uploadurl_etablissement = XOOPS_URL.'/uploads/extcal/etablissement/';
221 221
 
222 222
         $delimg = @$_REQUEST['delimg'];
223
-        $delimg = isset($delimg) ? (int)$delimg : 0;
223
+        $delimg = isset($delimg) ? (int) $delimg : 0;
224 224
         if ($delimg == 0 && !empty($_REQUEST['xoops_upload_file'][0])) {
225 225
             $upload = new XoopsMediaUploader($uploaddir_etablissement, array(
226 226
                 'image/gif',
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             }
244 244
         } else {
245 245
             $logo              = '';
246
-            $url_etablissement = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement/' . $_REQUEST['file'];
246
+            $url_etablissement = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement/'.$_REQUEST['file'];
247 247
             if (is_file($url_etablissement)) {
248 248
                 chmod($url_etablissement, 0777);
249 249
                 unlink($url_etablissement);
@@ -263,4 +263,4 @@  discard block
 block discarded – undo
263 263
         break;
264 264
 }
265 265
 
266
-require_once __DIR__ . '/admin_footer.php';
266
+require_once __DIR__.'/admin_footer.php';
Please login to merge, or discard this patch.
admin/main.php 3 patches
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -86,35 +86,35 @@
 block discarded – undo
86 86
                 xoops_cp_header();
87 87
                 $fromemail      = !empty($xoopsConfig['adminmail']) ? $xoopsConfig['adminmail'] : $xoopsUser->getVar('email', 'E');
88 88
                 $subjectCaption = _AM_EXTCAL_SUBJECT
89
-                                  . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
90
-                                  . _AM_EXTCAL_USEFUL_TAGS
91
-                                  . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
92
-                                  . _AM_EXTCAL_MAILTAGS6
93
-                                  . '<br>'
94
-                                  . _AM_EXTCAL_MAILTAGS2
95
-                                  . '</span>&nbsp;&nbsp;&nbsp;';
89
+                                    . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
90
+                                    . _AM_EXTCAL_USEFUL_TAGS
91
+                                    . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
92
+                                    . _AM_EXTCAL_MAILTAGS6
93
+                                    . '<br>'
94
+                                    . _AM_EXTCAL_MAILTAGS2
95
+                                    . '</span>&nbsp;&nbsp;&nbsp;';
96 96
                 $bodyCaption    = _AM_EXTCAL_BODY
97
-                                  . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
98
-                                  . _AM_EXTCAL_USEFUL_TAGS
99
-                                  . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
100
-                                  . _AM_EXTCAL_MAILTAGS1
101
-                                  . '<br>'
102
-                                  . _AM_EXTCAL_MAILTAGS2
103
-                                  . '<br>'
104
-                                  . _AM_EXTCAL_MAILTAGS3
105
-                                  . '<br>'
106
-                                  . _AM_EXTCAL_MAILTAGS4
107
-                                  . '<br>'
108
-                                  . _AM_EXTCAL_MAILTAGS5
109
-                                  . '<br>'
110
-                                  . _AM_EXTCAL_MAILTAGS6
111
-                                  . '<br>'
112
-                                  . _AM_EXTCAL_MAILTAGS7
113
-                                  . '<br>'
114
-                                  . _AM_EXTCAL_MAILTAGS8
115
-                                  . '<br>'
116
-                                  . _AM_EXTCAL_MAILTAGS9
117
-                                  . '</span>&nbsp;&nbsp;&nbsp;';
97
+                                    . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
98
+                                    . _AM_EXTCAL_USEFUL_TAGS
99
+                                    . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
100
+                                    . _AM_EXTCAL_MAILTAGS1
101
+                                    . '<br>'
102
+                                    . _AM_EXTCAL_MAILTAGS2
103
+                                    . '<br>'
104
+                                    . _AM_EXTCAL_MAILTAGS3
105
+                                    . '<br>'
106
+                                    . _AM_EXTCAL_MAILTAGS4
107
+                                    . '<br>'
108
+                                    . _AM_EXTCAL_MAILTAGS5
109
+                                    . '<br>'
110
+                                    . _AM_EXTCAL_MAILTAGS6
111
+                                    . '<br>'
112
+                                    . _AM_EXTCAL_MAILTAGS7
113
+                                    . '<br>'
114
+                                    . _AM_EXTCAL_MAILTAGS8
115
+                                    . '<br>'
116
+                                    . _AM_EXTCAL_MAILTAGS9
117
+                                    . '</span>&nbsp;&nbsp;&nbsp;';
118 118
                 $toCheckBbox    = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
119 119
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
120 120
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
Please login to merge, or discard this patch.
Switch Indentation   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 }
34 34
 
35 35
 switch ($op) {
36
-    case 'notification':
37
-        switch ($fct) {
36
+        case 'notification':
37
+            switch ($fct) {
38 38
             case 'send':
39 39
                 if (!$GLOBALS['xoopsSecurity']->check()) {
40 40
                     redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
@@ -137,78 +137,78 @@  discard block
 block discarded – undo
137 137
                 xoops_cp_footer();
138 138
 
139 139
                 break;
140
-        }
140
+            }
141 141
         break;
142 142
 
143
-    default:
144
-    case 'default':
145
-        // @author      Gregory Mage (Aka Mage)
146
-        //***************************************************************************************
147
-        xoops_cp_header();
148
-        //        require_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
149
-        //        $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
150
-        //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
151
-        $adminObject  = \Xmf\Module\Admin::getInstance();
152
-        $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
153
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount(), 'Green');
154
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
155
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
156
-        $criteriaCompo = new CriteriaCompo();
157
-        $criteriaCompo->add(new Criteria('event_approved', 1));
158
-        $criteriaCompo->add(new Criteria('event_start', time(), '>='));
159
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>', 'Green');
160
-
161
-        $adminObject->addConfigBoxLine();
162
-        $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
163
-        $adminObject->addConfigBoxLine(_EXTCAL_PEAR_ROOT, 'folder');
164
-
165
-        //JJD
166
-        //         $adminObject->addConfigBoxLine(XOOPS_ROOT_PATH,'folder');
167
-
168
-        //        $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php');
169
-        //        $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops');
170
-        $adminObject->displayNavigation(basename(__FILE__));
171
-        $adminObject->displayIndex();
172
-        //***************************************************************************************
173
-        $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
174
-        $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
175
-
176
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
177
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
178
-        //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
179
-        echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
180
-        echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
181
-        echo '</fieldset><br>';
182
-
183
-        echo '<table class="outer" style="width:100%;">';
184
-        echo '<tr style="text-align:center;">';
185
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
186
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
187
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
188
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
189
-        echo '</tr>';
190
-
191
-        if (count($pendingEvent) > 0) {
192
-            $i = 0;
193
-            foreach ($pendingEvent as $event) {
194
-                $class = (++$i % 2 == 0) ? 'even' : 'odd';
195
-                echo '<tr style="text-align:center;" class="' . $class . '">';
196
-                echo '<td>' . $event['cat']['cat_name'] . '</td>';
197
-                echo '<td>' . $event['event_title'] . '</td>';
198
-                echo '<td>' . $event['formated_event_start'] . '</td>';
199
-                echo '<td style="width:10%; text-align:center;">';
200
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
201
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
202
-                echo '</td>';
203
-                echo '</tr>';
143
+        default:
144
+        case 'default':
145
+            // @author      Gregory Mage (Aka Mage)
146
+            //***************************************************************************************
147
+            xoops_cp_header();
148
+            //        require_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
149
+            //        $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
150
+            //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
151
+            $adminObject  = \Xmf\Module\Admin::getInstance();
152
+            $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
153
+            $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount(), 'Green');
154
+            $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
155
+            $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
156
+            $criteriaCompo = new CriteriaCompo();
157
+            $criteriaCompo->add(new Criteria('event_approved', 1));
158
+            $criteriaCompo->add(new Criteria('event_start', time(), '>='));
159
+            $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>', 'Green');
160
+
161
+            $adminObject->addConfigBoxLine();
162
+            $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
163
+            $adminObject->addConfigBoxLine(_EXTCAL_PEAR_ROOT, 'folder');
164
+
165
+            //JJD
166
+            //         $adminObject->addConfigBoxLine(XOOPS_ROOT_PATH,'folder');
167
+
168
+            //        $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_PHP, $xoopsModule->getInfo("min_php"), 'php');
169
+            //        $adminObject->addLineConfigLabel(_AM_EXTCAL_CONFIG_XOOPS, $xoopsModule->getInfo("min_xoops"), 'xoops');
170
+            $adminObject->displayNavigation(basename(__FILE__));
171
+            $adminObject->displayIndex();
172
+            //***************************************************************************************
173
+            $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
174
+            $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
175
+
176
+            echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
177
+            echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
178
+            //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
179
+            echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
180
+            echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
181
+            echo '</fieldset><br>';
182
+
183
+            echo '<table class="outer" style="width:100%;">';
184
+            echo '<tr style="text-align:center;">';
185
+            echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
186
+            echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
187
+            echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
188
+            echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
189
+            echo '</tr>';
190
+
191
+            if (count($pendingEvent) > 0) {
192
+                $i = 0;
193
+                foreach ($pendingEvent as $event) {
194
+                    $class = (++$i % 2 == 0) ? 'even' : 'odd';
195
+                    echo '<tr style="text-align:center;" class="' . $class . '">';
196
+                    echo '<td>' . $event['cat']['cat_name'] . '</td>';
197
+                    echo '<td>' . $event['event_title'] . '</td>';
198
+                    echo '<td>' . $event['formated_event_start'] . '</td>';
199
+                    echo '<td style="width:10%; text-align:center;">';
200
+                    echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
201
+                    echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
202
+                    echo '</td>';
203
+                    echo '</tr>';
204
+                }
205
+            } else {
206
+                echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
204 207
             }
205
-        } else {
206
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
207
-        }
208 208
 
209
-        echo '</table></fieldset><br>';
209
+            echo '</table></fieldset><br>';
210 210
 
211
-        require_once __DIR__ . '/admin_footer.php';
211
+            require_once __DIR__ . '/admin_footer.php';
212 212
 
213
-        break;
213
+            break;
214 214
 }
Please login to merge, or discard this 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
-require_once __DIR__ . '/../../../include/cp_header.php';
4
-include __DIR__ . '/../../../class/xoopsformloader.php';
5
-require_once __DIR__ . '/admin_header.php';
3
+require_once __DIR__.'/../../../include/cp_header.php';
4
+include __DIR__.'/../../../class/xoopsformloader.php';
5
+require_once __DIR__.'/admin_header.php';
6 6
 
7 7
 function extgalleryLastVersion()
8 8
 {
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         switch ($fct) {
38 38
             case 'send':
39 39
                 if (!$GLOBALS['xoopsSecurity']->check()) {
40
-                    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
40
+                    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
41 41
                 }
42 42
                 xoops_cp_header();
43 43
                 adminMenu(1);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
                     'EV_TITLE' => $event->getVar('event_title'),
71 71
                     'EV_START' => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_start')),
72 72
                     'EV_END'   => $extcalTime->getFormatedDate($xoopsModuleConfig['date_long'], $event->getVar('event_end')),
73
-                    'EV_LINK'  => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'),
73
+                    'EV_LINK'  => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'),
74 74
                 );
75 75
                 $xoopsMailer->assign($tag);
76 76
                 $xoopsMailer->send(true);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                                   . '<br>'
94 94
                                   . _AM_EXTCAL_MAILTAGS2
95 95
                                   . '</span>&nbsp;&nbsp;&nbsp;';
96
-                $bodyCaption    = _AM_EXTCAL_BODY
96
+                $bodyCaption = _AM_EXTCAL_BODY
97 97
                                   . "<br><br><span style='font-size:x-small;font-weight:bold;'>"
98 98
                                   . _AM_EXTCAL_USEFUL_TAGS
99 99
                                   . "</span><br><span style='font-size:x-small;font-weight:normal;'>"
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
                                   . '<br>'
116 116
                                   . _AM_EXTCAL_MAILTAGS9
117 117
                                   . '</span>&nbsp;&nbsp;&nbsp;';
118
-                $toCheckBbox    = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
118
+                $toCheckBbox = new XoopsFormCheckBox(_AM_EXTCAL_SEND_TO, 'mail_send_to', 'mail');
119 119
                 $toCheckBox->addOption('mail', _AM_EXTCAL_EMAIL);
120 120
                 $toCheckBox->addOption('pm', _AM_EXTCAL_PM);
121 121
 
122
-                echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_APPROVED_EVENT . '</legend>';
123
-                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
122
+                echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_APPROVED_EVENT.'</legend>';
123
+                echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
124 124
                 echo _AM_EXTCAL_INFO_SEND_NOTIF;
125 125
                 echo '</fieldset><br>';
126 126
                 $form = new XoopsThemeForm(_AM_EXTCAL_SEND_NOTIFICATION, 'mailusers', 'index.php?op=notification&amp;fct=send', 'post', true);
@@ -148,15 +148,15 @@  discard block
 block discarded – undo
148 148
         //        require_once XOOPS_ROOT_PATH . "/modules/extcal/class/admin.php";
149 149
         //        $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
150 150
         //        $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
151
-        $adminObject  = \Xmf\Module\Admin::getInstance();
151
+        $adminObject = \Xmf\Module\Admin::getInstance();
152 152
         $adminObject->addInfoBox(_MI_EXTCAL_DASHBOARD);
153
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_CATEGORIES . '</infolabel>', $catHandler->getCount(), 'Green');
154
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_EVENT . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
155
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_PENDING . '</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
153
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_CATEGORIES.'</infolabel>', $catHandler->getCount(), 'Green');
154
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_EVENT.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 1)), 'Green');
155
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_PENDING.'</infolabel>', $eventHandler->getCount(new Criteria('event_approved', 0)), 'Red');
156 156
         $criteriaCompo = new CriteriaCompo();
157 157
         $criteriaCompo->add(new Criteria('event_approved', 1));
158 158
         $criteriaCompo->add(new Criteria('event_start', time(), '>='));
159
-        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>' . _AM_EXTCAL_INDEX_APPROVED . '</infolabel><infotext>', $eventHandler->getCount($criteriaCompo) . '</infotext>', 'Green');
159
+        $adminObject->addInfoBoxLine(_MI_EXTCAL_DASHBOARD, '<infolabel>'._AM_EXTCAL_INDEX_APPROVED.'</infolabel><infotext>', $eventHandler->getCount($criteriaCompo).'</infotext>', 'Green');
160 160
 
161 161
         $adminObject->addConfigBoxLine();
162 162
         $adminObject->addConfigBoxLine(_AM_EXTCAL_PEAR_PATH);
@@ -173,42 +173,42 @@  discard block
 block discarded – undo
173 173
         $pendingEvent = $eventHandler->objectToArray($eventHandler->getPendingEvent(), array('cat_id'));
174 174
         $eventHandler->formatEventsDate($pendingEvent, 'd/m/Y');
175 175
 
176
-        echo '<fieldset><legend style="font-weight:bold; color:#990000;">' . _AM_EXTCAL_PENDING_EVENT . '</legend>';
177
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
176
+        echo '<fieldset><legend style="font-weight:bold; color:#990000;">'._AM_EXTCAL_PENDING_EVENT.'</legend>';
177
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
178 178
         //        echo '<img src="../assets/images/icons/on.png" >&nbsp;&nbsp;'._AM_EXTCAL_INFO_APPROVE_PENDING_EVENT.'<br>';
179
-        echo '<img src=' . $pathIcon16 . '/edit.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_EDIT_PENDING_EVENT . '<br>';
180
-        echo '<img src=' . $pathIcon16 . '/delete.png>&nbsp;&nbsp;' . _AM_EXTCAL_INFO_DELETE_PENDING_EVENT . '<br>';
179
+        echo '<img src='.$pathIcon16.'/edit.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_EDIT_PENDING_EVENT.'<br>';
180
+        echo '<img src='.$pathIcon16.'/delete.png>&nbsp;&nbsp;'._AM_EXTCAL_INFO_DELETE_PENDING_EVENT.'<br>';
181 181
         echo '</fieldset><br>';
182 182
 
183 183
         echo '<table class="outer" style="width:100%;">';
184 184
         echo '<tr style="text-align:center;">';
185
-        echo '<th>' . _AM_EXTCAL_CATEGORY . '</th>';
186
-        echo '<th>' . _AM_EXTCAL_TITLE . '</th>';
187
-        echo '<th>' . _AM_EXTCAL_START_DATE . '</th>';
188
-        echo '<th>' . _AM_EXTCAL_ACTION . '</th>';
185
+        echo '<th>'._AM_EXTCAL_CATEGORY.'</th>';
186
+        echo '<th>'._AM_EXTCAL_TITLE.'</th>';
187
+        echo '<th>'._AM_EXTCAL_START_DATE.'</th>';
188
+        echo '<th>'._AM_EXTCAL_ACTION.'</th>';
189 189
         echo '</tr>';
190 190
 
191 191
         if (count($pendingEvent) > 0) {
192 192
             $i = 0;
193 193
             foreach ($pendingEvent as $event) {
194 194
                 $class = (++$i % 2 == 0) ? 'even' : 'odd';
195
-                echo '<tr style="text-align:center;" class="' . $class . '">';
196
-                echo '<td>' . $event['cat']['cat_name'] . '</td>';
197
-                echo '<td>' . $event['event_title'] . '</td>';
198
-                echo '<td>' . $event['formated_event_start'] . '</td>';
195
+                echo '<tr style="text-align:center;" class="'.$class.'">';
196
+                echo '<td>'.$event['cat']['cat_name'].'</td>';
197
+                echo '<td>'.$event['event_title'].'</td>';
198
+                echo '<td>'.$event['formated_event_start'].'</td>';
199 199
                 echo '<td style="width:10%; text-align:center;">';
200
-                echo '<a href="event.php?op=modify&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/edit.png></a>&nbsp;&nbsp;';
201
-                echo '<a href="event.php?op=delete&amp;event_id=' . $event['event_id'] . '"><img src=' . $pathIcon16 . '/delete.png></a>';
200
+                echo '<a href="event.php?op=modify&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/edit.png></a>&nbsp;&nbsp;';
201
+                echo '<a href="event.php?op=delete&amp;event_id='.$event['event_id'].'"><img src='.$pathIcon16.'/delete.png></a>';
202 202
                 echo '</td>';
203 203
                 echo '</tr>';
204 204
             }
205 205
         } else {
206
-            echo '<tr><td colspan="4">' . _AM_EXTCAL_NO_PENDING_EVENT . '</td></tr>';
206
+            echo '<tr><td colspan="4">'._AM_EXTCAL_NO_PENDING_EVENT.'</td></tr>';
207 207
         }
208 208
 
209 209
         echo '</table></fieldset><br>';
210 210
 
211
-        require_once __DIR__ . '/admin_footer.php';
211
+        require_once __DIR__.'/admin_footer.php';
212 212
 
213 213
         break;
214 214
 }
Please login to merge, or discard this patch.
admin/permissions.php 2 patches
Indentation   +58 added lines, -58 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@  discard block
 block discarded – undo
93 93
          * Public category permission mask
94 94
          */
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96
-             . _AM_EXTCAL_PUBLIC_PERM_MASK
97
-             . '</a></legend><div id="default">';
96
+                . _AM_EXTCAL_PUBLIC_PERM_MASK
97
+                . '</a></legend><div id="default">';
98 98
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
@@ -144,20 +144,20 @@  discard block
 block discarded – undo
144 144
         }
145 145
 
146 146
         echo '<fieldset id="'
147
-             . $permName
148
-             . 'Bookmark"><legend><a href="#'
149
-             . $permName
150
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
-             . $permName
152
-             . '\'); toggleIcon(\''
153
-             . $permName
154
-             . 'Icon\');"><img id="'
155
-             . $permName
156
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
-             . $titleOfForm
158
-             . '</a></legend><div id="'
159
-             . $permName
160
-             . '">';
147
+                . $permName
148
+                . 'Bookmark"><legend><a href="#'
149
+                . $permName
150
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
151
+                . $permName
152
+                . '\'); toggleIcon(\''
153
+                . $permName
154
+                . 'Icon\');"><img id="'
155
+                . $permName
156
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
157
+                . $titleOfForm
158
+                . '</a></legend><div id="'
159
+                . $permName
160
+                . '">';
161 161
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
@@ -182,20 +182,20 @@  discard block
 block discarded – undo
182 182
         }
183 183
 
184 184
         echo '<fieldset id="'
185
-             . $permName
186
-             . 'Bookmark"><legend><a href="#'
187
-             . $permName
188
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
-             . $permName
190
-             . '\'); toggleIcon(\''
191
-             . $permName
192
-             . 'Icon\');"><img id="'
193
-             . $permName
194
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
-             . $titleOfForm
196
-             . '</a></legend><div id="'
197
-             . $permName
198
-             . '">';
185
+                . $permName
186
+                . 'Bookmark"><legend><a href="#'
187
+                . $permName
188
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
189
+                . $permName
190
+                . '\'); toggleIcon(\''
191
+                . $permName
192
+                . 'Icon\');"><img id="'
193
+                . $permName
194
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
195
+                . $titleOfForm
196
+                . '</a></legend><div id="'
197
+                . $permName
198
+                . '">';
199 199
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
@@ -219,20 +219,20 @@  discard block
 block discarded – undo
219 219
         }
220 220
 
221 221
         echo '<fieldset id="'
222
-             . $permName
223
-             . 'Bookmark"><legend><a href="#'
224
-             . $permName
225
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
-             . $permName
227
-             . '\'); toggleIcon(\''
228
-             . $permName
229
-             . 'Icon\');"><img id="'
230
-             . $permName
231
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
-             . $titleOfForm
233
-             . '</a></legend><div id="'
234
-             . $permName
235
-             . '">';
222
+                . $permName
223
+                . 'Bookmark"><legend><a href="#'
224
+                . $permName
225
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
226
+                . $permName
227
+                . '\'); toggleIcon(\''
228
+                . $permName
229
+                . 'Icon\');"><img id="'
230
+                . $permName
231
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
232
+                . $titleOfForm
233
+                . '</a></legend><div id="'
234
+                . $permName
235
+                . '">';
236 236
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
@@ -256,20 +256,20 @@  discard block
 block discarded – undo
256 256
         }
257 257
 
258 258
         echo '<fieldset id="'
259
-             . $permName
260
-             . 'Bookmark"><legend><a href="#'
261
-             . $permName
262
-             . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
-             . $permName
264
-             . '\'); toggleIcon(\''
265
-             . $permName
266
-             . 'Icon\');"><img id="'
267
-             . $permName
268
-             . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
-             . $titleOfForm
270
-             . '</a></legend><div id="'
271
-             . $permName
272
-             . '">';
259
+                . $permName
260
+                . 'Bookmark"><legend><a href="#'
261
+                . $permName
262
+                . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''
263
+                . $permName
264
+                . '\'); toggleIcon(\''
265
+                . $permName
266
+                . 'Icon\');"><img id="'
267
+                . $permName
268
+                . 'Icon" src="../assets/images/icons/minus.gif">&nbsp;'
269
+                . $titleOfForm
270
+                . '</a></legend><div id="'
271
+                . $permName
272
+                . '">';
273 273
         echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
21
-require_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php';
22
-require_once __DIR__ . '/admin_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21
+require_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php';
22
+require_once __DIR__.'/admin_header.php';
23 23
 
24 24
 $step = 'default';
25 25
 if (isset($_POST['step'])) {
@@ -95,35 +95,35 @@  discard block
 block discarded – undo
95 95
         echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif">&nbsp;'
96 96
              . _AM_EXTCAL_PUBLIC_PERM_MASK
97 97
              . '</a></legend><div id="default">';
98
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
98
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
99 99
         echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO;
100 100
         echo '</fieldset><br>';
101 101
         echo '<table class="outer" style="width:100%;">';
102 102
         echo '<form method="post" action="permissions.php">';
103 103
         echo '<tr>';
104
-        echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>';
104
+        echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>';
105 105
         echo '</tr>';
106 106
         echo '<tr>';
107
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>';
108
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>';
109
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>';
110
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>';
111
-        echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>';
107
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>';
108
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>';
109
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>';
110
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>';
111
+        echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>';
112 112
         echo '</tr>';
113 113
         $i = 0;
114 114
         foreach ($glist as $k => $v) {
115 115
             $style = (++$i % 2 == 0) ? 'odd' : 'even';
116 116
             echo '<tr>';
117
-            echo '<td class="' . $style . '">' . $v . '</td>';
118
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . '></td>';
119
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . '></td>';
120
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . '></td>';
121
-            echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . '></td>';
117
+            echo '<td class="'.$style.'">'.$v.'</td>';
118
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).'></td>';
119
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).'></td>';
120
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).'></td>';
121
+            echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).'></td>';
122 122
             echo '</tr>';
123 123
         }
124 124
         echo '<input type="hidden" name="type" value="public">';
125 125
         echo '<input type="hidden" name="step" value="enreg">';
126
-        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '"></td></tr></form>';
126
+        echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'"></td></tr></form>';
127 127
         echo '</table><br>';
128 128
 
129 129
         echo '</div></fieldset><br>';
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
              . '</a></legend><div id="'
159 159
              . $permName
160 160
              . '">';
161
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
161
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
162 162
         echo $permDesc;
163 163
         echo '</fieldset>';
164 164
 
165 165
         if ($catHandler->getCount()) {
166
-            echo $form->render() . '<br>';
166
+            echo $form->render().'<br>';
167 167
         } else {
168 168
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
169 169
         }
@@ -196,11 +196,11 @@  discard block
 block discarded – undo
196 196
              . '</a></legend><div id="'
197 197
              . $permName
198 198
              . '">';
199
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
199
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
200 200
         echo $permDesc;
201 201
         echo '</fieldset>';
202 202
         if ($catHandler->getCount()) {
203
-            echo $form->render() . '<br>';
203
+            echo $form->render().'<br>';
204 204
         } else {
205 205
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
206 206
         }
@@ -233,11 +233,11 @@  discard block
 block discarded – undo
233 233
              . '</a></legend><div id="'
234 234
              . $permName
235 235
              . '">';
236
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
236
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
237 237
         echo $permDesc;
238 238
         echo '</fieldset>';
239 239
         if ($catHandler->getCount()) {
240
-            echo $form->render() . '<br>';
240
+            echo $form->render().'<br>';
241 241
         } else {
242 242
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
243 243
         }
@@ -270,11 +270,11 @@  discard block
 block discarded – undo
270 270
              . '</a></legend><div id="'
271 271
              . $permName
272 272
              . '">';
273
-        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>';
273
+        echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>';
274 274
         echo $permDesc;
275 275
         echo '</fieldset>';
276 276
         if ($catHandler->getCount()) {
277
-            echo $form->render() . '<br>';
277
+            echo $form->render().'<br>';
278 278
         } else {
279 279
             redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false);
280 280
         }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
         echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');';
292 292
         echo '</script>';
293 293
 
294
-        require_once __DIR__ . '/admin_footer.php';
294
+        require_once __DIR__.'/admin_footer.php';
295 295
 
296 296
         break;
297 297
 
Please login to merge, or discard this patch.