@@ -15,7 +15,7 @@ |
||
15 | 15 | function xoops_debug_dumbQuery($msg = '') |
16 | 16 | { |
17 | 17 | global $xoopsDB; |
18 | - $xoopsDB->query('SELECT * ' . $msg . ' FROM dudewhereismycar2'); |
|
18 | + $xoopsDB->query('SELECT * '.$msg.' FROM dudewhereismycar2'); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | function xoops_debug_initiateQueryCount() |
@@ -178,7 +178,7 @@ |
||
178 | 178 | define('_CO_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION2', 'Vertical with icons'); |
179 | 179 | define('_CO_SOBJECT_BLOCKS_ADDTO_LAYOUT_OPTION3', 'Vertical no icon'); |
180 | 180 | define('_CO_SOBJECT_CURRENT_FILE', 'Current file: '); |
181 | -define('_CO_SOBJECT_URL_FILE_DSC', "Alternatively, you can use an URL. If you select a file via 'Browse' button, URL will be ignored. You can use the tag {XOOPS_URL} to print " . XOOPS_URL); |
|
181 | +define('_CO_SOBJECT_URL_FILE_DSC', "Alternatively, you can use an URL. If you select a file via 'Browse' button, URL will be ignored. You can use the tag {XOOPS_URL} to print ".XOOPS_URL); |
|
182 | 182 | define('_CO_SOBJECT_URL_FILE', 'URL: '); |
183 | 183 | define('_CO_SOBJECT_UPLOAD', 'Select a file to upload: '); |
184 | 184 |
@@ -18,6 +18,6 @@ |
||
18 | 18 | */ |
19 | 19 | |
20 | 20 | $pathIcon32 = \Xmf\Module\Admin::iconUrl('', 32); |
21 | -echo "<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" . " <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n" . " </div>\n" . ' ' . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . '</div>'; |
|
21 | +echo "<div class='adminfooter'>\n"." <div style='text-align: center;'>\n"." <a href='https://xoops.org' rel='external'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"." </div>\n".' '._AM_MODULEADMIN_ADMIN_FOOTER."\n".'</div>'; |
|
22 | 22 | |
23 | 23 | xoops_cp_footer(); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function button_to_function($name, $function = null) |
24 | 24 | { |
25 | - return '<input type="button" value="' . $name . '" onclick="' . $function . '">'; |
|
25 | + return '<input type="button" value="'.$name.'" onclick="'.$function.'">'; |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function tag($content) |
45 | 45 | { |
46 | - return '<script type="text/javascript">' . $content . '</script>'; |
|
46 | + return '<script type="text/javascript">'.$content.'</script>'; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | */ |
55 | 55 | public function link_to_function($name, $function, $html_options = null) |
56 | 56 | { |
57 | - return '<a href="' . (isset($html_options['href']) ? $html_options['href'] : '#') . '" onclick="' . (isset($html_options['onclick']) ? $html_options['onclick'] . ';' : '') . $function . '; return false;">' . $name . '</a>'; |
|
57 | + return '<a href="'.(isset($html_options['href']) ? $html_options['href'] : '#').'" onclick="'.(isset($html_options['onclick']) ? $html_options['onclick'].';' : '').$function.'; return false;">'.$name.'</a>'; |
|
58 | 58 | } |
59 | 59 | |
60 | 60 | ///////////////////////////////////////////////////////////////////////////////////// |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $return_val .= $value; |
77 | 77 | } |
78 | 78 | |
79 | - return '[' . $return_val . ']'; |
|
79 | + return '['.$return_val.']'; |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | return "'$option'"; |
@@ -99,6 +99,6 @@ discard block |
||
99 | 99 | } |
100 | 100 | } |
101 | 101 | |
102 | - return '{' . $return_val . '}'; |
|
102 | + return '{'.$return_val.'}'; |
|
103 | 103 | } |
104 | 104 | } |
@@ -14,9 +14,9 @@ |
||
14 | 14 | */ |
15 | 15 | |
16 | 16 | if (!class_exists('Projax')) { |
17 | - include __DIR__ . '/classes/JavaScript.php'; |
|
18 | - include __DIR__ . '/classes/Prototype.php'; |
|
19 | - include __DIR__ . '/classes/Scriptaculous.php'; |
|
17 | + include __DIR__.'/classes/JavaScript.php'; |
|
18 | + include __DIR__.'/classes/Prototype.php'; |
|
19 | + include __DIR__.'/classes/Scriptaculous.php'; |
|
20 | 20 | |
21 | 21 | // For $projax = new Projax(); |
22 | 22 |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | public function setCode() |
44 | 44 | { |
45 | - $_SESSION['XoopsCaptcha_sessioncode'] = (string)$this->code; |
|
45 | + $_SESSION['XoopsCaptcha_sessioncode'] = (string) $this->code; |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | */ |
51 | 51 | public function render() |
52 | 52 | { |
53 | - $form = $this->loadText() . " <input type='text' name='" . $this->config['name'] . "' id='" . $this->config['name'] . "' size='" . $this->config['num_chars'] . "' maxlength='" . $this->config['num_chars'] . "' value=''>"; |
|
53 | + $form = $this->loadText()." <input type='text' name='".$this->config['name']."' id='".$this->config['name']."' size='".$this->config['num_chars']."' maxlength='".$this->config['num_chars']."' value=''>"; |
|
54 | 54 | $rule = constant('XOOPS_CAPTCHA_RULE_TEXT'); |
55 | 55 | if (!empty($rule)) { |
56 | 56 | $form .= " <small>{$rule}</small>"; |
@@ -45,10 +45,10 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function render() |
47 | 47 | { |
48 | - $form = "<input type='text' name='" . $this->config['name'] . "' id='" . $this->config['name'] . "' size='" . $this->config['num_chars'] . "' maxlength='" . $this->config['num_chars'] . "' value=''> " . $this->loadImage(); |
|
48 | + $form = "<input type='text' name='".$this->config['name']."' id='".$this->config['name']."' size='".$this->config['num_chars']."' maxlength='".$this->config['num_chars']."' value=''> ".$this->loadImage(); |
|
49 | 49 | $rule = htmlspecialchars(XOOPS_CAPTCHA_REFRESH, ENT_QUOTES); |
50 | 50 | if ($this->config['maxattempt']) { |
51 | - $rule .= ' | ' . sprintf(constant('XOOPS_CAPTCHA_MAXATTEMPTS'), $this->config['maxattempt']); |
|
51 | + $rule .= ' | '.sprintf(constant('XOOPS_CAPTCHA_MAXATTEMPTS'), $this->config['maxattempt']); |
|
52 | 52 | } |
53 | 53 | $form .= " <small>{$rule}</small>"; |
54 | 54 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | public function loadImage() |
62 | 62 | { |
63 | 63 | $rule = $this->config['casesensitive'] ? constant('XOOPS_CAPTCHA_RULE_CASESENSITIVE') : constant('XOOPS_CAPTCHA_RULE_CASEINSENSITIVE'); |
64 | - $ret = "<img id='captcha' src='" . XOOPS_URL . '/' . $this->config['imageurl'] . "' onclick=\"this.src='" . XOOPS_URL . '/' . $this->config['imageurl'] . "?refresh='+Math.random()" . "\" align='absmiddle' style='cursor: pointer;' alt='" . htmlspecialchars($rule, ENT_QUOTES) . "'>"; |
|
64 | + $ret = "<img id='captcha' src='".XOOPS_URL.'/'.$this->config['imageurl']."' onclick=\"this.src='".XOOPS_URL.'/'.$this->config['imageurl']."?refresh='+Math.random()"."\" align='absmiddle' style='cursor: pointer;' alt='".htmlspecialchars($rule, ENT_QUOTES)."'>"; |
|
65 | 65 | |
66 | 66 | return $ret; |
67 | 67 | } |
@@ -44,8 +44,8 @@ |
||
44 | 44 | |
45 | 45 | $language = preg_replace("/[^a-z0-9_\-]/i", '', $GLOBALS['xoopsConfig']['language']); |
46 | 46 | |
47 | -if (!@require_once __DIR__ . "/language/{$language}.php") { |
|
48 | - require_once __DIR__ . '/language/english.php'; |
|
47 | +if (!@require_once __DIR__."/language/{$language}.php") { |
|
48 | + require_once __DIR__.'/language/english.php'; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return $config; |
@@ -13,9 +13,9 @@ |
||
13 | 13 | * @filesource |
14 | 14 | */ |
15 | 15 | |
16 | -include __DIR__ . '/classes/JavaScript.php'; |
|
17 | -__DIR__ . '/classes/Prototype.php'; |
|
18 | -__DIR__ . '/classes/Scriptaculous.php'; |
|
16 | +include __DIR__.'/classes/JavaScript.php'; |
|
17 | +__DIR__.'/classes/Prototype.php'; |
|
18 | +__DIR__.'/classes/Scriptaculous.php'; |
|
19 | 19 | |
20 | 20 | // For $projax = new Projax(); |
21 | 21 |