Test Failed
Pull Request — master (#592)
by Lucio
10:17
created
htdocs/Frameworks/art/functions.config.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         if (isset($GLOBALS['xoopsModule']) && is_object($GLOBALS['xoopsModule']) && $GLOBALS['xoopsModule']->getVar('dirname', 'n') == $dirname) {
31 31
             if (isset($GLOBALS['xoopsModuleConfig'])) {
32
-                $moduleConfig =& $GLOBALS['xoopsModuleConfig'];
32
+                $moduleConfig = & $GLOBALS['xoopsModuleConfig'];
33 33
             } else {
34 34
                 return null;
35 35
             }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 XoopsCache::write("{$dirname}_config", $moduleConfig);
41 41
             }
42 42
         }
43
-        if ($customConfig = @include XOOPS_ROOT_PATH . "/modules/{$dirname}/include/plugin.php") {
43
+        if ($customConfig = @include XOOPS_ROOT_PATH."/modules/{$dirname}/include/plugin.php") {
44 44
             $moduleConfig = array_merge($moduleConfig, $customConfig);
45 45
         }
46 46
 
Please login to merge, or discard this patch.
htdocs/Frameworks/art/functions.admin.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
 if (!defined('FRAMEWORKS_ART_FUNCTIONS_ADMIN')):
14 14
     define('FRAMEWORKS_ART_FUNCTIONS_ADMIN', true);
15 15
 
16
-    defined('FRAMEWORKS_ART_FUNCTIONS_INI') || include_once __DIR__ . '/functions.ini.php';
16
+    defined('FRAMEWORKS_ART_FUNCTIONS_INI') || include_once __DIR__.'/functions.ini.php';
17 17
 
18 18
     /**
19 19
      * @param        $currentoption
@@ -28,18 +28,18 @@  discard block
 block discarded – undo
28 28
         }
29 29
 
30 30
         $breadcrumb  = empty($breadcrumb) ? $adminmenu[$currentoption]['title'] : $breadcrumb;
31
-        $module_link = XOOPS_URL . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname') . '/';
32
-        $image_link  = XOOPS_URL . '/Frameworks/compat/include';
31
+        $module_link = XOOPS_URL.'/modules/'.$GLOBALS['xoopsModule']->getVar('dirname').'/';
32
+        $image_link  = XOOPS_URL.'/Frameworks/compat/include';
33 33
 
34 34
         $adminmenu_text = '
35 35
     <style type="text/css">
36 36
     <!--
37 37
     #buttontop { float: left; width: 100%; background: #e7e7e7; font-size: 93%; line-height: normal; border-top: 1px solid black; border-left: 1px solid black; border-right: 1px solid black; margin: 0;}
38
-    #buttonbar { float: left; width: 100%; background: #e7e7e7 url("' . $image_link . '/modadminbg.gif") repeat-x left bottom; font-size: 93%; line-height: normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;}
38
+    #buttonbar { float: left; width: 100%; background: #e7e7e7 url("' . $image_link.'/modadminbg.gif") repeat-x left bottom; font-size: 93%; line-height: normal; border-left: 1px solid black; border-right: 1px solid black; margin-bottom: 12px;}
39 39
     #buttonbar ul { margin: 0; margin-top: 15px; padding: 10px 10px 0; list-style: none; }
40 40
     #buttonbar li { display: inline; margin: 0; padding: 0; }
41
-    #buttonbar a { float: left; background: url("' . $image_link . '/left_both.gif") no-repeat left top; margin: 0; padding: 0 0 0 9px; border-bottom: 1px solid #000; text-decoration: none; }
42
-    #buttonbar a span { float: left; display: block; background: url("' . $image_link . '/right_both.gif") no-repeat right top; padding: 5px 15px 4px 6px; font-weight: bold; color: #765; }
41
+    #buttonbar a { float: left; background: url("' . $image_link.'/left_both.gif") no-repeat left top; margin: 0; padding: 0 0 0 9px; border-bottom: 1px solid #000; text-decoration: none; }
42
+    #buttonbar a span { float: left; display: block; background: url("' . $image_link.'/right_both.gif") no-repeat right top; padding: 5px 15px 4px 6px; font-weight: bold; color: #765; }
43 43
     /* Commented Backslash Hack hides rule from IE5-Mac \*/
44 44
     #buttonbar a span {float: none;}
45 45
     /* End IE5-Mac hack */
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
      <table style="width: 100%; padding: 0; " cellspacing="0">
55 55
          <tr>
56 56
              <td style="width: 70%; font-size: 10px; text-align: left; color: #2F5376; padding: 0 6px; line-height: 18px;">
57
-                 <a href="../index.php">' . $GLOBALS['xoopsModule']->getVar('name') . '</a>
57
+                 <a href="../index.php">' . $GLOBALS['xoopsModule']->getVar('name').'</a>
58 58
              </td>
59 59
              <td style="width: 30%; font-size: 10px; text-align: right; color: #2F5376; padding: 0 6px; line-height: 18px;">
60
-                 <strong>' . $GLOBALS['xoopsModule']->getVar('name') . '</strong>&nbsp;' . $breadcrumb . '
60
+                 <strong>' . $GLOBALS['xoopsModule']->getVar('name').'</strong>&nbsp;'.$breadcrumb.'
61 61
              </td>
62 62
          </tr>
63 63
      </table>
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
      <ul>
67 67
     ';
68 68
         foreach (array_keys($adminmenu) as $key) {
69
-            $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>') . '<a href="' . $module_link . $adminmenu[$key]['link'] . '"><span>' . $adminmenu[$key]['title'] . '</span></a></li>';
69
+            $adminmenu_text .= (($currentoption == $key) ? '<li class="current">' : '<li>').'<a href="'.$module_link.$adminmenu[$key]['link'].'"><span>'.$adminmenu[$key]['title'].'</span></a></li>';
70 70
         }
71 71
         if ($GLOBALS['xoopsModule']->getVar('hasconfig') || $GLOBALS['xoopsModule']->getVar('hascomments') || $GLOBALS['xoopsModule']->getVar('hasnotification')) {
72
-            $adminmenu_text .= '<li><a href="' . XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $GLOBALS['xoopsModule']->getVar('mid') . '"><span>' . _PREFERENCES . '</span></a></li>';
72
+            $adminmenu_text .= '<li><a href="'.XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$GLOBALS['xoopsModule']->getVar('mid').'"><span>'._PREFERENCES.'</span></a></li>';
73 73
         }
74 74
         $adminmenu_text .= '
75 75
      </ul>
Please login to merge, or discard this patch.
htdocs/Frameworks/art/functions.cache.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         }
29 29
         if (!empty($groups) && is_array($groups)) {
30 30
             sort($groups);
31
-            $contentCacheId = substr(md5(implode(',', $groups) . XOOPS_DB_PASS . XOOPS_DB_NAME), 0, strlen(XOOPS_DB_USER) * 2);
31
+            $contentCacheId = substr(md5(implode(',', $groups).XOOPS_DB_PASS.XOOPS_DB_NAME), 0, strlen(XOOPS_DB_USER) * 2);
32 32
         } else {
33 33
             $contentCacheId = XOOPS_GROUP_ANONYMOUS;
34 34
         }
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
     {
59 59
         global $xoopsModule;
60 60
 
61
-        $name    = $name ? : (string)time();
62
-        $dirname = $dirname ? : (is_object($xoopsModule) ? $xoopsModule->getVar('dirname', 'n') : 'system');
61
+        $name    = $name ?: (string)time();
62
+        $dirname = $dirname ?: (is_object($xoopsModule) ? $xoopsModule->getVar('dirname', 'n') : 'system');
63 63
 
64 64
         xoops_load('XoopsCache');
65 65
         $key = "{$dirname}_{$name}";
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         if (empty($name)) {
111 111
             return $data;
112 112
         }
113
-        $dirname = $dirname ? : (is_object($xoopsModule) ? $xoopsModule->getVar('dirname', 'n') : 'system');
113
+        $dirname = $dirname ?: (is_object($xoopsModule) ? $xoopsModule->getVar('dirname', 'n') : 'system');
114 114
         xoops_load('XoopsCache');
115 115
         $key = "{$dirname}_{$name}";
116 116
 
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
             $pattern = $dirname ? "{$dirname}_{$name}.*\.php" : "[^_]+_{$name}.*\.php";
161 161
             if ($handle = opendir($root_path)) {
162 162
                 while (false !== ($file = readdir($handle))) {
163
-                    if (is_file($root_path . '/' . $file) && preg_match("/{$pattern}$/", $file)) {
164
-                        @unlink($root_path . '/' . $file);
163
+                    if (is_file($root_path.'/'.$file) && preg_match("/{$pattern}$/", $file)) {
164
+                        @unlink($root_path.'/'.$file);
165 165
                     }
166 166
                 }
167 167
                 closedir($handle);
168 168
             }
169 169
         } else {
170
-            $files = (array)glob($root_path . "/*{$dirname}_{$name}*.php");
170
+            $files = (array)glob($root_path."/*{$dirname}_{$name}*.php");
171 171
             foreach ($files as $file) {
172 172
                 @unlink($file);
173 173
             }
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
         }
203 203
         if ($handle = opendir(XOOPS_CACHE_PATH)) {
204 204
             while (false !== ($file = readdir($handle))) {
205
-                if (is_file(XOOPS_CACHE_PATH . '/' . $file) && preg_match($pattern, $file)) {
206
-                    @unlink(XOOPS_CACHE_PATH . '/' . $file);
205
+                if (is_file(XOOPS_CACHE_PATH.'/'.$file) && preg_match($pattern, $file)) {
206
+                    @unlink(XOOPS_CACHE_PATH.'/'.$file);
207 207
                 }
208 208
             }
209 209
             closedir($handle);
Please login to merge, or discard this patch.
htdocs/Frameworks/art/functions.ini.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 if (!defined('FRAMEWORKS_ART_FUNCTIONS_INI')):
18 18
     define('FRAMEWORKS_ART_FUNCTIONS_INI', true);
19 19
 
20
-    define('FRAMEWORKS_ROOT_PATH', XOOPS_ROOT_PATH . '/Frameworks');
20
+    define('FRAMEWORKS_ROOT_PATH', XOOPS_ROOT_PATH.'/Frameworks');
21 21
 
22 22
     /**
23 23
      * Load declaration of an object handler
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
             $handlerClass = 'ArtObject';
35 35
             $fileName     = 'object.php';
36 36
         } else {
37
-            $handlerClass = 'ArtObject' . ucfirst($handler) . 'Handler';
37
+            $handlerClass = 'ArtObject'.ucfirst($handler).'Handler';
38 38
             $fileName     = "object.{$handler}.php";
39 39
         }
40 40
 
41
-        class_exists($handlerClass) || require_once FRAMEWORKS_ROOT_PATH . "/{$dirname}/{$fileName}";
41
+        class_exists($handlerClass) || require_once FRAMEWORKS_ROOT_PATH."/{$dirname}/{$fileName}";
42 42
 
43 43
         return class_exists($handlerClass);
44 44
     }
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
     function load_functions($group = '', $dirname = 'art')
62 62
     {
63 63
         $dirname  = ('' == $dirname) ? 'art' : $dirname;
64
-        $constant = strtoupper("frameworks_{$dirname}_functions" . ($group ? "_{$group}" : ''));
64
+        $constant = strtoupper("frameworks_{$dirname}_functions".($group ? "_{$group}" : ''));
65 65
         if (defined($constant)) {
66 66
             return true;
67 67
         }
68 68
 
69
-        return include_once FRAMEWORKS_ROOT_PATH . "/{$dirname}/functions.{$group}" . (empty($group) ? '' : '.') . 'php';
69
+        return include_once FRAMEWORKS_ROOT_PATH."/{$dirname}/functions.{$group}".(empty($group) ? '' : '.').'php';
70 70
     }
71 71
 
72 72
     /**
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
     function mod_loadFunctions($group = '', $dirname = '')
85 85
     {
86 86
         $dirname  = !empty($dirname) ? $dirname : $GLOBALS['xoopsModule']->getVar('dirname', 'n');
87
-        $constant = strtoupper("{$dirname}_functions" . ($group ? "_{$group}" : '') . '_loaded');
87
+        $constant = strtoupper("{$dirname}_functions".($group ? "_{$group}" : '').'_loaded');
88 88
         if (defined($constant)) {
89 89
             return true;
90 90
         }
91
-        $filename = XOOPS_ROOT_PATH . "/modules/{$dirname}/include/functions.{$group}" . (empty($group) ? '' : '.') . 'php';
91
+        $filename = XOOPS_ROOT_PATH."/modules/{$dirname}/include/functions.{$group}".(empty($group) ? '' : '.').'php';
92 92
 
93 93
         return include_once $filename;
94 94
     }
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
     function mod_loadRenderer($class, $dirname = '')
107 107
     {
108 108
         $dirname  = !empty($dirname) ? $dirname : $GLOBALS['xoopsModule']->getVar('dirname', 'n');
109
-        $renderer = ucfirst($dirname) . ucfirst($class) . 'Renderer';
109
+        $renderer = ucfirst($dirname).ucfirst($class).'Renderer';
110 110
         if (!class_exists($renderer)) {
111
-            require_once XOOPS_ROOT_PATH . "/modules/{$dirname}/class/{$class}.renderer.php";
111
+            require_once XOOPS_ROOT_PATH."/modules/{$dirname}/class/{$class}.renderer.php";
112 112
         }
113 113
         $instance = eval("{$renderer}::instance()");
114 114
 
@@ -128,10 +128,10 @@  discard block
 block discarded – undo
128 128
          */
129 129
         function mod_constant($name)
130 130
         {
131
-            if (!empty($GLOBALS['VAR_PREFIXU']) && @defined($GLOBALS['VAR_PREFIXU'] . '_' . strtoupper($name))) {
132
-                return constant($GLOBALS['VAR_PREFIXU'] . '_' . strtoupper($name));
133
-            } elseif (!empty($GLOBALS['xoopsModule']) && @defined(strtoupper($GLOBALS['xoopsModule']->getVar('dirname', 'n') . '_' . $name))) {
134
-                return constant(strtoupper($GLOBALS['xoopsModule']->getVar('dirname', 'n') . '_' . $name));
131
+            if (!empty($GLOBALS['VAR_PREFIXU']) && @defined($GLOBALS['VAR_PREFIXU'].'_'.strtoupper($name))) {
132
+                return constant($GLOBALS['VAR_PREFIXU'].'_'.strtoupper($name));
133
+            } elseif (!empty($GLOBALS['xoopsModule']) && @defined(strtoupper($GLOBALS['xoopsModule']->getVar('dirname', 'n').'_'.$name))) {
134
+                return constant(strtoupper($GLOBALS['xoopsModule']->getVar('dirname', 'n').'_'.$name));
135 135
             } elseif (defined(strtoupper($name))) {
136 136
                 return constant(strtoupper($name));
137 137
             } else {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
          */
156 156
         function mod_DB_prefix($name, $isRel = false)
157 157
         {
158
-            $relative_name = $GLOBALS['MOD_DB_PREFIX'] . '_' . $name;
158
+            $relative_name = $GLOBALS['MOD_DB_PREFIX'].'_'.$name;
159 159
             if ($isRel) {
160 160
                 return $relative_name;
161 161
             }
Please login to merge, or discard this patch.
htdocs/Frameworks/moduleclasses/moduleadmin/moduleadmin.php 2 patches
Indentation   +54 added lines, -54 removed lines patch added patch discarded remove patch
@@ -507,16 +507,16 @@  discard block
 block discarded – undo
507 507
         $release_date = formatTimestamp(mktime(0, 0, 0, $date[1], $date[2], $date[0]), 's');
508 508
         $module_dir   = $this->_obj->getVar('dirname');
509 509
         $module_info  = "<div id=\"about\"><label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_DESCRIPTION . "</label>\n"
510
-                      . "<text>" . $this->_obj->getInfo('description') . "</text><br>\n"
511
-                      . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_UPDATEDATE . "</label>\n"
512
-                      . "<text class=\"bold\">" . formatTimestamp($this->_obj->getVar('last_update'), 'm') . "</text><br>\n"
513
-                      . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_MODULESTATUS . "</label>\n"
514
-                      . "<text>" . $this->_obj->getInfo('module_status') . "</text><br>\n"
515
-                      . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_WEBSITE . "</label>\n"
516
-                      . "<text><a class=\"tooltip\" href=\"http://" . $this->_obj->getInfo('module_website_url') . "\" rel=\"external\" title=\""
517
-                      . $this->_obj->getInfo('module_website_name') . " - " . $this->_obj->getInfo('module_website_url') . "\">"
518
-                      . $this->_obj->getInfo('module_website_name') . "</a></text>\n"
519
-                      . "</div>\n";
510
+                        . "<text>" . $this->_obj->getInfo('description') . "</text><br>\n"
511
+                        . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_UPDATEDATE . "</label>\n"
512
+                        . "<text class=\"bold\">" . formatTimestamp($this->_obj->getVar('last_update'), 'm') . "</text><br>\n"
513
+                        . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_MODULESTATUS . "</label>\n"
514
+                        . "<text>" . $this->_obj->getInfo('module_status') . "</text><br>\n"
515
+                        . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_WEBSITE . "</label>\n"
516
+                        . "<text><a class=\"tooltip\" href=\"http://" . $this->_obj->getInfo('module_website_url') . "\" rel=\"external\" title=\""
517
+                        . $this->_obj->getInfo('module_website_name') . " - " . $this->_obj->getInfo('module_website_url') . "\">"
518
+                        . $this->_obj->getInfo('module_website_name') . "</a></text>\n"
519
+                        . "</div>\n";
520 520
         $authorArray  = array();
521 521
         foreach ( $author as $k => $aName ) {
522 522
             $authorArray[$k] = ( isset( $nickname[$k] ) && ( '' != $nickname[$k] ) ) ? "{$aName} ({$nickname[$k]})" : "{$aName}";
@@ -527,51 +527,51 @@  discard block
 block discarded – undo
527 527
         $website = preg_match('%^(https?:)?//%', $website) ? $website : 'http://' . $website;
528 528
 
529 529
         $ret = "<table>\n<tr>\n"
530
-             . "<td width=\"50%\">\n"
531
-             . "<table>\n<tr>\n<td style=\"width: 100px;\">\n"
532
-             . "<img src=\"" . XOOPS_URL . '/modules/' . $module_dir . '/' . $this->_obj->getInfo('image') . "\" alt=\"" . $module_dir . "\" style=\"float: left; margin-right: 10px;\">\n"
533
-             . "</td><td>\n"
534
-             . "<div style=\"margin-top: 1px; margin-bottom: 4px; font-size: 18px; line-height: 18px; color: #2F5376; font-weight: bold;\">\n"
535
-             . $this->_obj->getInfo('name') . ' ' . $this->_obj->getInfo('version') . ' ' . $this->_obj->getInfo('module_status') . " ({$release_date})\n"
536
-             . "<br>\n"
537
-             . "</div>\n"
538
-             . "<div style=\"line-height: 16px; font-weight: bold;\">\n"
539
-             . _AM_MODULEADMIN_ABOUT_BY . implode(', ', $authorArray) . "\n"
540
-             . "</div>\n"
541
-             . "<div style=\"line-height: 16px;\">\n"
542
-             . "<a href=\"$license_url\" target=\"_blank\" rel=\"external\">" . $this->_obj->getInfo('license') . "</a>\n"
543
-             . "<br>\n"
544
-             . "<a href=\"$website\" target=\"_blank\">" . $this->_obj->getInfo('website') . "</a>\n"
545
-             . "<br>\n"
546
-             . "<br>\n"
547
-             . "</div>\n"
548
-             . "</td></tr>\n";
530
+                . "<td width=\"50%\">\n"
531
+                . "<table>\n<tr>\n<td style=\"width: 100px;\">\n"
532
+                . "<img src=\"" . XOOPS_URL . '/modules/' . $module_dir . '/' . $this->_obj->getInfo('image') . "\" alt=\"" . $module_dir . "\" style=\"float: left; margin-right: 10px;\">\n"
533
+                . "</td><td>\n"
534
+                . "<div style=\"margin-top: 1px; margin-bottom: 4px; font-size: 18px; line-height: 18px; color: #2F5376; font-weight: bold;\">\n"
535
+                . $this->_obj->getInfo('name') . ' ' . $this->_obj->getInfo('version') . ' ' . $this->_obj->getInfo('module_status') . " ({$release_date})\n"
536
+                . "<br>\n"
537
+                . "</div>\n"
538
+                . "<div style=\"line-height: 16px; font-weight: bold;\">\n"
539
+                . _AM_MODULEADMIN_ABOUT_BY . implode(', ', $authorArray) . "\n"
540
+                . "</div>\n"
541
+                . "<div style=\"line-height: 16px;\">\n"
542
+                . "<a href=\"$license_url\" target=\"_blank\" rel=\"external\">" . $this->_obj->getInfo('license') . "</a>\n"
543
+                . "<br>\n"
544
+                . "<a href=\"$website\" target=\"_blank\">" . $this->_obj->getInfo('website') . "</a>\n"
545
+                . "<br>\n"
546
+                . "<br>\n"
547
+                . "</div>\n"
548
+                . "</td></tr>\n";
549 549
         if ((1 !== preg_match('/[^a-zA-Z0-9]/', $business)) || (false !== checkEmail($business))) {
550 550
             $ret .= "<td colspan=\"2\">"
551
-                  . "<div id=\"about_donate\"><fieldset><legend class=\"label\">Donation</legend><br>\n"
552
-                  . "<div style=\"clear: both; height: 1em;\"></div>\n"
553
-                  . "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_blank\" rel=\external\">\n"
554
-                  . "<input name=\"cmd\" type=\"hidden\" value=\"_donations\">\n"
555
-                  . "<input name=\"business\" type=\"hidden\" value=\"{$business}\">\n"
556
-                  . "<input name=\"currency_code\" type=\"hidden\" value=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_CURRENCY . "\">\n"
557
-                  . "<label class=\"label_after\" for=\"amount\">" . _AM_MODULEADMIN_ABOUT_AMOUNT . "</label><text><input class=\"donate_amount\" type=\"text\" name=\"amount\" value=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_SUGGESTED . "\" title=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_TTL . "\" pattern=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_PATTERN . "\"></text>\n"
558
-                  . "<br>\n"
559
-                  . "<text><input type=\"image\" name=\"submit\" class=\"donate_button\" src=\"https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif\" alt=\"" . _AM_MODULEADMIN_ABOUT_DONATE_IMG_ALT . "\"></text>\n"
560
-                  . "<img alt=\"\" height=\"1\" src=\"https://www.paypalobjects.com/en_US/i/scr/pixel.gif\" style=\"border-width: 0px;\" width=\"1\">\n"
561
-                  . "</form>\n"
562
-                  . "<br>\n"
563
-                  . "</fieldset>\n"
564
-                  . "</div>\n"
565
-                  . "</td>\n</tr>\n";
551
+                    . "<div id=\"about_donate\"><fieldset><legend class=\"label\">Donation</legend><br>\n"
552
+                    . "<div style=\"clear: both; height: 1em;\"></div>\n"
553
+                    . "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_blank\" rel=\external\">\n"
554
+                    . "<input name=\"cmd\" type=\"hidden\" value=\"_donations\">\n"
555
+                    . "<input name=\"business\" type=\"hidden\" value=\"{$business}\">\n"
556
+                    . "<input name=\"currency_code\" type=\"hidden\" value=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_CURRENCY . "\">\n"
557
+                    . "<label class=\"label_after\" for=\"amount\">" . _AM_MODULEADMIN_ABOUT_AMOUNT . "</label><text><input class=\"donate_amount\" type=\"text\" name=\"amount\" value=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_SUGGESTED . "\" title=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_TTL . "\" pattern=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_PATTERN . "\"></text>\n"
558
+                    . "<br>\n"
559
+                    . "<text><input type=\"image\" name=\"submit\" class=\"donate_button\" src=\"https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif\" alt=\"" . _AM_MODULEADMIN_ABOUT_DONATE_IMG_ALT . "\"></text>\n"
560
+                    . "<img alt=\"\" height=\"1\" src=\"https://www.paypalobjects.com/en_US/i/scr/pixel.gif\" style=\"border-width: 0px;\" width=\"1\">\n"
561
+                    . "</form>\n"
562
+                    . "<br>\n"
563
+                    . "</fieldset>\n"
564
+                    . "</div>\n"
565
+                    . "</td>\n</tr>\n";
566 566
         }
567 567
         $ret .= "</table>\n";
568 568
         $this->addInfoBox( _AM_MODULEADMIN_ABOUT_MODULEINFO );
569 569
         $this->addInfoBoxLine( _AM_MODULEADMIN_ABOUT_MODULEINFO, $module_info, '', '', 'information' );
570 570
         $ret .= $this->renderInfoBox()
571
-              . "</td>\n"
572
-              . "<td width=\"50%\">\n"
573
-              . "<fieldset><legend class=\"label\">" . _AM_MODULEADMIN_ABOUT_CHANGELOG . "</legend><br>\n"
574
-              . "<div class=\"txtchangelog\">\n";
571
+                . "</td>\n"
572
+                . "<td width=\"50%\">\n"
573
+                . "<fieldset><legend class=\"label\">" . _AM_MODULEADMIN_ABOUT_CHANGELOG . "</legend><br>\n"
574
+                . "<div class=\"txtchangelog\">\n";
575 575
         $language = empty( $GLOBALS['xoopsConfig']['language'] ) ? 'english' : $GLOBALS['xoopsConfig']['language'];
576 576
         $file     = XOOPS_ROOT_PATH . "/modules/{$module_dir}/language/{$language}/changelog.txt";
577 577
         if ( !is_file( $file ) && ( 'english' !== $language ) ) {
@@ -586,14 +586,14 @@  discard block
 block discarded – undo
586 586
             }
587 587
         }
588 588
         $ret .= "</div>\n"
589
-              . "</fieldset>\n"
590
-              . "</td>\n"
591
-              . "</tr>\n"
592
-              . "</table>\n";
589
+                . "</fieldset>\n"
590
+                . "</td>\n"
591
+                . "</tr>\n"
592
+                . "</table>\n";
593 593
         if ( true === $logo_xoops ) {
594 594
             $ret .= "<div class=\"center\">"
595
-                  . "<a href=\"http://www.xoops.org\" target=\"_blank\"><img src=\"{$path}xoopsmicrobutton.gif\" alt=\"XOOPS\" title=\"XOOPS\"></a>"
596
-                  . "</div>";
595
+                    . "<a href=\"http://www.xoops.org\" target=\"_blank\"><img src=\"{$path}xoopsmicrobutton.gif\" alt=\"XOOPS\" title=\"XOOPS\"></a>"
596
+                    . "</div>";
597 597
         }
598 598
         return $ret;
599 599
     }
Please login to merge, or discard this patch.
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     public function __construct()
34 34
     {
35 35
         global $xoopsModule;
36
-        $this->_obj =& $xoopsModule;
36
+        $this->_obj = & $xoopsModule;
37 37
         $this->loadLanguage();
38 38
     }
39 39
 
@@ -121,8 +121,8 @@  discard block
 block discarded – undo
121 121
     public function loadLanguage()
122 122
     {
123 123
         $language = $GLOBALS['xoopsConfig']['language'];
124
-        if (!file_exists($fileinc = XOOPS_ROOT_PATH . "/Frameworks/moduleclasses/moduleadmin/language/{$language}/main.php")) {
125
-            if (!file_exists($fileinc = XOOPS_ROOT_PATH . '/Frameworks/moduleclasses/moduleadmin/language/english/main.php')) {
124
+        if (!file_exists($fileinc = XOOPS_ROOT_PATH."/Frameworks/moduleclasses/moduleadmin/language/{$language}/main.php")) {
125
+            if (!file_exists($fileinc = XOOPS_ROOT_PATH.'/Frameworks/moduleclasses/moduleadmin/language/english/main.php')) {
126 126
                 return false;
127 127
             }
128 128
         }
@@ -141,26 +141,26 @@  discard block
 block discarded – undo
141 141
     public function renderMenuIndex()
142 142
     {
143 143
         $this->addAssets();
144
-        $path       = XOOPS_URL . '/modules/' . $this->_obj->getVar('dirname') . '/';
145
-        $pathsystem = XOOPS_URL . '/modules/system/';
144
+        $path       = XOOPS_URL.'/modules/'.$this->_obj->getVar('dirname').'/';
145
+        $pathsystem = XOOPS_URL.'/modules/system/';
146 146
         $this->_obj->loadAdminMenu();
147 147
         $ret = "<div class=\"rmmenuicon\">\n";
148 148
         foreach (array_keys($this->_obj->adminmenu) as $i) {
149 149
             if ($this->_obj->adminmenu[$i]['link'] !== 'admin/index.php') {
150
-                $ret .= "<a href=\"../" . $this->_obj->adminmenu[$i]['link'] . "\" title=\"" . (isset($this->_obj->adminmenu[$i]['desc']) ? $this->_obj->adminmenu[$i]['desc'] : '') . "\">";
150
+                $ret .= "<a href=\"../".$this->_obj->adminmenu[$i]['link']."\" title=\"".(isset($this->_obj->adminmenu[$i]['desc']) ? $this->_obj->adminmenu[$i]['desc'] : '')."\">";
151 151
                 //$ret .= "<img src=\"" . $path . $this->_obj->adminmenu[$i]['icon']. "\" alt=\"" . $this->_obj->adminmenu[$i]['title'] . "\" />";
152 152
                 //mb for direct URL access to icons in modules Admin
153
-                $ret .= "<img src=\"" . (filter_var($this->_obj->adminmenu[$i]['icon'], FILTER_VALIDATE_URL) ? $this->_obj->adminmenu[$i]['icon'] : $path . $this->_obj->adminmenu[$i]['icon']) . "\" alt=\"" . $this->_obj->adminmenu[$i]['title'] . "\" />";
153
+                $ret .= "<img src=\"".(filter_var($this->_obj->adminmenu[$i]['icon'], FILTER_VALIDATE_URL) ? $this->_obj->adminmenu[$i]['icon'] : $path.$this->_obj->adminmenu[$i]['icon'])."\" alt=\"".$this->_obj->adminmenu[$i]['title']."\" />";
154 154
 
155
-                $ret .= '<span>' . $this->_obj->adminmenu[$i]['title'] . '</span>';
155
+                $ret .= '<span>'.$this->_obj->adminmenu[$i]['title'].'</span>';
156 156
                 $ret .= '</a>';
157 157
             }
158 158
         }
159 159
         if ($this->_obj->getInfo('help')) {
160 160
             if (substr(XOOPS_VERSION, 0, 9) >= 'XOOPS 2.5') {
161
-                $ret .= "<a href=\"" . $pathsystem . 'help.php?mid=' . $this->_obj->getVar('mid', 's') . '&amp;' . $this->_obj->getInfo('help') . "\" title=\"" . _AM_SYSTEM_HELP . "\">";
162
-                $ret .= "<img width=\"32px\" src=\"" . XOOPS_URL . "/Frameworks/moduleclasses/icons/32/help.png\" alt=\"" . _AM_SYSTEM_HELP . "\" /> ";
163
-                $ret .= '<span>' . _AM_SYSTEM_HELP . '</span>';
161
+                $ret .= "<a href=\"".$pathsystem.'help.php?mid='.$this->_obj->getVar('mid', 's').'&amp;'.$this->_obj->getInfo('help')."\" title=\""._AM_SYSTEM_HELP."\">";
162
+                $ret .= "<img width=\"32px\" src=\"".XOOPS_URL."/Frameworks/moduleclasses/icons/32/help.png\" alt=\""._AM_SYSTEM_HELP."\" /> ";
163
+                $ret .= '<span>'._AM_SYSTEM_HELP.'</span>';
164 164
                 $ret .= '</a>';
165 165
             }
166 166
         }
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     public function renderButton($position = 'right', $delimeter = '&nbsp;')
183 183
     {
184 184
         $this->addAssets();
185
-        $path = XOOPS_URL . '/Frameworks/moduleclasses/icons/32/';
185
+        $path = XOOPS_URL.'/Frameworks/moduleclasses/icons/32/';
186 186
         switch ($position) {
187 187
             default:
188 188
             case 'right':
@@ -198,11 +198,11 @@  discard block
 block discarded – undo
198 198
         }
199 199
         $ret .= "<div class=\"xo-buttons\">\n";
200 200
         foreach (array_keys($this->_itemButton) as $i) {
201
-            $ret .= "<a class='ui-corner-all tooltip' href='" . $this->_itemButton[$i]['link'] . "' title='" . $this->_itemButton[$i]['title'] . "' " . $this->_itemButton[$i]['extra'] . '>';
201
+            $ret .= "<a class='ui-corner-all tooltip' href='".$this->_itemButton[$i]['link']."' title='".$this->_itemButton[$i]['title']."' ".$this->_itemButton[$i]['extra'].'>';
202 202
             $ret .= "<img src='"
203 203
                     //. $path . $this -> _itemButton[$i]['icon']
204 204
                     //mb for direct URL access to icons in modules Admin
205
-                    . (filter_var($this->_itemButton[$i]['icon'], FILTER_VALIDATE_URL) ? $this->_itemButton[$i]['icon'] : $path . $this->_itemButton[$i]['icon']) . "' title='" . $this->_itemButton[$i]['title'] . "' alt='" . $this->_itemButton[$i]['title'] . "' />" . $this->_itemButton[$i]['title'];
205
+                    . (filter_var($this->_itemButton[$i]['icon'], FILTER_VALIDATE_URL) ? $this->_itemButton[$i]['icon'] : $path.$this->_itemButton[$i]['icon'])."' title='".$this->_itemButton[$i]['title']."' alt='".$this->_itemButton[$i]['title']."' />".$this->_itemButton[$i]['title'];
206 206
             $ret .= "</a>\n";
207 207
             $ret .= $delimeter;
208 208
         }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
         $ret = array();
226 226
         $ret['title']        = $title;
227 227
         $ret['link']         = $link;
228
-        $ret['icon']         = $icon . '.png';
228
+        $ret['icon']         = $icon.'.png';
229 229
         $ret['extra']        = $extra;
230 230
         $this->_itemButton[] = $ret;
231 231
 
@@ -249,22 +249,22 @@  discard block
 block discarded – undo
249 249
     public function addConfigBoxLine($value = '', $type = 'default')
250 250
     {
251 251
         $line = '';
252
-        $path = XOOPS_URL . '/Frameworks/moduleclasses/icons/16/';
252
+        $path = XOOPS_URL.'/Frameworks/moduleclasses/icons/16/';
253 253
         switch ($type) {
254 254
             default:
255 255
             case 'default':
256
-                $line .= '<span>' . $value . '</span>';
256
+                $line .= '<span>'.$value.'</span>';
257 257
                 break;
258 258
 
259 259
             case 'folder':
260 260
                 if (!is_dir($value)) {
261 261
                     $line .= "<span style='color : red; font-weight : bold;'>";
262
-                    $line .= "<img src='" . $path . "0.png' >";
262
+                    $line .= "<img src='".$path."0.png' >";
263 263
                     $line .= sprintf(_AM_MODULEADMIN_CONFIG_FOLDERKO, $value);
264 264
                     $line .= "</span>\n";
265 265
                 } else {
266 266
                     $line .= "<span style='color : green;'>";
267
-                    $line .= "<img src='" . $path . "1.png' >";
267
+                    $line .= "<img src='".$path."1.png' >";
268 268
                     $line .= sprintf(_AM_MODULEADMIN_CONFIG_FOLDEROK, $value);
269 269
                     $line .= "</span>\n";
270 270
                 }
@@ -274,12 +274,12 @@  discard block
 block discarded – undo
274 274
                 if (is_dir($value[0])) {
275 275
                     if (substr(decoct(fileperms($value[0])), 2) != $value[1]) {
276 276
                         $line .= "<span style='color : red; font-weight : bold;'>";
277
-                        $line .= "<img src='" . $path . "0.png' >";
277
+                        $line .= "<img src='".$path."0.png' >";
278 278
                         $line .= sprintf(_AM_MODULEADMIN_CONFIG_CHMOD, $value[0], $value[1], substr(decoct(fileperms($value[0])), 2));
279 279
                         $line .= "</span>\n";
280 280
                     } else {
281 281
                         $line .= "<span style='color : green;'>";
282
-                        $line .= "<img src='" . $path . "1.png' >";
282
+                        $line .= "<img src='".$path."1.png' >";
283 283
                         $line .= sprintf(_AM_MODULEADMIN_CONFIG_CHMOD, $value[0], $value[1], substr(decoct(fileperms($value[0])), 2));
284 284
                         $line .= "</span>\n";
285 285
                     }
@@ -318,18 +318,18 @@  discard block
 block discarded – undo
318 318
             $ret .= "</legend>\n";
319 319
 
320 320
             // php version
321
-            $path = XOOPS_URL . '/Frameworks/moduleclasses/icons/16/';
321
+            $path = XOOPS_URL.'/Frameworks/moduleclasses/icons/16/';
322 322
             if ($this->_obj->getInfo('min_php')) {
323 323
                 if (version_compare(phpversion(), $this->_obj->getInfo('min_php'), '<')) {
324
-                    $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_PHP, $this->_obj->getInfo('min_php'), phpversion()) . "</span>\n";
324
+                    $ret .= "<span style='color : red; font-weight : bold;'><img src='".$path."0.png' >".sprintf(_AM_MODULEADMIN_CONFIG_PHP, $this->_obj->getInfo('min_php'), phpversion())."</span>\n";
325 325
                 } else {
326
-                    $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_PHP, $this->_obj->getInfo('min_php'), phpversion()) . "</span>\n";
326
+                    $ret .= "<span style='color : green;'><img src='".$path."1.png' >".sprintf(_AM_MODULEADMIN_CONFIG_PHP, $this->_obj->getInfo('min_php'), phpversion())."</span>\n";
327 327
                 }
328 328
                 $ret .= '<br>';
329 329
             }
330 330
 
331 331
             // Database version
332
-            $path    = XOOPS_URL . '/Frameworks/moduleclasses/icons/16/';
332
+            $path    = XOOPS_URL.'/Frameworks/moduleclasses/icons/16/';
333 333
             $dbarray = $this->_obj->getInfo('min_db');
334 334
 
335 335
             if ($dbarray[XOOPS_DB_TYPE]) {
@@ -366,9 +366,9 @@  discard block
 block discarded – undo
366 366
                     }
367 367
                 }
368 368
                 if ($reqVer > $curVer) {
369
-                    $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(XOOPS_DB_TYPE . ' ' . _AM_MODULEADMIN_CONFIG_DB, $dbRequiredVersion, $dbCurrentVersion) . "</span><br>\n";
369
+                    $ret .= "<span style='color : red; font-weight : bold;'><img src='".$path."0.png' >".sprintf(XOOPS_DB_TYPE.' '._AM_MODULEADMIN_CONFIG_DB, $dbRequiredVersion, $dbCurrentVersion)."</span><br>\n";
370 370
                 } else {
371
-                    $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(strtoupper(XOOPS_DB_TYPE) . ' ' . _AM_MODULEADMIN_CONFIG_DB, $dbRequiredVersion, $dbCurrentVersion) . "</span><br>\n";
371
+                    $ret .= "<span style='color : green;'><img src='".$path."1.png' >".sprintf(strtoupper(XOOPS_DB_TYPE).' '._AM_MODULEADMIN_CONFIG_DB, $dbRequiredVersion, $dbCurrentVersion)."</span><br>\n";
372 372
                 }
373 373
             }
374 374
 
@@ -376,9 +376,9 @@  discard block
 block discarded – undo
376 376
             if ($this->_obj->getInfo('min_xoops')) {
377 377
                 $currentXoopsVersion = strtolower(str_replace('XOOPS ', '', XOOPS_VERSION));
378 378
                 if (version_compare($currentXoopsVersion, $this->_obj->getInfo('min_xoops'), '<')) {
379
-                    $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6, strlen(XOOPS_VERSION) - 6)) . "</span>\n";
379
+                    $ret .= "<span style='color : red; font-weight : bold;'><img src='".$path."0.png' >".sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6, strlen(XOOPS_VERSION) - 6))."</span>\n";
380 380
                 } else {
381
-                    $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6)) . "</span>\n";
381
+                    $ret .= "<span style='color : green;'><img src='".$path."1.png' >".sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6))."</span>\n";
382 382
                 }
383 383
                 $ret .= '<br>';
384 384
             }
@@ -386,9 +386,9 @@  discard block
 block discarded – undo
386 386
             // ModuleAdmin version
387 387
             if ($this->_obj->getInfo('min_admin')) {
388 388
                 if ($this->getVersion() < $this->_obj->getInfo('min_admin')) {
389
-                    $ret .= "<span style='color : red; font-weight : bold;'><img src='" . $path . "0.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_ADMIN, $this->_obj->getInfo('min_admin'), $this->getVersion()) . "</span>\n";
389
+                    $ret .= "<span style='color : red; font-weight : bold;'><img src='".$path."0.png' >".sprintf(_AM_MODULEADMIN_CONFIG_ADMIN, $this->_obj->getInfo('min_admin'), $this->getVersion())."</span>\n";
390 390
                 } else {
391
-                    $ret .= "<span style='color : green;'><img src='" . $path . "1.png' >" . sprintf(_AM_MODULEADMIN_CONFIG_ADMIN, $this->_obj->getInfo('min_admin'), $this->getVersion()) . "</span>\n";
391
+                    $ret .= "<span style='color : green;'><img src='".$path."1.png' >".sprintf(_AM_MODULEADMIN_CONFIG_ADMIN, $this->_obj->getInfo('min_admin'), $this->getVersion())."</span>\n";
392 392
                 }
393 393
                 $ret .= '<br>';
394 394
             }
@@ -451,7 +451,7 @@  discard block
 block discarded – undo
451 451
         switch ($type) {
452 452
             default:
453 453
             case 'default':
454
-                $line .= sprintf($text, "<span style='color : " . $color . "; font-weight : bold;'>" . $value . '</span>');
454
+                $line .= sprintf($text, "<span style='color : ".$color."; font-weight : bold;'>".$value.'</span>');
455 455
                 break;
456 456
 
457 457
             case 'information':
@@ -499,49 +499,49 @@  discard block
 block discarded – undo
499 499
     public function renderAbout($business = '', $logo_xoops = true)
500 500
     {
501 501
         $this->addAssets();
502
-        $path         = XOOPS_URL . '/Frameworks/moduleclasses/icons/32/';
502
+        $path         = XOOPS_URL.'/Frameworks/moduleclasses/icons/32/';
503 503
         $date         = preg_replace('/-\\\/', '/', $this->_obj->getInfo('release_date')); // make format a little more forgiving
504 504
         $date         = explode('/', $date);
505 505
         $author       = explode(',', $this->_obj->getInfo('author'));
506 506
         $nickname     = explode(',', $this->_obj->getInfo('nickname'));
507 507
         $release_date = formatTimestamp(mktime(0, 0, 0, $date[1], $date[2], $date[0]), 's');
508 508
         $module_dir   = $this->_obj->getVar('dirname');
509
-        $module_info  = "<div id=\"about\"><label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_DESCRIPTION . "</label>\n"
510
-                      . "<text>" . $this->_obj->getInfo('description') . "</text><br>\n"
511
-                      . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_UPDATEDATE . "</label>\n"
512
-                      . "<text class=\"bold\">" . formatTimestamp($this->_obj->getVar('last_update'), 'm') . "</text><br>\n"
513
-                      . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_MODULESTATUS . "</label>\n"
514
-                      . "<text>" . $this->_obj->getInfo('module_status') . "</text><br>\n"
515
-                      . "<label class=\"label_after\">" . _AM_MODULEADMIN_ABOUT_WEBSITE . "</label>\n"
516
-                      . "<text><a class=\"tooltip\" href=\"http://" . $this->_obj->getInfo('module_website_url') . "\" rel=\"external\" title=\""
517
-                      . $this->_obj->getInfo('module_website_name') . " - " . $this->_obj->getInfo('module_website_url') . "\">"
518
-                      . $this->_obj->getInfo('module_website_name') . "</a></text>\n"
509
+        $module_info  = "<div id=\"about\"><label class=\"label_after\">"._AM_MODULEADMIN_ABOUT_DESCRIPTION."</label>\n"
510
+                      . "<text>".$this->_obj->getInfo('description')."</text><br>\n"
511
+                      . "<label class=\"label_after\">"._AM_MODULEADMIN_ABOUT_UPDATEDATE."</label>\n"
512
+                      . "<text class=\"bold\">".formatTimestamp($this->_obj->getVar('last_update'), 'm')."</text><br>\n"
513
+                      . "<label class=\"label_after\">"._AM_MODULEADMIN_ABOUT_MODULESTATUS."</label>\n"
514
+                      . "<text>".$this->_obj->getInfo('module_status')."</text><br>\n"
515
+                      . "<label class=\"label_after\">"._AM_MODULEADMIN_ABOUT_WEBSITE."</label>\n"
516
+                      . "<text><a class=\"tooltip\" href=\"http://".$this->_obj->getInfo('module_website_url')."\" rel=\"external\" title=\""
517
+                      . $this->_obj->getInfo('module_website_name')." - ".$this->_obj->getInfo('module_website_url')."\">"
518
+                      . $this->_obj->getInfo('module_website_name')."</a></text>\n"
519 519
                       . "</div>\n";
520
-        $authorArray  = array();
521
-        foreach ( $author as $k => $aName ) {
522
-            $authorArray[$k] = ( isset( $nickname[$k] ) && ( '' != $nickname[$k] ) ) ? "{$aName} ({$nickname[$k]})" : "{$aName}";
520
+        $authorArray = array();
521
+        foreach ($author as $k => $aName) {
522
+            $authorArray[$k] = (isset($nickname[$k]) && ('' != $nickname[$k])) ? "{$aName} ({$nickname[$k]})" : "{$aName}";
523 523
         }
524 524
         $license_url = $this->_obj->getInfo('license_url');
525
-        $license_url = preg_match('%^(https?:)?//%', $license_url) ? $license_url : 'http://' . $license_url;
525
+        $license_url = preg_match('%^(https?:)?//%', $license_url) ? $license_url : 'http://'.$license_url;
526 526
         $website = $this->_obj->getInfo('website');
527
-        $website = preg_match('%^(https?:)?//%', $website) ? $website : 'http://' . $website;
527
+        $website = preg_match('%^(https?:)?//%', $website) ? $website : 'http://'.$website;
528 528
 
529 529
         $ret = "<table>\n<tr>\n"
530 530
              . "<td width=\"50%\">\n"
531 531
              . "<table>\n<tr>\n<td style=\"width: 100px;\">\n"
532
-             . "<img src=\"" . XOOPS_URL . '/modules/' . $module_dir . '/' . $this->_obj->getInfo('image') . "\" alt=\"" . $module_dir . "\" style=\"float: left; margin-right: 10px;\">\n"
532
+             . "<img src=\"".XOOPS_URL.'/modules/'.$module_dir.'/'.$this->_obj->getInfo('image')."\" alt=\"".$module_dir."\" style=\"float: left; margin-right: 10px;\">\n"
533 533
              . "</td><td>\n"
534 534
              . "<div style=\"margin-top: 1px; margin-bottom: 4px; font-size: 18px; line-height: 18px; color: #2F5376; font-weight: bold;\">\n"
535
-             . $this->_obj->getInfo('name') . ' ' . $this->_obj->getInfo('version') . ' ' . $this->_obj->getInfo('module_status') . " ({$release_date})\n"
535
+             . $this->_obj->getInfo('name').' '.$this->_obj->getInfo('version').' '.$this->_obj->getInfo('module_status')." ({$release_date})\n"
536 536
              . "<br>\n"
537 537
              . "</div>\n"
538 538
              . "<div style=\"line-height: 16px; font-weight: bold;\">\n"
539
-             . _AM_MODULEADMIN_ABOUT_BY . implode(', ', $authorArray) . "\n"
539
+             . _AM_MODULEADMIN_ABOUT_BY.implode(', ', $authorArray)."\n"
540 540
              . "</div>\n"
541 541
              . "<div style=\"line-height: 16px;\">\n"
542
-             . "<a href=\"$license_url\" target=\"_blank\" rel=\"external\">" . $this->_obj->getInfo('license') . "</a>\n"
542
+             . "<a href=\"$license_url\" target=\"_blank\" rel=\"external\">".$this->_obj->getInfo('license')."</a>\n"
543 543
              . "<br>\n"
544
-             . "<a href=\"$website\" target=\"_blank\">" . $this->_obj->getInfo('website') . "</a>\n"
544
+             . "<a href=\"$website\" target=\"_blank\">".$this->_obj->getInfo('website')."</a>\n"
545 545
              . "<br>\n"
546 546
              . "<br>\n"
547 547
              . "</div>\n"
@@ -553,10 +553,10 @@  discard block
 block discarded – undo
553 553
                   . "<form action=\"https://www.paypal.com/cgi-bin/webscr\" method=\"post\" target=\"_blank\" rel=\external\">\n"
554 554
                   . "<input name=\"cmd\" type=\"hidden\" value=\"_donations\">\n"
555 555
                   . "<input name=\"business\" type=\"hidden\" value=\"{$business}\">\n"
556
-                  . "<input name=\"currency_code\" type=\"hidden\" value=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_CURRENCY . "\">\n"
557
-                  . "<label class=\"label_after\" for=\"amount\">" . _AM_MODULEADMIN_ABOUT_AMOUNT . "</label><text><input class=\"donate_amount\" type=\"text\" name=\"amount\" value=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_SUGGESTED . "\" title=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_TTL . "\" pattern=\"" . _AM_MODULEADMIN_ABOUT_AMOUNT_PATTERN . "\"></text>\n"
556
+                  . "<input name=\"currency_code\" type=\"hidden\" value=\""._AM_MODULEADMIN_ABOUT_AMOUNT_CURRENCY."\">\n"
557
+                  . "<label class=\"label_after\" for=\"amount\">"._AM_MODULEADMIN_ABOUT_AMOUNT."</label><text><input class=\"donate_amount\" type=\"text\" name=\"amount\" value=\""._AM_MODULEADMIN_ABOUT_AMOUNT_SUGGESTED."\" title=\""._AM_MODULEADMIN_ABOUT_AMOUNT_TTL."\" pattern=\""._AM_MODULEADMIN_ABOUT_AMOUNT_PATTERN."\"></text>\n"
558 558
                   . "<br>\n"
559
-                  . "<text><input type=\"image\" name=\"submit\" class=\"donate_button\" src=\"https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif\" alt=\"" . _AM_MODULEADMIN_ABOUT_DONATE_IMG_ALT . "\"></text>\n"
559
+                  . "<text><input type=\"image\" name=\"submit\" class=\"donate_button\" src=\"https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif\" alt=\""._AM_MODULEADMIN_ABOUT_DONATE_IMG_ALT."\"></text>\n"
560 560
                   . "<img alt=\"\" height=\"1\" src=\"https://www.paypalobjects.com/en_US/i/scr/pixel.gif\" style=\"border-width: 0px;\" width=\"1\">\n"
561 561
                   . "</form>\n"
562 562
                   . "<br>\n"
@@ -565,24 +565,24 @@  discard block
 block discarded – undo
565 565
                   . "</td>\n</tr>\n";
566 566
         }
567 567
         $ret .= "</table>\n";
568
-        $this->addInfoBox( _AM_MODULEADMIN_ABOUT_MODULEINFO );
569
-        $this->addInfoBoxLine( _AM_MODULEADMIN_ABOUT_MODULEINFO, $module_info, '', '', 'information' );
568
+        $this->addInfoBox(_AM_MODULEADMIN_ABOUT_MODULEINFO);
569
+        $this->addInfoBoxLine(_AM_MODULEADMIN_ABOUT_MODULEINFO, $module_info, '', '', 'information');
570 570
         $ret .= $this->renderInfoBox()
571 571
               . "</td>\n"
572 572
               . "<td width=\"50%\">\n"
573
-              . "<fieldset><legend class=\"label\">" . _AM_MODULEADMIN_ABOUT_CHANGELOG . "</legend><br>\n"
573
+              . "<fieldset><legend class=\"label\">"._AM_MODULEADMIN_ABOUT_CHANGELOG."</legend><br>\n"
574 574
               . "<div class=\"txtchangelog\">\n";
575
-        $language = empty( $GLOBALS['xoopsConfig']['language'] ) ? 'english' : $GLOBALS['xoopsConfig']['language'];
576
-        $file     = XOOPS_ROOT_PATH . "/modules/{$module_dir}/language/{$language}/changelog.txt";
577
-        if ( !is_file( $file ) && ( 'english' !== $language ) ) {
578
-            $file = XOOPS_ROOT_PATH . "/modules/{$module_dir}/language/english/changelog.txt";
575
+        $language = empty($GLOBALS['xoopsConfig']['language']) ? 'english' : $GLOBALS['xoopsConfig']['language'];
576
+        $file     = XOOPS_ROOT_PATH."/modules/{$module_dir}/language/{$language}/changelog.txt";
577
+        if (!is_file($file) && ('english' !== $language)) {
578
+            $file = XOOPS_ROOT_PATH."/modules/{$module_dir}/language/english/changelog.txt";
579 579
         }
580
-        if ( is_readable( $file ) ) {
581
-            $ret .= ( implode( '<br>', file( $file ) ) ) . "\n";
580
+        if (is_readable($file)) {
581
+            $ret .= (implode('<br>', file($file)))."\n";
582 582
         } else {
583
-            $file = XOOPS_ROOT_PATH . "/modules/{$module_dir}/docs/changelog.txt";
584
-            if ( is_readable( $file ) ) {
585
-                $ret .= implode( '<br>', file( $file ) ) . "\n";
583
+            $file = XOOPS_ROOT_PATH."/modules/{$module_dir}/docs/changelog.txt";
584
+            if (is_readable($file)) {
585
+                $ret .= implode('<br>', file($file))."\n";
586 586
             }
587 587
         }
588 588
         $ret .= "</div>\n"
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
               . "</td>\n"
591 591
               . "</tr>\n"
592 592
               . "</table>\n";
593
-        if ( true === $logo_xoops ) {
593
+        if (true === $logo_xoops) {
594 594
             $ret .= "<div class=\"center\">"
595 595
                   . "<a href=\"http://www.xoops.org\" target=\"_blank\"><img src=\"{$path}xoopsmicrobutton.gif\" alt=\"XOOPS\" title=\"XOOPS\"></a>"
596 596
                   . "</div>";
@@ -608,20 +608,20 @@  discard block
 block discarded – undo
608 608
         $this->addAssets();
609 609
         $ret        = '';
610 610
         $navigation = '';
611
-        $path       = XOOPS_URL . '/modules/' . $this->_obj->getVar('dirname') . '/';
611
+        $path       = XOOPS_URL.'/modules/'.$this->_obj->getVar('dirname').'/';
612 612
         $this->_obj->loadAdminMenu();
613 613
         foreach (array_keys($this->_obj->adminmenu) as $i) {
614
-            if ($this->_obj->adminmenu[$i]['link'] == 'admin/' . $menu) {
615
-                $navigation .= $this->_obj->adminmenu[$i]['title'] . ' | ';
616
-                $ret = "<div class=\"CPbigTitle\" style=\"background-image: url(" . $path . $this->_obj->adminmenu[$i]['icon'] . "); background-repeat: no-repeat; background-position: left; padding-left: 50px;\">
617
-        <strong>" . $this->_obj->adminmenu[$i]['title'] . '</strong></div><br>';
614
+            if ($this->_obj->adminmenu[$i]['link'] == 'admin/'.$menu) {
615
+                $navigation .= $this->_obj->adminmenu[$i]['title'].' | ';
616
+                $ret = "<div class=\"CPbigTitle\" style=\"background-image: url(".$path.$this->_obj->adminmenu[$i]['icon']."); background-repeat: no-repeat; background-position: left; padding-left: 50px;\">
617
+        <strong>" . $this->_obj->adminmenu[$i]['title'].'</strong></div><br>';
618 618
             } else {
619
-                $navigation .= "<a href = '../" . $this->_obj->adminmenu[$i]['link'] . "'>" . $this->_obj->adminmenu[$i]['title'] . '</a> | ';
619
+                $navigation .= "<a href = '../".$this->_obj->adminmenu[$i]['link']."'>".$this->_obj->adminmenu[$i]['title'].'</a> | ';
620 620
             }
621 621
         }
622 622
         if (substr(XOOPS_VERSION, 0, 9) < 'XOOPS 2.5') {
623
-            $navigation .= "<a href = '../../system/admin.php?fct=preferences&op=showmod&mod=" . $this->_obj->getVar('mid') . "'>" . _MI_SYSTEM_ADMENU6 . '</a>';
624
-            $ret = $navigation . '<br><br>' . $ret;
623
+            $navigation .= "<a href = '../../system/admin.php?fct=preferences&op=showmod&mod=".$this->_obj->getVar('mid')."'>"._MI_SYSTEM_ADMENU6.'</a>';
624
+            $ret = $navigation.'<br><br>'.$ret;
625 625
         }
626 626
 
627 627
         return $ret;
Please login to merge, or discard this patch.
htdocs/backend.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
  * @since               2.0.0
15 15
  */
16 16
 
17
-include __DIR__ . '/mainfile.php';
17
+include __DIR__.'/mainfile.php';
18 18
 
19 19
 $GLOBALS['xoopsLogger']->activated = false;
20 20
 if (function_exists('mb_http_output')) {
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 if (!$tpl->is_cached('db:system_rss.tpl')) {
30 30
     xoops_load('XoopsLocal');
31 31
     $tpl->assign('channel_title', XoopsLocal::convert_encoding(htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)));
32
-    $tpl->assign('channel_link', XOOPS_URL . '/');
32
+    $tpl->assign('channel_link', XOOPS_URL.'/');
33 33
     $tpl->assign('channel_desc', XoopsLocal::convert_encoding(htmlspecialchars($xoopsConfig['slogan'], ENT_QUOTES)));
34 34
     $tpl->assign('channel_lastbuild', formatTimestamp(time(), 'rss'));
35 35
     $tpl->assign('channel_webmaster', checkEmail($xoopsConfig['adminmail'], true));
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
     $tpl->assign('channel_category', 'News');
38 38
     $tpl->assign('channel_generator', 'XOOPS');
39 39
     $tpl->assign('channel_language', _LANGCODE);
40
-    $tpl->assign('image_url', XOOPS_URL . '/images/logo.png');
41
-    $dimension = getimagesize(XOOPS_ROOT_PATH . '/images/logo.png');
40
+    $tpl->assign('image_url', XOOPS_URL.'/images/logo.png');
41
+    $dimension = getimagesize(XOOPS_ROOT_PATH.'/images/logo.png');
42 42
     if (empty($dimension[0])) {
43 43
         $width = 88;
44 44
     } else {
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
         foreach ($sarray as $story) {
60 60
             $tpl->append('items', array(
61 61
                 'title'       => XoopsLocal::convert_encoding(htmlspecialchars($story->title(), ENT_QUOTES)),
62
-                'link'        => XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(),
63
-                'guid'        => XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(),
62
+                'link'        => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(),
63
+                'guid'        => XOOPS_URL.'/modules/news/article.php?storyid='.$story->storyid(),
64 64
                 'pubdate'     => formatTimestamp($story->published(), 'rss'),
65 65
                 'description' => XoopsLocal::convert_encoding(htmlspecialchars($story->hometext(), ENT_QUOTES))));
66 66
         }
Please login to merge, or discard this patch.
htdocs/banners.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  */
20 20
 
21 21
 $xoopsOption['pagetype'] = 'banners';
22
-include __DIR__ . '/mainfile.php';
22
+include __DIR__.'/mainfile.php';
23 23
 
24 24
 /********************************************/
25 25
 /* Function to let your client login to see */
@@ -76,16 +76,16 @@  discard block
 block discarded – undo
76 76
         }
77 77
     ');
78 78
     echo "<div id='login_window'>
79
-          <h2 class='content_title'>" . _BANNERS_LOGIN_TITLE . "</h2>
79
+          <h2 class='content_title'>" . _BANNERS_LOGIN_TITLE."</h2>
80 80
           <form method='post' action='banners.php' class='login_form'>
81 81
           <div class='credentials'>
82
-          <label for='login_form-login'>" . _BANNERS_LOGIN_LOGIN . "</label>
82
+          <label for='login_form-login'>" . _BANNERS_LOGIN_LOGIN."</label>
83 83
           <input type='text' name='login' id='login_form-login' value='' /><br>
84
-          <label for='login_form-password'>" . _BANNERS_LOGIN_PASS . "</label>
84
+          <label for='login_form-password'>" . _BANNERS_LOGIN_PASS."</label>
85 85
           <input type='password' name='pass' id='login_form-password' value='' /><br>
86 86
           </div>
87
-          <div class='actions'><input type='hidden' name='op' value='Ok' /><button type='submit'>" . _BANNERS_LOGIN_OK . "</button></div>
88
-          <div class='login_info'>" . _BANNERS_LOGIN_INFO . '</div>' . $GLOBALS['xoopsSecurity']->getTokenHTML('BANNER_LOGIN') . '
87
+          <div class='actions'><input type='hidden' name='op' value='Ok' /><button type='submit'>" . _BANNERS_LOGIN_OK."</button></div>
88
+          <div class='login_info'>" . _BANNERS_LOGIN_INFO.'</div>'.$GLOBALS['xoopsSecurity']->getTokenHTML('BANNER_LOGIN').'
89 89
           </form></div>';
90 90
     include $GLOBALS['xoops']->path('footer.php');
91 91
 }
@@ -112,20 +112,20 @@  discard block
 block discarded – undo
112 112
         ');
113 113
 
114 114
         echo "<div id='bannerstats'>
115
-              <h4 class='content_title'>" . sprintf(_BANNERS_TITLE, $name) . "</h4><hr />
115
+              <h4 class='content_title'>" . sprintf(_BANNERS_TITLE, $name)."</h4><hr />
116 116
               <table summary=''>
117
-              <caption>" . sprintf(_BANNERS_TITLE, $name) . '</caption>
117
+              <caption>" . sprintf(_BANNERS_TITLE, $name).'</caption>
118 118
               <thead><tr>
119 119
               <td>ID</td>
120
-              <td>' . _BANNERS_IMP_MADE . '</td>
121
-              <td>' . _BANNERS_IMP_TOTAL . '</td>
122
-              <td>' . _BANNERS_IMP_LEFT . '</td>
123
-              <td>' . _BANNERS_CLICKS . '</td>
124
-              <td>' . _BANNERS_PER_CLICKS . '</td>
125
-              <td>' . _BANNERS_FUNCTIONS . "</td></tr></thead>
120
+              <td>' . _BANNERS_IMP_MADE.'</td>
121
+              <td>' . _BANNERS_IMP_TOTAL.'</td>
122
+              <td>' . _BANNERS_IMP_LEFT.'</td>
123
+              <td>' . _BANNERS_CLICKS.'</td>
124
+              <td>' . _BANNERS_PER_CLICKS.'</td>
125
+              <td>' . _BANNERS_FUNCTIONS."</td></tr></thead>
126 126
               <tfoot><tr><td colspan='7'></td></tr></tfoot>";
127 127
 
128
-        $result = $xoopsDB->query('SELECT bid, imptotal, impmade, clicks, date FROM ' . $xoopsDB->prefix('banner') . " WHERE cid={$cid}");
128
+        $result = $xoopsDB->query('SELECT bid, imptotal, impmade, clicks, date FROM '.$xoopsDB->prefix('banner')." WHERE cid={$cid}");
129 129
         $i      = 0;
130 130
         while (false !== (list($bid, $imptotal, $impmade, $clicks, $date) = $xoopsDB->fetchRow($result))) {
131 131
             if ($impmade == 0) {
@@ -146,14 +146,14 @@  discard block
 block discarded – undo
146 146
                   <td>{$left}</td>
147 147
                   <td>{$clicks}</td>
148 148
                   <td>{$percent}%</td>
149
-                  <td><a href='banners.php?op=EmailStats&amp;cid={$cid}&amp;bid={$bid}' title='" . _BANNERS_STATS . "'>" . _BANNERS_STATS . '</a></td></tr></tbody>';
149
+                  <td><a href='banners.php?op=EmailStats&amp;cid={$cid}&amp;bid={$bid}' title='"._BANNERS_STATS."'>"._BANNERS_STATS.'</a></td></tr></tbody>';
150 150
             ++$i;
151 151
         }
152 152
         echo "</table>
153 153
               <br><br>
154
-              <h4 class='content_title'>" . _BANNERS_FOW_IN . htmlspecialchars($xoopsConfig['sitename']) . '</h4><hr />';
154
+              <h4 class='content_title'>" . _BANNERS_FOW_IN.htmlspecialchars($xoopsConfig['sitename']).'</h4><hr />';
155 155
 
156
-        $result = $xoopsDB->query('SELECT bid, imageurl, clickurl, htmlbanner, htmlcode FROM ' . $xoopsDB->prefix('banner') . " WHERE cid={$cid}");
156
+        $result = $xoopsDB->query('SELECT bid, imageurl, clickurl, htmlbanner, htmlcode FROM '.$xoopsDB->prefix('banner')." WHERE cid={$cid}");
157 157
         while (false !== (list($bid, $imageurl, $clickurl, $htmlbanner, $htmlcode) = $xoopsDB->fetchRow($result))) {
158 158
             $numrows = $xoopsDB->getRowsNum($result);
159 159
             if ($numrows > 1) {
@@ -171,31 +171,31 @@  discard block
 block discarded – undo
171 171
                     echo "<img src='{$imageurl}' alt='' />";
172 172
                 }
173 173
             }
174
-            echo '<br><strong>' . _BANNERS_ID . $bid . '</strong><br>' . sprintf(_BANNERS_SEND_STATS, 'banners.php?op=EmailStats&amp;cid=' . $cid . '&amp;bid=' . $bid) . '<br>';
174
+            echo '<br><strong>'._BANNERS_ID.$bid.'</strong><br>'.sprintf(_BANNERS_SEND_STATS, 'banners.php?op=EmailStats&amp;cid='.$cid.'&amp;bid='.$bid).'<br>';
175 175
             if (!$htmlbanner) {
176 176
                 $clickurl = htmlspecialchars($clickurl, ENT_QUOTES);
177
-                echo sprintf(_BANNERS_POINTS, $clickurl) . "<br>
178
-                <form action='banners.php' method='post'>" . _BANNERS_URL . "
177
+                echo sprintf(_BANNERS_POINTS, $clickurl)."<br>
178
+                <form action='banners.php' method='post'>" . _BANNERS_URL."
179 179
                 <input type='text' name='url' size='50' maxlength='200' value='{$clickurl}' />
180 180
                 <input type='hidden' name='bid' value='{$bid}' />
181 181
                 <input type='hidden' name='cid' value='{$cid}' />
182
-                <input type='submit' name='op' value='" . _BANNERS_CHANGE . "' />" . $GLOBALS['xoopsSecurity']->getTokenHTML('BANNER_EDIT') . '</form>';
182
+                <input type='submit' name='op' value='"._BANNERS_CHANGE."' />".$GLOBALS['xoopsSecurity']->getTokenHTML('BANNER_EDIT').'</form>';
183 183
             }
184 184
         }
185 185
 
186 186
         /* Finnished Banners */
187 187
         echo '<br>';
188
-        if ($result = $xoopsDB->query('SELECT bid, impressions, clicks, datestart, dateend FROM ' . $xoopsDB->prefix('bannerfinish') . " WHERE cid={$cid}")) {
189
-            echo "<h4 class='content_title'>" . sprintf(_BANNERS_FINISHED, $name) . "</h4><hr />
188
+        if ($result = $xoopsDB->query('SELECT bid, impressions, clicks, datestart, dateend FROM '.$xoopsDB->prefix('bannerfinish')." WHERE cid={$cid}")) {
189
+            echo "<h4 class='content_title'>".sprintf(_BANNERS_FINISHED, $name)."</h4><hr />
190 190
                   <table summary=''>
191
-                  <caption>" . sprintf(_BANNERS_FINISHED, $name) . '</caption>
191
+                  <caption>" . sprintf(_BANNERS_FINISHED, $name).'</caption>
192 192
                   <thead><tr>
193 193
                   <td>ID</td>
194
-                  <td>' . _BANNERS_IMP_MADE . '</td>
195
-                  <td>' . _BANNERS_CLICKS . '</td>
196
-                  <td>' . _BANNERS_PER_CLICKS . '</td>
197
-                  <td>' . _BANNERS_STARTED . '</td>
198
-                  <td>' . _BANNERS_ENDED . "</td></tr></thead>
194
+                  <td>' . _BANNERS_IMP_MADE.'</td>
195
+                  <td>' . _BANNERS_CLICKS.'</td>
196
+                  <td>' . _BANNERS_PER_CLICKS.'</td>
197
+                  <td>' . _BANNERS_STARTED.'</td>
198
+                  <td>' . _BANNERS_ENDED."</td></tr></thead>
199 199
                   <tfoot><tr><td colspan='6'></td></tr></tfoot>";
200 200
 
201 201
             $i = 0;
@@ -211,8 +211,8 @@  discard block
 block discarded – undo
211 211
                       <td>{$impressions}</td>
212 212
                       <td>{$clicks}</td>
213 213
                       <td>{$percent}%</td>
214
-                      <td>" . formatTimestamp($datestart) . '</td>
215
-                      <td>' . formatTimestamp($dateend) . '</td></tr></tbody>';
214
+                      <td>".formatTimestamp($datestart).'</td>
215
+                      <td>' . formatTimestamp($dateend).'</td></tr></tbody>';
216 216
             }
217 217
             echo '</table></div>';
218 218
         }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                 if ($email == '') {
243 243
                     redirect_header('banners.php', 3, sprintf(_BANNERS_MAIL_ERROR, $name));
244 244
                 } else {
245
-                    if ($result = $xoopsDB->query('SELECT bid, imptotal, impmade, clicks, imageurl, clickurl, date FROM ' . $xoopsDB->prefix('banner') . " WHERE bid={$bid} AND cid={$cid}")) {
245
+                    if ($result = $xoopsDB->query('SELECT bid, imptotal, impmade, clicks, imageurl, clickurl, date FROM '.$xoopsDB->prefix('banner')." WHERE bid={$bid} AND cid={$cid}")) {
246 246
                         list($bid, $imptotal, $impmade, $clicks, $imageurl, $clickurl, $date) = $xoopsDB->fetchRow($result);
247 247
                         if ($impmade == 0) {
248 248
                             $percent = 0;
@@ -312,12 +312,12 @@  discard block
 block discarded – undo
312 312
     global $xoopsDB;
313 313
     $bid = (int)$bid;
314 314
     if ($bid > 0) {
315
-        $bresult = $xoopsDB->query('SELECT clickurl FROM ' . $xoopsDB->prefix('banner') . " WHERE bid={$bid}");
315
+        $bresult = $xoopsDB->query('SELECT clickurl FROM '.$xoopsDB->prefix('banner')." WHERE bid={$bid}");
316 316
         list($clickurl) = $xoopsDB->fetchRow($bresult);
317 317
         if ($clickurl) {
318 318
             if ($GLOBALS['xoopsSecurity']->checkReferer()) {
319
-                $xoopsDB->queryF('UPDATE ' . $xoopsDB->prefix('banner') . " SET clicks=clicks+1 WHERE bid=$bid");
320
-                header('Location: ' . $clickurl);
319
+                $xoopsDB->queryF('UPDATE '.$xoopsDB->prefix('banner')." SET clicks=clicks+1 WHERE bid=$bid");
320
+                header('Location: '.$clickurl);
321 321
             } else {
322 322
                 //No valid referer found so some javascript error or direct access found
323 323
                 echo _BANNERS_NO_REFERER;
Please login to merge, or discard this patch.
htdocs/edituser.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -152,22 +152,22 @@
 block discarded – undo
152 152
     $sig_tray->addElement($sig_cbox);
153 153
     $umode_select = new XoopsFormSelect(_US_CDISPLAYMODE, 'umode', $xoopsUser->getVar('umode'));
154 154
     $umode_select->addOptionArray(array(
155
-                                      'nest'   => _NESTED,
156
-                                      'flat'   => _FLAT,
157
-                                      'thread' => _THREADED));
155
+                                        'nest'   => _NESTED,
156
+                                        'flat'   => _FLAT,
157
+                                        'thread' => _THREADED));
158 158
     $uorder_select = new XoopsFormSelect(_US_CSORTORDER, 'uorder', $xoopsUser->getVar('uorder'));
159 159
     $uorder_select->addOptionArray(array(
160
-                                       XOOPS_COMMENT_OLD1ST => _OLDESTFIRST,
161
-                                       XOOPS_COMMENT_NEW1ST => _NEWESTFIRST));
160
+                                        XOOPS_COMMENT_OLD1ST => _OLDESTFIRST,
161
+                                        XOOPS_COMMENT_NEW1ST => _NEWESTFIRST));
162 162
     // RMV-NOTIFY
163 163
     // TODO: add this to admin user-edit functions...
164 164
     include_once $GLOBALS['xoops']->path('language/' . $xoopsConfig['language'] . '/notification.php');
165 165
     include_once $GLOBALS['xoops']->path('include/notification_constants.php');
166 166
     $notify_method_select = new XoopsFormSelect(_NOT_NOTIFYMETHOD, 'notify_method', $xoopsUser->getVar('notify_method'));
167 167
     $notify_method_select->addOptionArray(array(
168
-                                              XOOPS_NOTIFICATION_METHOD_DISABLE => _NOT_METHOD_DISABLE,
169
-                                              XOOPS_NOTIFICATION_METHOD_PM      => _NOT_METHOD_PM,
170
-                                              XOOPS_NOTIFICATION_METHOD_EMAIL   => _NOT_METHOD_EMAIL));
168
+                                                XOOPS_NOTIFICATION_METHOD_DISABLE => _NOT_METHOD_DISABLE,
169
+                                                XOOPS_NOTIFICATION_METHOD_PM      => _NOT_METHOD_PM,
170
+                                                XOOPS_NOTIFICATION_METHOD_EMAIL   => _NOT_METHOD_EMAIL));
171 171
     $notify_mode_select = new XoopsFormSelect(_NOT_NOTIFYMODE, 'notify_mode', $xoopsUser->getVar('notify_mode'));
172 172
     $notify_mode_select->addOptionArray(array(
173 173
                                             XOOPS_NOTIFICATION_MODE_SENDALWAYS         => _NOT_MODE_SENDALWAYS,
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * @since               2.0.0
16 16
  */
17 17
 
18
-include __DIR__ . '/mainfile.php';
18
+include __DIR__.'/mainfile.php';
19 19
 
20 20
 XoopsLoad::load('XoopsRequest');
21 21
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 $myts            = MyTextSanitizer::getInstance();
39 39
 if ($op === 'saveuser') {
40 40
     if (!$GLOBALS['xoopsSecurity']->check()) {
41
-        redirect_header('index.php', 3, _US_NOEDITRIGHT . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
41
+        redirect_header('index.php', 3, _US_NOEDITRIGHT.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
42 42
     }
43 43
     $uid = XoopsRequest::getInt('uid', 0);
44 44
     if (empty($uid) || $xoopsUser->getVar('uid') != $uid) {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         include $GLOBALS['xoops']->path('header.php');
67 67
         echo '<div>';
68 68
         foreach ($errors as $er) {
69
-            echo '<span class="red bold">' . $er . '</span><br>';
69
+            echo '<span class="red bold">'.$er.'</span><br>';
70 70
         }
71 71
         echo '</div><br>';
72 72
         $op = 'editprofile';
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             echo $edituser->getHtmlErrors();
105 105
             include $GLOBALS['xoops']->path('footer.php');
106 106
         } else {
107
-            redirect_header('userinfo.php?uid=' . $uid, 1, _US_PROFUPDATED);
107
+            redirect_header('userinfo.php?uid='.$uid, 1, _US_PROFUPDATED);
108 108
         }
109 109
         exit();
110 110
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     include_once $GLOBALS['xoops']->path('header.php');
115 115
     include_once $GLOBALS['xoops']->path('include/comment_constants.php');
116 116
     include_once $GLOBALS['xoops']->path('include/xoopscodes.php');
117
-    echo '<a href="userinfo.php?uid=' . $xoopsUser->getVar('uid') . '" title="">' . _US_PROFILE . '</a>&nbsp;<span class="bold">&raquo;</span>&nbsp;' . _US_EDITPROFILE . '<br><br>';
117
+    echo '<a href="userinfo.php?uid='.$xoopsUser->getVar('uid').'" title="">'._US_PROFILE.'</a>&nbsp;<span class="bold">&raquo;</span>&nbsp;'._US_EDITPROFILE.'<br><br>';
118 118
     $form        = new XoopsThemeForm(_US_EDITPROFILE, 'userinfo', 'edituser.php', 'post', true);
119 119
     $uname_label = new XoopsFormLabel(_US_NICKNAME, $xoopsUser->getVar('uname'));
120 120
     $form->addElement($uname_label);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                                        XOOPS_COMMENT_NEW1ST => _NEWESTFIRST));
162 162
     // RMV-NOTIFY
163 163
     // TODO: add this to admin user-edit functions...
164
-    include_once $GLOBALS['xoops']->path('language/' . $xoopsConfig['language'] . '/notification.php');
164
+    include_once $GLOBALS['xoops']->path('language/'.$xoopsConfig['language'].'/notification.php');
165 165
     include_once $GLOBALS['xoops']->path('include/notification_constants.php');
166 166
     $notify_method_select = new XoopsFormSelect(_NOT_NOTIFYMETHOD, 'notify_method', $xoopsUser->getVar('notify_method'));
167 167
     $notify_method_select->addOptionArray(array(
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     $bio_tarea          = new XoopsFormTextArea(_US_EXTRAINFO, 'bio', $xoopsUser->getVar('bio', 'E'));
177 177
     $pwd_text           = new XoopsFormPassword('', 'password', 10, 32);
178 178
     $pwd_text2          = new XoopsFormPassword('', 'vpass', 10, 32);
179
-    $pwd_tray           = new XoopsFormElementTray(_US_PASSWORD . '<br>' . _US_TYPEPASSTWICE);
179
+    $pwd_tray           = new XoopsFormElementTray(_US_PASSWORD.'<br>'._US_TYPEPASSTWICE);
180 180
     $pwd_tray->addElement($pwd_text);
181 181
     $pwd_tray->addElement($pwd_text2);
182 182
     $mailok_radio  = new XoopsFormRadioYN(_US_MAILOK, 'user_mailok', $xoopsUser->getVar('user_mailok'));
@@ -214,17 +214,17 @@  discard block
 block discarded – undo
214 214
 
215 215
 if ($op === 'avatarform') {
216 216
     include $GLOBALS['xoops']->path('header.php');
217
-    echo '<a href="userinfo.php?uid=' . $xoopsUser->getVar('uid') . '">' . _US_PROFILE . '</a>&nbsp;<span class="bold">&raquo;</span>&nbsp;' . _US_UPLOADMYAVATAR . '<br><br>';
217
+    echo '<a href="userinfo.php?uid='.$xoopsUser->getVar('uid').'">'._US_PROFILE.'</a>&nbsp;<span class="bold">&raquo;</span>&nbsp;'._US_UPLOADMYAVATAR.'<br><br>';
218 218
     $oldavatar = $xoopsUser->getVar('user_avatar');
219 219
     if (!empty($oldavatar) && $oldavatar !== 'blank.gif') {
220
-        echo '<div class="pad10 txtcenter floatcenter0"><h4 class="red bold">' . _US_OLDDELETED . '</h4>';
221
-        echo '<img src="' . XOOPS_UPLOAD_URL . '/' . $oldavatar . '" alt="" /></div>';
220
+        echo '<div class="pad10 txtcenter floatcenter0"><h4 class="red bold">'._US_OLDDELETED.'</h4>';
221
+        echo '<img src="'.XOOPS_UPLOAD_URL.'/'.$oldavatar.'" alt="" /></div>';
222 222
     }
223 223
     if ($xoopsConfigUser['avatar_allow_upload'] == 1 && $xoopsUser->getVar('posts') >= $xoopsConfigUser['avatar_minposts']) {
224 224
         include_once $GLOBALS['xoops']->path('class/xoopsformloader.php');
225 225
         $form = new XoopsThemeForm(_US_UPLOADMYAVATAR, 'uploadavatar', 'edituser.php', 'post', true);
226 226
         $form->setExtra('enctype="multipart/form-data"');
227
-        $form->addElement(new XoopsFormLabel(_US_MAXPIXEL, $xoopsConfigUser['avatar_width'] . ' x ' . $xoopsConfigUser['avatar_height']));
227
+        $form->addElement(new XoopsFormLabel(_US_MAXPIXEL, $xoopsConfigUser['avatar_width'].' x '.$xoopsConfigUser['avatar_height']));
228 228
         $form->addElement(new XoopsFormLabel(_US_MAXIMGSZ, $xoopsConfigUser['avatar_maxsize']));
229 229
         $form->addElement(new XoopsFormFile(_US_SELFILE, 'avatarfile', $xoopsConfigUser['avatar_maxsize']), true);
230 230
         $form->addElement(new XoopsFormHidden('op', 'avatarupload'));
@@ -240,11 +240,11 @@  discard block
 block discarded – undo
240 240
 //    $avatar_selected = in_array($avatar_selected, array_keys($avatar_list)) ? $avatar_selected : "blank.gif";
241 241
     $avatar_selected = array_key_exists($avatar_selected, $avatar_list) ? $avatar_selected : 'blank.gif';
242 242
     $avatar_select->addOptionArray($avatar_list);
243
-    $avatar_select->setExtra("onchange='showImgSelected(\"avatar\", \"user_avatar\", \"uploads\", \"\", \"" . XOOPS_URL . "\")'");
243
+    $avatar_select->setExtra("onchange='showImgSelected(\"avatar\", \"user_avatar\", \"uploads\", \"\", \"".XOOPS_URL."\")'");
244 244
     $avatar_tray = new XoopsFormElementTray(_US_AVATAR, '&nbsp;');
245 245
     $avatar_tray->addElement($avatar_select);
246
-    $avatar_tray->addElement(new XoopsFormLabel('', "<a href=\"javascript:openWithSelfMain('" . XOOPS_URL . "/misc.php?action=showpopups&amp;type=avatars','avatars',600,400);\">" . _LIST . '</a><br>'));
247
-    $avatar_tray->addElement(new XoopsFormLabel('', "<br><img src='" . XOOPS_UPLOAD_URL . '/' . $avatar_selected . "' name='avatar' id='avatar' alt='' />"));
246
+    $avatar_tray->addElement(new XoopsFormLabel('', "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&amp;type=avatars','avatars',600,400);\">"._LIST.'</a><br>'));
247
+    $avatar_tray->addElement(new XoopsFormLabel('', "<br><img src='".XOOPS_UPLOAD_URL.'/'.$avatar_selected."' name='avatar' id='avatar' alt='' />"));
248 248
     $form2->addElement($avatar_tray);
249 249
     $form2->addElement(new XoopsFormHidden('uid', $xoopsUser->getVar('uid')));
250 250
     $form2->addElement(new XoopsFormHidden('op', 'avatarchoose'));
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
 
256 256
 if ($op === 'avatarupload') {
257 257
     if (!$GLOBALS['xoopsSecurity']->check()) {
258
-        redirect_header('index.php', 3, _US_NOEDITRIGHT . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
258
+        redirect_header('index.php', 3, _US_NOEDITRIGHT.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
259 259
     }
260 260
     $xoops_upload_file = array();
261 261
     $uid               = 0;
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     }
271 271
     if ($xoopsConfigUser['avatar_allow_upload'] == 1 && $xoopsUser->getVar('posts') >= $xoopsConfigUser['avatar_minposts']) {
272 272
         include_once $GLOBALS['xoops']->path('class/uploader.php');
273
-        $uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH . '/avatars', array(
273
+        $uploader = new XoopsMediaUploader(XOOPS_UPLOAD_PATH.'/avatars', array(
274 274
             'image/gif',
275 275
             'image/jpeg',
276 276
             'image/pjpeg',
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
                 /* @var $avt_handler XoopsAvatarHandler */
284 284
                 $avt_handler = xoops_getHandler('avatar');
285 285
                 $avatar      = $avt_handler->create();
286
-                $avatar->setVar('avatar_file', 'avatars/' . $uploader->getSavedFileName());
286
+                $avatar->setVar('avatar_file', 'avatars/'.$uploader->getSavedFileName());
287 287
                 $avatar->setVar('avatar_name', $xoopsUser->getVar('uname'));
288 288
                 $avatar->setVar('avatar_mimetype', $uploader->getMediaType());
289 289
                 $avatar->setVar('avatar_display', 1);
@@ -296,16 +296,16 @@  discard block
 block discarded – undo
296 296
                         $avatars = $avt_handler->getObjects(new Criteria('avatar_file', $oldavatar));
297 297
                         if (!empty($avatars) && count($avatars) == 1 && is_object($avatars[0])) {
298 298
                             $avt_handler->delete($avatars[0]);
299
-                            $oldavatar_path = realpath(XOOPS_UPLOAD_PATH . '/' . $oldavatar);
299
+                            $oldavatar_path = realpath(XOOPS_UPLOAD_PATH.'/'.$oldavatar);
300 300
                             if (0 === strpos($oldavatar_path, XOOPS_UPLOAD_PATH) && is_file($oldavatar_path)) {
301 301
                                 unlink($oldavatar_path);
302 302
                             }
303 303
                         }
304 304
                     }
305
-                    $sql = sprintf('UPDATE %s SET user_avatar = %s WHERE uid = %u', $xoopsDB->prefix('users'), $xoopsDB->quoteString('avatars/' . $uploader->getSavedFileName()), $xoopsUser->getVar('uid'));
305
+                    $sql = sprintf('UPDATE %s SET user_avatar = %s WHERE uid = %u', $xoopsDB->prefix('users'), $xoopsDB->quoteString('avatars/'.$uploader->getSavedFileName()), $xoopsUser->getVar('uid'));
306 306
                     $xoopsDB->query($sql);
307 307
                     $avt_handler->addUser($avatar->getVar('avatar_id'), $xoopsUser->getVar('uid'));
308
-                    redirect_header('userinfo.php?t=' . time() . '&amp;uid=' . $xoopsUser->getVar('uid'), 3, _US_PROFUPDATED);
308
+                    redirect_header('userinfo.php?t='.time().'&amp;uid='.$xoopsUser->getVar('uid'), 3, _US_PROFUPDATED);
309 309
                 }
310 310
             }
311 311
         }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
 if ($op === 'avatarchoose') {
317 317
     if (!$GLOBALS['xoopsSecurity']->check()) {
318
-        redirect_header('index.php', 3, _US_NOEDITRIGHT . '<br>' . implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
318
+        redirect_header('index.php', 3, _US_NOEDITRIGHT.'<br>'.implode('<br>', $GLOBALS['xoopsSecurity']->getErrors()));
319 319
     }
320 320
     $uid = 0;
321 321
     if (!empty($_POST['uid'])) {
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
         }
337 337
         unset($avatars, $criteria_avatar);
338 338
     }
339
-    $user_avatarpath = realpath(XOOPS_UPLOAD_PATH . '/' . $user_avatar);
339
+    $user_avatarpath = realpath(XOOPS_UPLOAD_PATH.'/'.$user_avatar);
340 340
     if (0 === strpos($user_avatarpath, realpath(XOOPS_UPLOAD_PATH)) && is_file($user_avatarpath)) {
341 341
         $oldavatar = $xoopsUser->getVar('user_avatar');
342 342
         $xoopsUser->setVar('user_avatar', $user_avatar);
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             $avatars = $avt_handler->getObjects(new Criteria('avatar_file', $oldavatar));
354 354
             if (!empty($avatars) && count($avatars) == 1 && is_object($avatars[0])) {
355 355
                 $avt_handler->delete($avatars[0]);
356
-                $oldavatar_path = realpath(XOOPS_UPLOAD_PATH . '/' . $oldavatar);
356
+                $oldavatar_path = realpath(XOOPS_UPLOAD_PATH.'/'.$oldavatar);
357 357
                 if (0 === strpos($oldavatar_path, realpath(XOOPS_UPLOAD_PATH)) && is_file($oldavatar_path)) {
358 358
                     unlink($oldavatar_path);
359 359
                 }
@@ -366,5 +366,5 @@  discard block
 block discarded – undo
366 366
             }
367 367
         }
368 368
     }
369
-    redirect_header('userinfo.php?uid=' . $uid, 0, _US_PROFUPDATED);
369
+    redirect_header('userinfo.php?uid='.$uid, 0, _US_PROFUPDATED);
370 370
 }
Please login to merge, or discard this patch.
htdocs/class/pagenav.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
         $this->current = (int)$current_start;
55 55
         $this->extra   = $extra_arg;
56 56
         if ($extra_arg != '' && (substr($extra_arg, -5) !== '&amp;' || substr($extra_arg, -1) !== '&')) {
57
-            $this->extra = '&amp;' . $extra_arg;
57
+            $this->extra = '&amp;'.$extra_arg;
58 58
         }
59
-        $this->url = htmlspecialchars(Request::getString('PHP_SELF', '', 'SERVER'), ENT_QUOTES) . '?' . trim($start_name) . '=';
59
+        $this->url = htmlspecialchars(Request::getString('PHP_SELF', '', 'SERVER'), ENT_QUOTES).'?'.trim($start_name).'=';
60 60
     }
61 61
 
62 62
     /**
@@ -77,18 +77,18 @@  discard block
 block discarded – undo
77 77
                 $ret .= '<div id="xo-pagenav">';
78 78
                 $prev = $this->current - $this->perpage;
79 79
                 if ($prev >= 0) {
80
-                    $ret .= '<a class="xo-pagarrow" href="' . $this->url . $prev . $this->extra . '"><u>&laquo;</u></a> ';
80
+                    $ret .= '<a class="xo-pagarrow" href="'.$this->url.$prev.$this->extra.'"><u>&laquo;</u></a> ';
81 81
                 }
82 82
                 $counter      = 1;
83 83
                 $current_page = (int)floor(($this->current + $this->perpage) / $this->perpage);
84 84
                 while ($counter <= $total_pages) {
85 85
                     if ($counter == $current_page) {
86
-                        $ret .= '<strong class="xo-pagact" >(' . $counter . ')</strong> ';
86
+                        $ret .= '<strong class="xo-pagact" >('.$counter.')</strong> ';
87 87
                     } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) {
88 88
                         if ($counter == $total_pages && $current_page < $total_pages - $offset) {
89 89
                             $ret .= '... ';
90 90
                         }
91
-                        $ret .= '<a class="xo-counterpage" href="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</a> ';
91
+                        $ret .= '<a class="xo-counterpage" href="'.$this->url.(($counter - 1) * $this->perpage).$this->extra.'">'.$counter.'</a> ';
92 92
                         if ($counter == 1 && $current_page > 1 + $offset) {
93 93
                             $ret .= '... ';
94 94
                         }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 }
98 98
                 $next = $this->current + $this->perpage;
99 99
                 if ($this->total > $next) {
100
-                    $ret .= '<a class="xo-pagarrow" href="' . $this->url . $next . $this->extra . '"><u>&raquo;</u></a> ';
100
+                    $ret .= '<a class="xo-pagarrow" href="'.$this->url.$next.$this->extra.'"><u>&raquo;</u></a> ';
101 101
                 }
102 102
                 $ret .= '</div> ';
103 103
             }
@@ -126,15 +126,15 @@  discard block
 block discarded – undo
126 126
             $current_page = (int)floor(($this->current + $this->perpage) / $this->perpage);
127 127
             while ($counter <= $total_pages) {
128 128
                 if ($counter == $current_page) {
129
-                    $ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '" selected>' . $counter . '</option>';
129
+                    $ret .= '<option value="'.$this->url.(($counter - 1) * $this->perpage).$this->extra.'" selected>'.$counter.'</option>';
130 130
                 } else {
131
-                    $ret .= '<option value="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</option>';
131
+                    $ret .= '<option value="'.$this->url.(($counter - 1) * $this->perpage).$this->extra.'">'.$counter.'</option>';
132 132
                 }
133 133
                 ++$counter;
134 134
             }
135 135
             $ret .= '</select>';
136 136
             if ($showbutton) {
137
-                $ret .= '&nbsp;<input type="submit" value="' . _GO . '" />';
137
+                $ret .= '&nbsp;<input type="submit" value="'._GO.'" />';
138 138
             }
139 139
             $ret .= '</form>';
140 140
         }
@@ -159,20 +159,20 @@  discard block
 block discarded – undo
159 159
             $ret  = '<table><tr>';
160 160
             $prev = $this->current - $this->perpage;
161 161
             if ($prev >= 0) {
162
-                $ret .= '<td class="pagneutral"><a href="' . $this->url . $prev . $this->extra . '">&lt;</a></td><td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td>';
162
+                $ret .= '<td class="pagneutral"><a href="'.$this->url.$prev.$this->extra.'">&lt;</a></td><td><img src="'.XOOPS_URL.'/images/blank.gif" width="6" alt="" /></td>';
163 163
             } else {
164
-                $ret .= '<td class="pagno"></a></td><td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td>';
164
+                $ret .= '<td class="pagno"></a></td><td><img src="'.XOOPS_URL.'/images/blank.gif" width="6" alt="" /></td>';
165 165
             }
166 166
             $counter      = 1;
167 167
             $current_page = (int)floor(($this->current + $this->perpage) / $this->perpage);
168 168
             while ($counter <= $total_pages) {
169 169
                 if ($counter == $current_page) {
170
-                    $ret .= '<td class="pagact"><strong>' . $counter . '</strong></td>';
170
+                    $ret .= '<td class="pagact"><strong>'.$counter.'</strong></td>';
171 171
                 } elseif (($counter > $current_page - $offset && $counter < $current_page + $offset) || $counter == 1 || $counter == $total_pages) {
172 172
                     if ($counter == $total_pages && $current_page < $total_pages - $offset) {
173 173
                         $ret .= '<td class="paginact">...</td>';
174 174
                     }
175
-                    $ret .= '<td class="paginact"><a href="' . $this->url . (($counter - 1) * $this->perpage) . $this->extra . '">' . $counter . '</a></td>';
175
+                    $ret .= '<td class="paginact"><a href="'.$this->url.(($counter - 1) * $this->perpage).$this->extra.'">'.$counter.'</a></td>';
176 176
                     if ($counter == 1 && $current_page > 1 + $offset) {
177 177
                         $ret .= '<td class="paginact">...</td>';
178 178
                     }
@@ -181,9 +181,9 @@  discard block
 block discarded – undo
181 181
             }
182 182
             $next = $this->current + $this->perpage;
183 183
             if ($this->total > $next) {
184
-                $ret .= '<td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td><td class="pagneutral"><a href="' . $this->url . $next . $this->extra . '">&gt;</a></td>';
184
+                $ret .= '<td><img src="'.XOOPS_URL.'/images/blank.gif" width="6" alt="" /></td><td class="pagneutral"><a href="'.$this->url.$next.$this->extra.'">&gt;</a></td>';
185 185
             } else {
186
-                $ret .= '<td><img src="' . XOOPS_URL . '/images/blank.gif" width="6" alt="" /></td><td class="pagno"></td>';
186
+                $ret .= '<td><img src="'.XOOPS_URL.'/images/blank.gif" width="6" alt="" /></td><td class="pagno"></td>';
187 187
             }
188 188
             $ret .= '</tr></table>';
189 189
         }
Please login to merge, or discard this patch.