@@ -3,12 +3,12 @@ discard block |
||
3 | 3 | /** |
4 | 4 | * @see http://www.php-fig.org/psr/psr-4/examples/ |
5 | 5 | */ |
6 | -spl_autoload_register(function ($class) { |
|
6 | +spl_autoload_register(function($class) { |
|
7 | 7 | // project-specific namespace prefix |
8 | - $prefix = 'XoopsModules\\' . ucfirst(basename(dirname(__DIR__))); |
|
8 | + $prefix = 'XoopsModules\\'.ucfirst(basename(dirname(__DIR__))); |
|
9 | 9 | |
10 | 10 | // base directory for the namespace prefix |
11 | - $base_dir = dirname(__DIR__) . '/class/'; |
|
11 | + $base_dir = dirname(__DIR__).'/class/'; |
|
12 | 12 | |
13 | 13 | // does the class use the namespace prefix? |
14 | 14 | $len = strlen($prefix); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | // replace the namespace prefix with the base directory, replace namespace |
24 | 24 | // separators with directory separators in the relative class name, append |
25 | 25 | // with .php |
26 | - $file = $base_dir . str_replace('\\', '/', $relativeClass) . '.php'; |
|
26 | + $file = $base_dir.str_replace('\\', '/', $relativeClass).'.php'; |
|
27 | 27 | |
28 | 28 | // if the file exists, require it |
29 | 29 | if (file_exists($file)) { |
@@ -2,14 +2,14 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
6 | -require_once __DIR__ . '/include/constantes.php'; |
|
7 | -$params = [ |
|
5 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
6 | +require_once __DIR__.'/include/constantes.php'; |
|
7 | +$params = [ |
|
8 | 8 | 'view' => _EXTCAL_NAV_SEARCH, |
9 | 9 | 'file' => _EXTCAL_FILE_SEARCH, |
10 | 10 | ]; |
11 | 11 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
12 | -require_once __DIR__ . '/header.php'; |
|
12 | +require_once __DIR__.'/header.php'; |
|
13 | 13 | |
14 | 14 | /** @var Extcal\Helper $helper */ |
15 | 15 | $helper = Extcal\Helper::getInstance(); |
@@ -240,4 +240,4 @@ discard block |
||
240 | 240 | $xoopsTpl->assign('lang', $lang); |
241 | 241 | $xoopsTpl->assign('view', 'search'); |
242 | 242 | |
243 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
243 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
21 | -require_once XOOPS_ROOT_PATH . '/include/comment_post.php'; |
|
20 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
21 | +require_once XOOPS_ROOT_PATH.'/include/comment_post.php'; |
@@ -21,12 +21,12 @@ discard block |
||
21 | 21 | |
22 | 22 | // defined('XOOPS_ROOT_PATH') || die('XOOPS Root Path not defined'); |
23 | 23 | |
24 | -require_once __DIR__ . '/preloads/autoloader.php'; |
|
24 | +require_once __DIR__.'/preloads/autoloader.php'; |
|
25 | 25 | |
26 | 26 | $moduleDirName = basename(__DIR__); |
27 | 27 | |
28 | -require_once __DIR__ . '/include/constantes.php'; |
|
29 | -require_once __DIR__ . '/include/agenda_fnc.php'; |
|
28 | +require_once __DIR__.'/include/constantes.php'; |
|
29 | +require_once __DIR__.'/include/agenda_fnc.php'; |
|
30 | 30 | //require_once __DIR__ . '/class/Config.php'; |
31 | 31 | //$loc_de = setlocale (LC_ALL, 'french'); |
32 | 32 | |
@@ -99,12 +99,12 @@ discard block |
||
99 | 99 | |
100 | 100 | // Tables created by sql file (without prefix!) |
101 | 101 | $modversion['tables'] = [ |
102 | - $moduleDirName . '_' . 'cat', |
|
103 | - $moduleDirName . '_' . 'event', |
|
104 | - $moduleDirName . '_' . 'eventmember', |
|
105 | - $moduleDirName . '_' . 'eventnotmember', |
|
106 | - $moduleDirName . '_' . 'file', |
|
107 | - $moduleDirName . '_' . 'location' |
|
102 | + $moduleDirName.'_'.'cat', |
|
103 | + $moduleDirName.'_'.'event', |
|
104 | + $moduleDirName.'_'.'eventmember', |
|
105 | + $moduleDirName.'_'.'eventnotmember', |
|
106 | + $moduleDirName.'_'.'file', |
|
107 | + $moduleDirName.'_'.'location' |
|
108 | 108 | ]; |
109 | 109 | |
110 | 110 | // SQL |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | $modversion['config'][$i]['default'] = 5; |
517 | 517 | |
518 | 518 | ++$i; |
519 | -$modversion['config'][$i]['name'] = 'break' . $i; |
|
519 | +$modversion['config'][$i]['name'] = 'break'.$i; |
|
520 | 520 | $modversion['config'][$i]['title'] = '_MI_EXTCAL_SHOW_OTHEROPTIONS'; |
521 | 521 | $modversion['config'][$i]['description'] = ''; |
522 | 522 | $modversion['config'][$i]['formtype'] = 'line_break'; |
@@ -19,20 +19,20 @@ |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -require_once XOOPS_ROOT_PATH . '/header.php'; |
|
22 | +require_once 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 |
@@ -63,9 +63,9 @@ |
||
63 | 63 | $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED; |
64 | 64 | } else { |
65 | 65 | $eventMemberHandler->createEventmember([ |
66 | - 'event_id' => \Xmf\Request::getInt('event', 0, 'POST'), |
|
67 | - 'uid' => $xoopsUser->getVar('uid'), |
|
68 | - ]); |
|
66 | + 'event_id' => \Xmf\Request::getInt('event', 0, 'POST'), |
|
67 | + 'uid' => $xoopsUser->getVar('uid'), |
|
68 | + ]); |
|
69 | 69 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1); |
70 | 70 | $rediredtMessage = _MD_EXTCAL_WHOS_GOING_ADDED_TO_EVENT; |
71 | 71 | } |
@@ -3,10 +3,10 @@ discard block |
||
3 | 3 | |
4 | 4 | use XoopsModules\Extcal; |
5 | 5 | |
6 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
6 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
7 | 7 | |
8 | -require_once __DIR__ . '/include/constantes.php'; |
|
9 | -require_once __DIR__ . '/include/mail_fnc.php'; |
|
8 | +require_once __DIR__.'/include/constantes.php'; |
|
9 | +require_once __DIR__.'/include/mail_fnc.php'; |
|
10 | 10 | |
11 | 11 | /** @var Extcal\Helper $helper */ |
12 | 12 | $helper = Extcal\Helper::getInstance(); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | //echo "<hr>"; |
45 | 45 | |
46 | 46 | if (!$GLOBALS['xoopsSecurity']->check()) { |
47 | - redirect_header('index.php', 3, _NOPERM . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
47 | + redirect_header('index.php', 3, _NOPERM.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors())); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | if ($xoopsUser && $helper->getConfig('whos_going')) { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | $rediredtMessage = _MD_EXTCAL_WHOS_GOING_REMOVED_TO_EVENT; |
78 | 78 | } |
79 | 79 | } |
80 | - redirect_header('event.php?event=' . $_POST['event'], 3, $rediredtMessage, false); |
|
80 | + redirect_header('event.php?event='.$_POST['event'], 3, $rediredtMessage, false); |
|
81 | 81 | } else { |
82 | 82 | redirect_header('index.php', 3, _NOPERM, false); |
83 | 83 | } |
@@ -2,11 +2,11 @@ discard block |
||
2 | 2 | |
3 | 3 | use XoopsModules\Extcal; |
4 | 4 | |
5 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
6 | -require_once __DIR__ . '/include/constantes.php'; |
|
5 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
6 | +require_once __DIR__.'/include/constantes.php'; |
|
7 | 7 | $params = ['view' => _EXTCAL_NAV_CALWEEK, 'file' => _EXTCAL_FILE_CALWEEK]; |
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 | /** @var Extcal\Helper $helper */ |
12 | 12 | $helper = Extcal\Helper::getInstance(); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | $dayTS = mktime(0, 0, 0, $month, $day, $year); |
23 | 23 | //$offset = date('w', $dayTS) - $helper->getConfig('week_start_day'); |
24 | 24 | $offset = date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') < 7 ? date('w', $dayTS) + 7 - $helper->getConfig('week_start_day') : 0; |
25 | -$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
25 | +$dayTS -= ($offset * _EXTCAL_TS_DAY); |
|
26 | 26 | $year = date('Y', $dayTS); |
27 | 27 | $month = date('n', $dayTS); |
28 | 28 | $day = date('j', $dayTS); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'cat' => $cat, |
53 | 53 | 'externalKeys' => 'cat_id', |
54 | 54 | ]; |
55 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
55 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
56 | 56 | /**********************************************************************/ |
57 | 57 | //$eventsArray = $events; |
58 | 58 | |
@@ -141,21 +141,21 @@ discard block |
||
141 | 141 | // Making navig data |
142 | 142 | $navig = [ |
143 | 143 | 'prev' => [ |
144 | - 'uri' => 'year=' . $pWeekCalObj->thisYear() . '&month=' . $pWeekCalObj->thisMonth() . '&day=' . $pWeekCalObj->thisDay(), |
|
144 | + 'uri' => 'year='.$pWeekCalObj->thisYear().'&month='.$pWeekCalObj->thisMonth().'&day='.$pWeekCalObj->thisDay(), |
|
145 | 145 | 'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $pWeekCalObj->getTimestamp()), |
146 | 146 | ], |
147 | 147 | 'this' => [ |
148 | - 'uri' => 'year=' . $weekCalObj->thisYear() . '&month=' . $weekCalObj->thisMonth() . '&day=' . $weekCalObj->thisDay(), |
|
148 | + 'uri' => 'year='.$weekCalObj->thisYear().'&month='.$weekCalObj->thisMonth().'&day='.$weekCalObj->thisDay(), |
|
149 | 149 | 'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $weekCalObj->getTimestamp()), |
150 | 150 | ], |
151 | 151 | 'next' => [ |
152 | - 'uri' => 'year=' . $nWeekCalObj->thisYear() . '&month=' . $nWeekCalObj->thisMonth() . '&day=' . $nWeekCalObj->thisDay(), |
|
152 | + 'uri' => 'year='.$nWeekCalObj->thisYear().'&month='.$nWeekCalObj->thisMonth().'&day='.$nWeekCalObj->thisDay(), |
|
153 | 153 | 'name' => $timeHandler->getFormatedDate($helper->getConfig('nav_date_week'), $nWeekCalObj->getTimestamp()), |
154 | 154 | ], |
155 | 155 | ]; |
156 | 156 | |
157 | 157 | // Title of the page |
158 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
158 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
159 | 159 | |
160 | 160 | // Assigning navig data to the template |
161 | 161 | $xoopsTpl->assign('navig', $navig); |
@@ -195,4 +195,4 @@ discard block |
||
195 | 195 | $xoopsTpl->assign('lang', $lang); |
196 | 196 | $xoopsTpl->assign('view', 'calweek'); |
197 | 197 | |
198 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
198 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -19,15 +19,15 @@ discard block |
||
19 | 19 | |
20 | 20 | use XoopsModules\Extcal; |
21 | 21 | |
22 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
23 | -require_once __DIR__ . '/include/constantes.php'; |
|
22 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
23 | +require_once __DIR__.'/include/constantes.php'; |
|
24 | 24 | $params = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT]; |
25 | 25 | $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl'; |
26 | -require_once __DIR__ . '/header.php'; |
|
26 | +require_once __DIR__.'/header.php'; |
|
27 | 27 | |
28 | 28 | //exit; |
29 | 29 | |
30 | -require_once XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
30 | +require_once XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
31 | 31 | |
32 | 32 | if (!isset($_GET['event'])) { |
33 | 33 | $eventId = 0; |
@@ -228,4 +228,4 @@ discard block |
||
228 | 228 | |
229 | 229 | //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array()); |
230 | 230 | |
231 | -require_once XOOPS_ROOT_PATH . '/footer.php'; |
|
231 | +require_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -17,5 +17,5 @@ |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -require_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
21 | -require_once XOOPS_ROOT_PATH . '/include/comment_reply.php'; |
|
20 | +require_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
21 | +require_once XOOPS_ROOT_PATH.'/include/comment_reply.php'; |