Completed
Push — master ( 5f5d60...a9decc )
by Michael
03:36
created
new_event.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
5
-include_once __DIR__ . '/header.php';
3
+include __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5
+include_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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
etablissement.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once __DIR__ . '/../../mainfile.php';
4
-include_once __DIR__ . '/include/constantes.php';
3
+include_once __DIR__.'/../../mainfile.php';
4
+include_once __DIR__.'/include/constantes.php';
5 5
 $GLOBALS['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
 block discarded – undo
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);
@@ -33,13 +33,13 @@  discard block
 block discarded – undo
33 33
 /* todo a deplacer dans le template JJD */
34 34
 $uid = $xoopsUser ? $xoopsUser->getVar('uid') : 0;
35 35
 global $xoopsModule;
36
-$pathIcon16 =& $xoopsModule->getInfo('icons16');
36
+$pathIcon16 = & $xoopsModule->getInfo('icons16');
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="'
41
-                   . _MD_EXTCAL_ETABLISSEMENT_EDIT . '"/></a><a href="' . XOOPS_URL . '/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id=' . $etablissement_id . '"><img src="' . $pathIcon16
42
-                   . '/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="'
41
+                   . _MD_EXTCAL_ETABLISSEMENT_EDIT.'"/></a><a href="'.XOOPS_URL.'/modules/extcal/admin/etablissement.php?op=delete_etablissement&etablissement_id='.$etablissement_id.'"><img src="'.$pathIcon16
42
+                   . '/delete.png" width="16px" height="16px" border="0" title="'._MD_EXTCAL_ETABLISSEMENT_DELETE.'"/></a>';
43 43
 }
44 44
 $xoopsTpl->assign('edit_delete', $edit_delete);
45 45
 
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 
48 48
 $date = mktime(0, 0, 0, date('m'), date('d'), date('y'));
49 49
 
50
-$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 . "'");
50
+$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."'");
51 51
 while ($donnees = $xoopsDB->fetchArray($requete)) {
52 52
     if ($donnees['event_desc'] > 210) {
53 53
         $event_desc = $donnees['event_desc'];
54 54
     } else {
55
-        $event_desc = substr($donnees['event_desc'], 0, 210) . '...';
55
+        $event_desc = substr($donnees['event_desc'], 0, 210).'...';
56 56
     }
57 57
     $xoopsTpl->append('events', array(
58 58
         'event_picture1' => $donnees['event_picture1'],
@@ -64,4 +64,4 @@  discard block
 block discarded – undo
64 64
 }
65 65
 $xoTheme->addScript('browse.php?modules/extcal/assets/js/highslide.js');
66 66
 $xoTheme->addStylesheet('browse.php?modules/extcal/assets/js/highslide.css');
67
-include_once XOOPS_ROOT_PATH . '/footer.php';
67
+include_once XOOPS_ROOT_PATH.'/footer.php';
Please login to merge, or discard this patch.
include/config.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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>";
Please login to merge, or discard this patch.
include/constantes.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
edit_event.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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';
Please login to merge, or discard this patch.
event.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@  discard block
 block discarded – undo
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
 block discarded – undo
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';
Please login to merge, or discard this patch.
comment_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,5 +24,5 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
class/time.php 1 patch
Spacing   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5
-include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php';
5
+include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php';
6 6
 
7 7
 $moduleDirName = basename(dirname(__DIR__));
8 8
 xoops_loadLanguage('main', $moduleDirName);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function getFormatedDate($format, $timestamp)
92 92
     {
93
-        $patterns     = array(
93
+        $patterns = array(
94 94
             '/January/',
95 95
             '/February/',
96 96
             '/March/',
@@ -143,18 +143,18 @@  discard block
 block discarded – undo
143 143
             _CAL_OCTOBER,
144 144
             _CAL_NOVEMBER,
145 145
             _CAL_DECEMBER,
146
-            substr(_CAL_JANUARY, 0, 3) . ' ',
147
-            substr(_CAL_FEBRUARY, 0, 3) . ' ',
148
-            substr(_CAL_MARCH, 0, 3) . ' ',
149
-            substr(_CAL_APRIL, 0, 3) . ' ',
150
-            substr(_CAL_MAY, 0, 3) . ' ',
151
-            substr(_CAL_JUNE, 0, 3) . ' ',
152
-            substr(_CAL_JULY, 0, 3) . ' ',
153
-            substr(_CAL_AUGUST, 0, 3) . ' ',
154
-            substr(_CAL_SEPTEMBER, 0, 3) . ' ',
155
-            substr(_CAL_OCTOBER, 0, 3) . ' ',
156
-            substr(_CAL_NOVEMBER, 0, 3) . ' ',
157
-            substr(_CAL_DECEMBER, 0, 3) . ' ',
146
+            substr(_CAL_JANUARY, 0, 3).' ',
147
+            substr(_CAL_FEBRUARY, 0, 3).' ',
148
+            substr(_CAL_MARCH, 0, 3).' ',
149
+            substr(_CAL_APRIL, 0, 3).' ',
150
+            substr(_CAL_MAY, 0, 3).' ',
151
+            substr(_CAL_JUNE, 0, 3).' ',
152
+            substr(_CAL_JULY, 0, 3).' ',
153
+            substr(_CAL_AUGUST, 0, 3).' ',
154
+            substr(_CAL_SEPTEMBER, 0, 3).' ',
155
+            substr(_CAL_OCTOBER, 0, 3).' ',
156
+            substr(_CAL_NOVEMBER, 0, 3).' ',
157
+            substr(_CAL_DECEMBER, 0, 3).' ',
158 158
             _CAL_SUNDAY,
159 159
             _CAL_MONDAY,
160 160
             _CAL_TUESDAY,
@@ -162,13 +162,13 @@  discard block
 block discarded – undo
162 162
             _CAL_THURSDAY,
163 163
             _CAL_FRIDAY,
164 164
             _CAL_SATURDAY,
165
-            substr(_CAL_SUNDAY, 0, 3) . ' ',
166
-            substr(_CAL_MONDAY, 0, 3) . ' ',
167
-            substr(_CAL_TUESDAY, 0, 3) . ' ',
168
-            substr(_CAL_WEDNESDAY, 0, 3) . ' ',
169
-            substr(_CAL_THURSDAY, 0, 3) . ' ',
170
-            substr(_CAL_FRIDAY, 0, 3) . ' ',
171
-            substr(_CAL_SATURDAY, 0, 3) . ' ',
165
+            substr(_CAL_SUNDAY, 0, 3).' ',
166
+            substr(_CAL_MONDAY, 0, 3).' ',
167
+            substr(_CAL_TUESDAY, 0, 3).' ',
168
+            substr(_CAL_WEDNESDAY, 0, 3).' ',
169
+            substr(_CAL_THURSDAY, 0, 3).' ',
170
+            substr(_CAL_FRIDAY, 0, 3).' ',
171
+            substr(_CAL_SATURDAY, 0, 3).' ',
172 172
         );
173 173
 
174 174
         return preg_replace($patterns, $replacements, date($format, $timestamp));
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 array_shift($eventOptions);
211 211
                 $day = '';
212 212
                 foreach ($eventOptions as $option) {
213
-                    $day .= ' ' . $daysName[$option] . ', ';
213
+                    $day .= ' '.$daysName[$option].', ';
214 214
                 }
215 215
                 $ret = sprintf(_MD_EXTCAL_RR_WEEKLY, $day, $interval);
216 216
 
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
                 array_shift($eventOptions);
330 330
                 $month = '';
331 331
                 foreach ($eventOptions as $option) {
332
-                    $month .= ' ' . $monthName[$option] . ', ';
332
+                    $month .= ' '.$monthName[$option].', ';
333 333
                 }
334 334
                 $dayString = $day;
335 335
                 if (array_key_exists($day, $monthDays)) {
Please login to merge, or discard this patch.
class/event.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@  discard block
 block discarded – undo
2 2
 
3 3
 // defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
4 4
 
5
-include_once __DIR__ . '/ExtcalPersistableObjectHandler.php';
6
-include_once __DIR__ . '/perm.php';
7
-include_once __DIR__ . '/time.php';
8
-include_once __DIR__ . '/config.php';
9
-include_once __DIR__ . '/extDateTime.php';
10
-include_once __DIR__ . '/utilities.php';
11
-include_once __DIR__ . '/../include/constantes.php';
5
+include_once __DIR__.'/ExtcalPersistableObjectHandler.php';
6
+include_once __DIR__.'/perm.php';
7
+include_once __DIR__.'/time.php';
8
+include_once __DIR__.'/config.php';
9
+include_once __DIR__.'/extDateTime.php';
10
+include_once __DIR__.'/utilities.php';
11
+include_once __DIR__.'/../include/constantes.php';
12 12
 
13 13
 /**
14 14
  * Class ExtcalEvent.
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $this->initVar('event_etablissement', XOBJ_DTYPE_INT, 5, false);
50 50
         $this->initVar('event_icone', XOBJ_DTYPE_TXTBOX, '', false);
51 51
 
52
-        $this->externalKey['cat_id']          = array(
52
+        $this->externalKey['cat_id'] = array(
53 53
             'className'      => 'cat',
54 54
             'getMethodeName' => 'getCat',
55 55
             'keyName'        => 'cat',
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         $eventArray = array();
383 383
 
384 384
         while (list($k, $v) = each($events)) {
385
-            $ordre[] = (int)$v['event_start'];
385
+            $ordre[] = (int) $v['event_start'];
386 386
             $this->formatEventDate($v, $extcalConfig['event_date_week']);
387 387
             //$v['cat']['cat_light_color'] = $v['cat']['cat_color'];
388 388
             $v['cat']['cat_light_color'] = ExtcalUtilities::getLighterColor($v['cat']['cat_color'], _EXTCAL_INFOBULLE_RGB_MIN, _EXTCAL_INFOBULLE_RGB_MAX);
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
 
584 584
         reset($period);
585 585
         foreach ($period as $dt) {
586
-            echo $dt->format("l d-m-Y H:i:s\n") . '<br>';
586
+            echo $dt->format("l d-m-Y H:i:s\n").'<br>';
587 587
         }
588 588
     }
589 589
 
@@ -909,10 +909,10 @@  discard block
 block discarded – undo
909 909
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
910 910
         $count                = count($authorizedAccessCats);
911 911
         if ($count > 0) {
912
-            $in = '(' . $authorizedAccessCats[0];
912
+            $in = '('.$authorizedAccessCats[0];
913 913
             array_shift($authorizedAccessCats);
914 914
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
915
-                $in .= ',' . $authorizedAccessCat;
915
+                $in .= ','.$authorizedAccessCat;
916 916
             }
917 917
             $in .= ')';
918 918
             $criteria->add(new Criteria('cat_id', $in, 'IN'));
@@ -932,10 +932,10 @@  discard block
 block discarded – undo
932 932
         }
933 933
         if (is_array($cats)) {
934 934
             if (array_search(0, $cats) === false) {
935
-                $in = '(' . current($cats);
935
+                $in = '('.current($cats);
936 936
                 array_shift($cats);
937 937
                 foreach ($cats as $cat) {
938
-                    $in .= ',' . $cat;
938
+                    $in .= ','.$cat;
939 939
                 }
940 940
                 $in .= ')';
941 941
                 $criteria->add(new Criteria('cat_id', $in, 'IN'));
@@ -958,7 +958,7 @@  discard block
 block discarded – undo
958 958
         $fileHandler = xoops_getModuleHandler(_EXTCAL_CLS_FILE, _EXTCAL_MODULE);
959 959
 
960 960
         /***************************************************/
961
-        include_once __DIR__ . '/etablissement.php';
961
+        include_once __DIR__.'/etablissement.php';
962 962
         if ($siteSide === 'admin') {
963 963
             $action = 'event.php?op=enreg';
964 964
             $cats   = $catHandler->getAllCat($GLOBALS['xoopsUser'], 'all');
@@ -976,7 +976,7 @@  discard block
 block discarded – undo
976 976
             if ($mode === 'clone') {
977 977
                 $data['event_id'] = 0;
978 978
                 $event->setVar('event_id', 0);
979
-                $newTitle = $event->getVar('event_title') . ' (' . _MD_EXTCAL_CLONE_OF . $data['event_id'] . ')';
979
+                $newTitle = $event->getVar('event_title').' ('._MD_EXTCAL_CLONE_OF.$data['event_id'].')';
980 980
                 $event->setVar('event_title', $newTitle);
981 981
             }
982 982
 
@@ -1160,7 +1160,7 @@  discard block
 block discarded – undo
1160 1160
         $form->addElement($catSelect, true);
1161 1161
         //-----------------------------------------------------------
1162 1162
 
1163
-        $file_path = __DIR__ . '/../assets/css/images';
1163
+        $file_path = __DIR__.'/../assets/css/images';
1164 1164
         $tf        = XoopsLists::getImgListAsArray($file_path);
1165 1165
         array_unshift($tf, _MD_EXTCAL_NONE);
1166 1166
         $xfIcones = new XoopsFormSelect(_MD_EXTCAL_ICONE, 'event_icone', $event_icone, '');
@@ -1265,7 +1265,7 @@  discard block
 block discarded – undo
1265 1265
         if (count($files) > 0) {
1266 1266
             $eventFiles = new ExtcalFormFileCheckBox('', 'filetokeep');
1267 1267
             foreach ($files as $file) {
1268
-                $name = $file['file_nicename'] . ' (<i>' . $file['file_mimetype'] . '</i>) ' . $file['formated_file_size'];
1268
+                $name = $file['file_nicename'].' (<i>'.$file['file_mimetype'].'</i>) '.$file['formated_file_size'];
1269 1269
                 $eventFiles->addOption($file['file_id'], $name);
1270 1270
             }
1271 1271
             $fileElmtTray->addElement($eventFiles);
@@ -1281,7 +1281,7 @@  discard block
 block discarded – undo
1281 1281
         //Picture1
1282 1282
         $file_tray = new XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 1), '');
1283 1283
         if (!empty($event_picture1)) {
1284
-            $file_tray->addElement(new XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/' . $event_picture1 . "' name='image' id='image' alt=''/><br><br>"));
1284
+            $file_tray->addElement(new XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/'.$event_picture1."' name='image' id='image' alt=''/><br><br>"));
1285 1285
             $check_del_img = new XoopsFormCheckBox('', 'delimg_1');
1286 1286
             $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG);
1287 1287
             $file_tray->addElement($check_del_img);
@@ -1292,8 +1292,8 @@  discard block
 block discarded – undo
1292 1292
         }
1293 1293
         $file_img->setExtra("size ='40'");
1294 1294
         $file_tray->addElement($file_img);
1295
-        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(400728 / 1000), 500, 500);
1296
-        $file_label = new XoopsFormLabel('', '<br>' . $msg);
1295
+        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (400728 / 1000), 500, 500);
1296
+        $file_label = new XoopsFormLabel('', '<br>'.$msg);
1297 1297
         $file_tray->addElement($file_label);
1298 1298
         $form->addElement($file_tray);
1299 1299
         $form->addElement(new XoopsFormHidden('file1', $event_picture1));
@@ -1301,7 +1301,7 @@  discard block
 block discarded – undo
1301 1301
         //Picture2
1302 1302
         $file_tray = new XoopsFormElementTray(sprintf(_MD_EXTCAL_FORM_IMG, 2), '');
1303 1303
         if (!empty($event_picture2)) {
1304
-            $file_tray->addElement(new XoopsFormLabel('', "<img src='" . XOOPS_URL . '/uploads/extcal/' . $event_picture2 . "' name='image' id='image' alt=''/><br><br>"));
1304
+            $file_tray->addElement(new XoopsFormLabel('', "<img src='".XOOPS_URL.'/uploads/extcal/'.$event_picture2."' name='image' id='image' alt=''/><br><br>"));
1305 1305
             $check_del_img = new XoopsFormCheckBox('', 'delimg_2');
1306 1306
             $check_del_img->addOption(1, _MD_EXTCAL_DEL_IMG);
1307 1307
             $file_tray->addElement($check_del_img);
@@ -1312,8 +1312,8 @@  discard block
 block discarded – undo
1312 1312
         }
1313 1313
         $file_img->setExtra("size ='40'");
1314 1314
         $file_tray->addElement($file_img);
1315
-        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int)(400728 / 1000), 500, 500);
1316
-        $file_label = new XoopsFormLabel('', '<br>' . $msg);
1315
+        $msg        = sprintf(_MD_EXTCAL_IMG_CONFIG, (int) (400728 / 1000), 500, 500);
1316
+        $file_label = new XoopsFormLabel('', '<br>'.$msg);
1317 1317
         $file_tray->addElement($file_label);
1318 1318
         $form->addElement($file_tray);
1319 1319
         $form->addElement(new XoopsFormHidden('file2', $event_picture2));
@@ -1380,7 +1380,7 @@  discard block
 block discarded – undo
1380 1380
                 $recurRules = 'weekly|';
1381 1381
                 $recurRules .= $parm['rrule_weekly_interval'];
1382 1382
                 foreach ($parm['rrule_weekly_bydays'] as $day) {
1383
-                    $recurRules .= '|' . $day;
1383
+                    $recurRules .= '|'.$day;
1384 1384
                 }
1385 1385
 
1386 1386
                 break;
@@ -1390,11 +1390,11 @@  discard block
 block discarded – undo
1390 1390
                     $parm['rrule_monthly_interval'] = 0;
1391 1391
                 }
1392 1392
                 $recurRules = 'monthly|';
1393
-                $recurRules .= $parm['rrule_monthly_interval'] . '|';
1393
+                $recurRules .= $parm['rrule_monthly_interval'].'|';
1394 1394
                 if ($parm['rrule_monthly_byday'] != '') {
1395 1395
                     $recurRules .= $parm['rrule_monthly_byday'];
1396 1396
                 } else {
1397
-                    $recurRules .= 'MD' . $parm['rrule_bymonthday'];
1397
+                    $recurRules .= 'MD'.$parm['rrule_bymonthday'];
1398 1398
                 }
1399 1399
 
1400 1400
                 break;
@@ -1428,9 +1428,9 @@  discard block
 block discarded – undo
1428 1428
 
1429 1429
                 $recurRules = 'yearly|';
1430 1430
                 $recurRules .= $parm['rrule_yearly_interval'];
1431
-                $recurRules .= '|' . $parm['rrule_yearly_byday'];
1431
+                $recurRules .= '|'.$parm['rrule_yearly_byday'];
1432 1432
                 foreach ($parm['rrule_yearly_bymonths'] as $month) {
1433
-                    $recurRules .= '|' . $month;
1433
+                    $recurRules .= '|'.$month;
1434 1434
                 }
1435 1435
 
1436 1436
                 break;
@@ -2363,10 +2363,10 @@  discard block
 block discarded – undo
2363 2363
         global $xoopsDB;
2364 2364
 
2365 2365
         //echo "<hr>{$andor}-{$limit}-{$offset}-{$userId}-{$user}<br>{$criteresPlus}";
2366
-        $tEvent = $xoopsDB->prefix('extcal_event') . ' AS te';
2367
-        $tCat   = $xoopsDB->prefix('extcal_cat') . ' AS tc';
2366
+        $tEvent = $xoopsDB->prefix('extcal_event').' AS te';
2367
+        $tCat   = $xoopsDB->prefix('extcal_cat').' AS tc';
2368 2368
 
2369
-        $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, ' . 'year(FROM_UNIXTIME(event_start)) AS year,' . 'month(FROM_UNIXTIME(event_start)) AS month,' . 'day(FROM_UNIXTIME(event_start)) AS day' . " FROM {$tEvent}, {$tCat}";
2369
+        $sql = 'SELECT te.*, tc.cat_name , tc.cat_color, '.'year(FROM_UNIXTIME(event_start)) AS year,'.'month(FROM_UNIXTIME(event_start)) AS month,'.'day(FROM_UNIXTIME(event_start)) AS day'." FROM {$tEvent}, {$tCat}";
2370 2370
         //---------------------------------------------------
2371 2371
         $tw   = array();
2372 2372
         $tw[] = 'te.cat_id = tc.cat_id';
@@ -2375,7 +2375,7 @@  discard block
 block discarded – undo
2375 2375
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
2376 2376
         $inCat                = 'te.cat_id IN (0)';
2377 2377
         if (count($authorizedAccessCats) > 0) {
2378
-            $inCat = 'te.cat_id IN (' . implode(',', $authorizedAccessCats) . ')';
2378
+            $inCat = 'te.cat_id IN ('.implode(',', $authorizedAccessCats).')';
2379 2379
         }
2380 2380
         //echo $tw[count($tw)-1];
2381 2381
 
@@ -2411,12 +2411,12 @@  discard block
 block discarded – undo
2411 2411
                 'te.event_address',
2412 2412
                 'tc.cat_name',
2413 2413
             );
2414
-            $t       = array();
2414
+            $t = array();
2415 2415
             for ($i = 0, $count = count($queryarray); $i < $count; ++$i) {
2416 2416
                 $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2417 2417
             }
2418 2418
 
2419
-            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2419
+            $flt = '('.implode(" {$andor} ", $t1).')';
2420 2420
 
2421 2421
             $t = array();
2422 2422
             for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ -2425,10 +2425,10 @@  discard block
 block discarded – undo
2425 2425
 
2426 2426
             $filtre = implode(' OR ', $t);
2427 2427
             $filtre = str_replace('#', '%', $filtre);
2428
-            $tw[]   = '(' . $filtre . ')';
2428
+            $tw[]   = '('.$filtre.')';
2429 2429
         }
2430 2430
 
2431
-        $sql .= ' WHERE ' . implode(' AND ', $tw);
2431
+        $sql .= ' WHERE '.implode(' AND ', $tw);
2432 2432
         //------------------------------------------------------------
2433 2433
         if (count($orderBy) > 0) {
2434 2434
             $t = array();
@@ -2438,7 +2438,7 @@  discard block
 block discarded – undo
2438 2438
                 }
2439 2439
             }
2440 2440
             if (count($t) > 0) {
2441
-                $sql .= ' ORDER BY ' . implode(',', $t);
2441
+                $sql .= ' ORDER BY '.implode(',', $t);
2442 2442
             }
2443 2443
         }
2444 2444
 
@@ -2471,7 +2471,7 @@  discard block
 block discarded – undo
2471 2471
         $i = 0;
2472 2472
         while ($myrow = $xoopsDB->fetchArray($result)) {
2473 2473
             $ret[$i]['image'] = 'assets/images/icons/extcal.gif';
2474
-            $ret[$i]['link']  = 'event.php?event=' . $myrow['event_id'];
2474
+            $ret[$i]['link']  = 'event.php?event='.$myrow['event_id'];
2475 2475
             $ret[$i]['title'] = $myrow['event_title'];
2476 2476
             $ret[$i]['time']  = $myrow['event_submitdate'];
2477 2477
             $ret[$i]['uid']   = $myrow['event_submitter'];
@@ -2511,23 +2511,23 @@  discard block
 block discarded – undo
2511 2511
         //        }
2512 2512
         $tEvent = $xoopsDB->prefix('extcal_event');
2513 2513
         $tCat   = $xoopsDB->prefix('extcal_cat');
2514
-        $sql    = "SELECT {$tEvent}.*, {$tCat}.cat_name AS categorie, {$tCat}.cat_color " . " FROM {$tEvent}, {$tCat}" . " WHERE {$tEvent}.cat_id = {$tCat}.cat_id AND event_approved = '1'";
2514
+        $sql    = "SELECT {$tEvent}.*, {$tCat}.cat_name AS categorie, {$tCat}.cat_color "." FROM {$tEvent}, {$tCat}"." WHERE {$tEvent}.cat_id = {$tCat}.cat_id AND event_approved = '1'";
2515 2515
 
2516 2516
         $authorizedAccessCats = $this->_extcalPerm->getAuthorizedCat($user, 'extcal_cat_view');
2517 2517
         $count                = count($authorizedAccessCats);
2518 2518
         if ($count > 0) {
2519
-            $in = '(' . $authorizedAccessCats[0];
2519
+            $in = '('.$authorizedAccessCats[0];
2520 2520
             array_shift($authorizedAccessCats);
2521 2521
             foreach ($authorizedAccessCats as $authorizedAccessCat) {
2522
-                $in .= ',' . $authorizedAccessCat;
2522
+                $in .= ','.$authorizedAccessCat;
2523 2523
             }
2524 2524
             $in .= ')';
2525 2525
         } else {
2526 2526
             $in = '(0)';
2527 2527
         }
2528
-        $sql .= " AND {$tEvent}.cat_id IN " . $in . '';
2528
+        $sql .= " AND {$tEvent}.cat_id IN ".$in.'';
2529 2529
         if ($userId != 0) {
2530
-            $sql .= " AND event_submitter = '" . $userId . "'";
2530
+            $sql .= " AND event_submitter = '".$userId."'";
2531 2531
         }
2532 2532
 
2533 2533
         //echoArray($queryarray,false);
@@ -2547,7 +2547,7 @@  discard block
 block discarded – undo
2547 2547
                 $t1[] = " %1\$s LIKE '#{$queryarray[$i]}#' ";
2548 2548
             }
2549 2549
 
2550
-            $flt = '(' . implode(" {$andor} ", $t1) . ')';
2550
+            $flt = '('.implode(" {$andor} ", $t1).')';
2551 2551
 
2552 2552
             $t = array();
2553 2553
             for ($h = 0, $count = count($tFields); $h < $count; ++$h) {
@@ -2560,7 +2560,7 @@  discard block
 block discarded – undo
2560 2560
         }
2561 2561
 
2562 2562
         if ($criteresPlus != '') {
2563
-            $sql .= ' AND ' . $criteresPlus;
2563
+            $sql .= ' AND '.$criteresPlus;
2564 2564
         }
2565 2565
         $sql .= ' ORDER BY event_id DESC';
2566 2566
 
@@ -2570,7 +2570,7 @@  discard block
 block discarded – undo
2570 2570
         if ($xoopsSearch) {
2571 2571
             while ($myrow = $xoopsDB->fetchArray($result)) {
2572 2572
                 $ret[$i]['image'] = 'assets/images/icons/extcal.gif';
2573
-                $ret[$i]['link']  = 'event.php?event=' . $myrow['event_id'];
2573
+                $ret[$i]['link']  = 'event.php?event='.$myrow['event_id'];
2574 2574
                 $ret[$i]['title'] = $myrow['event_title'];
2575 2575
                 $ret[$i]['time']  = $myrow['event_submitdate'];
2576 2576
                 $ret[$i]['uid']   = $myrow['event_submitter'];
Please login to merge, or discard this patch.