@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -require_once __DIR__ . '/../../include/constantes.php'; |
|
3 | +require_once __DIR__.'/../../include/constantes.php'; |
|
4 | 4 | define('_MI_EXTCAL_NAME', 'eXtCal'); |
5 | 5 | define('_MI_EXTCAL_ABOUT', 'About'); |
6 | 6 | define('_MI_EXTCAL_AFTER', 'After'); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | define('_MI_EXTCAL_START_PAGE', 'Module home page'); |
136 | 136 | define('_MI_EXTCAL_SUBMIT_EVENT', 'Submit Event'); |
137 | 137 | define('_MI_EXTCAL_TABS_WEIGHT', 'Order of the Tabs'); |
138 | -define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>' . "<span style='color:#0000FF;'>" . _EXTCAL_NAV_LIST . '</span>' . ' <br>Separator: new line'); |
|
138 | +define('_MI_EXTCAL_TABS_WEIGHT_DESC', 'Set the tab order <br>Be careful to respect tab names:<br>'."<span style='color:#0000FF;'>"._EXTCAL_NAV_LIST.'</span>'.' <br>Separator: new line'); |
|
139 | 139 | define('_MI_EXTCAL_VISIBLE_TAB_DESC', 'Define the visible view.'); |
140 | 140 | define('_MI_EXTCAL_VISIBLE_TABS', 'Visible tab'); |
141 | 141 | define('_MI_EXTCAL_WEEK_START_DAY', 'Week start Day'); |
@@ -162,6 +162,6 @@ discard block |
||
162 | 162 | |
163 | 163 | //Help |
164 | 164 | define('_MI_EXTCAL_DIRNAME', basename(dirname(dirname(__DIR__)))); |
165 | -define('_MI_EXTCAL_HELP_HEADER', __DIR__ . '/help/helpheader.tpl'); |
|
165 | +define('_MI_EXTCAL_HELP_HEADER', __DIR__.'/help/helpheader.tpl'); |
|
166 | 166 | define('_MI_EXTCAL_BACK_2_ADMIN', 'Back to Administration of '); |
167 | 167 | define('_MI_EXTCAL_OVERVIEW', 'Overview'); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public $entries = []; |
26 | 26 | |
27 | 27 | /** |
28 | - * @param $calendar |
|
28 | + * @param Calendar_Day $calendar |
|
29 | 29 | */ |
30 | 30 | public function __construct($calendar) |
31 | 31 | { |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | define('CALENDAR_ROOT', '../../'); |
12 | 12 | } |
13 | 13 | |
14 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
15 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
16 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
14 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
15 | +require_once CALENDAR_ROOT.'Day.php'; |
|
16 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
17 | 17 | |
18 | 18 | // accepts multiple entries |
19 | 19 | |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function build($events = []) |
78 | 78 | { |
79 | - require_once CALENDAR_ROOT . 'Day.php'; |
|
80 | - require_once CALENDAR_ROOT . 'Table/Helper.php'; |
|
79 | + require_once CALENDAR_ROOT.'Day.php'; |
|
80 | + require_once CALENDAR_ROOT.'Table/Helper.php'; |
|
81 | 81 | |
82 | 82 | $this->tableHelper = new Calendar_Table_Helper($this, $this->firstDay); |
83 | 83 | $this->cE = $this->getEngine(); |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | <h2>Sample Calendar Payload Decorator (using <?php echo CALENDAR_ENGINE; ?> engine)</h2> |
231 | 231 | <table class="calendar" width="98%" cellspacing="0" cellpadding="0"> |
232 | 232 | <caption> |
233 | - <?php echo $MonthDecorator->thisMonth() . ' / ' . $MonthDecorator->thisYear(); ?> |
|
233 | + <?php echo $MonthDecorator->thisMonth().' / '.$MonthDecorator->thisYear(); ?> |
|
234 | 234 | </caption> |
235 | 235 | <tr> |
236 | 236 | <th>Monday</th> |
@@ -254,14 +254,14 @@ discard block |
||
254 | 254 | echo ' calCellEmpty'; |
255 | 255 | } |
256 | 256 | echo '">'; |
257 | - echo '<div class="dayNumber">' . $Day->thisDay() . '</div>'; |
|
257 | + echo '<div class="dayNumber">'.$Day->thisDay().'</div>'; |
|
258 | 258 | |
259 | 259 | if ($Day->isEmpty()) { |
260 | 260 | echo ' '; |
261 | 261 | } else { |
262 | 262 | echo '<div class="dayContents"><ul>'; |
263 | 263 | while ($entry = $Day->getEntry()) { |
264 | - echo '<li>' . $entry['desc'] . '</li>'; |
|
264 | + echo '<li>'.$entry['desc'].'</li>'; |
|
265 | 265 | //you can print the time range as well |
266 | 266 | } |
267 | 267 | echo '</ul></div>'; |
@@ -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 = ['view' => _EXTCAL_NAV_CALMONTH, 'file' => _EXTCAL_FILE_CALMONTH]; |
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 | |
37 | 37 | // Calculating timestamp for the begin and the end of the month |
@@ -126,21 +126,21 @@ discard block |
||
126 | 126 | // Making navig data |
127 | 127 | $navig = [ |
128 | 128 | 'prev' => [ |
129 | - 'uri' => 'year=' . $pMonthCalObj->thisYear() . '&month=' . $pMonthCalObj->thisMonth(), |
|
129 | + 'uri' => 'year='.$pMonthCalObj->thisYear().'&month='.$pMonthCalObj->thisMonth(), |
|
130 | 130 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $pMonthCalObj->getTimestamp()), |
131 | 131 | ], |
132 | 132 | 'this' => [ |
133 | - 'uri' => 'year=' . $monthCalObj->thisYear() . '&month=' . $monthCalObj->thisMonth(), |
|
133 | + 'uri' => 'year='.$monthCalObj->thisYear().'&month='.$monthCalObj->thisMonth(), |
|
134 | 134 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $monthCalObj->getTimestamp()), |
135 | 135 | ], |
136 | 136 | 'next' => [ |
137 | - 'uri' => 'year=' . $nMonthCalObj->thisYear() . '&month=' . $nMonthCalObj->thisMonth(), |
|
137 | + 'uri' => 'year='.$nMonthCalObj->thisYear().'&month='.$nMonthCalObj->thisMonth(), |
|
138 | 138 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_month'], $nMonthCalObj->getTimestamp()), |
139 | 139 | ], |
140 | 140 | ]; |
141 | 141 | |
142 | 142 | // Title of the page |
143 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
143 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
144 | 144 | |
145 | 145 | // Assigning navig data to the template |
146 | 146 | $xoopsTpl->assign('navig', $navig); |
@@ -180,4 +180,4 @@ discard block |
||
180 | 180 | $xoopsTpl->assign('lang', $lang); |
181 | 181 | $xoopsTpl->assign('view', 'calmonth'); |
182 | 182 | |
183 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
183 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -33,22 +33,22 @@ discard block |
||
33 | 33 | |
34 | 34 | //---------------------------------------------------------- |
35 | 35 | // Create eXtCal upload directory |
36 | - $indexFile = __DIR__ . '/index.html'; |
|
36 | + $indexFile = __DIR__.'/index.html'; |
|
37 | 37 | |
38 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal'; |
|
38 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal'; |
|
39 | 39 | if (!is_dir($dir)) { |
40 | 40 | mkdir($dir, 0777); |
41 | - copy($indexFile, $dir . '/index.html'); |
|
41 | + copy($indexFile, $dir.'/index.html'); |
|
42 | 42 | } |
43 | 43 | |
44 | - $dir = XOOPS_ROOT_PATH . '/uploads/extcal/etablissement'; |
|
44 | + $dir = XOOPS_ROOT_PATH.'/uploads/extcal/etablissement'; |
|
45 | 45 | if (!is_dir($dir)) { |
46 | 46 | mkdir($dir, 0777); |
47 | - copy($indexFile, $dir . '/index.html'); |
|
47 | + copy($indexFile, $dir.'/index.html'); |
|
48 | 48 | } |
49 | 49 | //------------------------------------------------------------ |
50 | 50 | |
51 | - $fld = XOOPS_ROOT_PATH . '/modules/' . $xoopsModule->getVar('dirname') . '/versions/'; |
|
51 | + $fld = XOOPS_ROOT_PATH.'/modules/'.$xoopsModule->getVar('dirname').'/versions/'; |
|
52 | 52 | $cls = 'extcal_%1$s'; |
53 | 53 | |
54 | 54 | $version = [ |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | foreach ($version as $key => $val) { |
68 | 68 | if ($previousVersion < $val) { |
69 | 69 | $name = sprintf($cls, $key); |
70 | - $f = $fld . $name . '.php'; |
|
70 | + $f = $fld.$name.'.php'; |
|
71 | 71 | //ext_echo ("<hr>{$f}<hr>"); |
72 | 72 | if (is_readable($f)) { |
73 | 73 | echo "mise à jour version : {$key} = {$val}<br>"; |
@@ -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 | //Configurator |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | 'name' => 'Module Configurator', |
37 | 37 | 'uploadFolders' => [ |
38 | 38 | EXTCAL_UPLOAD_PATH, |
39 | - EXTCAL_UPLOAD_PATH . '/etablissement' |
|
39 | + EXTCAL_UPLOAD_PATH.'/etablissement' |
|
40 | 40 | ], |
41 | 41 | // 'copyFiles' => array( |
42 | 42 | // EXTCAL_UPLOAD_PATH, |
@@ -57,4 +57,4 @@ discard block |
||
57 | 57 | |
58 | 58 | // module information |
59 | 59 | $mod_copyright = "<a href='https://xoops.org' title='XOOPS Project' target='_blank'> |
60 | - <img src='" . EXTCAL_AUTHOR_LOGOIMG . "' alt='XOOPS Project'></a>"; |
|
60 | + <img src='" . EXTCAL_AUTHOR_LOGOIMG."' alt='XOOPS Project'></a>"; |
@@ -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,21 +73,21 @@ 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 | 89 | /** @var ExtcalUtility $utilityClass */ |
90 | - $utilityClass = ucfirst($moduleDirName) . 'Utility'; |
|
90 | + $utilityClass = ucfirst($moduleDirName).'Utility'; |
|
91 | 91 | if (!class_exists($utilityClass)) { |
92 | 92 | xoops_load('utility', $moduleDirName); |
93 | 93 | } |
@@ -99,9 +99,9 @@ discard block |
||
99 | 99 | } |
100 | 100 | } |
101 | 101 | if (count($configurator['copyFiles']) > 0) { |
102 | - $file = __DIR__ . '/../assets/images/blank.png'; |
|
102 | + $file = __DIR__.'/../assets/images/blank.png'; |
|
103 | 103 | foreach (array_keys($configurator['copyFiles']) as $i) { |
104 | - $dest = $configurator['copyFiles'][$i] . '/blank.png'; |
|
104 | + $dest = $configurator['copyFiles'][$i].'/blank.png'; |
|
105 | 105 | $utilityClass::copyFile($file, $dest); |
106 | 106 | } |
107 | 107 | } |
@@ -108,7 +108,7 @@ |
||
108 | 108 | |
109 | 109 | define( |
110 | 110 | '_EXTCAL_NAV_LIST', |
111 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT |
|
111 | + _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT |
|
112 | 112 | ); |
113 | 113 | |
114 | 114 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | define('_EXTCAL_CLN_EVENT', 'ExtcalEvent'); |
42 | 42 | |
43 | 43 | //------------------------------------------------------------------- |
44 | -define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear'); |
|
44 | +define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear'); |
|
45 | 45 | //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' ); |
46 | 46 | |
47 | 47 | $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT; |
@@ -76,22 +76,22 @@ discard block |
||
76 | 76 | //} |
77 | 77 | define('_EXTCAL_PEAR_ROOT', $pear_path); |
78 | 78 | |
79 | -define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar'); |
|
80 | -define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/'); |
|
79 | +define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar'); |
|
80 | +define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/'); |
|
81 | 81 | |
82 | 82 | //------------------------------------------------------------------- |
83 | 83 | define('_EXTCAL_SHOW_NO_PICTURE', false); |
84 | 84 | |
85 | 85 | define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/'); |
86 | -define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'); |
|
87 | -define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/'); |
|
88 | -define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/'); |
|
89 | -define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/'); |
|
90 | -define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/'); |
|
86 | +define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/'); |
|
87 | +define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/'); |
|
88 | +define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/'); |
|
89 | +define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/'); |
|
90 | +define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/'); |
|
91 | 91 | |
92 | 92 | define('_EXTCAL_IMG_INTERVAL', 'interval04.png'); |
93 | -define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL); |
|
94 | -define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL); |
|
93 | +define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL); |
|
94 | +define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL); |
|
95 | 95 | |
96 | 96 | //define('_EXTCAL_DIRNAME', $xoopsModule->getVar('dirname')); |
97 | 97 | |
@@ -108,22 +108,22 @@ discard block |
||
108 | 108 | |
109 | 109 | define( |
110 | 110 | '_EXTCAL_NAV_LIST', |
111 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT |
|
111 | + _EXTCAL_NAV_CALMONTH."\n"._EXTCAL_NAV_CALWEEK."\n"._EXTCAL_NAV_YEAR."\n"._EXTCAL_NAV_MONTH."\n"._EXTCAL_NAV_WEEK."\n"._EXTCAL_NAV_DAY."\n"._EXTCAL_NAV_AGENDA_WEEK."\n"._EXTCAL_NAV_AGENDA_DAY."\n"._EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT |
|
112 | 112 | ); |
113 | 113 | |
114 | 114 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
115 | 115 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
116 | 116 | |
117 | -define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW); |
|
118 | -define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW); |
|
119 | -define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW); |
|
120 | -define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW); |
|
121 | -define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
122 | -define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW); |
|
123 | -define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
124 | -define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW); |
|
125 | -define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW); |
|
126 | -define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW); |
|
117 | +define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW); |
|
118 | +define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW); |
|
119 | +define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW); |
|
120 | +define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW); |
|
121 | +define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW); |
|
122 | +define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW); |
|
123 | +define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW); |
|
124 | +define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW); |
|
125 | +define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW); |
|
126 | +define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW); |
|
127 | 127 | |
128 | 128 | define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php'); |
129 | 129 |
@@ -1,17 +1,17 @@ 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 = ['view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY]; |
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 | 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 = [ |
101 | 101 | 'prev' => [ |
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' => [ |
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' => [ |
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'; |
@@ -17,28 +17,28 @@ discard block |
||
17 | 17 | * @author XOOPS Development Team, |
18 | 18 | */ |
19 | 19 | |
20 | -include __DIR__ . '/../../mainfile.php'; |
|
21 | -require_once __DIR__ . '/include/constantes.php'; |
|
20 | +include __DIR__.'/../../mainfile.php'; |
|
21 | +require_once __DIR__.'/include/constantes.php'; |
|
22 | 22 | $params = ['view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT]; |
23 | 23 | $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl'; |
24 | -require_once __DIR__ . '/header.php'; |
|
24 | +require_once __DIR__.'/header.php'; |
|
25 | 25 | |
26 | 26 | //exit; |
27 | 27 | |
28 | -include XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
29 | 29 | |
30 | 30 | if (!isset($_GET['event'])) { |
31 | 31 | $eventId = 0; |
32 | 32 | } else { |
33 | - $eventId = (int)$_GET['event']; |
|
33 | + $eventId = (int) $_GET['event']; |
|
34 | 34 | } |
35 | 35 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
36 | 36 | $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE); |
37 | 37 | $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE); |
38 | 38 | $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE); |
39 | 39 | $permHandler = ExtcalPerm::getHandler(); |
40 | -require_once __DIR__ . '/class/etablissement.php'; |
|
41 | -require_once __DIR__ . '/class/utility.php'; |
|
40 | +require_once __DIR__.'/class/etablissement.php'; |
|
41 | +require_once __DIR__.'/class/utility.php'; |
|
42 | 42 | $myts = MyTextSanitizer::getInstance(); // MyTextSanitizer object |
43 | 43 | |
44 | 44 | if (!function_exists('clear_unicodeslashes')) { |
@@ -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 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
231 | +include XOOPS_ROOT_PATH.'/footer.php'; |