@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
4 | 4 | |
5 | -include_once __DIR__ . '/ExtcalPersistableObjectHandler.php'; |
|
6 | -include_once __DIR__ . '/perm.php'; |
|
7 | -include_once __DIR__ . '/time.php'; |
|
5 | +include_once __DIR__.'/ExtcalPersistableObjectHandler.php'; |
|
6 | +include_once __DIR__.'/perm.php'; |
|
7 | +include_once __DIR__.'/time.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class ExtcalCat. |
@@ -184,10 +184,10 @@ discard block |
||
184 | 184 | $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view'); |
185 | 185 | $count = count($authorizedAccessCats); |
186 | 186 | if ($count > 0) { |
187 | - $in = '(' . $authorizedAccessCats[0]; |
|
187 | + $in = '('.$authorizedAccessCats[0]; |
|
188 | 188 | array_shift($authorizedAccessCats); |
189 | 189 | foreach ($authorizedAccessCats as $authorizedAccessCat) { |
190 | - $in .= ',' . $authorizedAccessCat; |
|
190 | + $in .= ','.$authorizedAccessCat; |
|
191 | 191 | } |
192 | 192 | $in .= ')'; |
193 | 193 | $criteria->add(new Criteria('cat_id', $in, 'IN')); |
@@ -1,15 +1,15 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
5 | -include_once __DIR__ . '/header.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | +include_once __DIR__.'/header.php'; |
|
6 | 6 | |
7 | -include_once XOOPS_ROOT_PATH . '/class/template.php'; |
|
7 | +include_once XOOPS_ROOT_PATH.'/class/template.php'; |
|
8 | 8 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
9 | 9 | if (!isset($_GET['cat'])) { |
10 | 10 | $cat = 0; |
11 | 11 | } else { |
12 | - $cat = (int)$_GET['cat']; |
|
12 | + $cat = (int) $_GET['cat']; |
|
13 | 13 | } |
14 | 14 | if (function_exists('mb_http_output')) { |
15 | 15 | mb_http_output('pass'); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $events = $eventHandler->getUpcommingEvent($xoopsModuleConfig['rss_nb_event'], $cat); |
23 | 23 | if (is_array($events)) { |
24 | 24 | $tpl->assign('channel_title', xoops_utf8_encode(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES))); |
25 | - $tpl->assign('channel_link', XOOPS_URL . '/'); |
|
25 | + $tpl->assign('channel_link', XOOPS_URL.'/'); |
|
26 | 26 | $tpl->assign('channel_desc', xoops_utf8_encode(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES))); |
27 | 27 | $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss')); |
28 | 28 | $tpl->assign('channel_webmaster', $xoopsConfig['adminmail']); |
@@ -30,14 +30,14 @@ discard block |
||
30 | 30 | $tpl->assign('channel_category', 'Event'); |
31 | 31 | $tpl->assign('channel_generator', 'XOOPS'); |
32 | 32 | $tpl->assign('channel_language', _LANGCODE); |
33 | - $tpl->assign('image_url', XOOPS_URL . '/modules/extcal/assets/images/extcal_logo.png'); |
|
33 | + $tpl->assign('image_url', XOOPS_URL.'/modules/extcal/assets/images/extcal_logo.png'); |
|
34 | 34 | $tpl->assign('image_width', 92); |
35 | 35 | $tpl->assign('image_height', 52); |
36 | 36 | foreach ($events as $event) { |
37 | 37 | $tpl->append('items', array( |
38 | 38 | 'title' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_title'), ENT_QUOTES)), |
39 | - 'link' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
40 | - 'guid' => XOOPS_URL . '/modules/extcal/event.php?event=' . $event->getVar('event_id'), |
|
39 | + 'link' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
40 | + 'guid' => XOOPS_URL.'/modules/extcal/event.php?event='.$event->getVar('event_id'), |
|
41 | 41 | 'pubdate' => formatTimestamp($event->getVar('event_start'), 'rss'), |
42 | 42 | 'description' => xoops_utf8_encode(htmlspecialchars($event->getVar('event_desc'), ENT_QUOTES)), |
43 | 43 | )); |
@@ -24,5 +24,5 @@ |
||
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'; |
@@ -1,4 +1,4 @@ |
||
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'; |
@@ -25,14 +25,14 @@ |
||
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 | } |
@@ -1,19 +1,19 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | )); |
@@ -1,16 +1,16 @@ discard block |
||
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 |
||
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 |
||
137 | 137 | // Making navig data |
138 | 138 | $navig = array( |
139 | 139 | 'prev' => array( |
140 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
140 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&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() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
144 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&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() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
148 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&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 |
||
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'; |
@@ -1,10 +1,10 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -1,15 +1,15 @@ discard block |
||
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 |
||
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 |
||
128 | 128 | // Making navig data |
129 | 129 | $navig = array( |
130 | 130 | 'prev' => array( |
131 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
131 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&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() . '&month=' . $monthCalObj->thisMonth(), |
|
135 | + 'uri' => 'year='.$monthCalObj->thisYear().'&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() . '&month=' . $nMonthCalObj->thisMonth(), |
|
139 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&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 |
||
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'; |