@@ -32,17 +32,17 @@ |
||
| 32 | 32 | $varvalue = Decorator::value_url($value, $fields); |
| 33 | 33 | if ($varname == 'action') { |
| 34 | 34 | if ($varvalue == 'subtree') { |
| 35 | - $url = '/tree/'.str_replace('.php', '/subtree', $url); |
|
| 35 | + $url = '/tree/' . str_replace('.php', '/subtree', $url); |
|
| 36 | 36 | } else { |
| 37 | - $url = '/tree/'.str_replace('.php', '', $url); |
|
| 37 | + $url = '/tree/' . str_replace('.php', '', $url); |
|
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | - $url .= $sep.$varname.'='.$varvalue; |
|
| 40 | + $url .= $sep . $varname . '=' . $varvalue; |
|
| 41 | 41 | $sep = '&'; |
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | if (SUBFOLDER !== '' && (strpos($url, '/') === 0) && (strpos($url, SUBFOLDER) === false)) { |
| 45 | - $url = str_replace('//', '/', SUBFOLDER.'/'.$url); |
|
| 45 | + $url = str_replace('//', '/', SUBFOLDER . '/' . $url); |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | return str_replace('.php', '', $url); |
@@ -34,16 +34,16 @@ |
||
| 34 | 34 | $varname = Decorator::value_url($var, $fields); |
| 35 | 35 | $varvalue = Decorator::value_url($value, $fields); |
| 36 | 36 | if ($varname == 'subject') { |
| 37 | - $url = '/'.str_replace('.php', '/'.$varvalue, $url); |
|
| 37 | + $url = '/' . str_replace('.php', '/' . $varvalue, $url); |
|
| 38 | 38 | } else { |
| 39 | - $url .= $sep.$varname.'='.$varvalue; |
|
| 39 | + $url .= $sep . $varname . '=' . $varvalue; |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | $sep = '&'; |
| 43 | 43 | } |
| 44 | 44 | } |
| 45 | 45 | if (SUBFOLDER !== '' && (strpos($url, '/') === 0) && (strpos($url, SUBFOLDER) === false)) { |
| 46 | - $url = str_replace('//', '/', SUBFOLDER.'/'.$url); |
|
| 46 | + $url = str_replace('//', '/', SUBFOLDER . '/' . $url); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | return str_replace('.php', '', $url); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | ksort($urlvars); |
| 101 | 101 | foreach ($urlvars as $var => $varfield) { |
| 102 | - $url .= $sep.Decorator::value_url($var, $fields).'='.Decorator::value_url($varfield, $fields); |
|
| 102 | + $url .= $sep . Decorator::value_url($var, $fields) . '=' . Decorator::value_url($varfield, $fields); |
|
| 103 | 103 | $sep = '&'; |
| 104 | 104 | } |
| 105 | 105 | |
@@ -138,12 +138,12 @@ discard block |
||
| 138 | 138 | $tag = '<a '; |
| 139 | 139 | foreach ($link['attr'] as $attr => $value) { |
| 140 | 140 | if ($attr == 'href' and is_array($value)) { |
| 141 | - $tag .= 'href="'.htmlentities($this->getActionUrl($value, $link['fields'], $from)).'" '; |
|
| 141 | + $tag .= 'href="' . htmlentities($this->getActionUrl($value, $link['fields'], $from)) . '" '; |
|
| 142 | 142 | } else { |
| 143 | - $tag .= htmlentities($attr).'="'.Decorator::get_sanitized_value($value, $link['fields'], 'html').'" '; |
|
| 143 | + $tag .= htmlentities($attr) . '="' . Decorator::get_sanitized_value($value, $link['fields'], 'html') . '" '; |
|
| 144 | 144 | } |
| 145 | 145 | } |
| 146 | - $tag .= '>'.Decorator::get_sanitized_value($link['content'], $link['fields'], 'html')."</a>\n"; |
|
| 146 | + $tag .= '>' . Decorator::get_sanitized_value($link['content'], $link['fields'], 'html') . "</a>\n"; |
|
| 147 | 147 | |
| 148 | 148 | if ($do_print) { |
| 149 | 149 | echo $tag; |
@@ -173,9 +173,9 @@ discard block |
||
| 173 | 173 | { |
| 174 | 174 | $htmlOut = ''; |
| 175 | 175 | if ($bMultiple) { // If multiple select combo |
| 176 | - $htmlOut .= "<select rel=\"printCombo\" name=\"$szName\" id=\"$szName\" multiple=\"multiple\" size=\"$iSize\">"."\n"; |
|
| 176 | + $htmlOut .= "<select rel=\"printCombo\" name=\"$szName\" id=\"$szName\" multiple=\"multiple\" size=\"$iSize\">" . "\n"; |
|
| 177 | 177 | } else { |
| 178 | - $htmlOut .= "<select rel=\"printCombo\" class=\"select2\" name=\"$szName\" id=\"$szName\">"."\n"; |
|
| 178 | + $htmlOut .= "<select rel=\"printCombo\" class=\"select2\" name=\"$szName\" id=\"$szName\">" . "\n"; |
|
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | if ($bBlankEntry) { |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | if ($this->has_ma) { |
| 92 | - $tablehtml .= '<script src="'.SUBFOLDER."/js/multiactionform.js\" type=\"text/javascript\"></script>\n"; |
|
| 92 | + $tablehtml .= '<script src="' . SUBFOLDER . "/js/multiactionform.js\" type=\"text/javascript\"></script>\n"; |
|
| 93 | 93 | $tablehtml .= "<form id=\"multi_form\" action=\"{$this->ma['url']}\" method=\"post\" enctype=\"multipart/form-data\">\n"; |
| 94 | 94 | if (isset($this->ma['vars'])) { |
| 95 | 95 | foreach ($this->ma['vars'] as $k => $v) { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - $tablehtml .= '<table width="auto" class="will_be_datatable '.$place.'">'."\n"; |
|
| 101 | + $tablehtml .= '<table width="auto" class="will_be_datatable ' . $place . '">' . "\n"; |
|
| 102 | 102 | |
| 103 | 103 | $tablehtml .= $this->getThead($columns, $actions); |
| 104 | 104 | |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | if (isset($a['multiaction'])) { |
| 138 | 138 | $selected = $this->ma['default'] == $k ? ' selected="selected" ' : ''; |
| 139 | 139 | $tablehtml .= "\t\t"; |
| 140 | - $tablehtml .= '<option value="'.$a['multiaction'].'" '.$selected.' rel="'.$k.'">'.$a['content'].'</option>'; |
|
| 140 | + $tablehtml .= '<option value="' . $a['multiaction'] . '" ' . $selected . ' rel="' . $k . '">' . $a['content'] . '</option>'; |
|
| 141 | 141 | $tablehtml .= "\n"; |
| 142 | 142 | } |
| 143 | 143 | } |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | //\Kint::dump($a); |
| 187 | 187 | $tbody_html .= '<td>'; |
| 188 | - $tbody_html .= '<input type="checkbox" name="ma[]" value="'.htmlentities(serialize($a), ENT_COMPAT, 'UTF-8').'" />'; |
|
| 188 | + $tbody_html .= '<input type="checkbox" name="ma[]" value="' . htmlentities(serialize($a), ENT_COMPAT, 'UTF-8') . '" />'; |
|
| 189 | 189 | $tbody_html .= "</td>\n"; |
| 190 | 190 | } |
| 191 | 191 | |
@@ -271,12 +271,12 @@ discard block |
||
| 271 | 271 | switch ($column_id) { |
| 272 | 272 | case 'actions': |
| 273 | 273 | if (count($actions) > 0) { |
| 274 | - $thead_html .= '<th class="data" colspan="'.count($actions).'">'.$column['title'].'</th>'."\n"; |
|
| 274 | + $thead_html .= '<th class="data" colspan="' . count($actions) . '">' . $column['title'] . '</th>' . "\n"; |
|
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | break; |
| 278 | 278 | default: |
| 279 | - $thead_html .= '<th class="data'.$this->class.'">'; |
|
| 279 | + $thead_html .= '<th class="data' . $this->class . '">'; |
|
| 280 | 280 | if (isset($column['help'])) { |
| 281 | 281 | $thead_html .= $this->misc->printHelp($column['title'], $column['help'], false); |
| 282 | 282 | } else { |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | switch ($column_id) { |
| 313 | 313 | case 'actions': |
| 314 | 314 | if (count($actions) > 0) { |
| 315 | - $tfoot_html .= '<td class="data" colspan="'.count($actions)."\"></td>\n"; |
|
| 315 | + $tfoot_html .= '<td class="data" colspan="' . count($actions) . "\"></td>\n"; |
|
| 316 | 316 | } |
| 317 | 317 | |
| 318 | 318 | break; |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | { |
| 340 | 340 | $url_vars_html = ''; |
| 341 | 341 | foreach ($vars as $var => $varfield) { |
| 342 | - $url_vars_html .= "{$var}=".urlencode($fields[$varfield]).'&'; |
|
| 342 | + $url_vars_html .= "{$var}=" . urlencode($fields[$varfield]) . '&'; |
|
| 343 | 343 | } |
| 344 | 344 | if ($do_print) { |
| 345 | 345 | echo $url_vars_html; |
@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | $viewVars['applocale'] = $lang['applocale']; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | - $viewVars['dir'] = (strcasecmp($lang['applangdir'], 'ltr') != 0) ? ' dir="'.htmlspecialchars($lang['applangdir']).'"' : ''; |
|
| 53 | + $viewVars['dir'] = (strcasecmp($lang['applangdir'], 'ltr') != 0) ? ' dir="' . htmlspecialchars($lang['applangdir']) . '"' : ''; |
|
| 54 | 54 | $viewVars['headertemplate'] = $template; |
| 55 | - $viewVars['title'] = ($title !== '') ? ' - '.$title : ''; |
|
| 56 | - $viewVars['appName'] = htmlspecialchars($this->appName).(($title != '') ? htmlspecialchars(" - {$title}") : ''); |
|
| 55 | + $viewVars['title'] = ($title !== '') ? ' - ' . $title : ''; |
|
| 56 | + $viewVars['appName'] = htmlspecialchars($this->appName) . (($title != '') ? htmlspecialchars(" - {$title}") : ''); |
|
| 57 | 57 | |
| 58 | 58 | $viewVars['script'] = $script; |
| 59 | 59 | //$this->prtrace($viewVars); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | public function printBody($doBody = true, $bodyClass = 'detailbody') |
| 86 | 86 | { |
| 87 | 87 | $bodyClass = htmlspecialchars($bodyClass); |
| 88 | - $bodyHtml = '<body data-controller="'.$this->controller_name.'" class="'.$this->lang['applangdir'].' '.$bodyClass.'" >'; |
|
| 88 | + $bodyHtml = '<body data-controller="' . $this->controller_name . '" class="' . $this->lang['applangdir'] . ' ' . $bodyClass . '" >'; |
|
| 89 | 89 | $bodyHtml .= "\n"; |
| 90 | 90 | /*$bodyHtml .= '<div id="flexbox_wrapper">'; |
| 91 | 91 | $bodyHtml .= "\n"; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | //$this->prtrace($trail); |
| 32 | 32 | |
| 33 | - $trail_html .= '<div class="trail" data-controller="'.$this->controller_name.'"><table><tr>'; |
|
| 33 | + $trail_html .= '<div class="trail" data-controller="' . $this->controller_name . '"><table><tr>'; |
|
| 34 | 34 | |
| 35 | 35 | foreach ($trail as $crumb) { |
| 36 | 36 | $trail_html .= '<td class="crumb">'; |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $crumblink .= "<span class=\"icon\"><img src=\"{$icon}\" alt=\"{$iconalt}\" /></span>"; |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | - $crumblink .= '<span class="label">'.htmlspecialchars($crumb['text']).'</span></a>'; |
|
| 60 | + $crumblink .= '<span class="label">' . htmlspecialchars($crumb['text']) . '</span></a>'; |
|
| 61 | 61 | |
| 62 | 62 | if (isset($crumb['help'])) { |
| 63 | 63 | $trail_html .= $this->misc->printHelp($crumblink, $crumb['help'], false); |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | //$this->prtrace($tabs); |
| 158 | 158 | |
| 159 | 159 | if (count($tabs) > 0) { |
| 160 | - $width = (int) (100 / count($tabs)).'%'; |
|
| 160 | + $width = (int) (100 / count($tabs)) . '%'; |
|
| 161 | 161 | |
| 162 | 162 | $viewVars = [ |
| 163 | 163 | 'width' => $width, |
@@ -219,15 +219,15 @@ discard block |
||
| 219 | 219 | $server_id = $misc->getServerId(); |
| 220 | 220 | $reqvars = $misc->getRequestVars('table'); |
| 221 | 221 | |
| 222 | - $topbar_html = '<div class="topbar" data-controller="'.$this->controller_name.'"><table style="width: 100%"><tr><td>'; |
|
| 222 | + $topbar_html = '<div class="topbar" data-controller="' . $this->controller_name . '"><table style="width: 100%"><tr><td>'; |
|
| 223 | 223 | |
| 224 | 224 | if ($server_info && isset($server_info['platform']) && isset($server_info['username'])) { |
| 225 | 225 | /* top left informations when connected */ |
| 226 | 226 | $topbar_html .= sprintf($lang['strtopbar'], |
| 227 | - '<span class="platform">'.htmlspecialchars($server_info['platform']).'</span>', |
|
| 228 | - '<span class="host">'.htmlspecialchars((empty($server_info['host'])) ? 'localhost' : $server_info['host']).'</span>', |
|
| 229 | - '<span class="port">'.htmlspecialchars($server_info['port']).'</span>', |
|
| 230 | - '<span class="username">'.htmlspecialchars($server_info['username']).'</span>'); |
|
| 227 | + '<span class="platform">' . htmlspecialchars($server_info['platform']) . '</span>', |
|
| 228 | + '<span class="host">' . htmlspecialchars((empty($server_info['host'])) ? 'localhost' : $server_info['host']) . '</span>', |
|
| 229 | + '<span class="port">' . htmlspecialchars($server_info['port']) . '</span>', |
|
| 230 | + '<span class="username">' . htmlspecialchars($server_info['username']) . '</span>'); |
|
| 231 | 231 | |
| 232 | 232 | $topbar_html .= '</td>'; |
| 233 | 233 | |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | 'sql' => [ |
| 238 | 238 | 'attr' => [ |
| 239 | 239 | 'href' => [ |
| 240 | - 'url' => SUBFOLDER.'/src/views/sqledit', |
|
| 240 | + 'url' => SUBFOLDER . '/src/views/sqledit', |
|
| 241 | 241 | 'urlvars' => array_merge($reqvars, [ |
| 242 | 242 | 'action' => 'sql', |
| 243 | 243 | ]), |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | 'history' => [ |
| 251 | 251 | 'attr' => [ |
| 252 | 252 | 'href' => [ |
| 253 | - 'url' => SUBFOLDER.'/src/views/history', |
|
| 253 | + 'url' => SUBFOLDER . '/src/views/history', |
|
| 254 | 254 | 'urlvars' => array_merge($reqvars, [ |
| 255 | 255 | 'action' => 'pophistory', |
| 256 | 256 | ]), |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | 'find' => [ |
| 263 | 263 | 'attr' => [ |
| 264 | 264 | 'href' => [ |
| 265 | - 'url' => SUBFOLDER.'/src/views/sqledit', |
|
| 265 | + 'url' => SUBFOLDER . '/src/views/sqledit', |
|
| 266 | 266 | 'urlvars' => array_merge($reqvars, [ |
| 267 | 267 | 'action' => 'find', |
| 268 | 268 | ]), |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | 'logout' => [ |
| 276 | 276 | 'attr' => [ |
| 277 | 277 | 'href' => [ |
| 278 | - 'url' => SUBFOLDER.'/src/views/servers', |
|
| 278 | + 'url' => SUBFOLDER . '/src/views/servers', |
|
| 279 | 279 | 'urlvars' => [ |
| 280 | 280 | 'action' => 'logout', |
| 281 | 281 | 'logoutServer' => "{$server_info['host']}:{$server_info['port']}:{$server_info['sslmode']}", |
@@ -300,8 +300,8 @@ discard block |
||
| 300 | 300 | |
| 301 | 301 | $topbar_html .= '</td>'; |
| 302 | 302 | |
| 303 | - $sql_window_id = htmlentities('sqledit:'.$server_id); |
|
| 304 | - $history_window_id = htmlentities('history:'.$server_id); |
|
| 303 | + $sql_window_id = htmlentities('sqledit:' . $server_id); |
|
| 304 | + $history_window_id = htmlentities('history:' . $server_id); |
|
| 305 | 305 | |
| 306 | 306 | $topbar_html .= "<script type=\"text/javascript\"> |
| 307 | 307 | $('#toplink_sql').click(function() { |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | $vars = $this->misc->getSubjectParams($subject); |
| 367 | 367 | ksort($vars['params']); |
| 368 | 368 | |
| 369 | - return "{$vars['url']}?".http_build_query($vars['params'], '', '&'); |
|
| 369 | + return "{$vars['url']}?" . http_build_query($vars['params'], '', '&'); |
|
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | /** |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | |
| 390 | 390 | $trail['root'] = [ |
| 391 | 391 | 'text' => $appName, |
| 392 | - 'url' => SUBFOLDER.'/src/views/servers', |
|
| 392 | + 'url' => SUBFOLDER . '/src/views/servers', |
|
| 393 | 393 | 'icon' => 'Introduction', |
| 394 | 394 | ]; |
| 395 | 395 | |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | ]; |
| 464 | 464 | } elseif (isset($_REQUEST['matview']) && !$done) { |
| 465 | 465 | $trail['matview'] = [ |
| 466 | - 'title' => 'M'.$lang['strview'], |
|
| 466 | + 'title' => 'M' . $lang['strview'], |
|
| 467 | 467 | 'text' => $_REQUEST['matview'], |
| 468 | 468 | 'url' => $this->getHREFSubject('matview'), |
| 469 | 469 | 'help' => 'pg.matview', |
@@ -486,7 +486,7 @@ discard block |
||
| 486 | 486 | switch ($subject) { |
| 487 | 487 | case 'function': |
| 488 | 488 | $trail[$subject] = [ |
| 489 | - 'title' => $lang['str'.$subject], |
|
| 489 | + 'title' => $lang['str' . $subject], |
|
| 490 | 490 | 'text' => $_REQUEST[$subject], |
| 491 | 491 | 'url' => $this->getHREFSubject('function'), |
| 492 | 492 | 'help' => 'pg.function', |
@@ -525,9 +525,9 @@ discard block |
||
| 525 | 525 | break; |
| 526 | 526 | } |
| 527 | 527 | $trail[$subject] = [ |
| 528 | - 'title' => array_key_exists('str'.$subject, $lang) ? $lang['str'.$subject] : $subject, |
|
| 528 | + 'title' => array_key_exists('str' . $subject, $lang) ? $lang['str' . $subject] : $subject, |
|
| 529 | 529 | 'text' => $_REQUEST[$subject], |
| 530 | - 'help' => 'pg.'.$subject, |
|
| 530 | + 'help' => 'pg.' . $subject, |
|
| 531 | 531 | 'icon' => $icon, |
| 532 | 532 | ]; |
| 533 | 533 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $footer_html .= $this->printReload(true, false); |
| 57 | 57 | } |
| 58 | 58 | if (!$this->_no_bottom_link) { |
| 59 | - $footer_html .= '<a data-footertemplate="'.$template.'" href="#" class="bottom_link">'.$lang['strgotoppage'].'</a>'; |
|
| 59 | + $footer_html .= '<a data-footertemplate="' . $template . '" href="#" class="bottom_link">' . $lang['strgotoppage'] . '</a>'; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | $footer_html .= $this->view->fetch($template); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $reload = "<script type=\"text/javascript\">\n"; |
| 80 | 80 | //$reload .= " alert('will reload');"; |
| 81 | 81 | if ($database) { |
| 82 | - $reload .= "\tparent.frames && parent.frames.browser && parent.frames.browser.location.replace=\"".SUBFOLDER."/src/views/browser.php\";\n"; |
|
| 82 | + $reload .= "\tparent.frames && parent.frames.browser && parent.frames.browser.location.replace=\"" . SUBFOLDER . "/src/views/browser.php\";\n"; |
|
| 83 | 83 | } else { |
| 84 | 84 | $reload .= "\tif(parent.frames && parent.frames.browser) { console.log('will reload frame browser'); parent.frames.browser.location.reload();} else { console.log('will do location replace'); location.replace(location.href);}\n"; |
| 85 | 85 | //$reload .= "\tparent.frames.detail.location.href=\"".SUBFOLDER . "/src/views/intro\";\n"; |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | { |
| 118 | 118 | echo "<script type=\"text/javascript\">\n"; |
| 119 | 119 | echo "//<![CDATA[\n"; |
| 120 | - echo " window.name = '{$name}", ($addServer ? ':'.htmlspecialchars($this->misc->getServerId()) : ''), "';\n"; |
|
| 120 | + echo " window.name = '{$name}", ($addServer ? ':' . htmlspecialchars($this->misc->getServerId()) : ''), "';\n"; |
|
| 121 | 121 | echo "//]]>\n"; |
| 122 | 122 | echo "</script>\n"; |
| 123 | 123 | } |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | } |
| 132 | 132 | } else { |
| 133 | 133 | $msg = isset($attrs['nodata']) ? $attrs['nodata'] : $lang['strnoobjects']; |
| 134 | - $tree_xml .= "<tree text=\"{$msg}\" onaction=\"tree.getSelected().getParent().reload()\" icon=\"".$this->misc->icon('ObjectNotFound').'" />'."\n"; |
|
| 134 | + $tree_xml .= "<tree text=\"{$msg}\" onaction=\"tree.getSelected().getParent().reload()\" icon=\"" . $this->misc->icon('ObjectNotFound') . '" />' . "\n"; |
|
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | $tree_xml .= "</tree>\n"; |
@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | |
| 306 | 306 | echo '<p>', sprintf($lang['strconfdropftsconfig'], $misc->printVal($_REQUEST['ftscfg'])), "</p>\n"; |
| 307 | 307 | |
| 308 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 308 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 309 | 309 | echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n"; |
| 310 | 310 | echo "<p><input type=\"hidden\" name=\"action\" value=\"dropconfig\" />\n"; |
| 311 | 311 | echo '<input type="hidden" name="database" value="', htmlspecialchars($_REQUEST['database']), "\" />\n"; |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | echo '<p>', sprintf($lang['strconfdropftsdict'], $misc->printVal($_REQUEST['ftsdict'])), "</p>\n"; |
| 340 | 340 | |
| 341 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 341 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 342 | 342 | echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n"; |
| 343 | 343 | echo "<p><input type=\"hidden\" name=\"action\" value=\"dropdict\" />\n"; |
| 344 | 344 | echo '<input type="hidden" name="database" value="', htmlspecialchars($_REQUEST['database']), "\" />\n"; |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | $this->printTitle($lang['strftscreateconfig'], 'pg.ftscfg.create'); |
| 402 | 402 | $this->printMsg($msg); |
| 403 | 403 | |
| 404 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 404 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 405 | 405 | echo "<table>\n"; |
| 406 | 406 | /* conf name */ |
| 407 | 407 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | while (!$ftscfgs->EOF) { |
| 418 | 418 | $data->fieldClean($ftscfgs->fields['schema']); |
| 419 | 419 | $data->fieldClean($ftscfgs->fields['name']); |
| 420 | - $tplname = $ftscfgs->fields['schema'].'.'.$ftscfgs->fields['name']; |
|
| 420 | + $tplname = $ftscfgs->fields['schema'] . '.' . $ftscfgs->fields['name']; |
|
| 421 | 421 | $tpls[$tplname] = serialize([ |
| 422 | 422 | 'name' => $ftscfgs->fields['name'], |
| 423 | 423 | 'schema' => $ftscfgs->fields['schema'], |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | while (!$ftsparsers->EOF) { |
| 439 | 439 | $data->fieldClean($ftsparsers->fields['schema']); |
| 440 | 440 | $data->fieldClean($ftsparsers->fields['name']); |
| 441 | - $parsername = $ftsparsers->fields['schema'].'.'.$ftsparsers->fields['name']; |
|
| 441 | + $parsername = $ftsparsers->fields['schema'] . '.' . $ftsparsers->fields['name']; |
|
| 442 | 442 | |
| 443 | 443 | $ftsparsers_[$parsername] = serialize([ |
| 444 | 444 | 'parser' => $ftsparsers->fields['name'], |
@@ -548,7 +548,7 @@ discard block |
||
| 548 | 548 | // Fetch all FTS parsers from the database |
| 549 | 549 | $ftsparsers = $data->getFtsParsers(); |
| 550 | 550 | |
| 551 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 551 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 552 | 552 | echo "<table>\n"; |
| 553 | 553 | |
| 554 | 554 | echo "\t<tr>\n"; |
@@ -861,7 +861,7 @@ discard block |
||
| 861 | 861 | $this->printTitle($lang['strftscreatedict'], 'pg.ftsdict.create'); |
| 862 | 862 | $this->printMsg($msg); |
| 863 | 863 | |
| 864 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 864 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 865 | 865 | echo "<table>\n"; |
| 866 | 866 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 867 | 867 | echo "\t\t<td class=\"data1\"><input name=\"formName\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -877,7 +877,7 @@ discard block |
||
| 877 | 877 | while (!$ftstpls->EOF) { |
| 878 | 878 | $data->fieldClean($ftstpls->fields['schema']); |
| 879 | 879 | $data->fieldClean($ftstpls->fields['name']); |
| 880 | - $tplname = $ftstpls->fields['schema'].'.'.$ftstpls->fields['name']; |
|
| 880 | + $tplname = $ftstpls->fields['schema'] . '.' . $ftstpls->fields['name']; |
|
| 881 | 881 | $tpls[$tplname] = serialize([ |
| 882 | 882 | 'name' => $ftstpls->fields['name'], |
| 883 | 883 | 'schema' => $ftstpls->fields['schema'], |
@@ -1015,7 +1015,7 @@ discard block |
||
| 1015 | 1015 | $_POST['formName'] = $_REQUEST['ftsdict']; |
| 1016 | 1016 | } |
| 1017 | 1017 | |
| 1018 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1018 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1019 | 1019 | echo "<table>\n"; |
| 1020 | 1020 | |
| 1021 | 1021 | echo "\t<tr>\n"; |
@@ -1088,7 +1088,7 @@ discard block |
||
| 1088 | 1088 | $this->printTrail('ftscfg'); // TODO: proper breadcrumbs |
| 1089 | 1089 | $this->printTitle($lang['strdrop'], 'pg.ftscfg.alter'); |
| 1090 | 1090 | |
| 1091 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1091 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1092 | 1092 | |
| 1093 | 1093 | // Case of multiaction drop |
| 1094 | 1094 | if (isset($_REQUEST['ma'])) { |
@@ -1154,7 +1154,7 @@ discard block |
||
| 1154 | 1154 | $_POST['ftscfg'] = $_REQUEST['ftscfg']; |
| 1155 | 1155 | } |
| 1156 | 1156 | |
| 1157 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1157 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1158 | 1158 | |
| 1159 | 1159 | echo "<table>\n"; |
| 1160 | 1160 | echo "\t<tr>\n"; |
@@ -1259,7 +1259,7 @@ discard block |
||
| 1259 | 1259 | |
| 1260 | 1260 | $mappings = $data->getFtsMappings($_POST['ftscfg']); |
| 1261 | 1261 | |
| 1262 | - echo '<form action="'.SUBFOLDER."/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1262 | + echo '<form action="' . SUBFOLDER . "/src/views/fulltext.php\" method=\"post\">\n"; |
|
| 1263 | 1263 | echo "<table>\n"; |
| 1264 | 1264 | echo "\t<tr>\n"; |
| 1265 | 1265 | echo "\t\t<th class=\"data left required\">{$lang['strftsmapping']}</th>\n"; |