Completed
Push — master ( a21b67...ec1681 )
by Michael
02:43
created
header.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,24 +17,24 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include XOOPS_ROOT_PATH . '/header.php';
20
+include XOOPS_ROOT_PATH.'/header.php';
21 21
 
22
-require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
22
+require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
23 23
 
24
-require_once __DIR__ . '/include/agenda_fnc.php';
25
-require_once __DIR__ . '/class/utility.php';
24
+require_once __DIR__.'/include/agenda_fnc.php';
25
+require_once __DIR__.'/class/utility.php';
26 26
 
27
-require_once __DIR__ . '/class/perm.php';
28
-require_once __DIR__ . '/class/form/extcalform.php';
27
+require_once __DIR__.'/class/perm.php';
28
+require_once __DIR__.'/class/form/extcalform.php';
29 29
 
30 30
 xoops_loadLanguage('modinfo', _EXTCAL_MODULE);
31 31
 
32 32
 //------------------------------------------------------
33
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php';
34
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php';
35
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php';
36
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php';
37
-require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php';
33
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php';
34
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php';
35
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php';
36
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php';
37
+require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php';
38 38
 
39 39
 //------------------------------------------------------
40 40
 // Getting eXtCal object's handler
Please login to merge, or discard this patch.
view_year.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+include __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $params                                  = array('view' => _EXTCAL_NAV_YEAR, 'file' => _EXTCAL_FILE_YEAR);
23 23
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
24
-require_once __DIR__ . '/header.php';
24
+require_once __DIR__.'/header.php';
25 25
 
26 26
 /* ========================================================================== */
27
-$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
28
-$cat  = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
27
+$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
28
+$cat  = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
29 29
 
30 30
 // Getting eXtCal object's handler
31 31
 $catHandler   = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     'cat'          => $cat,
55 55
     'externalKeys' => 'cat_id',
56 56
 );
57
-$events   = $eventHandler->getEventsOnPeriode($criteres);
57
+$events = $eventHandler->getEventsOnPeriode($criteres);
58 58
 /**********************************************************************/
59 59
 $eventsArray = $events;
60 60
 // Formating date
@@ -98,21 +98,21 @@  discard block
 block discarded – undo
98 98
 // Making navig data
99 99
 $navig = array(
100 100
     'prev' => array(
101
-        'uri'  => 'year=' . $prevYear,
101
+        'uri'  => 'year='.$prevYear,
102 102
         'name' => $prevYear,
103 103
     ),
104 104
     'this' => array(
105
-        'uri'  => 'year=' . $year,
105
+        'uri'  => 'year='.$year,
106 106
         'name' => $year,
107 107
     ),
108 108
     'next' => array(
109
-        'uri'  => 'year=' . $nexYear,
109
+        'uri'  => 'year='.$nexYear,
110 110
         'name' => $nexYear,
111 111
     ),
112 112
 );
113 113
 
114 114
 // Title of the page
115
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
115
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
116 116
 
117 117
 // Assigning navig data to the template
118 118
 $xoopsTpl->assign('navig', $navig);
@@ -166,4 +166,4 @@  discard block
 block discarded – undo
166 166
 $xoopsTpl->assign('lang', $lang);
167 167
 $xoopsTpl->assign('view', 'year');
168 168
 
169
-include XOOPS_ROOT_PATH . '/footer.php';
169
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
comment_reply.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,5 +17,5 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-include XOOPS_ROOT_PATH . '/include/comment_reply.php';
20
+include __DIR__.'/../../mainfile.php';
21
+include XOOPS_ROOT_PATH.'/include/comment_reply.php';
Please login to merge, or discard this patch.
event.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -17,28 +17,28 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+include __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $params                                  = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT);
23 23
 $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl';
24
-require_once __DIR__ . '/header.php';
24
+require_once __DIR__.'/header.php';
25 25
 
26 26
 //exit;
27 27
 
28
-include XOOPS_ROOT_PATH . '/include/comment_view.php';
28
+include XOOPS_ROOT_PATH.'/include/comment_view.php';
29 29
 
30 30
 if (!isset($_GET['event'])) {
31 31
     $eventId = 0;
32 32
 } else {
33
-    $eventId = (int)$_GET['event'];
33
+    $eventId = (int) $_GET['event'];
34 34
 }
35 35
 $eventHandler          = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
36 36
 $fileHandler           = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
37 37
 $eventMemberHandler    = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE);
38 38
 $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE);
39 39
 $permHandler           = ExtcalPerm::getHandler();
40
-require_once __DIR__ . '/class/etablissement.php';
41
-require_once __DIR__ . '/class/utility.php';
40
+require_once __DIR__.'/class/etablissement.php';
41
+require_once __DIR__.'/class/utility.php';
42 42
 $myts = MyTextSanitizer::getInstance(); // MyTextSanitizer object
43 43
 
44 44
 if (!function_exists('clear_unicodeslashes')) {
@@ -229,4 +229,4 @@  discard block
 block discarded – undo
229 229
 
230 230
 //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array());
231 231
 
232
-include XOOPS_ROOT_PATH . '/footer.php';
232
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
view_week.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+include __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 $params                                  = array('view' => _EXTCAL_NAV_WEEK, 'file' => _EXTCAL_FILE_WEEK);
23 23
 $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl";
24
-require_once __DIR__ . '/header.php';
24
+require_once __DIR__.'/header.php';
25 25
 
26 26
 /* ========================================================================== */
27
-$year  = isset($_GET['year']) ? (int)$_GET['year'] : date('Y');
28
-$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n');
29
-$day   = isset($_GET['day']) ? (int)$_GET['day'] : date('j');
30
-$cat   = isset($_GET['cat']) ? (int)$_GET['cat'] : 0;
27
+$year  = isset($_GET['year']) ? (int) $_GET['year'] : date('Y');
28
+$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n');
29
+$day   = isset($_GET['day']) ? (int) $_GET['day'] : date('j');
30
+$cat   = isset($_GET['cat']) ? (int) $_GET['cat'] : 0;
31 31
 /* ========================================================================== */
32 32
 
33 33
 // Validate the date (day, month and year)
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     'cat'          => $cat,
63 63
     'externalKeys' => 'cat_id',
64 64
 );
65
-$events   = $eventHandler->getEventsOnPeriode($criteres);
65
+$events = $eventHandler->getEventsOnPeriode($criteres);
66 66
 /**********************************************************************/
67 67
 $eventsArray = $events;
68 68
 // Formating date
@@ -103,21 +103,21 @@  discard block
 block discarded – undo
103 103
 $nWeekCalObj = $weekCalObj->nextWeek('object');
104 104
 $navig       = array(
105 105
     'prev' => array(
106
-        'uri'  => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(),
106
+        'uri'  => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(),
107 107
         'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_week'], $pWeekCalObj->getTimestamp()),
108 108
     ),
109 109
     'this' => array(
110
-        'uri'  => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(),
110
+        'uri'  => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(),
111 111
         'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_week'], $weekCalObj->getTimestamp()),
112 112
     ),
113 113
     'next' => array(
114
-        'uri'  => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(),
114
+        'uri'  => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(),
115 115
         'name' => $extcalTimeHandler->getFormatedDate($extcalConfig['nav_date_week'], $nWeekCalObj->getTimestamp()),
116 116
     ),
117 117
 );
118 118
 
119 119
 // Title of the page
120
-$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']);
120
+$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']);
121 121
 
122 122
 // Assigning navig data to the template
123 123
 $xoopsTpl->assign('navig', $navig);
@@ -177,4 +177,4 @@  discard block
 block discarded – undo
177 177
 $xoopsTpl->assign('lang', $lang);
178 178
 $xoopsTpl->assign('view', 'week');
179 179
 
180
-include XOOPS_ROOT_PATH . '/footer.php';
180
+include XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
download_attachement.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,19 +1,19 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5 5
 
6 6
 if (!isset($_GET['file'])) {
7 7
     $fileId = 0;
8 8
 } else {
9
-    $fileId = (int)$_GET['file'];
9
+    $fileId = (int) $_GET['file'];
10 10
 }
11 11
 /** @var ExtcalFileHandler $fileHandler */
12 12
 $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
13 13
 
14 14
 $file = $fileHandler->getFile($fileId);
15 15
 
16
-header('Content-Type: ' . $file->getVar('file_mimetype') . '');
17
-header('Content-Disposition: attachment; filename="' . $file->getVar('file_nicename') . '"');
16
+header('Content-Type: '.$file->getVar('file_mimetype').'');
17
+header('Content-Disposition: attachment; filename="'.$file->getVar('file_nicename').'"');
18 18
 
19
-readfile(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name'));
19
+readfile(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name'));
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
@@ -17,15 +17,15 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-require_once __DIR__ . '/include/constantes.php';
20
+include __DIR__.'/../../mainfile.php';
21
+require_once __DIR__.'/include/constantes.php';
22 22
 
23
-require_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/calendar.php';
23
+require_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/calendar.php';
24 24
 
25 25
 if (!isset($_GET['event'])) {
26 26
     $eventId = 0;
27 27
 } else {
28
-    $eventId = (int)$_GET['event'];
28
+    $eventId = (int) $_GET['event'];
29 29
 }
30 30
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
31 31
 $event        = $eventHandler->objectToArray($eventHandler->getEvent($eventId), array('cat_id'));
@@ -40,136 +40,136 @@  discard block
 block discarded – undo
40 40
 // Adding formated date for start and end event
41 41
 $eventHandler->formatEventDate($event, $xoopsModuleConfig['event_date_event']);
42 42
 
43
-echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\n";
44
-echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n";
45
-echo '<head>' . "\n";
46
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '">' . "\n";
47
-echo '<title>' . $event['cat']['cat_name'] . ' - ' . $event['event_title'] . '</title>' . "\n";
48
-echo '</head>' . "\n";
49
-echo '<body onload="window.print()">' . "\n";
50
-echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">' . "\n";
51
-echo '<tr>' . "\n";
52
-echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">' . "\n";
53
-echo $event['event_title'] . "\n";
54
-echo '</td>' . "\n";
55
-echo '</tr>' . "\n";
56
-echo '<tr>' . "\n";
57
-echo '<td style="width:50%; border:1px solid black;">' . "\n";
58
-echo '<b>' . $event['cat']['cat_name'] . '</b><br>' . "\n";
59
-echo '<span style="font-weight:normal;">' . $event['cat']['cat_desc'] . '</span>' . "\n";
60
-echo '</td>' . "\n";
61
-echo '<td style="border:1px solid black;">' . "\n";
43
+echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
44
+echo '<html xmlns="http://www.w3.org/1999/xhtml">'."\n";
45
+echo '<head>'."\n";
46
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'">'."\n";
47
+echo '<title>'.$event['cat']['cat_name'].' - '.$event['event_title'].'</title>'."\n";
48
+echo '</head>'."\n";
49
+echo '<body onload="window.print()">'."\n";
50
+echo '<table style="border:1px solid black; width:640px;" cellspacing="0" cellspadding="0">'."\n";
51
+echo '<tr>'."\n";
52
+echo '<td colspan="2" style="font-size:1.2em; border:1px solid black;">'."\n";
53
+echo $event['event_title']."\n";
54
+echo '</td>'."\n";
55
+echo '</tr>'."\n";
56
+echo '<tr>'."\n";
57
+echo '<td style="width:50%; border:1px solid black;">'."\n";
58
+echo '<b>'.$event['cat']['cat_name'].'</b><br>'."\n";
59
+echo '<span style="font-weight:normal;">'.$event['cat']['cat_desc'].'</span>'."\n";
60
+echo '</td>'."\n";
61
+echo '<td style="border:1px solid black;">'."\n";
62 62
 if (!$event['event_isrecur']) {
63
-    echo '<b>' . _MD_EXTCAL_START . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_start'] . '</span><br>' . "\n";
64
-    echo '<b>' . _MD_EXTCAL_END . ' :</b> <span style="font-weight:normal;">' . $event['formated_event_end'] . '</span>' . "\n";
63
+    echo '<b>'._MD_EXTCAL_START.' :</b> <span style="font-weight:normal;">'.$event['formated_event_start'].'</span><br>'."\n";
64
+    echo '<b>'._MD_EXTCAL_END.' :</b> <span style="font-weight:normal;">'.$event['formated_event_end'].'</span>'."\n";
65 65
 } else {
66
-    echo '<b>' . _MD_EXTCAL_RECCUR_RULE . ' :</b> <span style="font-weight:normal;">' . $event['formated_reccur_rule'] . '</span>' . "\n";
66
+    echo '<b>'._MD_EXTCAL_RECCUR_RULE.' :</b> <span style="font-weight:normal;">'.$event['formated_reccur_rule'].'</span>'."\n";
67 67
 }
68
-echo '</td>' . "\n";
69
-echo '</tr>' . "\n";
68
+echo '</td>'."\n";
69
+echo '</tr>'."\n";
70 70
 
71
-echo '<tr>' . "\n";
71
+echo '<tr>'."\n";
72 72
 if ($event['event_desc'] != '') {
73
-    echo '<td style="border:1px solid black;">' . $event['event_desc'] . '</td>' . "\n";
73
+    echo '<td style="border:1px solid black;">'.$event['event_desc'].'</td>'."\n";
74 74
 }
75 75
 if ($event['event_price'] != '') {
76
-    echo '<td style="border:1px solid black;">' . _MD_EXTCAL_ETABLISSEMENT_PRICE . $event['event_price'] . ' ' . _MD_EXTCAL_DEVISE2 . '</td>' . "\n";
76
+    echo '<td style="border:1px solid black;">'._MD_EXTCAL_ETABLISSEMENT_PRICE.$event['event_price'].' '._MD_EXTCAL_DEVISE2.'</td>'."\n";
77 77
 }
78
-echo '</tr>' . "\n";
78
+echo '</tr>'."\n";
79 79
 
80 80
 //show contact info
81 81
 if ($event['event_contact'] != '') {
82
-    echo '<tr>' . "\n";
83
-    echo '<td style="border:1px solid black;">' . "\n";
84
-    echo '<b>' . _MD_EXTCAL_CONTACT_INFO . '</b><br>' . "\n";
85
-    echo '<span style="font-weight:normal;">' . $event['event_organisateur'] . '<br>' . "\n";
86
-    echo '<span style="font-weight:normal;">' . $event['event_contact'] . '<br>' . "\n";
87
-    echo $event['event_address'] . '</span>' . "\n";
88
-    echo '</td>' . "\n";
89
-    echo '<td style="border:1px solid black;">' . "\n";
90
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $event['event_email'] . '">' . $event['event_email'] . '</a><br>' . "\n";
91
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $event['event_url'] . '">' . $event['event_url'] . '</a>' . "\n";
92
-    echo '</td>' . "\n";
93
-    echo '</tr>' . "\n";
82
+    echo '<tr>'."\n";
83
+    echo '<td style="border:1px solid black;">'."\n";
84
+    echo '<b>'._MD_EXTCAL_CONTACT_INFO.'</b><br>'."\n";
85
+    echo '<span style="font-weight:normal;">'.$event['event_organisateur'].'<br>'."\n";
86
+    echo '<span style="font-weight:normal;">'.$event['event_contact'].'<br>'."\n";
87
+    echo $event['event_address'].'</span>'."\n";
88
+    echo '</td>'."\n";
89
+    echo '<td style="border:1px solid black;">'."\n";
90
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$event['event_email'].'">'.$event['event_email'].'</a><br>'."\n";
91
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$event['event_url'].'">'.$event['event_url'].'</a>'."\n";
92
+    echo '</td>'."\n";
93
+    echo '</tr>'."\n";
94 94
 }
95 95
 
96 96
 //show location
97 97
 if ($event['event_etablissement'] = 0) {
98
-    echo '<tr>' . "\n";
98
+    echo '<tr>'."\n";
99 99
 
100 100
     //    echo($location['nom']);
101 101
     //    var_dump($location);
102 102
     //    var_dump($event);
103 103
 
104
-    echo '<td style="border:1px solid black;">' . "\n";
105
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT . '</b>' . "\n";
104
+    echo '<td style="border:1px solid black;">'."\n";
105
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT.'</b>'."\n";
106 106
     if ($location['categorie'] != '') {
107
-        echo '<span style="font-weight:normal;"> (' . $location['categorie'] . ') <br>' . "\n";
107
+        echo '<span style="font-weight:normal;"> ('.$location['categorie'].') <br>'."\n";
108 108
     }
109 109
     if ($location['logo'] != '') {
110
-        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/etablissement/' . $location['logo'] . ' height="75px">' . '' . "\n";
110
+        echo '<img align=right style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/etablissement/'.$location['logo'].' height="75px">'.''."\n";
111 111
     }
112 112
 
113
-    echo '<span style="font-weight:normal;">' . $location['nom'] . '<br>' . "\n";
114
-    echo $location['description'] . '<br>' . "\n";
115
-    echo $location['adresse'] . '</span> <br>' . "\n";
113
+    echo '<span style="font-weight:normal;">'.$location['nom'].'<br>'."\n";
114
+    echo $location['description'].'<br>'."\n";
115
+    echo $location['adresse'].'</span> <br>'."\n";
116 116
     if ($location['adresse2'] != '') {
117
-        echo $location['adresse2'] . '</span> <br>' . "\n";
117
+        echo $location['adresse2'].'</span> <br>'."\n";
118 118
     }
119
-    echo $location['ville'] . "\n";
120
-    echo $location['cp'] . '<br>' . "\n";
119
+    echo $location['ville']."\n";
120
+    echo $location['cp'].'<br>'."\n";
121 121
 
122 122
     if ($location['horaires'] != '') {
123
-        echo $location['horaires'] . '</span> <br>' . "\n";
123
+        echo $location['horaires'].'</span> <br>'."\n";
124 124
     }
125 125
 
126 126
     if ($location['divers'] != '') {
127
-        echo $location['divers'] . '</span> <br>' . "\n";
127
+        echo $location['divers'].'</span> <br>'."\n";
128 128
     }
129 129
 
130 130
     if ($location['tarifs'] != '') {
131
-        echo $location['tarifs'] . '</span> ' . _MD_EXTCAL_DEVISE2 . "\n";
131
+        echo $location['tarifs'].'</span> '._MD_EXTCAL_DEVISE2."\n";
132 132
     }
133 133
 
134
-    echo '</td>' . "\n";
135
-    echo '<td style="border:1px solid black;">' . "\n";
134
+    echo '</td>'."\n";
135
+    echo '<td style="border:1px solid black;">'."\n";
136 136
 
137 137
     if ($location['tel_fixe'] != '') {
138
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_FIXE . ' :</b>' . $location['tel_fixe'] . '<br>' . "\n";
138
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_FIXE.' :</b>'.$location['tel_fixe'].'<br>'."\n";
139 139
     }
140 140
     if ($location['tel_portable'] != '') {
141
-        echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE . ' :</b>' . $location['tel_portable'] . '<br>' . "\n";
141
+        echo '<b>'._MD_EXTCAL_ETABLISSEMENT_TEL_PORTABLE.' :</b>'.$location['tel_portable'].'<br>'."\n";
142 142
     }
143 143
 
144
-    echo '<b>' . _MD_EXTCAL_EMAIL . ' :</b> <a href="mailto:' . $location['mail'] . '">' . $location['mail'] . '</a><br>' . "\n";
145
-    echo '<b>' . _MD_EXTCAL_URL . ' :</b> <a href="' . $location['site'] . '">' . $location['site'] . '</a>' . '<br>' . "\n";
146
-    echo '<b>' . _MD_EXTCAL_ETABLISSEMENT_MAP . ' :</b> <a href="' . $location['map'] . '">' . _MD_EXTCAL_ETABLISSEMENT_MAP2 . '</a>' . "\n";
144
+    echo '<b>'._MD_EXTCAL_EMAIL.' :</b> <a href="mailto:'.$location['mail'].'">'.$location['mail'].'</a><br>'."\n";
145
+    echo '<b>'._MD_EXTCAL_URL.' :</b> <a href="'.$location['site'].'">'.$location['site'].'</a>'.'<br>'."\n";
146
+    echo '<b>'._MD_EXTCAL_ETABLISSEMENT_MAP.' :</b> <a href="'.$location['map'].'">'._MD_EXTCAL_ETABLISSEMENT_MAP2.'</a>'."\n";
147 147
 
148
-    echo '</td>' . "\n";
149
-    echo '</tr>' . "\n";
148
+    echo '</td>'."\n";
149
+    echo '</tr>'."\n";
150 150
 }
151 151
 //show images
152 152
 
153 153
 if (($event['event_picture1'] != '') || ($event['event_picture2'] != '')) {
154
-    echo '<tr>' . "\n";
154
+    echo '<tr>'."\n";
155 155
     if ($event['event_picture1'] != '') {
156
-        echo '<td style="border:1px solid black;">' . "\n";
157
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture1'] . ' height="100px">' . '' . "\n";
158
-        echo '</td>' . "\n";
156
+        echo '<td style="border:1px solid black;">'."\n";
157
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture1'].' height="100px">'.''."\n";
158
+        echo '</td>'."\n";
159 159
     }
160 160
     if ($event['event_picture2'] != '') {
161
-        echo '<td style="border:1px solid black;">' . "\n";
162
-        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src=' . XOOPS_URL . '/uploads/extcal/' . $event['event_picture2'] . ' height="100px">' . '' . "\n";
163
-        echo '</td>' . "\n";
161
+        echo '<td style="border:1px solid black;">'."\n";
162
+        echo '<img align=left style="border:1px solid #FFFFFF;margin-right:6px" src='.XOOPS_URL.'/uploads/extcal/'.$event['event_picture2'].' height="100px">'.''."\n";
163
+        echo '</td>'."\n";
164 164
     }
165
-    echo '</tr>' . "\n";
165
+    echo '</tr>'."\n";
166 166
 }
167 167
 //--------------------
168 168
 
169
-echo '</table><br>' . "\n";
169
+echo '</table><br>'."\n";
170 170
 echo '<div style="text-align:center; width:640px;">';
171
-echo $xoopsConfig['sitename'] . ' - ' . $xoopsConfig['slogan'] . '<br>';
172
-echo '<a href="' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '">' . XOOPS_URL . '/modules/extcal/event.php?event=' . $event['event_id'] . '</a>';
171
+echo $xoopsConfig['sitename'].' - '.$xoopsConfig['slogan'].'<br>';
172
+echo '<a href="'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'">'.XOOPS_URL.'/modules/extcal/event.php?event='.$event['event_id'].'</a>';
173 173
 echo '</div>';
174
-echo '</body>' . "\n";
175
-echo '</html>' . "\n";
174
+echo '</body>'."\n";
175
+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
-require_once __DIR__ . '/include/constantes.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_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
-require_once __DIR__ . '/header.php';
7
+require_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.
index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
3
+include __DIR__.'/../../mainfile.php';
4 4
 
5 5
 //modif JJD
6
-require_once __DIR__ . '/include/constantes.php';
6
+require_once __DIR__.'/include/constantes.php';
7 7
 
8 8
 header("Location: {$xoopsModuleConfig['start_page']}");
Please login to merge, or discard this patch.