@@ -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 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | 'name' => 'Module Configurator', |
38 | 38 | 'uploadFolders' => array( |
39 | 39 | EXTCAL_UPLOAD_PATH, |
40 | - EXTCAL_UPLOAD_PATH . '/etablissement' |
|
40 | + EXTCAL_UPLOAD_PATH.'/etablissement' |
|
41 | 41 | ), |
42 | 42 | // 'copyFiles' => array( |
43 | 43 | // EXTCAL_UPLOAD_PATH, |
@@ -58,4 +58,4 @@ discard block |
||
58 | 58 | |
59 | 59 | // module information |
60 | 60 | $mod_copyright = "<a href='http://xoops.org' title='XOOPS Project' target='_blank'> |
61 | - <img src='" . EXTCAL_AUTHOR_LOGOIMG . "' alt='XOOPS Project' /></a>"; |
|
61 | + <img src='" . EXTCAL_AUTHOR_LOGOIMG."' alt='XOOPS Project' /></a>"; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | define('_EXTCAL_CLN_EVENT', 'ExtcalEvent'); |
38 | 38 | |
39 | 39 | //------------------------------------------------------------------- |
40 | -define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__ . '/../class/pear'); |
|
40 | +define('_EXTCAL_PEAR_ROOT_DEFAULT', __DIR__.'/../class/pear'); |
|
41 | 41 | //define('_EXTCAL_PEAR_ROOT', 'F:/wamp/www/xfr254b/xoops_lib/Frameworks/pear' ); |
42 | 42 | |
43 | 43 | $pear_path = _EXTCAL_PEAR_ROOT_DEFAULT; |
@@ -72,22 +72,22 @@ discard block |
||
72 | 72 | //} |
73 | 73 | define('_EXTCAL_PEAR_ROOT', $pear_path); |
74 | 74 | |
75 | -define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT . '/Calendar'); |
|
76 | -define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT . '/'); |
|
75 | +define('_EXTCAL_PEAR_CALENDAR_ROOT', _EXTCAL_PEAR_ROOT.'/Calendar'); |
|
76 | +define('CALENDAR_ROOT', _EXTCAL_PEAR_CALENDAR_ROOT.'/'); |
|
77 | 77 | |
78 | 78 | //------------------------------------------------------------------- |
79 | 79 | define('_EXTCAL_SHOW_NO_PICTURE', false); |
80 | 80 | |
81 | 81 | define('_EXTCAL_PATH_HORLOGES', '/modules/extcal/assets/images/horloges/'); |
82 | -define('_EXTCAL_PATH_ICONS16', XOOPS_URL . '/Frameworks/moduleclasses/icons/16/'); |
|
83 | -define('_EXTCAL_PATH_ICONS32', XOOPS_URL . '/Frameworks/moduleclasses/icons/32/'); |
|
84 | -define('_EXTCAL_PATH_FO', XOOPS_URL . '/modules/extcal/'); |
|
85 | -define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO . 'admin/'); |
|
86 | -define('_EXTCAL_PATH_LG', XOOPS_URL . '/modules/extcal/languages/'); |
|
82 | +define('_EXTCAL_PATH_ICONS16', XOOPS_URL.'/Frameworks/moduleclasses/icons/16/'); |
|
83 | +define('_EXTCAL_PATH_ICONS32', XOOPS_URL.'/Frameworks/moduleclasses/icons/32/'); |
|
84 | +define('_EXTCAL_PATH_FO', XOOPS_URL.'/modules/extcal/'); |
|
85 | +define('_EXTCAL_PATH_BO', _EXTCAL_PATH_FO.'admin/'); |
|
86 | +define('_EXTCAL_PATH_LG', XOOPS_URL.'/modules/extcal/languages/'); |
|
87 | 87 | |
88 | 88 | define('_EXTCAL_IMG_INTERVAL', 'interval04.png'); |
89 | -define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16 . _EXTCAL_IMG_INTERVAL); |
|
90 | -define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32 . _EXTCAL_IMG_INTERVAL); |
|
89 | +define('_EXTCAL_IMG_INTERVAL16', _EXTCAL_PATH_ICONS16._EXTCAL_IMG_INTERVAL); |
|
90 | +define('_EXTCAL_IMG_INTERVAL32', _EXTCAL_PATH_ICONS32._EXTCAL_IMG_INTERVAL); |
|
91 | 91 | |
92 | 92 | //define('_EXTCAL_DIRNAME', $xoopsModule->getVar('dirname')); |
93 | 93 | |
@@ -103,22 +103,22 @@ discard block |
||
103 | 103 | define('_EXTCAL_NAV_NEW_EVENT', 'new-event'); |
104 | 104 | |
105 | 105 | define('_EXTCAL_NAV_LIST', |
106 | - _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" |
|
107 | - . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT); |
|
106 | + _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" |
|
107 | + . _EXTCAL_NAV_SEARCH."\n"._EXTCAL_NAV_NEW_EVENT); |
|
108 | 108 | |
109 | 109 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
110 | 110 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
111 | 111 | |
112 | -define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALMONTH . _EXTCAL_SUFFIX_VIEW); |
|
113 | -define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_CALWEEK . _EXTCAL_SUFFIX_VIEW); |
|
114 | -define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_YEAR . _EXTCAL_SUFFIX_VIEW); |
|
115 | -define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_MONTH . _EXTCAL_SUFFIX_VIEW); |
|
116 | -define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
117 | -define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_DAY . _EXTCAL_SUFFIX_VIEW); |
|
118 | -define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_WEEK . _EXTCAL_SUFFIX_VIEW); |
|
119 | -define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_AGENDA_DAY . _EXTCAL_SUFFIX_VIEW); |
|
120 | -define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_SEARCH . _EXTCAL_SUFFIX_VIEW); |
|
121 | -define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW . _EXTCAL_NAV_NEW_EVENT . _EXTCAL_SUFFIX_VIEW); |
|
112 | +define('_EXTCAL_FILE_CALMONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALMONTH._EXTCAL_SUFFIX_VIEW); |
|
113 | +define('_EXTCAL_FILE_CALWEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_CALWEEK._EXTCAL_SUFFIX_VIEW); |
|
114 | +define('_EXTCAL_FILE_YEAR', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_YEAR._EXTCAL_SUFFIX_VIEW); |
|
115 | +define('_EXTCAL_FILE_MONTH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_MONTH._EXTCAL_SUFFIX_VIEW); |
|
116 | +define('_EXTCAL_FILE_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_WEEK._EXTCAL_SUFFIX_VIEW); |
|
117 | +define('_EXTCAL_FILE_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_DAY._EXTCAL_SUFFIX_VIEW); |
|
118 | +define('_EXTCAL_FILE_AGENDA_WEEK', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_WEEK._EXTCAL_SUFFIX_VIEW); |
|
119 | +define('_EXTCAL_FILE_AGENDA_DAY', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_AGENDA_DAY._EXTCAL_SUFFIX_VIEW); |
|
120 | +define('_EXTCAL_FILE_SEARCH', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_SEARCH._EXTCAL_SUFFIX_VIEW); |
|
121 | +define('_EXTCAL_FILE_NEW_EVENT', _EXTCAL_PREFIX_VIEW._EXTCAL_NAV_NEW_EVENT._EXTCAL_SUFFIX_VIEW); |
|
122 | 122 | |
123 | 123 | define('_EXTCAL_MULTILOADER', '/class/xoopsform/multiuploads/formmultiuploads.php'); |
124 | 124 |
@@ -1,11 +1,11 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | 4 | |
5 | -include XOOPS_ROOT_PATH . '/class/xoopsformloader.php'; |
|
6 | -include __DIR__ . '/class/form/extcalform.php'; |
|
7 | -include __DIR__ . '/class/perm.php'; |
|
8 | -include_once __DIR__ . '/include/constantes.php'; |
|
5 | +include XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; |
|
6 | +include __DIR__.'/class/form/extcalform.php'; |
|
7 | +include __DIR__.'/class/perm.php'; |
|
8 | +include_once __DIR__.'/include/constantes.php'; |
|
9 | 9 | |
10 | 10 | $permHandler = ExtcalPerm::getHandler(); |
11 | 11 | $xoopsUser = $xoopsUser ?: null; |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | |
20 | 20 | $params = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT); |
21 | 21 | $GLOBALS['xoopsOption']['template_main'] = "extcal_view_{$params['view']}.tpl"; |
22 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
22 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
23 | 23 | /* ========================================================================== */ |
24 | 24 | |
25 | 25 | // Tooltips include |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | if (!isset($_GET['event'])) { |
30 | 30 | $eventId = 0; |
31 | 31 | } else { |
32 | - $eventId = (int)$_GET['event']; |
|
32 | + $eventId = (int) $_GET['event']; |
|
33 | 33 | } |
34 | 34 | if (!isset($_GET['action'])) { |
35 | 35 | $action = 'edit'; |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | // Getting eXtCal object's handler |
41 | 41 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
42 | 42 | |
43 | -include XOOPS_ROOT_PATH . '/header.php'; |
|
43 | +include XOOPS_ROOT_PATH.'/header.php'; |
|
44 | 44 | |
45 | 45 | // Title of the page |
46 | 46 | $xoopsTpl->assign('xoops_pagetitle', _MI_EXTCAL_SUBMIT_EVENT); |
@@ -49,4 +49,4 @@ discard block |
||
49 | 49 | $form = $eventHandler->getEventForm('user', $action, array('event_id' => $eventId)); |
50 | 50 | $form->display(); |
51 | 51 | |
52 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
52 | +include XOOPS_ROOT_PATH.'/footer.php'; |
@@ -1,27 +1,27 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -include __DIR__ . '/../../mainfile.php'; |
|
4 | -include_once __DIR__ . '/include/constantes.php'; |
|
3 | +include __DIR__.'/../../mainfile.php'; |
|
4 | +include_once __DIR__.'/include/constantes.php'; |
|
5 | 5 | $params = array('view' => _EXTCAL_NAV_NEW_EVENT, 'file' => _EXTCAL_FILE_NEW_EVENT); |
6 | 6 | $GLOBALS['xoopsOption']['template_main'] = 'extcal_event.tpl'; |
7 | -include_once __DIR__ . '/header.php'; |
|
7 | +include_once __DIR__.'/header.php'; |
|
8 | 8 | |
9 | 9 | //exit; |
10 | 10 | |
11 | -include XOOPS_ROOT_PATH . '/include/comment_view.php'; |
|
11 | +include XOOPS_ROOT_PATH.'/include/comment_view.php'; |
|
12 | 12 | |
13 | 13 | if (!isset($_GET['event'])) { |
14 | 14 | $eventId = 0; |
15 | 15 | } else { |
16 | - $eventId = (int)$_GET['event']; |
|
16 | + $eventId = (int) $_GET['event']; |
|
17 | 17 | } |
18 | 18 | $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE); |
19 | 19 | $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE); |
20 | 20 | $eventMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_MEMBER, _EXTCAL_MODULE); |
21 | 21 | $eventNotMemberHandler = xoops_getModuleHandler(_EXTCAL_CLS_NOT_MEMBER, _EXTCAL_MODULE); |
22 | 22 | $permHandler = ExtcalPerm::getHandler(); |
23 | -include_once __DIR__ . '/class/etablissement.php'; |
|
24 | -include_once __DIR__ . '/class/utilities.php'; |
|
23 | +include_once __DIR__.'/class/etablissement.php'; |
|
24 | +include_once __DIR__.'/class/utilities.php'; |
|
25 | 25 | $myts = MyTextSanitizer::getInstance(); // MyTextSanitizer object |
26 | 26 | |
27 | 27 | if (!function_exists('clear_unicodeslashes')) { |
@@ -211,4 +211,4 @@ discard block |
||
211 | 211 | |
212 | 212 | //function XoopsFormDhtmlTextArea($caption, $name, $value = "", $rows = 5, $cols = 50, $hiddentext = "xoopsHiddenText", $options = array()); |
213 | 213 | |
214 | -include XOOPS_ROOT_PATH . '/footer.php'; |
|
214 | +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 __DIR__ . '/../../mainfile.php'; |
|
28 | -include XOOPS_ROOT_PATH . '/include/comment_edit.php'; |
|
27 | +include __DIR__.'/../../mainfile.php'; |
|
28 | +include XOOPS_ROOT_PATH.'/include/comment_edit.php'; |