Test Failed
Pull Request — master (#589)
by Richard
08:35
created
htdocs/class/xoopseditor/xoopseditor.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
      */
25 25
     function xoopseditor_get_rootpath()
26 26
     {
27
-        return XOOPS_ROOT_PATH . '/class/xoopseditor';
27
+        return XOOPS_ROOT_PATH.'/class/xoopseditor';
28 28
     }
29 29
 }
30 30
 if (defined('XOOPS_ROOT_PATH')) {
31 31
     return true;
32 32
 }
33 33
 
34
-$mainfile = dirname(dirname(__DIR__)) . '/mainfile.php';
34
+$mainfile = dirname(dirname(__DIR__)).'/mainfile.php';
35 35
 if (DIRECTORY_SEPARATOR !== '/') {
36 36
     $mainfile = str_replace(DIRECTORY_SEPARATOR, '/', $mainfile);
37 37
 }
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/xoopseditor.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         // TODO: switch to property_exists() as of PHP 5.1.0
53 53
         $vars = get_class_vars(__CLASS__);
54 54
         foreach ($configs as $key => $val) {
55
-            if (method_exists($this, 'set' . ucfirst($key))) {
56
-                $this->{'set' . ucfirst($key)}($val);
55
+            if (method_exists($this, 'set'.ucfirst($key))) {
56
+                $this->{'set'.ucfirst($key)}($val);
57 57
             } elseif (array_key_exists("_{$key}", $vars)) {
58 58
                 $this->{"_{$key}"} = $val;
59 59
             } elseif (array_key_exists($key, $vars)) {
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function __construct()
100 100
     {
101
-        $this->root_path = XOOPS_ROOT_PATH . '/class/xoopseditor';
101
+        $this->root_path = XOOPS_ROOT_PATH.'/class/xoopseditor';
102 102
     }
103 103
 
104 104
     /**
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
             $result = array_flip($editor_handler->getList());
158 158
         */
159 159
         if (!isset($this->root_path)) {
160
-            $this->root_path = XOOPS_ROOT_PATH . '/class/xoopseditor';
161
-            $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . '() should not be called statically.');
160
+            $this->root_path = XOOPS_ROOT_PATH.'/class/xoopseditor';
161
+            $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__.'::'.__FUNCTION__.'() should not be called statically.');
162 162
         }
163 163
 
164 164
         xoops_load('XoopsCache');
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
167 167
             $list  = array();
168 168
             $order = array();
169 169
             xoops_load('XoopsLists');
170
-            $_list = XoopsLists::getDirListAsArray($this->root_path . '/');
170
+            $_list = XoopsLists::getDirListAsArray($this->root_path.'/');
171 171
             foreach ($_list as $item) {
172
-                if (file_exists($file = $this->root_path . '/' . $item . '/language/' . $GLOBALS['xoopsConfig']['language'] . '.php')) {
172
+                if (file_exists($file = $this->root_path.'/'.$item.'/language/'.$GLOBALS['xoopsConfig']['language'].'.php')) {
173 173
                     include_once $file;
174
-                } elseif (file_exists($file = $this->root_path . '/' . $item . '/language/english.php')) {
174
+                } elseif (file_exists($file = $this->root_path.'/'.$item.'/language/english.php')) {
175 175
                     include_once $file;
176 176
                 }
177
-                if (file_exists($file = $this->root_path . '/' . $item . '/editor_registry.php')) {
177
+                if (file_exists($file = $this->root_path.'/'.$item.'/editor_registry.php')) {
178 178
                     include $file;
179 179
                     if (empty($config['order'])) {
180 180
                         continue;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function render($editor)
212 212
     {
213
-        trigger_error(__CLASS__ . '::' . __FUNCTION__ . '() deprecated', E_USER_WARNING);
213
+        trigger_error(__CLASS__.'::'.__FUNCTION__.'() deprecated', E_USER_WARNING);
214 214
 
215 215
         return $editor->render();
216 216
     }
@@ -246,13 +246,13 @@  discard block
 block discarded – undo
246 246
         if (empty($name) || !array_key_exists($name, $this->getList())) {
247 247
             return $editor;
248 248
         }
249
-        $editor_path = $this->root_path . '/' . $name;
250
-        if (file_exists($file = $editor_path . '/language/' . $GLOBALS['xoopsConfig']['language'] . '.php')) {
249
+        $editor_path = $this->root_path.'/'.$name;
250
+        if (file_exists($file = $editor_path.'/language/'.$GLOBALS['xoopsConfig']['language'].'.php')) {
251 251
             include_once $file;
252
-        } elseif (file_exists($file = $editor_path . '/language/english.php')) {
252
+        } elseif (file_exists($file = $editor_path.'/language/english.php')) {
253 253
             include_once $file;
254 254
         }
255
-        if (file_exists($file = $editor_path . '/editor_registry.php')) {
255
+        if (file_exists($file = $editor_path.'/editor_registry.php')) {
256 256
             include $file;
257 257
         } else {
258 258
             return $editor;
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/dhtmltextarea/editor_registry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 return $config = array(
21 21
     'class'  => 'FormDhtmlTextArea',
22
-    'file'   => XOOPS_ROOT_PATH . '/class/xoopseditor/dhtmltextarea/dhtmltextarea.php',
22
+    'file'   => XOOPS_ROOT_PATH.'/class/xoopseditor/dhtmltextarea/dhtmltextarea.php',
23 23
     'title'  => _XOOPS_EDITOR_DHTMLTEXTAREA,
24 24
     'order'  => 2,
25 25
     'nohtml' => 1);
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/dhtmltextarea/dhtmltextarea.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     public function __construct($options = array())
47 47
     {
48 48
         parent::__construct($options);
49
-        $this->rootPath = '/class/xoopseditor/' . basename(__DIR__);
49
+        $this->rootPath = '/class/xoopseditor/'.basename(__DIR__);
50 50
         $hiddenText     = isset($this->configs['hiddenText']) ? $this->configs['hiddenText'] : $this->_hiddenText;
51 51
         xoops_load('XoopsFormDhtmlTextArea');
52 52
         $this->renderer = new XoopsFormDhtmlTextArea('', $this->getName(), $this->getValue(), $this->getRows(), $this->getCols(), $hiddenText, $this->configs);
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/tinymce/editor_registry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 return $config = array(
14 14
     'name' => 'tinymce',
15 15
     'class' => 'XoopsFormTinymce',
16
-    'file' => XOOPS_ROOT_PATH . '/class/xoopseditor/tinymce/formtinymce.php',
16
+    'file' => XOOPS_ROOT_PATH.'/class/xoopseditor/tinymce/formtinymce.php',
17 17
     'title' => _XOOPS_EDITOR_TINYMCE,
18 18
     'order' => 5,
19 19
     'nohtml' => 0);
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/tinymce/include/xoopsemotions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
14 14
 
15
-include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
15
+include_once XOOPS_ROOT_PATH.'/modules/system/constants.php';
16 16
 // Add your code here to check access by groups
17 17
 
18 18
 return true;
Please login to merge, or discard this patch.
htdocs/class/xoopseditor/tinymce/tinymce.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct($config)
37 37
     {
38 38
         $this->setConfig($config);
39
-        $this->rootpath                = $this->config['rootpath'] . '/tinymce/jscripts/tiny_mce';
39
+        $this->rootpath                = $this->config['rootpath'].'/tinymce/jscripts/tiny_mce';
40 40
         $this->xoopsPlugins            = $this->get_xoopsPlugins();
41 41
         self::$LastOfElementsTinymce   = $this->config['elements'];
42 42
         self::$ListOfElementsTinymce[] = self::$LastOfElementsTinymce;
@@ -79,11 +79,11 @@  discard block
 block discarded – undo
79 79
 
80 80
         // Load default settings
81 81
         if (!($this->setting = @include($GLOBALS['xoops']->path('var/configs/tinymce.php')))) {
82
-            $this->setting = include __DIR__ . '/settings.php';
82
+            $this->setting = include __DIR__.'/settings.php';
83 83
         }
84 84
 
85 85
         // get editor language (from ...)
86
-        if (isset($this->config['language']) && is_readable(XOOPS_ROOT_PATH . $this->rootpath . '/langs/' . $this->config['language'] . '.js')) {
86
+        if (isset($this->config['language']) && is_readable(XOOPS_ROOT_PATH.$this->rootpath.'/langs/'.$this->config['language'].'.js')) {
87 87
             $this->setting['language'] = $this->config['language'];
88 88
             $configured[]              = 'language';
89 89
         }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $this->setting['content_css'] = implode(',', $this->loadCss());
92 92
         $configured[]                 = 'content_css';
93 93
 
94
-        if (!empty($this->config['theme']) && is_dir(XOOPS_ROOT_PATH . $this->rootpath . '/themes/' . $this->config['theme'])) {
94
+        if (!empty($this->config['theme']) && is_dir(XOOPS_ROOT_PATH.$this->rootpath.'/themes/'.$this->config['theme'])) {
95 95
             $this->setting['theme'] = $this->config['theme'];
96 96
             $configured[]           = 'theme';
97 97
         }
@@ -121,60 +121,60 @@  discard block
 block discarded – undo
121 121
             foreach ($this->config['buttons'] as $button) {
122 122
                 ++$i;
123 123
                 if (isset($button['before'])) {
124
-                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add_before"] = $button['before'];
124
+                    $this->setting['theme_'.$this->setting['theme']."_buttons{$i}_add_before"] = $button['before'];
125 125
                 }
126 126
                 if (isset($button['add'])) {
127
-                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}_add"] = $button['add'];
127
+                    $this->setting['theme_'.$this->setting['theme']."_buttons{$i}_add"] = $button['add'];
128 128
                 }
129 129
                 if (isset($button[''])) {
130
-                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"] = $button[''];
130
+                    $this->setting['theme_'.$this->setting['theme']."_buttons{$i}"] = $button[''];
131 131
                 }
132 132
             }
133 133
             $configured[] = 'buttons';
134 134
 
135 135
             if (isset($this->config['toolbar_location'])) {
136
-                $this->setting['theme_' . $this->setting['theme'] . '_toolbar_location'] = $this->config['toolbar_location'];
136
+                $this->setting['theme_'.$this->setting['theme'].'_toolbar_location'] = $this->config['toolbar_location'];
137 137
                 $configured[]                                                            = 'toolbar_location';
138 138
             } else {
139
-                $this->setting['theme_' . $this->setting['theme'] . '_toolbar_location'] = 'top';
139
+                $this->setting['theme_'.$this->setting['theme'].'_toolbar_location'] = 'top';
140 140
             }
141 141
 
142 142
             if (isset($this->config['toolbar_align'])) {
143
-                $this->setting['theme_' . $this->setting['theme'] . '_toolbar_align'] = $this->config['toolbar_align'];
143
+                $this->setting['theme_'.$this->setting['theme'].'_toolbar_align'] = $this->config['toolbar_align'];
144 144
                 $configured[]                                                         = 'toolbar_align';
145 145
             } else {
146
-                $this->setting['theme_' . $this->setting['theme'] . '_toolbar_align'] = 'left';
146
+                $this->setting['theme_'.$this->setting['theme'].'_toolbar_align'] = 'left';
147 147
             }
148 148
 
149 149
             if (isset($this->config['statusbar_location'])) {
150
-                $this->setting['theme_' . $this->setting['theme'] . '_statusbar_location'] = $this->config['statusbar_location'];
150
+                $this->setting['theme_'.$this->setting['theme'].'_statusbar_location'] = $this->config['statusbar_location'];
151 151
                 $configured[]                                                              = 'statusbar_location';
152 152
             }
153 153
 
154 154
             if (isset($this->config['path_location'])) {
155
-                $this->setting['theme_' . $this->setting['theme'] . '_path_location'] = $this->config['path_location'];
155
+                $this->setting['theme_'.$this->setting['theme'].'_path_location'] = $this->config['path_location'];
156 156
                 $configured[]                                                         = 'path_location';
157 157
             }
158 158
 
159 159
             if (isset($this->config['resize_horizontal'])) {
160
-                $this->setting['theme_' . $this->setting['theme'] . '_resize_horizontal'] = $this->config['resize_horizontal'];
160
+                $this->setting['theme_'.$this->setting['theme'].'_resize_horizontal'] = $this->config['resize_horizontal'];
161 161
                 $configured[]                                                             = 'resize_horizontal';
162 162
             }
163 163
 
164 164
             if (isset($this->config['resizing'])) {
165
-                $this->setting['theme_' . $this->setting['theme'] . '_resizing'] = $this->config['resizing'];
165
+                $this->setting['theme_'.$this->setting['theme'].'_resizing'] = $this->config['resizing'];
166 166
                 $configured[]                                                    = 'resizing';
167 167
             }
168 168
 
169 169
             if (!empty($this->config['fonts'])) {
170
-                $this->setting['theme_' . $this->setting['theme'] . '_fonts'] = $this->config['fonts'];
170
+                $this->setting['theme_'.$this->setting['theme'].'_fonts'] = $this->config['fonts'];
171 171
                 $configured[]                                                 = 'fonts';
172 172
             }
173 173
 
174 174
             for ($i = 1; $i <= 4; ++$i) {
175 175
                 $buttons = array();
176
-                if (isset($this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"])) {
177
-                    $checklist = explode(',', $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"]);
176
+                if (isset($this->setting['theme_'.$this->setting['theme']."_buttons{$i}"])) {
177
+                    $checklist = explode(',', $this->setting['theme_'.$this->setting['theme']."_buttons{$i}"]);
178 178
                     foreach ($checklist as $plugin) {
179 179
                         if (strpos(strtolower($plugin), 'xoops') != false) {
180 180
                             if (in_array($plugin, $this->xoopsPlugins)) {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                             $buttons[] = $plugin;
185 185
                         }
186 186
                     }
187
-                    $this->setting['theme_' . $this->setting['theme'] . "_buttons{$i}"] = implode(',', $buttons);
187
+                    $this->setting['theme_'.$this->setting['theme']."_buttons{$i}"] = implode(',', $buttons);
188 188
                 }
189 189
             }
190 190
         }
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
             $this->setting[$key] = $val;
198 198
         }
199 199
 
200
-        if (!is_dir(XOOPS_ROOT_PATH . $this->rootpath . '/themes/' . $this->setting['theme'] . '/docs/' . $this->setting['language'] . '/')) {
200
+        if (!is_dir(XOOPS_ROOT_PATH.$this->rootpath.'/themes/'.$this->setting['theme'].'/docs/'.$this->setting['language'].'/')) {
201 201
             $this->setting['docs_language'] = 'en';
202 202
         }
203 203
 
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     public function loadPlugins()
214 214
     {
215 215
         $plugins      = array();
216
-        $plugins_list = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . $this->rootpath . '/plugins');
216
+        $plugins_list = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH.$this->rootpath.'/plugins');
217 217
         if (empty($this->setting['plugins'])) {
218 218
             $plugins = $plugins_list;
219 219
         } else {
@@ -236,10 +236,10 @@  discard block
 block discarded – undo
236 236
     public function get_xoopsPlugins()
237 237
     {
238 238
         $xoopsPlugins = array();
239
-        $allplugins   = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH . $this->rootpath . '/plugins');
239
+        $allplugins   = XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH.$this->rootpath.'/plugins');
240 240
         foreach ($allplugins as $plugin) {
241
-            if (strpos(strtolower($plugin), 'xoops') != false && file_exists(XOOPS_ROOT_PATH . $this->config['rootpath'] . "/include/$plugin.php")) {
242
-                if ($right = @include XOOPS_ROOT_PATH . $this->config['rootpath'] . "/include/$plugin.php") {
241
+            if (strpos(strtolower($plugin), 'xoops') != false && file_exists(XOOPS_ROOT_PATH.$this->config['rootpath']."/include/$plugin.php")) {
242
+                if ($right = @include XOOPS_ROOT_PATH.$this->config['rootpath']."/include/$plugin.php") {
243 243
                     $xoopsPlugins[$plugin] = $plugin;
244 244
                 }
245 245
             }
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
         }
264 264
 
265 265
         $css         = array();
266
-        $css[]       = $css_url . '/' . $css_file;
267
-        $css_content = file_get_contents($css_path . '/' . $css_file);
266
+        $css[]       = $css_url.'/'.$css_file;
267
+        $css_content = file_get_contents($css_path.'/'.$css_file);
268 268
 
269 269
         // get all import css files
270 270
         if (preg_match_all("~\@import url\((.*\.css)\);~sUi", $css_content, $matches, PREG_PATTERN_ORDER)) {
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
         $this->init();
287 287
         if (isset($this->setting['elements']) && self::$LastOfElementsTinymce != $this->setting['elements']) {
288
-            $ret = "\n<!-- 'tiny_mce.js' SCRIPT NOT YET " . $this->setting['elements'] . " -->\n"; //debug
288
+            $ret = "\n<!-- 'tiny_mce.js' SCRIPT NOT YET ".$this->setting['elements']." -->\n"; //debug
289 289
 
290 290
             return $ret;
291 291
         } else {
@@ -298,11 +298,11 @@  discard block
 block discarded – undo
298 298
             $callback = '';
299 299
         }
300 300
         if (!empty($this->setting['file_browser_callback'])) {
301
-            $fbc_name = XOOPS_ROOT_PATH . '/class/xoopseditor/tinymce/include/' . $this->setting['file_browser_callback'] . '.js';
301
+            $fbc_name = XOOPS_ROOT_PATH.'/class/xoopseditor/tinymce/include/'.$this->setting['file_browser_callback'].'.js';
302 302
             //suis passé la /lesrevespossibles/x244/class/xoopseditor/tinymce/tinymce/jscripts/include/openFinder.js
303
-            $file_browser_callback = "MyXoopsUrl ='" . XOOPS_URL . "';\n";
303
+            $file_browser_callback = "MyXoopsUrl ='".XOOPS_URL."';\n";
304 304
             $file_browser_callback .= file_get_contents($fbc_name);
305
-            $file_browser_callback .= "\n//suis passé la " . $fbc_name;
305
+            $file_browser_callback .= "\n//suis passé la ".$fbc_name;
306 306
             //unset($this->setting["file_browser_callback"]);
307 307
         } else {
308 308
             $file_browser_callback = '//suis absent';
@@ -350,14 +350,14 @@  discard block
 block discarded – undo
350 350
         if ($isTinyMceJsLoaded) {
351 351
             $ret .= "<!-- 'tiny_mce.js' SCRIPT IS ALREADY LOADED -->\n"; //debug
352 352
         } else {
353
-            $ret .= "<script type='text/javascript' src='" . XOOPS_URL . $this->rootpath . "/tiny_mce.js'></script>\n";
353
+            $ret .= "<script type='text/javascript' src='".XOOPS_URL.$this->rootpath."/tiny_mce.js'></script>\n";
354 354
             $isTinyMceJsLoaded = true;
355 355
         }
356 356
         $ret .= "<script type='text/javascript'>\n";
357 357
         $ret .= "tinyMCE.init({\n";
358 358
         // set options - start
359 359
         foreach ($this->setting as $key => $val) {
360
-            $ret .= $key . ':';
360
+            $ret .= $key.':';
361 361
             if ($val === true) {
362 362
                 $ret .= 'true,';
363 363
             } elseif ($val === false) {
@@ -370,11 +370,11 @@  discard block
 block discarded – undo
370 370
         // set options - end
371 371
         $ret .= "tinymceload: true\n";
372 372
         $ret .= "});\n";
373
-        $ret .= $callback . "\n";
374
-        $ret .= $file_browser_callback . "\n";
373
+        $ret .= $callback."\n";
374
+        $ret .= $file_browser_callback."\n";
375 375
         //$ret .= "function toggleEditor(id) {tinyMCE.execCommand('mceToggleEditor',false, id);}\n";
376 376
         $ret .= "</script>\n";
377
-        $ret .= "<!-- End TinyMce Rendering -->\n";//debug
377
+        $ret .= "<!-- End TinyMce Rendering -->\n"; //debug
378 378
         // create returned string - end
379 379
         return $ret;
380 380
     }
Please login to merge, or discard this patch.
tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsemotions/xoopsemotions.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     $current_path = str_replace(DIRECTORY_SEPARATOR, '/', $current_path);
19 19
 }
20 20
 $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'));
21
-include_once $xoops_root_path . '/mainfile.php';
21
+include_once $xoops_root_path.'/mainfile.php';
22 22
 defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
23 23
 // load mainfile.php - end
24 24
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 xoops_loadLanguage('misc');
32 32
 
33 33
 // include system category definitions - start
34
-include_once XOOPS_ROOT_PATH . '/modules/system/constants.php';
34
+include_once XOOPS_ROOT_PATH.'/modules/system/constants.php';
35 35
 
36 36
 // check user/group
37 37
 $groups        = is_object($GLOBALS['xoopsUser']) ? $GLOBALS['xoopsUser']->getGroups() : array(XOOPS_GROUP_ANONYMOUS);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         redirect_header($current_file, 3, implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
53 53
     }
54 54
     $db = XoopsDatabaseFactory::getDatabaseConnection();
55
-    include_once XOOPS_ROOT_PATH . '/class/uploader.php';
55
+    include_once XOOPS_ROOT_PATH.'/class/uploader.php';
56 56
     $uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH, array(
57 57
         'image/gif',
58 58
         'image/jpeg',
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             $smile_code    = $myts->stripSlashesGPC($_POST['smile_code']);
69 69
             $smile_desc    = $myts->stripSlashesGPC($_POST['smile_desc']);
70 70
             $smile_display = (int)$_POST['smile_display'] > 0 ? 1 : 0;
71
-            $newid         = $db->genId($db->prefix('smilies') . '_id_seq');
71
+            $newid         = $db->genId($db->prefix('smilies').'_id_seq');
72 72
             $sql           = sprintf('INSERT INTO %s (id, code, smile_url, emotion, display) VALUES (%d, %s, %s, %s, %d)', $db->prefix('smiles'), $newid, $db->quoteString($smile_code), $db->quoteString($smile_url), $db->quoteString($smile_desc), $smile_display);
73 73
             if (!$db->query($sql)) {
74 74
                 $err = 'Failed storing smiley data into the database';
@@ -94,10 +94,10 @@  discard block
 block discarded – undo
94 94
 
95 95
 //xoops_header(false);
96 96
 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
97
-echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _LANGCODE . '" lang="' . _LANGCODE . '">';
97
+echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'._LANGCODE.'" lang="'._LANGCODE.'">';
98 98
 echo '<head>';
99
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />';
100
-echo '<meta http-equiv="content-language" content="' . _LANGCODE . '" />';
99
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" />';
100
+echo '<meta http-equiv="content-language" content="'._LANGCODE.'" />';
101 101
 ?>
102 102
 <head>
103 103
     <title>{#xoopsemotions_dlg.title}</title>
@@ -141,22 +141,22 @@  discard block
 block discarded – undo
141 141
     <div id="emotionsbrowser_panel" class="panel current" style="overflow:auto;">
142 142
         <?php
143 143
         if ($smiles = $_SESSION['XoopsEmotions']) {
144
-            echo '<div><strong>' . _MSC_CLICKASMILIE . '</strong></div>';
144
+            echo '<div><strong>'._MSC_CLICKASMILIE.'</strong></div>';
145 145
             echo "<div class='xoopsEmotions'>";
146 146
             $count = count($smiles);
147 147
 
148 148
             for ($i = 0; $i < $count; ++$i) {
149 149
                 if ($op == '') {
150 150
                     if ($smiles[$i]['display']) {
151
-                        echo '<img class="xoopsEmotions" onclick="XoopsemotionsDialog.insert(this);" src="' . XOOPS_UPLOAD_URL . '/' . $smiles[$i]['smile_url'] . '" alt="' . $myts->htmlspecialchars($smiles[$i]['emotion']) . '" title="' . $myts->htmlspecialchars($smiles[$i]['emotion']) . '" />';
151
+                        echo '<img class="xoopsEmotions" onclick="XoopsemotionsDialog.insert(this);" src="'.XOOPS_UPLOAD_URL.'/'.$smiles[$i]['smile_url'].'" alt="'.$myts->htmlspecialchars($smiles[$i]['emotion']).'" title="'.$myts->htmlspecialchars($smiles[$i]['emotion']).'" />';
152 152
                     }
153 153
                 } else {
154
-                    echo '<img class="xoopsEmotions" onclick="XoopsemotionsDialog.insert(this);" src="' . XOOPS_UPLOAD_URL . '/' . $smiles[$i]['smile_url'] . '" alt="' . $myts->htmlspecialchars($smiles[$i]['emotion']) . '" title="' . $myts->htmlspecialchars($smiles[$i]['emotion']) . '" />';
154
+                    echo '<img class="xoopsEmotions" onclick="XoopsemotionsDialog.insert(this);" src="'.XOOPS_UPLOAD_URL.'/'.$smiles[$i]['smile_url'].'" alt="'.$myts->htmlspecialchars($smiles[$i]['emotion']).'" title="'.$myts->htmlspecialchars($smiles[$i]['emotion']).'" />';
155 155
                 }
156 156
             }
157 157
             if ($op == '') {
158 158
                 echo '<div class="xoopsEmotions">';
159
-                echo '<a class="xoopsEmotions" href="' . $current_file . '?op=' . _MORE . '">' . _MORE . '</a>';
159
+                echo '<a class="xoopsEmotions" href="'.$current_file.'?op='._MORE.'">'._MORE.'</a>';
160 160
                 echo '</div>';
161 161
             }
162 162
             echo '</div>';
@@ -172,15 +172,15 @@  discard block
 block discarded – undo
172 172
     <div id="emotionsadmin_panel" class="panel" style="overflow:auto;">
173 173
         <?php
174 174
         if ($admin) {
175
-            include_once XOOPS_ROOT_PATH . '/class/xoopsformloader.php';
175
+            include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php';
176 176
 
177 177
             $smile_form = new XoopsThemeForm(_AM_ADDSMILE, 'smileform', $current_file, 'post', true);
178 178
             $smile_form->setExtra('enctype="multipart/form-data"');
179 179
             $smile_form->addElement(new XoopsFormText(_AM_SMILECODE, 'smile_code', 26, 25, ''), true);
180 180
             $smile_form->addElement(new XoopsFormText(_AM_SMILEEMOTION, 'smile_desc', 26, 25, ''), true);
181 181
             $smile_select = new XoopsFormFile('', 'smile_url', 5000000);
182
-            $smile_label  = new XoopsFormLabel('', '<img src="' . XOOPS_UPLOAD_URL . '/blank.gif" alt="" />');
183
-            $smile_tray   = new XoopsFormElementTray(_IMAGEFILE . ':', '&nbsp;');
182
+            $smile_label  = new XoopsFormLabel('', '<img src="'.XOOPS_UPLOAD_URL.'/blank.gif" alt="" />');
183
+            $smile_tray   = new XoopsFormElementTray(_IMAGEFILE.':', '&nbsp;');
184 184
             $smile_tray->addElement($smile_select);
185 185
             $smile_tray->addElement($smile_label);
186 186
             $smile_form->addElement($smile_tray);
Please login to merge, or discard this patch.
tinymce/tinymce/jscripts/tiny_mce/plugins/xoopsmlcontent/xoopsmlcontent.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     $current_path = str_replace(DIRECTORY_SEPARATOR, '/', $current_path);
19 19
 }
20 20
 $xoops_root_path = substr($current_path, 0, strpos(strtolower($current_path), '/class/xoopseditor/tinymce/'));
21
-include_once $xoops_root_path . '/mainfile.php';
21
+include_once $xoops_root_path.'/mainfile.php';
22 22
 defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
23 23
 // load mainfile.php - end
24 24
 
@@ -28,21 +28,21 @@  discard block
 block discarded – undo
28 28
 
29 29
     $time = time();
30 30
     if (!isset($_SESSION['XoopsMLcontent']) && @$_SESSION['XoopsMLcontent_expire'] < $time) {
31
-        include_once XOOPS_ROOT_PATH . '/kernel/module.php';
31
+        include_once XOOPS_ROOT_PATH.'/kernel/module.php';
32 32
         $xlanguage = XoopsModule::getByDirname('xlanguage');
33 33
         if (is_object($xlanguage) && $xlanguage->getVar('isactive')) {
34
-            include_once(XOOPS_ROOT_PATH . '/modules/xlanguage/include/vars.php');
35
-            include_once(XOOPS_ROOT_PATH . '/modules/xlanguage/include/functions.php');
34
+            include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/vars.php');
35
+            include_once(XOOPS_ROOT_PATH.'/modules/xlanguage/include/functions.php');
36 36
             $xlanguage_handler = xoops_getModuleHandler('language', 'xlanguage');
37 37
             $xlanguage_handler->loadConfig();
38
-            $lang_list =& $xlanguage_handler->getAllList();
38
+            $lang_list = & $xlanguage_handler->getAllList();
39 39
 
40 40
             $content .= '<select name="mlanguages" id="mlanguages">';
41 41
             $content .= '<option value="">{#xoopsmlcontent_dlg.sellang}</option>';
42 42
             if (is_array($lang_list) && count($lang_list) > 0) {
43 43
                 foreach (array_keys($lang_list) as $lang_name) {
44
-                    $lang =& $lang_list[$lang_name];
45
-                    $content .= '<option value="' . $lang['base']->getVar('lang_code') . '">' . $lang['base']->getVar('lang_name') . '</option>';
44
+                    $lang = & $lang_list[$lang_name];
45
+                    $content .= '<option value="'.$lang['base']->getVar('lang_code').'">'.$lang['base']->getVar('lang_name').'</option>';
46 46
                 }
47 47
             }
48 48
             $content .= '</select>';
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             $content .= '<select name="mlanguages" id="mlanguages">';
55 55
             $content .= '<option value="">{#xoopsmlcontent_dlg.sellang}</option>';
56 56
             foreach ($easiestml_langs as $l => $lang) {
57
-                $content .= '<option value="' . $lang . '">' . $langnames[$l] . '</option>';
57
+                $content .= '<option value="'.$lang.'">'.$langnames[$l].'</option>';
58 58
             }
59 59
             $content .= '</select>';
60 60
         } else {
@@ -68,10 +68,10 @@  discard block
 block discarded – undo
68 68
 }
69 69
 
70 70
 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
71
-echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="' . _LANGCODE . '" lang="' . _LANGCODE . '">';
71
+echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'._LANGCODE.'" lang="'._LANGCODE.'">';
72 72
 echo '<head>';
73
-echo '<meta http-equiv="content-type" content="text/html; charset=' . _CHARSET . '" />';
74
-echo '<meta http-equiv="content-language" content="' . _LANGCODE . '" />';
73
+echo '<meta http-equiv="content-type" content="text/html; charset='._CHARSET.'" />';
74
+echo '<meta http-equiv="content-language" content="'._LANGCODE.'" />';
75 75
 ?>
76 76
 <title>{#xoopsmlcontent_dlg.title}</title>
77 77
 <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
Please login to merge, or discard this patch.