@@ -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_delete.php'; |
|
27 | +include __DIR__.'/../../mainfile.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_delete.php'; |
@@ -1,19 +1,19 @@ |
||
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 | 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')); |
@@ -1,14 +1,14 @@ 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_YEAR, 'file' => _EXTCAL_FILE_YEAR); |
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 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
10 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
11 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
12 | 12 | |
13 | 13 | // Getting eXtCal object's handler |
14 | 14 | $catHandler = xoops_getModuleHandler(_EXTCAL_CLS_CAT, _EXTCAL_MODULE); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'cat' => $cat, |
37 | 37 | 'externalKeys' => 'cat_id', |
38 | 38 | ); |
39 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
39 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
40 | 40 | /**********************************************************************/ |
41 | 41 | $eventsArray = $events; |
42 | 42 | // Formating date |
@@ -80,21 +80,21 @@ discard block |
||
80 | 80 | // Making navig data |
81 | 81 | $navig = array( |
82 | 82 | 'prev' => array( |
83 | - 'uri' => 'year=' . $prevYear, |
|
83 | + 'uri' => 'year='.$prevYear, |
|
84 | 84 | 'name' => $prevYear, |
85 | 85 | ), |
86 | 86 | 'this' => array( |
87 | - 'uri' => 'year=' . $year, |
|
87 | + 'uri' => 'year='.$year, |
|
88 | 88 | 'name' => $year, |
89 | 89 | ), |
90 | 90 | 'next' => array( |
91 | - 'uri' => 'year=' . $nexYear, |
|
91 | + 'uri' => 'year='.$nexYear, |
|
92 | 92 | 'name' => $nexYear, |
93 | 93 | ), |
94 | 94 | ); |
95 | 95 | |
96 | 96 | // Title of the page |
97 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
97 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
98 | 98 | |
99 | 99 | // Assigning navig data to the template |
100 | 100 | $xoopsTpl->assign('navig', $navig); |
@@ -148,4 +148,4 @@ discard block |
||
148 | 148 | $xoopsTpl->assign('lang', $lang); |
149 | 149 | $xoopsTpl->assign('view', 'year'); |
150 | 150 | |
151 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
151 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -59,9 +59,9 @@ |
||
59 | 59 | $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED; |
60 | 60 | } else { |
61 | 61 | $eventMemberHandler->createEventmember(array( |
62 | - 'event_id' => (int)$_POST['event'], |
|
63 | - 'uid' => $xoopsUser->getVar('uid'), |
|
64 | - )); |
|
62 | + 'event_id' => (int)$_POST['event'], |
|
63 | + 'uid' => $xoopsUser->getVar('uid'), |
|
64 | + )); |
|
65 | 65 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1); |
66 | 66 | $rediredtMessage = _MD_EXTCAL_WHOS_GOING_ADDED_TO_EVENT; |
67 | 67 | } |
@@ -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 | // $member_uid = 1; |
10 | 10 | // $event_id = 393; |
@@ -39,27 +39,27 @@ discard block |
||
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 |
||
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 | } |
@@ -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 | } |