Completed
Push — master ( ec1681...68c045 )
by Michael
02:41
created
class/form/formfilecheckbox.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 block discarded – undo
43 43
     {
44 44
         $ret = '';
45 45
         if (count($this->getOptions()) > 1 && substr($this->getName(), -2, 2) !== '[]') {
46
-            $newname = $this->getName() . '[]';
46
+            $newname = $this->getName().'[]';
47 47
             $this->setName($newname);
48 48
         }
49 49
         foreach ($this->getOptions() as $value => $name) {
50
-            $ret .= "<input type='checkbox' name='" . $this->getName() . "' value='" . $value . "'";
50
+            $ret .= "<input type='checkbox' name='".$this->getName()."' value='".$value."'";
51 51
             $ret .= ' checked';
52
-            $ret .= $this->getExtra() . '>' . $name . "<br>\n";
52
+            $ret .= $this->getExtra().'>'.$name."<br>\n";
53 53
         }
54 54
 
55 55
         return $ret;
Please login to merge, or discard this patch.
blocks/category_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /******************************************************/
23 23
 /* Ajour JJD - Evenements par categries               */
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 {
32 32
     global $xoopsUser, $extcalConfig;
33 33
 
34
-    require_once __DIR__ . '/../class/config.php';
34
+    require_once __DIR__.'/../class/config.php';
35 35
 
36 36
     // Retriving module config
37 37
     //     $extcalConfig = ExtcalConfig::getHandler();
@@ -88,22 +88,22 @@  discard block
 block discarded – undo
88 88
 
89 89
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
90 90
 
91
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
92
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
93
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
91
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
92
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
93
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
94 94
     array_shift($options);
95 95
     array_shift($options);
96
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
96
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
97 97
     if (array_search(0, $options) === false) {
98
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
98
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
99 99
     } else {
100
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
100
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
101 101
     }
102 102
     foreach ($cats as $cat) {
103 103
         if (array_search($cat->getVar('cat_id'), $options) === false) {
104
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
104
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
105 105
         } else {
106
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
106
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
107 107
         }
108 108
     }
109 109
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/random_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalRandomShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/new_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalNewShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.
blocks/day_events.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../include/constantes.php';
20
+require_once __DIR__.'/../include/constantes.php';
21 21
 
22 22
 /**
23 23
  * @param $options
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 function bExtcalDayShow($options)
28 28
 {
29
-    require_once __DIR__ . '/../class/config.php';
29
+    require_once __DIR__.'/../class/config.php';
30 30
 
31 31
     // Retriving module config
32 32
     $extcalConfig      = ExtcalConfig::getHandler();
@@ -64,22 +64,22 @@  discard block
 block discarded – undo
64 64
 
65 65
     $cats = $catHandler->getAllCat($xoopsUser, 'extcal_cat_view');
66 66
 
67
-    $form = _MB_EXTCAL_DISPLAY . "&nbsp;\n";
68
-    $form .= '<input name="options[0]" size="5" maxlength="255" value="' . $options[0] . '" type="text">&nbsp;' . _MB_EXTCAL_EVENT . '<br>';
69
-    $form .= _MB_EXTCAL_TITLE_LENGTH . ' : <input name="options[1]" size="5" maxlength="255" value="' . $options[1] . '" type="text"><br>';
67
+    $form = _MB_EXTCAL_DISPLAY."&nbsp;\n";
68
+    $form .= '<input name="options[0]" size="5" maxlength="255" value="'.$options[0].'" type="text">&nbsp;'._MB_EXTCAL_EVENT.'<br>';
69
+    $form .= _MB_EXTCAL_TITLE_LENGTH.' : <input name="options[1]" size="5" maxlength="255" value="'.$options[1].'" type="text"><br>';
70 70
     array_shift($options);
71 71
     array_shift($options);
72
-    $form .= _MB_EXTCAL_CAT_TO_USE . '<br><select name="options[]" multiple="multiple" size="5">';
72
+    $form .= _MB_EXTCAL_CAT_TO_USE.'<br><select name="options[]" multiple="multiple" size="5">';
73 73
     if (array_search(0, $options) === false) {
74
-        $form .= '<option value="0">' . _MB_EXTCAL_ALL_CAT . '</option>';
74
+        $form .= '<option value="0">'._MB_EXTCAL_ALL_CAT.'</option>';
75 75
     } else {
76
-        $form .= '<option value="0" selected="selected">' . _MB_EXTCAL_ALL_CAT . '</option>';
76
+        $form .= '<option value="0" selected="selected">'._MB_EXTCAL_ALL_CAT.'</option>';
77 77
     }
78 78
     foreach ($cats as $cat) {
79 79
         if (array_search($cat->getVar('cat_id'), $options) === false) {
80
-            $form .= '<option value="' . $cat->getVar('cat_id') . '">' . $cat->getVar('cat_name') . '</option>';
80
+            $form .= '<option value="'.$cat->getVar('cat_id').'">'.$cat->getVar('cat_name').'</option>';
81 81
         } else {
82
-            $form .= '<option value="' . $cat->getVar('cat_id') . '" selected="selected">' . $cat->getVar('cat_name') . '</option>';
82
+            $form .= '<option value="'.$cat->getVar('cat_id').'" selected="selected">'.$cat->getVar('cat_name').'</option>';
83 83
         }
84 84
     }
85 85
     $form .= '</select>';
Please login to merge, or discard this patch.
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
-require_once __DIR__ . '/include/constantes.php';
5
-require_once __DIR__ . '/header.php';
3
+include __DIR__.'/../../mainfile.php';
4
+require_once __DIR__.'/include/constantes.php';
5
+require_once __DIR__.'/header.php';
6 6
 
7 7
 // Getting eXtCal object's handler
8 8
 $eventHandler = xoops_getModuleHandler(_EXTCAL_CLS_EVENT, _EXTCAL_MODULE);
@@ -10,7 +10,7 @@  discard block
 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.
include/agenda_fnc.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@  discard block
 block discarded – undo
18 18
 define('_EXTCAL_FORMAT_AGENDA_KEYD', 'Y-m-d');
19 19
 define('_EXTCAL_FORMAT_AGENDA_KEYT', 'H:i');
20 20
 
21
-require_once __DIR__ . '/constantes.php';
22
-require_once __DIR__ . '/../class/utility.php';
21
+require_once __DIR__.'/constantes.php';
22
+require_once __DIR__.'/../class/utility.php';
23 23
 
24 24
 $moduleDirName = basename(dirname(__DIR__));
25 25
 xoops_loadLanguage('main', $moduleDirName);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $tj[$kj]['dayWeek'] = date('w', $tsj);
72 72
         $tj[$kj]['jour']    = $jName[$tj[$kj]['dayWeek']]; //date('l', $tsj);
73 73
         if ($tj[$kj]['dayWeek'] == 0) {
74
-            $tj[$kj]['bg'] = "background='" . XOOPS_URL . "/modules/extcal/assets/images/trame.png'";
74
+            $tj[$kj]['bg'] = "background='".XOOPS_URL."/modules/extcal/assets/images/trame.png'";
75 75
         } else {
76 76
             $tj[$kj]['bg'] = '';
77 77
         }
@@ -151,16 +151,16 @@  discard block
 block discarded – undo
151 151
         $kd     = date(_EXTCAL_FORMAT_AGENDA_KEYD, $ts);
152 152
         $hour   = date('H', $ts);
153 153
         $minute = date('i', $ts);
154
-        $m      = (int)($minute / $mPlage) * $mPlage;
154
+        $m      = (int) ($minute / $mPlage) * $mPlage;
155 155
         //      echo "--->{$minute} / {$mPlage} = {$m}<br>";
156
-        $sMinute = (($m < 10) ? '0' . $m : $m);
156
+        $sMinute = (($m < 10) ? '0'.$m : $m);
157 157
         //$kt = date(_EXTCAL_FORMAT_AGENDA_KEYT, $ts);
158 158
         if ($hour < $hStart) {
159 159
             $kt = $tk0;
160 160
         } elseif ($hour >= ($hEnd + 1)) {
161 161
             $kt = $tk1;
162 162
         } else {
163
-            $kt = $hour . ':' . $sMinute;
163
+            $kt = $hour.':'.$sMinute;
164 164
         }
165 165
 
166 166
         $tAgenda[$kt]['jours'][$kd]['events'][] = $e;
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
             return false;
310 310
     }
311 311
 
312
-    $file   = XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/' . $f;
312
+    $file   = XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/'.$f;
313 313
     $prefix = (defined($name) ? '_MI' : '_MD');
314 314
     require_once $file;
315 315
 }
@@ -449,7 +449,7 @@  discard block
 block discarded – undo
449 449
     //    while (list($k, $v) = each($tNavBar)) {
450 450
     foreach ($tNavBar as $k => $v) {
451 451
         if (isset($tWeight[$k])) {
452
-            $ordre[] = (int)$tWeight[$k]; //ordre defini dans les option du module
452
+            $ordre[] = (int) $tWeight[$k]; //ordre defini dans les option du module
453 453
         } else {
454 454
             $ordre[] = $v['weight']; // ordre par defaut ddefini dans le tableau $tNavBar
455 455
         }
Please login to merge, or discard this patch.
comment_new.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,14 +17,14 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-include __DIR__ . '/../../mainfile.php';
21
-$com_itemid = isset($_GET['com_itemid']) ? (int)$_GET['com_itemid'] : 0;
20
+include __DIR__.'/../../mainfile.php';
21
+$com_itemid = isset($_GET['com_itemid']) ? (int) $_GET['com_itemid'] : 0;
22 22
 if ($com_itemid > 0) {
23 23
     // Get link title
24
-    $sql            = 'SELECT event_title, event_desc FROM ' . $xoopsDB->prefix('extcal_event') . ' WHERE event_id=' . $com_itemid . '';
24
+    $sql            = 'SELECT event_title, event_desc FROM '.$xoopsDB->prefix('extcal_event').' WHERE event_id='.$com_itemid.'';
25 25
     $result         = $xoopsDB->query($sql);
26 26
     $row            = $xoopsDB->fetchArray($result);
27 27
     $com_replytitle = $row['event_title'];
28 28
     $com_replytext  = $row['event_desc'];
29
-    include XOOPS_ROOT_PATH . '/include/comment_new.php';
29
+    include XOOPS_ROOT_PATH.'/include/comment_new.php';
30 30
 }
Please login to merge, or discard this patch.
admin/admin_header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  * @author       XOOPS Development Team,
18 18
  */
19 19
 
20
-require_once __DIR__ . '/../../../include/cp_header.php';
20
+require_once __DIR__.'/../../../include/cp_header.php';
21 21
 require_once $GLOBALS['xoops']->path('www/class/xoopsformloader.php');
22 22
 
23 23
 $moduleDirName = basename(dirname(__DIR__));
Please login to merge, or discard this patch.