@@ -2,23 +2,23 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -include __DIR__ . '/../../mainfile.php'; |
|
6 | -require_once __DIR__ . '/include/constantes.php'; |
|
5 | +include __DIR__.'/../../mainfile.php'; |
|
6 | +require_once __DIR__.'/include/constantes.php'; |
|
7 | 7 | $params = ['view' => _EXTCAL_NAV_AGENDA_WEEK, 'file' => _EXTCAL_FILE_AGENDA_WEEK]; |
8 | 8 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
9 | -require_once __DIR__ . '/header.php'; |
|
9 | +require_once __DIR__.'/header.php'; |
|
10 | 10 | |
11 | 11 | /* ========================================================================== */ |
12 | -$year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
13 | -$month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
14 | -$day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
15 | -$cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
12 | +$year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
13 | +$month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
14 | +$day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
15 | +$cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
16 | 16 | |
17 | 17 | // Validate the date (day, month and year) |
18 | 18 | $dayTS = mktime(0, 0, 0, $month, $day, $year); |
19 | 19 | //$offset = date('w', $dayTS) - $xoopsModuleConfig['week_start_day']; |
20 | 20 | $offset = date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] < 7 ? date('w', $dayTS) + 7 - $xoopsModuleConfig['week_start_day'] : 0; |
21 | -$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
21 | +$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
22 | 22 | $year = date('Y', $dayTS); |
23 | 23 | $month = date('n', $dayTS); |
24 | 24 | $day = date('j', $dayTS); |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | 'nbJours' => $nbJours, |
52 | 52 | 'externalKeys' => 'cat_id', |
53 | 53 | ]; |
54 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
54 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
55 | 55 | /**********************************************************************/ |
56 | 56 | $eventsArray = $events; |
57 | 57 | // Formating date |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | //------------------------------------------------------------------- |
84 | 84 | |
85 | 85 | //$params['colJourWidth'] = (int)((((500-50)/$nbJours)/500*100)+.5); |
86 | -$params['colJourWidth'] = (int)((((500 - 50) / $nbJours) / 500 * 100) + .6); |
|
86 | +$params['colJourWidth'] = (int) ((((500 - 50) / $nbJours) / 500 * 100) + .6); |
|
87 | 87 | // echo "agenda_week : {$dayTS}<br>"; |
88 | 88 | $tAgenda = agenda_getEvents($eventsArray, $dayTS, $hStart, $hEnd, $mTranche, $nbJours); |
89 | 89 | //$exp = print_r($eventsArray, true); |
@@ -105,21 +105,21 @@ discard block |
||
105 | 105 | |
106 | 106 | $navig = [ |
107 | 107 | 'prev' => [ |
108 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
108 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(), |
|
109 | 109 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $pWeekCalObj->getTimestamp()), |
110 | 110 | ], |
111 | 111 | 'this' => [ |
112 | - 'uri' => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
112 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(), |
|
113 | 113 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $weekCalObj->getTimestamp()), |
114 | 114 | ], |
115 | 115 | 'next' => [ |
116 | - 'uri' => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
116 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(), |
|
117 | 117 | 'name' => $timeHandler->getFormatedDate($xoopsModuleConfig['nav_date_week'], $nWeekCalObj->getTimestamp()), |
118 | 118 | ], |
119 | 119 | ]; |
120 | 120 | |
121 | 121 | // Title of the page |
122 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
122 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
123 | 123 | |
124 | 124 | // Assigning navig data to the template |
125 | 125 | $xoopsTpl->assign('navig', $navig); |
@@ -160,4 +160,4 @@ discard block |
||
160 | 160 | $xoopsTpl->assign('lang', $lang); |
161 | 161 | $xoopsTpl->assign('view', 'agendaweek'); |
162 | 162 | |
163 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
163 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
22 | +require_once __DIR__.'/../include/constantes.php'; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param $options |
@@ -53,10 +53,10 @@ discard block |
||
53 | 53 | //mb $events = $eventHandler->objectToArray($eventHandler->getUpcommingEvent($nbEvent, $options)); |
54 | 54 | |
55 | 55 | /* ========================================================================== */ |
56 | - $year = isset($_GET['year']) ? (int)$_GET['year'] : date('Y'); |
|
57 | - $month = isset($_GET['month']) ? (int)$_GET['month'] : date('n'); |
|
58 | - $day = isset($_GET['day']) ? (int)$_GET['day'] : date('j'); |
|
59 | - $cat = isset($_GET['cat']) ? (int)$_GET['cat'] : 0; |
|
56 | + $year = isset($_GET['year']) ? (int) $_GET['year'] : date('Y'); |
|
57 | + $month = isset($_GET['month']) ? (int) $_GET['month'] : date('n'); |
|
58 | + $day = isset($_GET['day']) ? (int) $_GET['day'] : date('j'); |
|
59 | + $cat = isset($_GET['cat']) ? (int) $_GET['cat'] : 0; |
|
60 | 60 | /* ========================================================================== */ |
61 | 61 | |
62 | 62 | // Validate the date (day, month and year) |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | 'nbEvent' => $nbEvent, |
90 | 90 | 'nbDays' => $nbDays, |
91 | 91 | ]; |
92 | - $events = $eventHandler->getEventsOnPeriode($criteres); |
|
92 | + $events = $eventHandler->getEventsOnPeriode($criteres); |
|
93 | 93 | |
94 | 94 | //---------------------------- |
95 | 95 | |
@@ -116,27 +116,27 @@ discard block |
||
116 | 116 | |
117 | 117 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
118 | 118 | |
119 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
120 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
121 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
119 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
120 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
121 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
122 | 122 | |
123 | - $form .= _MB_EXTCAL_UPCOMING_DAYS . ' : <input name="options[2]" size="5" maxlength="255" value="' . $options[2] . '" type="text"><br>'; |
|
123 | + $form .= _MB_EXTCAL_UPCOMING_DAYS.' : <input name="options[2]" size="5" maxlength="255" value="'.$options[2].'" type="text"><br>'; |
|
124 | 124 | |
125 | 125 | array_shift($options); |
126 | 126 | array_shift($options); |
127 | 127 | array_shift($options); |
128 | 128 | |
129 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
129 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
130 | 130 | if (false === array_search(0, $options)) { |
131 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
131 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
132 | 132 | } else { |
133 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
133 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
134 | 134 | } |
135 | 135 | foreach ($cats as $cat) { |
136 | 136 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
137 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
137 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
138 | 138 | } else { |
139 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
139 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
140 | 140 | } |
141 | 141 | } |
142 | 142 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
22 | +require_once __DIR__.'/../include/constantes.php'; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param $options |
@@ -69,23 +69,23 @@ discard block |
||
69 | 69 | |
70 | 70 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
71 | 71 | |
72 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
73 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
74 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
72 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
73 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
74 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
75 | 75 | array_shift($options); |
76 | 76 | array_shift($options); |
77 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
77 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
78 | 78 | if (false === array_search(0, $options)) { |
79 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
79 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
80 | 80 | } else { |
81 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
81 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
82 | 82 | } |
83 | 83 | /** @var Extcal\Category $cat */ |
84 | 84 | foreach ($cats as $cat) { |
85 | 85 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
86 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
86 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
87 | 87 | } else { |
88 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
88 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
89 | 89 | } |
90 | 90 | } |
91 | 91 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
22 | +require_once __DIR__.'/../include/constantes.php'; |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param $options |
@@ -66,22 +66,22 @@ discard block |
||
66 | 66 | |
67 | 67 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
68 | 68 | |
69 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
70 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
71 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
69 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
70 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
71 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
72 | 72 | array_shift($options); |
73 | 73 | array_shift($options); |
74 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
74 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
75 | 75 | if (false === array_search(0, $options)) { |
76 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
76 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
77 | 77 | } else { |
78 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
78 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
79 | 79 | } |
80 | 80 | foreach ($cats as $cat) { |
81 | 81 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
82 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
82 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
83 | 83 | } else { |
84 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
84 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
85 | 85 | } |
86 | 86 | } |
87 | 87 | $form .= '</select>'; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -require_once __DIR__ . '/../include/constantes.php'; |
|
22 | +require_once __DIR__.'/../include/constantes.php'; |
|
23 | 23 | |
24 | 24 | /******************************************************/ |
25 | 25 | /* Ajour JJD - Evenements par categries */ |
@@ -92,22 +92,22 @@ discard block |
||
92 | 92 | |
93 | 93 | $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view'); |
94 | 94 | |
95 | - $form = _MB_EXTCAL_DISPLAY . " \n"; |
|
96 | - $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text"> ' . _MB_EXTCAL_EVENT . '<br>'; |
|
97 | - $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>'; |
|
95 | + $form = _MB_EXTCAL_DISPLAY." \n"; |
|
96 | + $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text"> '._MB_EXTCAL_EVENT.'<br>'; |
|
97 | + $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>'; |
|
98 | 98 | array_shift($options); |
99 | 99 | array_shift($options); |
100 | - $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">'; |
|
100 | + $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">'; |
|
101 | 101 | if (false === array_search(0, $options)) { |
102 | - $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
102 | + $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
103 | 103 | } else { |
104 | - $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>'; |
|
104 | + $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>'; |
|
105 | 105 | } |
106 | 106 | foreach ($cats as $cat) { |
107 | 107 | if (false === array_search($cat->getVar('cat_id'), $options)) { |
108 | - $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>'; |
|
108 | + $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>'; |
|
109 | 109 | } else { |
110 | - $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>'; |
|
110 | + $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>'; |
|
111 | 111 | } |
112 | 112 | } |
113 | 113 | $form .= '</select>'; |
@@ -21,49 +21,49 @@ |
||
21 | 21 | $moduleDirName = basename(dirname(dirname(__DIR__))); |
22 | 22 | $moduleDirNameUpper = strtoupper($moduleDirName); |
23 | 23 | |
24 | -define('CO_' . $moduleDirNameUpper . '_GDLIBSTATUS', 'GD library support: '); |
|
25 | -define('CO_' . $moduleDirNameUpper . '_GDLIBVERSION', 'GD Library version: '); |
|
26 | -define('CO_' . $moduleDirNameUpper . '_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
27 | -define('CO_' . $moduleDirNameUpper . '_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
28 | -define('CO_' . $moduleDirNameUpper . '_IMAGEINFO', 'Server status'); |
|
29 | -define('CO_' . $moduleDirNameUpper . '_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
30 | -define('CO_' . $moduleDirNameUpper . '_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
31 | -define('CO_' . $moduleDirNameUpper . '_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
32 | -define('CO_' . $moduleDirNameUpper . '_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
33 | -define('CO_' . $moduleDirNameUpper . '_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
34 | -define('CO_' . $moduleDirNameUpper . '_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
35 | -define('CO_' . $moduleDirNameUpper . '_SERVERPATH', 'Server path to XOOPS root: '); |
|
36 | -define('CO_' . $moduleDirNameUpper . '_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
37 | -define('CO_' . $moduleDirNameUpper . '_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
38 | -define('CO_' . $moduleDirNameUpper . '_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
24 | +define('CO_'.$moduleDirNameUpper.'_GDLIBSTATUS', 'GD library support: '); |
|
25 | +define('CO_'.$moduleDirNameUpper.'_GDLIBVERSION', 'GD Library version: '); |
|
26 | +define('CO_'.$moduleDirNameUpper.'_GDOFF', "<span style='font-weight: bold;'>Disabled</span> (No thumbnails available)"); |
|
27 | +define('CO_'.$moduleDirNameUpper.'_GDON', "<span style='font-weight: bold;'>Enabled</span> (Thumbsnails available)"); |
|
28 | +define('CO_'.$moduleDirNameUpper.'_IMAGEINFO', 'Server status'); |
|
29 | +define('CO_'.$moduleDirNameUpper.'_MAXPOSTSIZE', 'Max post size permitted (post_max_size directive in php.ini): '); |
|
30 | +define('CO_'.$moduleDirNameUpper.'_MAXUPLOADSIZE', 'Max upload size permitted (upload_max_filesize directive in php.ini): '); |
|
31 | +define('CO_'.$moduleDirNameUpper.'_MEMORYLIMIT', 'Memory limit (memory_limit directive in php.ini): '); |
|
32 | +define('CO_'.$moduleDirNameUpper.'_METAVERSION', "<span style='font-weight: bold;'>Downloads meta version:</span> "); |
|
33 | +define('CO_'.$moduleDirNameUpper.'_OFF', "<span style='font-weight: bold;'>OFF</span>"); |
|
34 | +define('CO_'.$moduleDirNameUpper.'_ON', "<span style='font-weight: bold;'>ON</span>"); |
|
35 | +define('CO_'.$moduleDirNameUpper.'_SERVERPATH', 'Server path to XOOPS root: '); |
|
36 | +define('CO_'.$moduleDirNameUpper.'_SERVERUPLOADSTATUS', 'Server uploads status: '); |
|
37 | +define('CO_'.$moduleDirNameUpper.'_SPHPINI', "<span style='font-weight: bold;'>Information taken from PHP ini file:</span>"); |
|
38 | +define('CO_'.$moduleDirNameUpper.'_UPLOADPATHDSC', 'Note. Upload path *MUST* contain the full server path of your upload folder.'); |
|
39 | 39 | |
40 | -define('CO_' . $moduleDirNameUpper . '_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
41 | -define('CO_' . $moduleDirNameUpper . '_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
40 | +define('CO_'.$moduleDirNameUpper.'_PRINT', "<span style='font-weight: bold;'>Print</span>"); |
|
41 | +define('CO_'.$moduleDirNameUpper.'_PDF', "<span style='font-weight: bold;'>Create PDF</span>"); |
|
42 | 42 | |
43 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
44 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
45 | -define('CO_' . $moduleDirNameUpper . '_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
46 | -define('CO_' . $moduleDirNameUpper . '_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
47 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
48 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
49 | -define('CO_' . $moduleDirNameUpper . '_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
43 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED0', "Update failed - couldn't rename field '%s'"); |
|
44 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED1', "Update failed - couldn't add new fields"); |
|
45 | +define('CO_'.$moduleDirNameUpper.'_UPGRADEFAILED2', "Update failed - couldn't rename table '%s'"); |
|
46 | +define('CO_'.$moduleDirNameUpper.'_ERROR_COLUMN', 'Could not create column in database : %s'); |
|
47 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_XOOPS', 'This module requires XOOPS %s+ (%s installed)'); |
|
48 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_PHP', 'This module requires PHP version %s+ (%s installed)'); |
|
49 | +define('CO_'.$moduleDirNameUpper.'_ERROR_TAG_REMOVAL', 'Could not remove tags from Tag Module'); |
|
50 | 50 | |
51 | -define('CO_' . $moduleDirNameUpper . '_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
51 | +define('CO_'.$moduleDirNameUpper.'_FOLDERS_DELETED_OK', 'Upload Folders have been deleted'); |
|
52 | 52 | |
53 | 53 | // Error Msgs |
54 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
55 | -define('CO_' . $moduleDirNameUpper . '_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
56 | -define('CO_' . $moduleDirNameUpper . '_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
54 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_DEL_PATH', 'Could not delete %s directory'); |
|
55 | +define('CO_'.$moduleDirNameUpper.'_ERROR_BAD_REMOVE', 'Could not delete %s'); |
|
56 | +define('CO_'.$moduleDirNameUpper.'_ERROR_NO_PLUGIN', 'Could not load plugin'); |
|
57 | 57 | |
58 | 58 | //Help |
59 | -define('CO_' . $moduleDirNameUpper . '_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
60 | -define('CO_' . $moduleDirNameUpper . '_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
61 | -define('CO_' . $moduleDirNameUpper . '_BACK_2_ADMIN', 'Back to Administration of '); |
|
62 | -define('CO_' . $moduleDirNameUpper . '_OVERVIEW', 'Overview'); |
|
59 | +define('CO_'.$moduleDirNameUpper.'_DIRNAME', basename(dirname(dirname(__DIR__)))); |
|
60 | +define('CO_'.$moduleDirNameUpper.'_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
61 | +define('CO_'.$moduleDirNameUpper.'_BACK_2_ADMIN', 'Back to Administration of '); |
|
62 | +define('CO_'.$moduleDirNameUpper.'_OVERVIEW', 'Overview'); |
|
63 | 63 | |
64 | 64 | //define('CO_' . $moduleDirNameUpper . '_HELP_DIR', __DIR__); |
65 | 65 | |
66 | 66 | //help multi-page |
67 | -define('CO_' . $moduleDirNameUpper . '_DISCLAIMER', 'Disclaimer'); |
|
68 | -define('CO_' . $moduleDirNameUpper . '_LICENSE', 'License'); |
|
69 | -define('CO_' . $moduleDirNameUpper . '_SUPPORT', 'Support'); |
|
67 | +define('CO_'.$moduleDirNameUpper.'_DISCLAIMER', 'Disclaimer'); |
|
68 | +define('CO_'.$moduleDirNameUpper.'_LICENSE', 'License'); |
|
69 | +define('CO_'.$moduleDirNameUpper.'_SUPPORT', 'Support'); |
@@ -19,20 +19,20 @@ |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
22 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
23 | 23 | |
24 | -require_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
24 | +require_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
25 | 25 | |
26 | -require_once __DIR__ . '/include/agenda_fnc.php'; |
|
26 | +require_once __DIR__.'/include/agenda_fnc.php'; |
|
27 | 27 | |
28 | 28 | Extcal\Helper::getInstance()->loadLanguage('modinfo'); |
29 | 29 | |
30 | 30 | //------------------------------------------------------ |
31 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Util/Textual.php'; |
|
32 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weeks.php'; |
|
33 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Month/Weekdays.php'; |
|
34 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Week.php'; |
|
35 | -require_once _EXTCAL_PEAR_CALENDAR_ROOT . '/Day.php'; |
|
31 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Util/Textual.php'; |
|
32 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weeks.php'; |
|
33 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Month/Weekdays.php'; |
|
34 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Week.php'; |
|
35 | +require_once _EXTCAL_PEAR_CALENDAR_ROOT.'/Day.php'; |
|
36 | 36 | |
37 | 37 | //------------------------------------------------------ |
38 | 38 | // Getting eXtCal object's handler |
@@ -17,14 +17,14 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0; |
|
22 | 22 | if ($com_itemid > 0) { |
23 | 23 | // Get link title |
24 | - $sql = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . ' '; |
|
24 | + $sql = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.' '; |
|
25 | 25 | $result = $xoopsDB->query($sql); |
26 | 26 | $row = $xoopsDB->fetchArray($result); |
27 | 27 | $com_replytitle = $row['event_title']; |
28 | 28 | $com_replytext = $row['event_desc']; |
29 | - include XOOPS_ROOT_PATH . '/include/comment_new.php'; |
|
29 | + include XOOPS_ROOT_PATH.'/include/comment_new.php'; |
|
30 | 30 | } |
@@ -2,10 +2,10 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -include __DIR__ . '/../../mainfile.php'; |
|
5 | +include __DIR__.'/../../mainfile.php'; |
|
6 | 6 | |
7 | -require_once __DIR__ . '/include/constantes.php'; |
|
8 | -require_once __DIR__ . '/include/mail_fnc.php'; |
|
7 | +require_once __DIR__.'/include/constantes.php'; |
|
8 | +require_once __DIR__.'/include/mail_fnc.php'; |
|
9 | 9 | |
10 | 10 | /* |
11 | 11 | Extcal\Utility::echoArray($_POST); |
@@ -22,20 +22,20 @@ discard block |
||
22 | 22 | $member_uid = $xoopsUser->getVar('uid'); |
23 | 23 | |
24 | 24 | if (!$GLOBALS['xoopsSecurity']->check()) { |
25 | - redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
25 | + redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | if ($xoopsUser && $xoopsModuleConfig['whosnot_going']) { |
29 | 29 | // If param are right |
30 | - if ((int)$_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) { |
|
30 | + if ((int) $_POST['event'] > 0 && ('add' === $_POST['mode'] || 'remove' === $_POST['mode'])) { |
|
31 | 31 | $eventHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_EVENT); |
32 | 32 | $eventNotMemberHandler = Extcal\Helper::getInstance()->getHandler(_EXTCAL_CLN_NOT_MEMBER); |
33 | 33 | |
34 | 34 | // If the user have to be added |
35 | 35 | if ('add' === $_POST['mode']) { |
36 | - $event = $eventHandler->getEvent((int)$_POST['event'], $xoopsUser); |
|
36 | + $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser); |
|
37 | 37 | $eventNotMemberHandler->createEventNotMember([ |
38 | - 'event_id' => (int)$_POST['event'], |
|
38 | + 'event_id' => (int) $_POST['event'], |
|
39 | 39 | 'uid' => $xoopsUser->getVar('uid'), |
40 | 40 | ]); |
41 | 41 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
@@ -44,12 +44,12 @@ discard block |
||
44 | 44 | // If the user have to be remove |
45 | 45 | } else { |
46 | 46 | if ('remove' === $_POST['mode']) { |
47 | - $eventNotMemberHandler->deleteEventNotMember([(int)$_POST['event'], $xoopsUser->getVar('uid')]); |
|
47 | + $eventNotMemberHandler->deleteEventNotMember([(int) $_POST['event'], $xoopsUser->getVar('uid')]); |
|
48 | 48 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_4, _MD_EXTCAL_MSG_4); |
49 | 49 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_REMOVED_TO_EVENT; |
50 | 50 | } |
51 | 51 | } |
52 | - redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false); |
|
52 | + redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false); |
|
53 | 53 | } else { |
54 | 54 | redirect_header('index.php', 3, _NOPERM, false); |
55 | 55 | } |