@@ -1,34 +1,34 @@ discard block |
||
1 | 1 | <?php |
2 | -include_once XOOPS_ROOT_PATH . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/calendar.php'; |
|
2 | +include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/calendar.php'; |
|
3 | 3 | define('_MD_CLEAR_CRITERIA', 'clear criteria'); |
4 | -define('_MD_EXTCAL_1_FR', '1st ' . _CAL_FRIDAY); |
|
5 | -define('_MD_EXTCAL_1_MO', '1st ' . _CAL_MONDAY); |
|
6 | -define('_MD_EXTCAL_1_SA', '1st ' . _CAL_SATURDAY); |
|
7 | -define('_MD_EXTCAL_1_SU', '1st ' . _CAL_SUNDAY); |
|
8 | -define('_MD_EXTCAL_1_TH', '1st ' . _CAL_THURSDAY); |
|
9 | -define('_MD_EXTCAL_1_TU', '1st ' . _CAL_TUESDAY); |
|
10 | -define('_MD_EXTCAL_1_WE', '1st ' . _CAL_WEDNESDAY); |
|
11 | -define('_MD_EXTCAL_2_FR', '2nd ' . _CAL_FRIDAY); |
|
12 | -define('_MD_EXTCAL_2_MO', '2nd ' . _CAL_MONDAY); |
|
13 | -define('_MD_EXTCAL_2_SA', '2nd ' . _CAL_SATURDAY); |
|
14 | -define('_MD_EXTCAL_2_SU', '2nd ' . _CAL_SUNDAY); |
|
15 | -define('_MD_EXTCAL_2_TH', '2nd ' . _CAL_THURSDAY); |
|
16 | -define('_MD_EXTCAL_2_TU', '2nd ' . _CAL_TUESDAY); |
|
17 | -define('_MD_EXTCAL_2_WE', '2nd ' . _CAL_WEDNESDAY); |
|
18 | -define('_MD_EXTCAL_3_FR', '3rd ' . _CAL_FRIDAY); |
|
19 | -define('_MD_EXTCAL_3_MO', '3rd ' . _CAL_MONDAY); |
|
20 | -define('_MD_EXTCAL_3_SA', '3rd ' . _CAL_SATURDAY); |
|
21 | -define('_MD_EXTCAL_3_SU', '3rd ' . _CAL_SUNDAY); |
|
22 | -define('_MD_EXTCAL_3_TH', '3rd ' . _CAL_THURSDAY); |
|
23 | -define('_MD_EXTCAL_3_TU', '3rd ' . _CAL_TUESDAY); |
|
24 | -define('_MD_EXTCAL_3_WE', '3rd ' . _CAL_WEDNESDAY); |
|
25 | -define('_MD_EXTCAL_4_FR', '4th ' . _CAL_FRIDAY); |
|
26 | -define('_MD_EXTCAL_4_MO', '4th ' . _CAL_MONDAY); |
|
27 | -define('_MD_EXTCAL_4_SA', '4th ' . _CAL_SATURDAY); |
|
28 | -define('_MD_EXTCAL_4_SU', '4th ' . _CAL_SUNDAY); |
|
29 | -define('_MD_EXTCAL_4_TH', '4th ' . _CAL_THURSDAY); |
|
30 | -define('_MD_EXTCAL_4_TU', '4th ' . _CAL_TUESDAY); |
|
31 | -define('_MD_EXTCAL_4_WE', '4th ' . _CAL_WEDNESDAY); |
|
4 | +define('_MD_EXTCAL_1_FR', '1st '._CAL_FRIDAY); |
|
5 | +define('_MD_EXTCAL_1_MO', '1st '._CAL_MONDAY); |
|
6 | +define('_MD_EXTCAL_1_SA', '1st '._CAL_SATURDAY); |
|
7 | +define('_MD_EXTCAL_1_SU', '1st '._CAL_SUNDAY); |
|
8 | +define('_MD_EXTCAL_1_TH', '1st '._CAL_THURSDAY); |
|
9 | +define('_MD_EXTCAL_1_TU', '1st '._CAL_TUESDAY); |
|
10 | +define('_MD_EXTCAL_1_WE', '1st '._CAL_WEDNESDAY); |
|
11 | +define('_MD_EXTCAL_2_FR', '2nd '._CAL_FRIDAY); |
|
12 | +define('_MD_EXTCAL_2_MO', '2nd '._CAL_MONDAY); |
|
13 | +define('_MD_EXTCAL_2_SA', '2nd '._CAL_SATURDAY); |
|
14 | +define('_MD_EXTCAL_2_SU', '2nd '._CAL_SUNDAY); |
|
15 | +define('_MD_EXTCAL_2_TH', '2nd '._CAL_THURSDAY); |
|
16 | +define('_MD_EXTCAL_2_TU', '2nd '._CAL_TUESDAY); |
|
17 | +define('_MD_EXTCAL_2_WE', '2nd '._CAL_WEDNESDAY); |
|
18 | +define('_MD_EXTCAL_3_FR', '3rd '._CAL_FRIDAY); |
|
19 | +define('_MD_EXTCAL_3_MO', '3rd '._CAL_MONDAY); |
|
20 | +define('_MD_EXTCAL_3_SA', '3rd '._CAL_SATURDAY); |
|
21 | +define('_MD_EXTCAL_3_SU', '3rd '._CAL_SUNDAY); |
|
22 | +define('_MD_EXTCAL_3_TH', '3rd '._CAL_THURSDAY); |
|
23 | +define('_MD_EXTCAL_3_TU', '3rd '._CAL_TUESDAY); |
|
24 | +define('_MD_EXTCAL_3_WE', '3rd '._CAL_WEDNESDAY); |
|
25 | +define('_MD_EXTCAL_4_FR', '4th '._CAL_FRIDAY); |
|
26 | +define('_MD_EXTCAL_4_MO', '4th '._CAL_MONDAY); |
|
27 | +define('_MD_EXTCAL_4_SA', '4th '._CAL_SATURDAY); |
|
28 | +define('_MD_EXTCAL_4_SU', '4th '._CAL_SUNDAY); |
|
29 | +define('_MD_EXTCAL_4_TH', '4th '._CAL_THURSDAY); |
|
30 | +define('_MD_EXTCAL_4_TU', '4th '._CAL_TUESDAY); |
|
31 | +define('_MD_EXTCAL_4_WE', '4th '._CAL_WEDNESDAY); |
|
32 | 32 | define('_MD_EXTCAL_ABSENT', 'Absent'); |
33 | 33 | define('_MD_EXTCAL_ACTION_COME', 'Register'); |
34 | 34 | define('_MD_EXTCAL_ACTION_DELEGATION', 'Delegate'); |
@@ -109,13 +109,13 @@ discard block |
||
109 | 109 | define('_MD_EXTCAL_JAN', 'Jan'); |
110 | 110 | define('_MD_EXTCAL_JUL', 'Jul'); |
111 | 111 | define('_MD_EXTCAL_JUN', 'Jun'); |
112 | -define('_MD_EXTCAL_LAST_FR', 'Last ' . _CAL_FRIDAY); |
|
113 | -define('_MD_EXTCAL_LAST_MO', 'Last ' . _CAL_MONDAY); |
|
114 | -define('_MD_EXTCAL_LAST_SA', 'Last ' . _CAL_SATURDAY); |
|
115 | -define('_MD_EXTCAL_LAST_SU', 'Last ' . _CAL_SUNDAY); |
|
116 | -define('_MD_EXTCAL_LAST_TH', 'Last ' . _CAL_THURSDAY); |
|
117 | -define('_MD_EXTCAL_LAST_TU', 'Last ' . _CAL_TUESDAY); |
|
118 | -define('_MD_EXTCAL_LAST_WE', 'Last ' . _CAL_WEDNESDAY); |
|
112 | +define('_MD_EXTCAL_LAST_FR', 'Last '._CAL_FRIDAY); |
|
113 | +define('_MD_EXTCAL_LAST_MO', 'Last '._CAL_MONDAY); |
|
114 | +define('_MD_EXTCAL_LAST_SA', 'Last '._CAL_SATURDAY); |
|
115 | +define('_MD_EXTCAL_LAST_SU', 'Last '._CAL_SUNDAY); |
|
116 | +define('_MD_EXTCAL_LAST_TH', 'Last '._CAL_THURSDAY); |
|
117 | +define('_MD_EXTCAL_LAST_TU', 'Last '._CAL_TUESDAY); |
|
118 | +define('_MD_EXTCAL_LAST_WE', 'Last '._CAL_WEDNESDAY); |
|
119 | 119 | define('_MD_EXTCAL_LIB_COME', 'Register'); |
120 | 120 | define('_MD_EXTCAL_LIB_NONE', 'None'); |
121 | 121 | define('_MD_EXTCAL_LIB_NOTCOME', 'Unsubscribe'); |
@@ -2,13 +2,13 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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']; |