Completed
Push — master ( 284145...c35c76 )
by Michael
06:33
created
comment_post.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
24 24
 //  along with this program; if not, write to the Free Software              //
25 25
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26 26
 //  ------------------------------------------------------------------------ //
27
-include __DIR__ . '/../../mainfile.php';
28
-include XOOPS_ROOT_PATH . '/include/comment_post.php';
27
+include __DIR__.'/../../mainfile.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_post.php';
Please login to merge, or discard this patch.
notification_update.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include XOOPS_ROOT_PATH . '/include/notification_update.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include XOOPS_ROOT_PATH.'/include/notification_update.php';
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
26 26
 //  ------------------------------------------------------------------------ //
27 27
 
28
-include __DIR__ . '/../../mainfile.php';
29
-$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0;
28
+include __DIR__.'/../../mainfile.php';
29
+$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0;
30 30
 if ($com_itemid > 0) {
31 31
     // Get link title
32
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . '';
32
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.'';
33 33
     $result         = $xoopsDB->query($sql);
34 34
     $row            = $xoopsDB->fetchArray($result);
35 35
     $com_replytitle = $row['event_title'];
36 36
     $com_replytext  = $row['event_desc'];
37
-    include XOOPS_ROOT_PATH . '/include/comment_new.php';
37
+    include XOOPS_ROOT_PATH.'/include/comment_new.php';
38 38
 }
Please login to merge, or discard this patch.
post.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_post.tpl';
5 5
 
6
-include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
7
-include __DIR__ . '/class/form/extcalform.php';
8
-include __DIR__ . '/class/perm.php';
6
+include XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
7
+include __DIR__.'/class/form/extcalform.php';
8
+include __DIR__.'/class/perm.php';
9 9
 
10
-include_once __DIR__ . '/class/utilities.php';
11
-include_once __DIR__ . '/include/constantes.php';
10
+include_once __DIR__.'/class/utilities.php';
11
+include_once __DIR__.'/include/constantes.php';
12 12
 
13 13
 $permHandler = ExtcalPerm::getHandler();
14 14
 $xoopsUser   = $xoopsUser ?: null;
15 15
 
16
-if (!$permHandler->isAllowed($xoopsUser, 'extcal_cat_submit', (int)$_POST['cat_id'])) {
16
+if (!$permHandler->isAllowed($xoopsUser, 'extcal_cat_submit', (int) $_POST['cat_id'])) {
17 17
     redirect_header('index.php', 3);
18 18
     exit;
19 19
 }
@@ -22,16 +22,16 @@  discard block
 block discarded – undo
22 22
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
23 23
 
24 24
 if (isset($_POST['form_preview'])) {
25
-    include XOOPS_ROOT_PATH . '/header.php';
25
+    include XOOPS_ROOT_PATH.'/header.php';
26 26
 
27 27
     // Title of the page
28 28
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
29 29
 
30 30
     $data = array(
31 31
         'event_title'        => $_POST['event_title'],
32
-        'cat_id'             => (int)$_POST['cat_id'],
32
+        'cat_id'             => (int) $_POST['cat_id'],
33 33
         'event_desc'         => $_POST['event_desc'],
34
-        'event_nbmember'     => (int)$_POST['event_nbmember'],
34
+        'event_nbmember'     => (int) $_POST['event_nbmember'],
35 35
         'event_contact'      => $_POST['event_contact'],
36 36
         'event_url'          => $_POST['event_url'],
37 37
         'event_email'        => $_POST['event_email'],
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
         'event_start'        => $_POST['event_start'],
41 41
         'have_end'           => $_POST['have_end'],
42 42
         'event_end'          => $_POST['event_end'],
43
-        'dohtml'             => (int)$xoopsModuleConfig['allow_html'],
43
+        'dohtml'             => (int) $xoopsModuleConfig['allow_html'],
44 44
         'event_price'        => $_POST['event_price'],
45 45
         'event_organisateur' => $_POST['event_organisateur'],
46 46
         'event_icone'        => $_POST['event_icone'],
47 47
     );
48 48
 
49 49
     if (isset($_POST['event_id'])) {
50
-        $data['event_id'] = (int)$_POST['event_id'];
50
+        $data['event_id'] = (int) $_POST['event_id'];
51 51
     }
52 52
 
53 53
     // Creating tempory event object to apply Object data filtering
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     //     // Assigning language data to the template
67 67
     //     $xoopsTpl->assign('lang', $lang);
68 68
 
69
-    $event['cat_id']   = (int)$_POST['cat_id'];
69
+    $event['cat_id']   = (int) $_POST['cat_id'];
70 70
     $event['have_end'] = $_POST['have_end'];
71 71
 
72 72
     // Display the submit form
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     $xoopsTpl->assign('preview', true);
76 76
     $xoopsTpl->assign('formBody', $formBody);
77 77
 
78
-    include XOOPS_ROOT_PATH . '/footer.php';
78
+    include XOOPS_ROOT_PATH.'/footer.php';
79 79
 } elseif (isset($_POST['form_submit'])) {
80 80
     if (!isset($_POST['rrule_weekly_interval'])) {
81 81
         $_POST['rrule_weekly_interval'] = 0;
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
     ExtcalUtilities::extcal_loadImg($_REQUEST, $event_picture1, $event_picture2);
100 100
     ///////////////////////////////////////////////////////////////////////////////
101 101
 
102
-    include_once __DIR__ . '/class/perm.php';
102
+    include_once __DIR__.'/class/perm.php';
103 103
 
104 104
     $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
105 105
     $permHandler = ExtcalPerm::getHandler();
106
-    $approve     = $permHandler->isAllowed($xoopsUser, 'extcal_cat_autoapprove', (int)$_POST['cat_id']);
106
+    $approve     = $permHandler->isAllowed($xoopsUser, 'extcal_cat_autoapprove', (int) $_POST['cat_id']);
107 107
 
108 108
     $data = array(
109 109
         'event_title'         => $_POST['event_title'],
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
     );
130 130
 
131 131
     if (isset($_POST['event_id'])) {
132
-        $eventHandler->modifyEvent((int)$_POST['event_id'], $data);
133
-        $fileHandler->updateEventFile((int)$_POST['event_id']);
134
-        $fileHandler->createFile((int)$_POST['event_id']);
132
+        $eventHandler->modifyEvent((int) $_POST['event_id'], $data);
133
+        $fileHandler->updateEventFile((int) $_POST['event_id']);
134
+        $fileHandler->createFile((int) $_POST['event_id']);
135 135
 
136
-        redirect_header('event.php?event=' . $_POST['event_id'], 3, _MD_EXTCAL_EVENT_UPDATED, false);
136
+        redirect_header('event.php?event='.$_POST['event_id'], 3, _MD_EXTCAL_EVENT_UPDATED, false);
137 137
     } else {
138 138
         $data['event_submitter']  = $xoopsUser ? $xoopsUser->getVar('uid') : 0;
139 139
         $data['event_submitdate'] = time();
@@ -150,8 +150,8 @@  discard block
 block discarded – undo
150 150
         $notificationHandler->triggerEvent('global', 0, $notifyEvent, array('EVENT_TITLE' => $_POST['event_title']));
151 151
         if ($approve == 1) {
152 152
             $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
153
-            $cat        = $catHandler->getCat((int)$_POST['cat_id'], $xoopsUser, 'all');
154
-            $notificationHandler->triggerEvent('cat', (int)$_POST['cat_id'], 'new_event_cat', array(
153
+            $cat        = $catHandler->getCat((int) $_POST['cat_id'], $xoopsUser, 'all');
154
+            $notificationHandler->triggerEvent('cat', (int) $_POST['cat_id'], 'new_event_cat', array(
155 155
                 'EVENT_TITLE' => $_POST['event_title'],
156 156
                 'CAT_NAME'    => $cat->getVar('cat_name'),
157 157
             ));
Please login to merge, or discard this patch.
view_calendar-week.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
13
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
13
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
14 14
 /* ========================================================================== */
15 15
 
16 16
 // Validate the date (day, month and year)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     'cat'          => $cat,
48 48
     'externalKeys' => 'cat_id',
49 49
 );
50
-$events   = $eventHandler->getEventsOnPeriode($criteres);
50
+$events = $eventHandler->getEventsOnPeriode($criteres);
51 51
 /**********************************************************************/
52 52
 //$eventsArray = $events;
53 53
 
@@ -137,21 +137,21 @@  discard block
 block discarded – undo
137 137
 // Making navig data
138 138
 $navig = array(
139 139
     'prev' => array(
140
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&amp;month=' . $pWeekCalObj->thisMonth() . '&amp;day=' . $pWeekCalObj->thisDay(),
140
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&amp;month='.$pWeekCalObj->thisMonth().'&amp;day='.$pWeekCalObj->thisDay(),
141 141
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
142 142
     ),
143 143
     'this' => array(
144
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&amp;month=' . $weekCalObj->thisMonth() . '&amp;day=' . $weekCalObj->thisDay(),
144
+        'uri'  => 'year='.$weekCalObj->thisYear().'&amp;month='.$weekCalObj->thisMonth().'&amp;day='.$weekCalObj->thisDay(),
145 145
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()),
146 146
     ),
147 147
     'next' => array(
148
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&amp;month=' . $nWeekCalObj->thisMonth() . '&amp;day=' . $nWeekCalObj->thisDay(),
148
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&amp;month='.$nWeekCalObj->thisMonth().'&amp;day='.$nWeekCalObj->thisDay(),
149 149
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
150 150
     ),
151 151
 );
152 152
 
153 153
 // Title of the page
154
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
154
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
155 155
 
156 156
 // Assigning navig data to the template
157 157
 $xoopsTpl->assign('navig', $navig);
@@ -191,4 +191,4 @@  discard block
 block discarded – undo
191 191
 $xoopsTpl->assign('lang', $lang);
192 192
 $xoopsTpl->assign('view', 'calweek');
193 193
 
194
-include XOOPS_ROOT_PATH . '/footer.php';
194
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
event_notmember.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,9 +34,9 @@
 block discarded – undo
34 34
         if ($_POST['mode'] === 'add') {
35 35
             $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
36 36
             $eventNotMemberHandler->createEventNotMember(array(
37
-                                                             'event_id' => (int)$_POST['event'],
38
-                                                             'uid'      => $xoopsUser->getVar('uid'),
39
-                                                         ));
37
+                                                                'event_id' => (int)$_POST['event'],
38
+                                                                'uid'      => $xoopsUser->getVar('uid'),
39
+                                                            ));
40 40
             sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3);
41 41
             $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_ADDED_TO_EVENT;
42 42
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5
-include_once __DIR__ . '/include/constantes.php';
6
-include_once __DIR__ . '/include/mail_fnc.php';
7
-include_once __DIR__ . '/class/utilities.php';
5
+include_once __DIR__.'/include/constantes.php';
6
+include_once __DIR__.'/include/mail_fnc.php';
7
+include_once __DIR__.'/class/utilities.php';
8 8
 
9 9
 /*
10 10
 ext_echoArray($_POST);
@@ -21,20 +21,20 @@  discard block
 block discarded – undo
21 21
 $member_uid = $xoopsUser->getVar('uid');
22 22
 
23 23
 if (!$GLOBALS['xoopsSecurity']->check()) {
24
-    redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
24
+    redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
25 25
 }
26 26
 
27 27
 if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) {
28 28
     // If param are right
29
-    if ((int)$_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
29
+    if ((int) $_POST['event'] > 0 && ($_POST['mode'] === 'add' || $_POST['mode'] === 'remove')) {
30 30
         $eventHandler          = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
31 31
         $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE);
32 32
 
33 33
         // If the user have to be added
34 34
         if ($_POST['mode'] === 'add') {
35
-            $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser);
35
+            $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser);
36 36
             $eventNotMemberHandler->createEventNotMember(array(
37
-                                                             'event_id' => (int)$_POST['event'],
37
+                                                             'event_id' => (int) $_POST['event'],
38 38
                                                              'uid'      => $xoopsUser->getVar('uid'),
39 39
                                                          ));
40 40
             sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
             // If the user have to be remove
44 44
         } else {
45 45
             if ($_POST['mode'] === 'remove') {
46
-                $eventNotMemberHandler->deleteEventNotMember(array((int)$_POST['event'], $xoopsUser->getVar('uid')));
46
+                $eventNotMemberHandler->deleteEventNotMember(array((int) $_POST['event'], $xoopsUser->getVar('uid')));
47 47
                 sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4);
48 48
                 $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT;
49 49
             }
50 50
         }
51
-        redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false);
51
+        redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false);
52 52
     } else {
53 53
         redirect_header('index.php', 3, _NOPERM, false);
54 54
     }
Please login to merge, or discard this patch.
view_calendar-month.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,15 +1,15 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
11
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
12
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
10
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
11
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
12
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
13 13
 /* ========================================================================== */
14 14
 
15 15
 $form = new XoopsSimpleForm('', 'navigSelectBox', $params['file'], 'get');
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     'cat'          => $cat,
32 32
     'externalKeys' => 'cat_id',
33 33
 );
34
-$events   = $eventHandler->getEventsOnPeriode($criteres);
34
+$events = $eventHandler->getEventsOnPeriode($criteres);
35 35
 /**********************************************************************/
36 36
 
37 37
 // Calculating timestamp for the begin and the end of the month
@@ -128,21 +128,21 @@  discard block
 block discarded – undo
128 128
 // Making navig data
129 129
 $navig = array(
130 130
     'prev' => array(
131
-        'uri'  => 'year=' . $pMonthCalObj->thisYear() . '&amp;month=' . $pMonthCalObj->thisMonth(),
131
+        'uri'  => 'year='.$pMonthCalObj->thisYear().'&amp;month='.$pMonthCalObj->thisMonth(),
132 132
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()),
133 133
     ),
134 134
     'this' => array(
135
-        'uri'  => 'year=' . $monthCalObj->thisYear() . '&amp;month=' . $monthCalObj->thisMonth(),
135
+        'uri'  => 'year='.$monthCalObj->thisYear().'&amp;month='.$monthCalObj->thisMonth(),
136 136
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()),
137 137
     ),
138 138
     'next' => array(
139
-        'uri'  => 'year=' . $nMonthCalObj->thisYear() . '&amp;month=' . $nMonthCalObj->thisMonth(),
139
+        'uri'  => 'year='.$nMonthCalObj->thisYear().'&amp;month='.$nMonthCalObj->thisMonth(),
140 140
         'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()),
141 141
     ),
142 142
 );
143 143
 
144 144
 // Title of the page
145
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
145
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
146 146
 
147 147
 // Assigning navig data to the template
148 148
 $xoopsTpl->assign('navig', $navig);
@@ -182,4 +182,4 @@  discard block
 block discarded – undo
182 182
 $xoopsTpl->assign('lang', $lang);
183 183
 $xoopsTpl->assign('view', 'calmonth');
184 184
 
185
-include XOOPS_ROOT_PATH . '/footer.php';
185
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
print.php 1 patch
Spacing   +80 added lines, -80 removed lines patch added patch discarded remove patch
@@ -1,14 +1,14 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 
6
-include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php';
6
+include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php';
7 7
 
8 8
 if (!isset($_GET['event'])) {
9 9
     $eventId = 0;
10 10
 } else {
11
-    $eventId = (int)$_GET['event'];
11
+    $eventId = (int) $_GET['event'];
12 12
 }
13 13
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
14 14
 $event        = $eventHandler->objectToArray($eventHandler->getEvent($eventId), array('cat_id'));
@@ -23,136 +23,136 @@  discard block
 block discarded – undo
23 23
 // Adding formated date for start and end event
24 24
 $eventHandler->formatEventDate($event, $xoopsModuleConfig['event_date_event']);
25 25
 
26
-echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
27
-echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n";
28
-echo '<head>' . "\n";
29
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />' . "\n";
30
-echo '<title>' . $event['cat']['cat_name'] . ' - ' . $event['event_title'] . '</title>' . "\n";
31
-echo '</head>' . "\n";
32
-echo '<body onload="window.print()">' . "\n";
33
-echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">' . "\n";
34
-echo '<tr>' . "\n";
35
-echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">' . "\n";
36
-echo $event['event_title'] . "\n";
37
-echo '</td>' . "\n";
38
-echo '</tr>' . "\n";
39
-echo '<tr>' . "\n";
40
-echo '<td style="width:50%; border:1px solid black;">' . "\n";
41
-echo '<b>' . $event['cat']['cat_name'] . '</b><br>' . "\n";
42
-echo '<span style="font-weight:normal;">' . $event['cat']['cat_desc'] . '</span>' . "\n";
43
-echo '</td>' . "\n";
44
-echo '<td style="border:1px solid black;">' . "\n";
26
+echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
27
+echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
28
+echo '<head>'."\n";
29
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" />'."\n";
30
+echo '<title>'.$event['cat']['cat_name'].' - '.$event['event_title'].'</title>'."\n";
31
+echo '</head>'."\n";
32
+echo '<body onload="window.print()">'."\n";
33
+echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">'."\n";
34
+echo '<tr>'."\n";
35
+echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">'."\n";
36
+echo $event['event_title']."\n";
37
+echo '</td>'."\n";
38
+echo '</tr>'."\n";
39
+echo '<tr>'."\n";
40
+echo '<td style="width:50%; border:1px solid black;">'."\n";
41
+echo '<b>'.$event['cat']['cat_name'].'</b><br>'."\n";
42
+echo '<span style="font-weight:normal;">'.$event['cat']['cat_desc'].'</span>'."\n";
43
+echo '</td>'."\n";
44
+echo '<td style="border:1px solid black;">'."\n";
45 45
 if (!$event['event_isrecur']) {
46
-    echo '<b>' . _MD_EXTCAL_START . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_start'] . '</span><br>' . "\n";
47
-    echo '<b>' . _MD_EXTCAL_END . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_end'] . '</span>' . "\n";
46
+    echo '<b>'._MD_EXTCAL_START.' :</b> <span style="font-weight:normal;">'.$event['formated_event_start'].'</span><br>'."\n";
47
+    echo '<b>'._MD_EXTCAL_END.' :</b> <span style="font-weight:normal;">'.$event['formated_event_end'].'</span>'."\n";
48 48
 } else {
49
-    echo '<b>' . _MD_EXTCAL_RECCUR_RULE . ' :</b> <span style="font-weight:normal;">' . $event['formated_reccur_rule'] . '</span>' . "\n";
49
+    echo '<b>'._MD_EXTCAL_RECCUR_RULE.' :</b> <span style="font-weight:normal;">'.$event['formated_reccur_rule'].'</span>'."\n";
50 50
 }
51
-echo '</td>' . "\n";
52
-echo '</tr>' . "\n";
51
+echo '</td>'."\n";
52
+echo '</tr>'."\n";
53 53
 
54
-echo '<tr>' . "\n";
54
+echo '<tr>'."\n";
55 55
 if ($event['event_desc'] != '') {
56
-    echo '<td style="border:1px solid black;">' . $event['event_desc'] . '</td>' . "\n";
56
+    echo '<td style="border:1px solid black;">'.$event['event_desc'].'</td>'."\n";
57 57
 }
58 58
 if ($event['event_price'] != '') {
59
-    echo '<td style="border:1px solid black;">' . _MD_EXTCAL_ETABLISSEMENT_PRICE . $event['event_price'] . ' ' . _MD_EXTCAL_DEVISE2 . '</td>' . "\n";
59
+    echo '<td style="border:1px solid black;">'._MD_EXTCAL_ETABLISSEMENT_PRICE.$event['event_price'].' '._MD_EXTCAL_DEVISE2.'</td>'."\n";
60 60
 }
61
-echo '</tr>' . "\n";
61
+echo '</tr>'."\n";
62 62
 
63 63
 //show contact info
64 64
 if ($event['event_contact'] != '') {
65
-    echo '<tr>' . "\n";
66
-    echo '<td style="border:1px solid black;">' . "\n";
67
-    echo '<b>' . _MD_EXTCAL_CONTACT_INFO . '</b><br>' . "\n";
68
-    echo '<span style="font-weight:normal;">' . $event['event_organisateur'] . '<br>' . "\n";
69
-    echo '<span style="font-weight:normal;">' . $event['event_contact'] . '<br>' . "\n";
70
-    echo $event['event_address'] . '</span>' . "\n";
71
-    echo '</td>' . "\n";
72
-    echo '<td style="border:1px solid black;">' . "\n";
73
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $event['event_email'] . '">' . $event['event_email'] . '</a><br>' . "\n";
74
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $event['event_url'] . '">' . $event['event_url'] . '</a>' . "\n";
75
-    echo '</td>' . "\n";
76
-    echo '</tr>' . "\n";
65
+    echo '<tr>'."\n";
66
+    echo '<td style="border:1px solid black;">'."\n";
67
+    echo '<b>'._MD_EXTCAL_CONTACT_INFO.'</b><br>'."\n";
68
+    echo '<span style="font-weight:normal;">'.$event['event_organisateur'].'<br>'."\n";
69
+    echo '<span style="font-weight:normal;">'.$event['event_contact'].'<br>'."\n";
70
+    echo $event['event_address'].'</span>'."\n";
71
+    echo '</td>'."\n";
72
+    echo '<td style="border:1px solid black;">'."\n";
73
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$event['event_email'].'">'.$event['event_email'].'</a><br>'."\n";
74
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$event['event_url'].'">'.$event['event_url'].'</a>'."\n";
75
+    echo '</td>'."\n";
76
+    echo '</tr>'."\n";
77 77
 }
78 78
 
79 79
 //show location
80 80
 if ($event['event_etablissement'] = 0) {
81
-    echo '<tr>' . "\n";
81
+    echo '<tr>'."\n";
82 82
 
83 83
     //    echo($location['nom']);
84 84
     //    var_dump($location);
85 85
     //    var_dump($event);
86 86
 
87
-    echo '<td style="border:1px solid black;">' . "\n";
88
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT . '</b>' . "\n";
87
+    echo '<td style="border:1px solid black;">'."\n";
88
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT.'</b>'."\n";
89 89
     if ($location['categorie'] != '') {
90
-        echo '<span style="font-weight:normal;"> (' . $location['categorie'] . ') <br>' . "\n";
90
+        echo '<span style="font-weight:normal;"> ('.$location['categorie'].') <br>'."\n";
91 91
     }
92 92
     if ($location['logo'] != '') {
93
-        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/etablissement/' . $location['logo'] . ' height="75px" />' . '' . "\n";
93
+        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/etablissement/'.$location['logo'].' height="75px" />'.''."\n";
94 94
     }
95 95
 
96
-    echo '<span style="font-weight:normal;">' . $location['nom'] . '<br>' . "\n";
97
-    echo $location['description'] . '<br>' . "\n";
98
-    echo $location['adresse'] . '</span> <br>' . "\n";
96
+    echo '<span style="font-weight:normal;">'.$location['nom'].'<br>'."\n";
97
+    echo $location['description'].'<br>'."\n";
98
+    echo $location['adresse'].'</span> <br>'."\n";
99 99
     if ($location['adresse2'] != '') {
100
-        echo $location['adresse2'] . '</span> <br>' . "\n";
100
+        echo $location['adresse2'].'</span> <br>'."\n";
101 101
     }
102
-    echo $location['ville'] . "\n";
103
-    echo $location['cp'] . '<br>' . "\n";
102
+    echo $location['ville']."\n";
103
+    echo $location['cp'].'<br>'."\n";
104 104
 
105 105
     if ($location['horaires'] != '') {
106
-        echo $location['horaires'] . '</span> <br>' . "\n";
106
+        echo $location['horaires'].'</span> <br>'."\n";
107 107
     }
108 108
 
109 109
     if ($location['divers'] != '') {
110
-        echo $location['divers'] . '</span> <br>' . "\n";
110
+        echo $location['divers'].'</span> <br>'."\n";
111 111
     }
112 112
 
113 113
     if ($location['tarifs'] != '') {
114
-        echo $location['tarifs'] . '</span> ' . _MD_EXTCAL_DEVISE2 . "\n";
114
+        echo $location['tarifs'].'</span> '._MD_EXTCAL_DEVISE2."\n";
115 115
     }
116 116
 
117
-    echo '</td>' . "\n";
118
-    echo '<td style="border:1px solid black;">' . "\n";
117
+    echo '</td>'."\n";
118
+    echo '<td style="border:1px solid black;">'."\n";
119 119
 
120 120
     if ($location['tel_fixe'] != '') {
121
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_FIXE . ' :</b>' . $location['tel_fixe'] . '<br>' . "\n";
121
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_FIXE.' :</b>'.$location['tel_fixe'].'<br>'."\n";
122 122
     }
123 123
     if ($location['tel_portable'] != '') {
124
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE . ' :</b>' . $location['tel_portable'] . '<br>' . "\n";
124
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE.' :</b>'.$location['tel_portable'].'<br>'."\n";
125 125
     }
126 126
 
127
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $location['mail'] . '">' . $location['mail'] . '</a><br>' . "\n";
128
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $location['site'] . '">' . $location['site'] . '</a>' . '<br>' . "\n";
129
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_MAP . ' :</b> <a href="' . $location['map'] . '">' . _MD_EXTCAL_ETABLISSEMENT_MAP2 . '</a>' . "\n";
127
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$location['mail'].'">'.$location['mail'].'</a><br>'."\n";
128
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$location['site'].'">'.$location['site'].'</a>'.'<br>'."\n";
129
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT_MAP.' :</b> <a href="'.$location['map'].'">'._MD_EXTCAL_ETABLISSEMENT_MAP2.'</a>'."\n";
130 130
 
131
-    echo '</td>' . "\n";
132
-    echo '</tr>' . "\n";
131
+    echo '</td>'."\n";
132
+    echo '</tr>'."\n";
133 133
 }
134 134
 //show images
135 135
 
136 136
 if (($event['event_picture1'] != '') || ($event['event_picture2'] != '')) {
137
-    echo '<tr>' . "\n";
137
+    echo '<tr>'."\n";
138 138
     if ($event['event_picture1'] != '') {
139
-        echo '<td style="border:1px solid black;">' . "\n";
140
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture1'] . ' height="100px" />' . '' . "\n";
141
-        echo '</td>' . "\n";
139
+        echo '<td style="border:1px solid black;">'."\n";
140
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture1'].' height="100px" />'.''."\n";
141
+        echo '</td>'."\n";
142 142
     }
143 143
     if ($event['event_picture2'] != '') {
144
-        echo '<td style="border:1px solid black;">' . "\n";
145
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture2'] . ' height="100px" />' . '' . "\n";
146
-        echo '</td>' . "\n";
144
+        echo '<td style="border:1px solid black;">'."\n";
145
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture2'].' height="100px" />'.''."\n";
146
+        echo '</td>'."\n";
147 147
     }
148
-    echo '</tr>' . "\n";
148
+    echo '</tr>'."\n";
149 149
 }
150 150
 //--------------------
151 151
 
152
-echo '</table><br>' . "\n";
152
+echo '</table><br>'."\n";
153 153
 echo '<div style="text-align:center; width:640px;">';
154
-echo $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan'] . '<br>';
155
-echo '<a href="' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '">' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '</a>';
154
+echo $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'].'<br>';
155
+echo '<a href="'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'">'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'</a>';
156 156
 echo '</div>';
157
-echo '</body>' . "\n";
158
-echo '</html>' . "\n";
157
+echo '</body>'."\n";
158
+echo '</html>'."\n";
Please login to merge, or discard this patch.
view_new-event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $params                                  = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT);
6 6
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
7
-include_once __DIR__ . '/header.php';
7
+include_once __DIR__.'/header.php';
8 8
 
9 9
 /* ========================================================================== */
10 10
 //ext_echoArray($_GET);
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 //exit;
18 18
 if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) {
19
-    include XOOPS_ROOT_PATH . '/header.php';
19
+    include XOOPS_ROOT_PATH.'/header.php';
20 20
 
21 21
     // Title of the page
22 22
     $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     $xoopsTpl->assign('lang', $lang);
59 59
     $xoopsTpl->assign('view', 'newevent');
60 60
 
61
-    include XOOPS_ROOT_PATH . '/footer.php';
61
+    include XOOPS_ROOT_PATH.'/footer.php';
62 62
 } else {
63 63
     redirect_header('index.php', 3);
64 64
 }
Please login to merge, or discard this patch.