@@ -1,8 +1,8 @@ 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 | 7 | // Getting eXtCal object's handler |
8 | 8 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | $permHandler = ExtcalPerm::getHandler(); |
11 | 11 | $xoopsUser = $xoopsUser ?: null; |
12 | 12 | if (count($permHandler->getAuthorizedCat($xoopsUser, 'extcal_cat_submit')) > 0) { |
13 | - include XOOPS_ROOT_PATH . '/header.php'; |
|
13 | + include XOOPS_ROOT_PATH.'/header.php'; |
|
14 | 14 | |
15 | 15 | // Title of the page |
16 | 16 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | |
21 | 21 | //$form->display(); |
22 | 22 | |
23 | - include XOOPS_ROOT_PATH . '/footer.php'; |
|
23 | + include XOOPS_ROOT_PATH.'/footer.php'; |
|
24 | 24 | } else { |
25 | 25 | redirect_header('index.php', 3); |
26 | 26 | } |
@@ -17,18 +17,18 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../../../mainfile.php'; |
|
20 | +require_once __DIR__.'/../../../mainfile.php'; |
|
21 | 21 | $moduleDirName = basename(dirname(__DIR__)); |
22 | 22 | |
23 | 23 | if (!defined('EXTCAL_DIRNAME')) { |
24 | 24 | define('EXTCAL_DIRNAME', $moduleDirName); |
25 | - define('EXTCAL_PATH', XOOPS_ROOT_PATH . '/modules/' . EXTCAL_DIRNAME); |
|
26 | - define('EXTCAL_URL', XOOPS_URL . '/modules/' . EXTCAL_DIRNAME); |
|
27 | - define('EXTCAL_ADMIN', EXTCAL_URL . '/admin/index.php'); |
|
28 | - define('EXTCAL_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/' . EXTCAL_DIRNAME); |
|
29 | - define('EXTCAL_AUTHOR_LOGOIMG', EXTCAL_URL . '/assets/images/logoModule.png'); |
|
30 | - define('EXTCAL_UPLOAD_URL', XOOPS_UPLOAD_URL . '/' . EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
31 | - define('EXTCAL_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/' . EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
25 | + define('EXTCAL_PATH', XOOPS_ROOT_PATH.'/modules/'.EXTCAL_DIRNAME); |
|
26 | + define('EXTCAL_URL', XOOPS_URL.'/modules/'.EXTCAL_DIRNAME); |
|
27 | + define('EXTCAL_ADMIN', EXTCAL_URL.'/admin/index.php'); |
|
28 | + define('EXTCAL_ROOT_PATH', XOOPS_ROOT_PATH.'/modules/'.EXTCAL_DIRNAME); |
|
29 | + define('EXTCAL_AUTHOR_LOGOIMG', EXTCAL_URL.'/assets/images/logoModule.png'); |
|
30 | + define('EXTCAL_UPLOAD_URL', XOOPS_UPLOAD_URL.'/'.EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
31 | + define('EXTCAL_UPLOAD_PATH', XOOPS_UPLOAD_PATH.'/'.EXTCAL_DIRNAME); // WITHOUT Trailing slash |
|
32 | 32 | |
33 | 33 | } |
34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'name' => 'Module Configurator', |
38 | 38 | 'uploadFolders' => array( |
39 | 39 | EXTCAL_UPLOAD_PATH, |
40 | - EXTCAL_UPLOAD_PATH . '/etablissement' |
|
40 | + EXTCAL_UPLOAD_PATH.'/etablissement' |
|
41 | 41 | ), |
42 | 42 | // 'copyFiles' => array( |
43 | 43 | // EXTCAL_UPLOAD_PATH, |
@@ -58,4 +58,4 @@ discard block |
||
58 | 58 | |
59 | 59 | // module information |
60 | 60 | $mod_copyright = "<a href='http://xoops.org' title='XOOPS Project' target='_blank'> |
61 | - <img src='" . EXTCAL_AUTHOR_LOGOIMG . "' alt='XOOPS Project' /></a>"; |
|
61 | + <img src='" . EXTCAL_AUTHOR_LOGOIMG."' alt='XOOPS Project' /></a>"; |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | 4 | |
5 | -include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
6 | -include __DIR__ . '/class/form/extcalform.php'; |
|
7 | -include __DIR__ . '/class/perm.php'; |
|
8 | -include_once __DIR__ . '/include/constantes.php'; |
|
5 | +include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
6 | +include __DIR__.'/class/form/extcalform.php'; |
|
7 | +include __DIR__.'/class/perm.php'; |
|
8 | +include_once __DIR__.'/include/constantes.php'; |
|
9 | 9 | |
10 | 10 | $permHandler = ExtcalPerm::getHandler(); |
11 | 11 | $xoopsUser = $xoopsUser ?: null; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | $params = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT); |
21 | 21 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
22 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
22 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
23 | 23 | /* ========================================================================== */ |
24 | 24 | |
25 | 25 | // Tooltips include |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | if (!isset($_GET['event'])) { |
30 | 30 | $eventId = 0; |
31 | 31 | } else { |
32 | - $eventId = (int)$_GET['event']; |
|
32 | + $eventId = (int) $_GET['event']; |
|
33 | 33 | } |
34 | 34 | if (!isset($_GET['action'])) { |
35 | 35 | $action = 'edit'; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | // Getting eXtCal object's handler |
41 | 41 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
42 | 42 | |
43 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
43 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
44 | 44 | |
45 | 45 | // Title of the page |
46 | 46 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -49,4 +49,4 @@ discard block |
||
49 | 49 | $form = $eventHandler->getEventForm('user', $action, array('event_id' => $eventId)); |
50 | 50 | $form->display(); |
51 | 51 | |
52 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
52 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,27 +1,27 @@ 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_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT); |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl'; |
7 | -include_once __DIR__ . '/header.php'; |
|
7 | +include_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | //exit; |
10 | 10 | |
11 | -include XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
11 | +include XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
12 | 12 | |
13 | 13 | if (!isset($_GET['event'])) { |
14 | 14 | $eventId = 0; |
15 | 15 | } else { |
16 | - $eventId = (int)$_GET['event']; |
|
16 | + $eventId = (int) $_GET['event']; |
|
17 | 17 | } |
18 | 18 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
19 | 19 | $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE); |
20 | 20 | $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE); |
21 | 21 | $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE); |
22 | 22 | $permHandler = ExtcalPerm::getHandler(); |
23 | -include_once __DIR__ . '/class/etablissement.php'; |
|
24 | -include_once __DIR__ . '/class/utilities.php'; |
|
23 | +include_once __DIR__.'/class/etablissement.php'; |
|
24 | +include_once __DIR__.'/class/utilities.php'; |
|
25 | 25 | $myts = MyTextSanitizer::getInstance(); // MyTextSanitizer object |
26 | 26 | |
27 | 27 | if (!function_exists('clear_unicodeslashes')) { |
@@ -211,4 +211,4 @@ discard block |
||
211 | 211 | |
212 | 212 | //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array()); |
213 | 213 | |
214 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
214 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -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_edit.php'; |
|
27 | +include __DIR__.'/../../mainfile.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_edit.php'; |
@@ -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'; |
@@ -1,17 +1,17 @@ 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_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY); |
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 | //recupe des variables get |
11 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
12 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
13 | -$day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
14 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
11 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
12 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
13 | +$day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
14 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
15 | 15 | /* ========================================================================== */ |
16 | 16 | |
17 | 17 | //echo "{$params['view']}-{$year}-{$month}-{$day}<hr>extcal_{$params['view']}.html<br>"; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | 'nbJours' => $nbJours, |
45 | 45 | 'externalKeys' => 'cat_id', |
46 | 46 | ); |
47 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
47 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
48 | 48 | /**********************************************************************/ |
49 | 49 | $eventsArray = $events; |
50 | 50 | $startDay = mktime(0, 0, 0, $month, $day, $year); |
@@ -99,21 +99,21 @@ discard block |
||
99 | 99 | |
100 | 100 | $navig = array( |
101 | 101 | 'prev' => array( |
102 | - 'uri' => 'year=' . $pDayCalObj->thisYear() . '&month=' . $pDayCalObj->thisMonth() . '&day=' . $pDayCalObj->thisDay(), |
|
102 | + 'uri' => 'year='.$pDayCalObj->thisYear().'&month='.$pDayCalObj->thisMonth().'&day='.$pDayCalObj->thisDay(), |
|
103 | 103 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp()), |
104 | 104 | ), |
105 | 105 | 'this' => array( |
106 | - 'uri' => 'year=' . $dayCalObj->thisYear() . '&month=' . $dayCalObj->thisMonth() . '&day=' . $dayCalObj->thisDay(), |
|
106 | + 'uri' => 'year='.$dayCalObj->thisYear().'&month='.$dayCalObj->thisMonth().'&day='.$dayCalObj->thisDay(), |
|
107 | 107 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp()), |
108 | 108 | ), |
109 | 109 | 'next' => array( |
110 | - 'uri' => 'year=' . $nDayCalObj->thisYear() . '&month=' . $nDayCalObj->thisMonth() . '&day=' . $nDayCalObj->thisDay(), |
|
110 | + 'uri' => 'year='.$nDayCalObj->thisYear().'&month='.$nDayCalObj->thisMonth().'&day='.$nDayCalObj->thisDay(), |
|
111 | 111 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()), |
112 | 112 | ), |
113 | 113 | ); |
114 | 114 | |
115 | 115 | // Title of the page |
116 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
116 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
117 | 117 | |
118 | 118 | // Assigning navig data to the template |
119 | 119 | $xoopsTpl->assign('navig', $navig); |
@@ -154,4 +154,4 @@ discard block |
||
154 | 154 | $xoopsTpl->assign('lang', $lang); |
155 | 155 | $xoopsTpl->assign('view', 'agendaday'); |
156 | 156 | |
157 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
157 | +include XOOPS_ROOT_PATH.'/footer.php'; |