@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /******************************************************/ |
23 | 23 | /* Ajour JJD - Evenements par categries */ |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | { |
32 | 32 | global $xoopsUser, $extcalConfig; |
33 | 33 | |
34 | - require_once __DIR__ . '/../class/config.php'; |
|
34 | + require_once __DIR__.'/../class/config.php'; |
|
35 | 35 | |
36 | 36 | // Retriving module config |
37 | 37 | // $extcalConfig = ExtcalConfig::getHandler(); |
@@ -88,22 +88,22 @@ discard block |
||
88 | 88 | |
89 | 89 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
90 | 90 | |
91 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
92 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
93 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
91 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
92 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
93 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
94 | 94 | array_shift($options); |
95 | 95 | array_shift($options); |
96 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
96 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
97 | 97 | if (array_search(0, $options) === false) { |
98 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
98 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
99 | 99 | } else { |
100 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
100 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
101 | 101 | } |
102 | 102 | foreach ($cats as $cat) { |
103 | 103 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
104 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
104 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
105 | 105 | } else { |
106 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
106 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
107 | 107 | } |
108 | 108 | } |
109 | 109 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalRandomShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | |
65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
66 | 66 | |
67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
70 | 70 | array_shift($options); |
71 | 71 | array_shift($options); |
72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
73 | 73 | if (array_search(0, $options) === false) { |
74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
75 | 75 | } else { |
76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } |
78 | 78 | foreach ($cats as $cat) { |
79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalUpcomingShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
52 | 52 | |
53 | 53 | /* ========================================================================== */ |
54 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
55 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
56 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
57 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
54 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
55 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
56 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
57 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
58 | 58 | /* ========================================================================== */ |
59 | 59 | |
60 | 60 | // Validate the date (day, month and year) |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | 'nbEvent' => $nbEvent, |
88 | 88 | 'nbDays' => $nbDays, |
89 | 89 | ); |
90 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
90 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
91 | 91 | |
92 | 92 | //---------------------------- |
93 | 93 | |
@@ -114,27 +114,27 @@ discard block |
||
114 | 114 | |
115 | 115 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
116 | 116 | |
117 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
118 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
119 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
117 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
118 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
119 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
120 | 120 | |
121 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>'; |
|
121 | + $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>'; |
|
122 | 122 | |
123 | 123 | array_shift($options); |
124 | 124 | array_shift($options); |
125 | 125 | array_shift($options); |
126 | 126 | |
127 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
127 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
128 | 128 | if (array_search(0, $options) === false) { |
129 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
129 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
130 | 130 | } else { |
131 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
131 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
132 | 132 | } |
133 | 133 | foreach ($cats as $cat) { |
134 | 134 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
135 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
135 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
136 | 136 | } else { |
137 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
137 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
138 | 138 | } |
139 | 139 | } |
140 | 140 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalNewShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | |
65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
66 | 66 | |
67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
70 | 70 | array_shift($options); |
71 | 71 | array_shift($options); |
72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
73 | 73 | if (array_search(0, $options) === false) { |
74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
75 | 75 | } else { |
76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } |
78 | 78 | foreach ($cats as $cat) { |
79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | $form .= '</select>'; |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once __DIR__ . '/../include/constantes.php'; |
|
20 | +require_once __DIR__.'/../include/constantes.php'; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param $options |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | function bExtcalDayShow($options) |
28 | 28 | { |
29 | - require_once __DIR__ . '/../class/config.php'; |
|
29 | + require_once __DIR__.'/../class/config.php'; |
|
30 | 30 | |
31 | 31 | // Retriving module config |
32 | 32 | $extcalConfig = ExtcalConfig::getHandler(); |
@@ -64,22 +64,22 @@ discard block |
||
64 | 64 | |
65 | 65 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
66 | 66 | |
67 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
68 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
69 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
67 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
68 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
69 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
70 | 70 | array_shift($options); |
71 | 71 | array_shift($options); |
72 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
72 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
73 | 73 | if (array_search(0, $options) === false) { |
74 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
74 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
75 | 75 | } else { |
76 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } |
78 | 78 | foreach ($cats as $cat) { |
79 | 79 | if (array_search($cat->getVar('cat_id'), $options) === false) { |
80 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
80 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
81 | 81 | } else { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 | $form .= '</select>'; |
@@ -1,15 +1,15 @@ discard block |
||
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_MONTH, 'file' => _EXTCAL_FILE_MONTH); |
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 | -$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 | $eventsArray = $events; |
37 | 37 | |
@@ -88,21 +88,21 @@ discard block |
||
88 | 88 | $nMonthCalObj = $monthCalObj->nextMonth('object'); |
89 | 89 | $navig = array( |
90 | 90 | 'prev' => array( |
91 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
91 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
92 | 92 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
93 | 93 | ), |
94 | 94 | 'this' => array( |
95 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
95 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
96 | 96 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
97 | 97 | ), |
98 | 98 | 'next' => array( |
99 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
99 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
100 | 100 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
101 | 101 | ), |
102 | 102 | ); |
103 | 103 | |
104 | 104 | // Title of the page |
105 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
105 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
106 | 106 | |
107 | 107 | // Assigning navig data to the template |
108 | 108 | $xoopsTpl->assign('navig', $navig); |
@@ -159,4 +159,4 @@ discard block |
||
159 | 159 | $xoopsTpl->assign('lang', $lang); |
160 | 160 | $xoopsTpl->assign('view', 'month'); |
161 | 161 | |
162 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
162 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -require_once __DIR__ . '/include/constantes.php'; |
|
5 | -require_once __DIR__ . '/header.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +require_once __DIR__.'/include/constantes.php'; |
|
5 | +require_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 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if ((!defined('XOOPS_ROOT_PATH')) || !($GLOBALS['xoopsUser'] instanceof XoopsUser) |
22 | 22 | || !$GLOBALS['xoopsUser']->IsAdmin() |
23 | 23 | ) { |
24 | - exit('Restricted access' . PHP_EOL); |
|
24 | + exit('Restricted access'.PHP_EOL); |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | /** |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | function xoops_module_pre_update_extcal(XoopsModule $module) |
47 | 47 | { |
48 | 48 | $moduleDirName = basename(dirname(__DIR__)); |
49 | - $classUtility = ucfirst($moduleDirName) . 'Utility'; |
|
49 | + $classUtility = ucfirst($moduleDirName).'Utility'; |
|
50 | 50 | if (!class_exists($classUtility)) { |
51 | 51 | xoops_load('utility', $moduleDirName); |
52 | 52 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | return true; |
84 | 84 | } |
85 | 85 | |
86 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
86 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
87 | 87 | $cls = 'extcal_%1$s'; |
88 | 88 | |
89 | 89 | $version = array( |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | foreach ($version as $key => $val) { |
103 | 103 | if ($previousVersion < $val) { |
104 | 104 | $name = sprintf($cls, $key); |
105 | - $f = $fld . $name . '.php'; |
|
105 | + $f = $fld.$name.'.php'; |
|
106 | 106 | //ext_echo ("<hr>{$f}<hr>"); |
107 | 107 | if (is_readable($f)) { |
108 | 108 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -113,8 +113,8 @@ discard block |
||
113 | 113 | } |
114 | 114 | |
115 | 115 | if ($previousVersion < 240) { |
116 | - $configurator = include __DIR__ . '/config.php'; |
|
117 | - $classUtility = ucfirst($moduleDirName) . 'Utility'; |
|
116 | + $configurator = include __DIR__.'/config.php'; |
|
117 | + $classUtility = ucfirst($moduleDirName).'Utility'; |
|
118 | 118 | if (!class_exists($classUtility)) { |
119 | 119 | xoops_load('utility', $moduleDirName); |
120 | 120 | } |
@@ -122,14 +122,14 @@ discard block |
||
122 | 122 | //delete old HTML templates |
123 | 123 | if (count($configurator['templateFolders']) > 0) { |
124 | 124 | foreach ($configurator['templateFolders'] as $folder) { |
125 | - $templateFolder = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $folder); |
|
125 | + $templateFolder = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$folder); |
|
126 | 126 | if (is_dir($templateFolder)) { |
127 | 127 | $templateList = array_diff(scandir($templateFolder, SCANDIR_SORT_NONE), array('..', '.')); |
128 | 128 | foreach ($templateList as $k => $v) { |
129 | - $fileInfo = new SplFileInfo($templateFolder . $v); |
|
129 | + $fileInfo = new SplFileInfo($templateFolder.$v); |
|
130 | 130 | if ($fileInfo->getExtension() === 'html' && $fileInfo->getFilename() !== 'index.html') { |
131 | - if (file_exists($templateFolder . $v)) { |
|
132 | - unlink($templateFolder . $v); |
|
131 | + if (file_exists($templateFolder.$v)) { |
|
132 | + unlink($templateFolder.$v); |
|
133 | 133 | } |
134 | 134 | } |
135 | 135 | } |
@@ -139,9 +139,9 @@ discard block |
||
139 | 139 | |
140 | 140 | // --- COPY blank.png FILES --------------- |
141 | 141 | if (count($configurator['copyFiles']) > 0) { |
142 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
142 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
143 | 143 | foreach (array_keys($configurator['copyFiles']) as $i) { |
144 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
144 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
145 | 145 | $classUtility::copyFile($file, $dest); |
146 | 146 | } |
147 | 147 | } |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | if (count($configurator['oldFiles']) > 0) { |
151 | 151 | // foreach (array_keys($GLOBALS['uploadFolders']) as $i) { |
152 | 152 | foreach (array_keys($configurator['oldFiles']) as $i) { |
153 | - $tempFile = $GLOBALS['xoops']->path('modules/' . $moduleDirName . $configurator['oldFiles'][$i]); |
|
153 | + $tempFile = $GLOBALS['xoops']->path('modules/'.$moduleDirName.$configurator['oldFiles'][$i]); |
|
154 | 154 | if (is_file($tempFile)) { |
155 | 155 | unlink($tempFile); |
156 | 156 | } |
@@ -160,14 +160,14 @@ discard block |
||
160 | 160 | //--------------------- |
161 | 161 | |
162 | 162 | //delete .html entries from the tpl table |
163 | - $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', 'n') . "' AND `tpl_file` LIKE '%.html%'"; |
|
163 | + $sql = 'DELETE FROM '.$xoopsDB->prefix('tplfile')." WHERE `tpl_module` = '".$module->getVar('dirname', 'n')."' AND `tpl_file` LIKE '%.html%'"; |
|
164 | 164 | $xoopsDB->queryF($sql); |
165 | 165 | |
166 | 166 | // Load class XoopsFile ==================== |
167 | 167 | xoops_load('XoopsFile'); |
168 | 168 | |
169 | 169 | //delete /images directory ============ |
170 | - $imagesDirectory = $GLOBALS['xoops']->path('modules/' . $module->getVar('dirname', 'n') . '/images/'); |
|
170 | + $imagesDirectory = $GLOBALS['xoops']->path('modules/'.$module->getVar('dirname', 'n').'/images/'); |
|
171 | 171 | $folderHandler = XoopsFile::getHandler('folder', $imagesDirectory); |
172 | 172 | $folderHandler->delete($imagesDirectory); |
173 | 173 | } |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | function xoops_module_pre_install_extcal(XoopsModule $module) |
29 | 29 | { |
30 | 30 | $moduleDirName = basename(dirname(__DIR__)); |
31 | - $className = ucfirst($moduleDirName) . 'Utility'; |
|
31 | + $className = ucfirst($moduleDirName).'Utility'; |
|
32 | 32 | if (!class_exists($className)) { |
33 | 33 | xoops_load('utility', $moduleDirName); |
34 | 34 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | $mod_tables = $module->getInfo('tables'); |
46 | 46 | foreach ($mod_tables as $table) { |
47 | - $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS ' . $GLOBALS['xoopsDB']->prefix($table) . ';'); |
|
47 | + $GLOBALS['xoopsDB']->queryF('DROP TABLE IF EXISTS '.$GLOBALS['xoopsDB']->prefix($table).';'); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | return true; |
@@ -73,20 +73,20 @@ discard block |
||
73 | 73 | */ |
74 | 74 | |
75 | 75 | // Access right |
76 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
77 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
78 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
76 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ADMIN, $moduleId); |
|
77 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_USERS, $moduleId); |
|
78 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 1, XOOPS_GROUP_ANONYMOUS, $moduleId); |
|
79 | 79 | |
80 | 80 | // Can submit |
81 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
81 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 2, XOOPS_GROUP_ADMIN, $moduleId); |
|
82 | 82 | |
83 | 83 | // Auto approve |
84 | - $groupPermissionHandler->addRight($moduleDirName . '_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
84 | + $groupPermissionHandler->addRight($moduleDirName.'_perm_mask', 4, XOOPS_GROUP_ADMIN, $moduleId); |
|
85 | 85 | |
86 | 86 | // $moduleDirName = $xoopsModule->getVar('dirname'); |
87 | - $configurator = include $GLOBALS['xoops']->path('modules/' . $moduleDirName . '/include/config.php'); |
|
87 | + $configurator = include $GLOBALS['xoops']->path('modules/'.$moduleDirName.'/include/config.php'); |
|
88 | 88 | |
89 | - $classUtility = ucfirst($moduleDirName) . 'Utility'; |
|
89 | + $classUtility = ucfirst($moduleDirName).'Utility'; |
|
90 | 90 | if (!class_exists($classUtility)) { |
91 | 91 | xoops_load('utility', $moduleDirName); |
92 | 92 | } |
@@ -98,9 +98,9 @@ discard block |
||
98 | 98 | } |
99 | 99 | } |
100 | 100 | if (count($configurator['copyFiles']) > 0) { |
101 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
101 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
102 | 102 | foreach (array_keys($configurator['copyFiles']) as $i) { |
103 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
103 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
104 | 104 | $classUtility::copyFile($file, $dest); |
105 | 105 | } |
106 | 106 | } |