@@ -3,17 +3,17 @@ discard block |
||
3 | 3 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
4 | 4 | |
5 | 5 | $path = dirname(dirname(dirname(__DIR__))); |
6 | -include_once $path . '/mainfile.php'; |
|
6 | +include_once $path.'/mainfile.php'; |
|
7 | 7 | |
8 | 8 | $dirname = basename(dirname(__DIR__)); |
9 | 9 | $module_handler = xoops_getHandler('module'); |
10 | 10 | $module = $module_handler->getByDirname($dirname); |
11 | 11 | $pathIcon32 = $module->getInfo('icons32'); |
12 | 12 | $pathModuleAdmin = $module->getInfo('dirmoduleadmin'); |
13 | -$pathLanguage = $path . $pathModuleAdmin; |
|
13 | +$pathLanguage = $path.$pathModuleAdmin; |
|
14 | 14 | |
15 | -if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { |
|
16 | - $fileinc = $pathLanguage . '/language/english/main.php'; |
|
15 | +if (!file_exists($fileinc = $pathLanguage.'/language/'.$GLOBALS['xoopsConfig']['language'].'/'.'main.php')) { |
|
16 | + $fileinc = $pathLanguage.'/language/english/main.php'; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | include_once $fileinc; |
@@ -23,15 +23,15 @@ discard block |
||
23 | 23 | $i = 1; |
24 | 24 | $adminmenu[$i]['title'] = _MI_EXTCAL_INDEX; |
25 | 25 | $adminmenu[$i]['link'] = 'admin/index.php'; |
26 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/home.png'; |
|
26 | +$adminmenu[$i]['icon'] = $pathIcon32.'/home.png'; |
|
27 | 27 | ++$i; |
28 | 28 | $adminmenu[$i]['title'] = _MI_EXTCAL_CATEGORY; |
29 | 29 | $adminmenu[$i]['link'] = 'admin/cat.php'; |
30 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/category.png'; |
|
30 | +$adminmenu[$i]['icon'] = $pathIcon32.'/category.png'; |
|
31 | 31 | ++$i; |
32 | 32 | $adminmenu[$i]['title'] = _MI_EXTCAL_EVENT; |
33 | 33 | $adminmenu[$i]['link'] = 'admin/event.php'; |
34 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/event.png'; |
|
34 | +$adminmenu[$i]['icon'] = $pathIcon32.'/event.png'; |
|
35 | 35 | ++$i; |
36 | 36 | $adminmenu[$i]['title'] = _MI_EXTCAL_ETABLISSEMENTS; |
37 | 37 | $adminmenu[$i]['link'] = 'admin/etablissement.php'; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | ++$i; |
43 | 43 | $adminmenu[$i]['title'] = _MI_EXTCAL_PERMISSIONS; |
44 | 44 | $adminmenu[$i]['link'] = 'admin/permissions.php'; |
45 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/permissions.png'; |
|
45 | +$adminmenu[$i]['icon'] = $pathIcon32.'/permissions.png'; |
|
46 | 46 | //++$i; |
47 | 47 | //$adminmenu[$i]['title'] = _MI_EXTCAL_PRUNING; |
48 | 48 | //$adminmenu[$i]['link'] = "admin/prune.php"; |
@@ -50,4 +50,4 @@ discard block |
||
50 | 50 | ++$i; |
51 | 51 | $adminmenu[$i]['title'] = _MI_EXTCAL_ABOUT; |
52 | 52 | $adminmenu[$i]['link'] = 'admin/about.php'; |
53 | -$adminmenu[$i]['icon'] = $pathIcon32 . '/about.png'; |
|
53 | +$adminmenu[$i]['icon'] = $pathIcon32.'/about.png'; |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
4 | -include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; |
|
5 | -include_once __DIR__ . '/admin_header.php'; |
|
3 | +include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
4 | +include_once XOOPS_ROOT_PATH.'/class/xoopsform/grouppermform.php'; |
|
5 | +include_once __DIR__.'/admin_header.php'; |
|
6 | 6 | |
7 | 7 | $step = 'default'; |
8 | 8 | if (isset($_POST['step'])) { |
@@ -75,36 +75,36 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Public category permission mask |
77 | 77 | */ |
78 | - echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif" /> ' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</a></legend><div id="default">'; |
|
79 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
78 | + echo '<fieldset id="defaultBookmark"><legend><a href="#defaultBookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'default\'); toggleIcon(\'defaultIcon\');"><img id="defaultIcon" src="../assets/images/icons/minus.gif" /> '._AM_EXTCAL_PUBLIC_PERM_MASK.'</a></legend><div id="default">'; |
|
79 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
80 | 80 | echo _AM_EXTCAL_PUBLIC_PERM_MASK_INFO; |
81 | 81 | echo '</fieldset><br />'; |
82 | 82 | echo '<table class="outer" style="width:100%;">'; |
83 | 83 | echo '<form method="post" action="permissions.php">'; |
84 | 84 | echo '<tr>'; |
85 | - echo '<th colspan="8" style="text-align:center;">' . _AM_EXTCAL_PUBLIC_PERM_MASK . '</th>'; |
|
85 | + echo '<th colspan="8" style="text-align:center;">'._AM_EXTCAL_PUBLIC_PERM_MASK.'</th>'; |
|
86 | 86 | echo '</tr>'; |
87 | 87 | echo '<tr>'; |
88 | - echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_GROUP_NAME . '</td>'; |
|
89 | - echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_VIEW . '</td>'; |
|
90 | - echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_SUBMIT . '</td>'; |
|
91 | - echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_AUTO_APPROVE . '</td>'; |
|
92 | - echo '<td class="head" style="text-align:center;">' . _AM_EXTCAL_CAN_EDIT . '</td>'; |
|
88 | + echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_GROUP_NAME.'</td>'; |
|
89 | + echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_VIEW.'</td>'; |
|
90 | + echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_SUBMIT.'</td>'; |
|
91 | + echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_AUTO_APPROVE.'</td>'; |
|
92 | + echo '<td class="head" style="text-align:center;">'._AM_EXTCAL_CAN_EDIT.'</td>'; |
|
93 | 93 | echo '</tr>'; |
94 | 94 | $i = 0; |
95 | 95 | foreach ($glist as $k => $v) { |
96 | 96 | $style = (++$i % 2 == 0) ? 'odd' : 'even'; |
97 | 97 | echo '<tr>'; |
98 | - echo '<td class="' . $style . '">' . $v . '</td>'; |
|
99 | - echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][1]" type="checkbox"' . getChecked($viewGroup, $k) . ' /></td>'; |
|
100 | - echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][2]" type="checkbox"' . getChecked($submitGroup, $k) . ' /></td>'; |
|
101 | - echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][4]" type="checkbox"' . getChecked($autoApproveGroup, $k) . ' /></td>'; |
|
102 | - echo '<td class="' . $style . '" style="text-align:center;"><input name="perms[extcal_perm_mask][group][' . $k . '][8]" type="checkbox"' . getChecked($editGroup, $k) . ' /></td>'; |
|
98 | + echo '<td class="'.$style.'">'.$v.'</td>'; |
|
99 | + echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][1]" type="checkbox"'.getChecked($viewGroup, $k).' /></td>'; |
|
100 | + echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][2]" type="checkbox"'.getChecked($submitGroup, $k).' /></td>'; |
|
101 | + echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][4]" type="checkbox"'.getChecked($autoApproveGroup, $k).' /></td>'; |
|
102 | + echo '<td class="'.$style.'" style="text-align:center;"><input name="perms[extcal_perm_mask][group]['.$k.'][8]" type="checkbox"'.getChecked($editGroup, $k).' /></td>'; |
|
103 | 103 | echo '</tr>'; |
104 | 104 | } |
105 | 105 | echo '<input type="hidden" name="type" value="public" />'; |
106 | 106 | echo '<input type="hidden" name="step" value="enreg" />'; |
107 | - echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="' . _SUBMIT . '" /></td></tr></form>'; |
|
107 | + echo '<tr><td colspan="8" style="text-align:center;" class="head"><input type="submit" value="'._SUBMIT.'" /></td></tr></form>'; |
|
108 | 108 | echo '</table><br />'; |
109 | 109 | |
110 | 110 | echo '</div></fieldset><br />'; |
@@ -124,13 +124,13 @@ discard block |
||
124 | 124 | $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name')); |
125 | 125 | } |
126 | 126 | |
127 | - echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName . 'Icon" src="../assets/images/icons/minus.gif" /> ' . $titleOfForm . '</a></legend><div id="' . $permName . '">'; |
|
128 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
127 | + echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName.'Icon" src="../assets/images/icons/minus.gif" /> '.$titleOfForm.'</a></legend><div id="'.$permName.'">'; |
|
128 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
129 | 129 | echo $permDesc; |
130 | 130 | echo '</fieldset>'; |
131 | 131 | |
132 | 132 | if ($catHandler->getCount()) { |
133 | - echo $form->render() . '<br />'; |
|
133 | + echo $form->render().'<br />'; |
|
134 | 134 | } else { |
135 | 135 | redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false); |
136 | 136 | } |
@@ -148,12 +148,12 @@ discard block |
||
148 | 148 | $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name')); |
149 | 149 | } |
150 | 150 | |
151 | - echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName . 'Icon" src="../assets/images/icons/minus.gif" /> ' . $titleOfForm . '</a></legend><div id="' . $permName . '">'; |
|
152 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
151 | + echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName.'Icon" src="../assets/images/icons/minus.gif" /> '.$titleOfForm.'</a></legend><div id="'.$permName.'">'; |
|
152 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
153 | 153 | echo $permDesc; |
154 | 154 | echo '</fieldset>'; |
155 | 155 | if ($catHandler->getCount()) { |
156 | - echo $form->render() . '<br />'; |
|
156 | + echo $form->render().'<br />'; |
|
157 | 157 | } else { |
158 | 158 | redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false); |
159 | 159 | } |
@@ -171,12 +171,12 @@ discard block |
||
171 | 171 | $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name')); |
172 | 172 | } |
173 | 173 | |
174 | - echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName . 'Icon" src="../assets/images/icons/minus.gif" /> ' . $titleOfForm . '</a></legend><div id="' . $permName . '">'; |
|
175 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
174 | + echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName.'Icon" src="../assets/images/icons/minus.gif" /> '.$titleOfForm.'</a></legend><div id="'.$permName.'">'; |
|
175 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
176 | 176 | echo $permDesc; |
177 | 177 | echo '</fieldset>'; |
178 | 178 | if ($catHandler->getCount()) { |
179 | - echo $form->render() . '<br />'; |
|
179 | + echo $form->render().'<br />'; |
|
180 | 180 | } else { |
181 | 181 | redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false); |
182 | 182 | } |
@@ -194,12 +194,12 @@ discard block |
||
194 | 194 | $form->addItem($cat->getVar('cat_id'), $cat->getVar('cat_name')); |
195 | 195 | } |
196 | 196 | |
197 | - echo '<fieldset id="' . $permName . 'Bookmark"><legend><a href="#' . $permName . 'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\'' . $permName . '\'); toggleIcon(\'' . $permName . 'Icon\');"><img id="' . $permName . 'Icon" src="../assets/images/icons/minus.gif" /> ' . $titleOfForm . '</a></legend><div id="' . $permName . '">'; |
|
198 | - echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">' . _AM_EXTCAL_INFORMATION . '</legend>'; |
|
197 | + echo '<fieldset id="'.$permName.'Bookmark"><legend><a href="#'.$permName.'Bookmark" style="font-weight:bold; color:#990000;" onClick="toggle(\''.$permName.'\'); toggleIcon(\''.$permName.'Icon\');"><img id="'.$permName.'Icon" src="../assets/images/icons/minus.gif" /> '.$titleOfForm.'</a></legend><div id="'.$permName.'">'; |
|
198 | + echo '<fieldset><legend style="font-weight:bold; color:#0A3760;">'._AM_EXTCAL_INFORMATION.'</legend>'; |
|
199 | 199 | echo $permDesc; |
200 | 200 | echo '</fieldset>'; |
201 | 201 | if ($catHandler->getCount()) { |
202 | - echo $form->render() . '<br />'; |
|
202 | + echo $form->render().'<br />'; |
|
203 | 203 | } else { |
204 | 204 | redirect_header('cat.php', 2, _AM_EXTCAL_NOPERMSSET, false); |
205 | 205 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | echo 'toggle(\'extcal_cat_edit\'); toggleIcon (\'extcal_cat_editIcon\');'; |
217 | 217 | echo '</script>'; |
218 | 218 | |
219 | - include_once __DIR__ . '/admin_footer.php'; |
|
219 | + include_once __DIR__.'/admin_footer.php'; |
|
220 | 220 | |
221 | 221 | break; |
222 | 222 |
@@ -17,9 +17,9 @@ discard block |
||
17 | 17 | * @version $Id $ |
18 | 18 | **/ |
19 | 19 | |
20 | -include_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
21 | -include dirname(dirname(dirname(__DIR__))) . '/class/xoopsformloader.php'; |
|
22 | -include_once __DIR__ . '/admin_header.php'; |
|
20 | +include_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
|
21 | +include dirname(dirname(dirname(__DIR__))).'/class/xoopsformloader.php'; |
|
22 | +include_once __DIR__.'/admin_header.php'; |
|
23 | 23 | |
24 | 24 | xoops_cp_header(); |
25 | 25 | |
@@ -27,4 +27,4 @@ discard block |
||
27 | 27 | echo $aboutAdmin->addNavigation(basename(__FILE__)); |
28 | 28 | echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false); |
29 | 29 | |
30 | -include_once __DIR__ . '/admin_footer.php'; |
|
30 | +include_once __DIR__.'/admin_footer.php'; |
@@ -24,5 +24,5 @@ |
||
24 | 24 | // along with this program; if not, write to the Free Software // |
25 | 25 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // |
26 | 26 | // ------------------------------------------------------------------------ // |
27 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
28 | -include XOOPS_ROOT_PATH . '/include/comment_delete.php'; |
|
27 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_delete.php'; |
@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include_once dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
3 | +include_once dirname(dirname(__DIR__)).'/mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $xoopsOption['template_main'] = 'extcal_etablissement.tpl'; |
6 | -include_once __DIR__ . '/header.php'; |
|
6 | +include_once __DIR__.'/header.php'; |
|
7 | 7 | |
8 | 8 | //include_once XOOPS_ROOT_PATH."/modules/extcal/class/etablissement.php"; |
9 | 9 | $etablissementHandler = xoops_getModuleHandler(_EXTCAL_CLS_ETABLISSEMENT, _EXTCAL_MODULE); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $etablissement_exist = $etablissementHandler->getCount($criteria); |
20 | 20 | |
21 | 21 | if ($etablissement_exist == 0) { |
22 | - redirect_header(XOOPS_URL . '/modules/extcal/index.php', 3, _NOPERM); |
|
22 | + redirect_header(XOOPS_URL.'/modules/extcal/index.php', 3, _NOPERM); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | $view_etablissement = $etablissementHandler->getEtablissement($etablissement_id, true); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | $edit_delete = ''; |
39 | 39 | if (is_object($xoopsUser) && $isAdmin) { |
40 | - $edit_delete = '<a href="' . XOOPS_URL . '/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id=' . $etablissement_id . '"><img src="' . $pathIcon16 . '/edit.png" width="16px" height="16px" border="0" title="' . _MD_EXTCAL_ETABLISSEMENT_EDIT . '"/></a><a href="' . XOOPS_URL . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id=' . $etablissement_id . '"><img src="' . $pathIcon16 . '/delete.png" width="16px" height="16px" border="0" title="' . _MD_EXTCAL_ETABLISSEMENT_DELETE . '"/></a>'; |
|
40 | + $edit_delete = '<a href="'.XOOPS_URL.'/modules/extcal/admin/etablissement.php?op=edit_etablissement&etablissement_id='.$etablissement_id.'"><img src="'.$pathIcon16.'/edit.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_EDIT.'"/></a><a href="'.XOOPS_URL.'/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src="'.$pathIcon16.'/delete.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_DELETE.'"/></a>'; |
|
41 | 41 | } |
42 | 42 | $xoopsTpl->assign('edit_delete', $edit_delete); |
43 | 43 | |
@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | |
46 | 46 | $date = mktime(0, 0, 0, date('m'), date('d'), date('y')); |
47 | 47 | |
48 | -$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM ' . $xoopsDB->prefix('extcal_event') . " WHERE event_etablissement='" . $etablissement_id . "' AND event_start >='" . $date . "'"); |
|
48 | +$requete = $xoopsDB->query('SELECT event_id, event_title, event_desc, event_picture1, event_start FROM '.$xoopsDB->prefix('extcal_event')." WHERE event_etablissement='".$etablissement_id."' AND event_start >='".$date."'"); |
|
49 | 49 | while ($donnees = $xoopsDB->fetchArray($requete)) { |
50 | 50 | if ($donnees['event_desc'] > 210) { |
51 | 51 | $event_desc = $donnees['event_desc']; |
52 | 52 | } else { |
53 | - $event_desc = substr($donnees['event_desc'], 0, 210) . '...'; |
|
53 | + $event_desc = substr($donnees['event_desc'], 0, 210).'...'; |
|
54 | 54 | } |
55 | 55 | $xoopsTpl->append('events', array( |
56 | 56 | 'event_picture1' => $donnees['event_picture1'], |
@@ -61,4 +61,4 @@ discard block |
||
61 | 61 | } |
62 | 62 | $xoTheme->addScript('browse.php?modules/extcal/assets/js/highslide.js'); |
63 | 63 | $xoTheme->addStylesheet('browse.php?modules/extcal/assets/js/highslide.css'); |
64 | -include_once XOOPS_ROOT_PATH . '/footer.php'; |
|
64 | +include_once XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,17 +1,17 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
3 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = array('view' => _EXTCAL_NAV_AGENDA_DAY, 'file' => _EXTCAL_FILE_AGENDA_DAY); |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
7 | -include_once __DIR__ . '/header.php'; |
|
7 | +include_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>"; |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | 'cat' => $cat, |
44 | 44 | 'nbJours' => $nbJours, |
45 | 45 | 'externalKeys' => 'cat_id'); |
46 | -$events = $eventHandler->getEventsOnPeriode($criteres); |
|
46 | +$events = $eventHandler->getEventsOnPeriode($criteres); |
|
47 | 47 | /**********************************************************************/ |
48 | 48 | $eventsArray = $events; |
49 | 49 | $startDay = mktime(0, 0, 0, $month, $day, $year); |
@@ -98,17 +98,17 @@ discard block |
||
98 | 98 | |
99 | 99 | $navig = array( |
100 | 100 | 'prev' => array( |
101 | - 'uri' => 'year=' . $pDayCalObj->thisYear() . '&month=' . $pDayCalObj->thisMonth() . '&day=' . $pDayCalObj->thisDay(), |
|
101 | + 'uri' => 'year='.$pDayCalObj->thisYear().'&month='.$pDayCalObj->thisMonth().'&day='.$pDayCalObj->thisDay(), |
|
102 | 102 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $pDayCalObj->getTimestamp())), |
103 | 103 | 'this' => array( |
104 | - 'uri' => 'year=' . $dayCalObj->thisYear() . '&month=' . $dayCalObj->thisMonth() . '&day=' . $dayCalObj->thisDay(), |
|
104 | + 'uri' => 'year='.$dayCalObj->thisYear().'&month='.$dayCalObj->thisMonth().'&day='.$dayCalObj->thisDay(), |
|
105 | 105 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $dayCalObj->getTimestamp())), |
106 | 106 | 'next' => array( |
107 | - 'uri' => 'year=' . $nDayCalObj->thisYear() . '&month=' . $nDayCalObj->thisMonth() . '&day=' . $nDayCalObj->thisDay(), |
|
107 | + 'uri' => 'year='.$nDayCalObj->thisYear().'&month='.$nDayCalObj->thisMonth().'&day='.$nDayCalObj->thisDay(), |
|
108 | 108 | 'name' => $extcalTimeHandler->getFormatedDate($xoopsModuleConfig['nav_date_day'], $nDayCalObj->getTimestamp()))); |
109 | 109 | |
110 | 110 | // Title of the page |
111 | -$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name') . ' ' . $navig['this']['name']); |
|
111 | +$xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name').' '.$navig['this']['name']); |
|
112 | 112 | |
113 | 113 | // Assigning navig data to the template |
114 | 114 | $xoopsTpl->assign('navig', $navig); |
@@ -148,4 +148,4 @@ discard block |
||
148 | 148 | $xoopsTpl->assign('lang', $lang); |
149 | 149 | $xoopsTpl->assign('view', 'agendaday'); |
150 | 150 | |
151 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
151 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -24,5 +24,5 @@ |
||
24 | 24 | // along with this program; if not, write to the Free Software // |
25 | 25 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // |
26 | 26 | // ------------------------------------------------------------------------ // |
27 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
28 | -include XOOPS_ROOT_PATH . '/include/comment_edit.php'; |
|
27 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_edit.php'; |
@@ -1,19 +1,19 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
3 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | |
6 | 6 | if (!isset($_GET['file'])) { |
7 | 7 | $fileId = 0; |
8 | 8 | } else { |
9 | - $fileId = (int)$_GET['file']; |
|
9 | + $fileId = (int) $_GET['file']; |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE); |
13 | 13 | |
14 | 14 | $file = $fileHandler->getFile($fileId); |
15 | 15 | |
16 | -header('Content-Type: ' . $file->getVar('file_mimetype') . ''); |
|
17 | -header("Content-Disposition: attachment; filename=\"" . $file->getVar('file_nicename') . "\""); |
|
16 | +header('Content-Type: '.$file->getVar('file_mimetype').''); |
|
17 | +header("Content-Disposition: attachment; filename=\"".$file->getVar('file_nicename')."\""); |
|
18 | 18 | |
19 | -readfile(XOOPS_ROOT_PATH . '/uploads/extcal/' . $file->getVar('file_name')); |
|
19 | +readfile(XOOPS_ROOT_PATH.'/uploads/extcal/'.$file->getVar('file_name')); |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined'); |
4 | 4 | |
5 | -include_once XOOPS_ROOT_PATH . '/modules/extcal/class/ExtcalPersistableObjectHandler.php'; |
|
6 | -include_once XOOPS_ROOT_PATH . '/modules/extcal/class/perm.php'; |
|
7 | -include_once XOOPS_ROOT_PATH . '/modules/extcal/class/time.php'; |
|
5 | +include_once XOOPS_ROOT_PATH.'/modules/extcal/class/ExtcalPersistableObjectHandler.php'; |
|
6 | +include_once XOOPS_ROOT_PATH.'/modules/extcal/class/perm.php'; |
|
7 | +include_once XOOPS_ROOT_PATH.'/modules/extcal/class/time.php'; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * Class ExtcalCat |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | if (!$skipPerm) { |
128 | 128 | $this->_addCatPermCriteria($criteriaCompo, $GLOBALS['xoopsUser']); |
129 | 129 | } |
130 | - $ret =& $this->getObjects($criteriaCompo); |
|
130 | + $ret = & $this->getObjects($criteriaCompo); |
|
131 | 131 | if (isset($ret[0])) { |
132 | 132 | return $ret[0]; |
133 | 133 | } else { |
@@ -183,10 +183,10 @@ discard block |
||
183 | 183 | $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view'); |
184 | 184 | $count = count($authorizedAccessCats); |
185 | 185 | if ($count > 0) { |
186 | - $in = '(' . $authorizedAccessCats[0]; |
|
186 | + $in = '('.$authorizedAccessCats[0]; |
|
187 | 187 | array_shift($authorizedAccessCats); |
188 | 188 | foreach ($authorizedAccessCats as $authorizedAccessCat) { |
189 | - $in .= ',' . $authorizedAccessCat; |
|
189 | + $in .= ','.$authorizedAccessCat; |
|
190 | 190 | } |
191 | 191 | $in .= ')'; |
192 | 192 | $criteria->add(new Criteria('cat_id', $in, 'IN')); |