@@ -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 | } |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | * que la classe correspondante de la table a été générées avec classGenerator |
21 | 21 | **/ |
22 | 22 | |
23 | -require_once __DIR__ . '/../../../class/uploader.php'; |
|
24 | -require_once __DIR__ . '/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
25 | -require_once __DIR__ . '/../class/utility.php'; |
|
26 | -require_once __DIR__ . '/constantes.php'; |
|
27 | -require_once __DIR__ . '/../../../class/template.php'; |
|
23 | +require_once __DIR__.'/../../../class/uploader.php'; |
|
24 | +require_once __DIR__.'/../../../class/mail/phpmailer/class.phpmailer.php'; // First we require the PHPMailer libary in our script |
|
25 | +require_once __DIR__.'/../class/utility.php'; |
|
26 | +require_once __DIR__.'/constantes.php'; |
|
27 | +require_once __DIR__.'/../../../class/template.php'; |
|
28 | 28 | |
29 | 29 | /******************************************************************** |
30 | 30 | * |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $action = ''; //a voir JJD |
139 | 139 | $message = sprintf($tplMessage, $acteur['name']); |
140 | 140 | //$subject .= ' (' . rand(1, 100) . ')'; |
141 | - $subject .= ' - ' . $acteur['name']; |
|
141 | + $subject .= ' - '.$acteur['name']; |
|
142 | 142 | //-------------------------------------------------------------- |
143 | 143 | //Chargement du template dans le dossier de langue |
144 | 144 | //$f = _EXTCAL_PATH_LG . $xoopsConfig['language'] . '\mail_inscription.html'; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | if ($mode == _EXTCAL_HEADER_HTML) { |
181 | 181 | $template = 'extcal_mail_member_html.tpl'; |
182 | 182 | } |
183 | - $mail_body = $tpl->fetch('db:' . $template); |
|
183 | + $mail_body = $tpl->fetch('db:'.$template); |
|
184 | 184 | |
185 | 185 | extcal_SendMail($destinataires, $mail_fromName, $mail_fromemail, $mail_subject, $mail_body, $bEcho = false, $mode = 0, $sep = '|'); |
186 | 186 | |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | $header = array(); |
314 | 314 | $header[] = "From: {$emailSender}"; |
315 | 315 | $header[] = "Reply-To: {$emailSender}"; |
316 | - $header[] = 'X-Mailer: PHP/' . PHP_VERSION; |
|
316 | + $header[] = 'X-Mailer: PHP/'.PHP_VERSION; |
|
317 | 317 | |
318 | 318 | if ($mode == _EXTCAL_HEADER_HTML) { |
319 | 319 | $header[] = 'MIME-Version: 1.0'; |
@@ -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' => array( |
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>"; |
@@ -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 = array( |
@@ -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>"; |