@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $lang = $this->lang; |
| 83 | 83 | $data = $misc->getDatabaseAccessor(); |
| 84 | 84 | |
| 85 | - $renderUseExpires = function ($val) use ($lang) { |
|
| 85 | + $renderUseExpires = function($val) use ($lang) { |
|
| 86 | 86 | return $val == 'infinity' ? $lang['strnever'] : htmlspecialchars($val); |
| 87 | 87 | }; |
| 88 | 88 | |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $_POST['confirm'] = ''; |
| 245 | 245 | } |
| 246 | 246 | |
| 247 | - echo '<form action="'.SUBFOLDER."/src/views/users.php\" method=\"post\">\n"; |
|
| 247 | + echo '<form action="' . SUBFOLDER . "/src/views/users.php\" method=\"post\">\n"; |
|
| 248 | 248 | echo "<table>\n"; |
| 249 | 249 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strpassword']}</th>\n"; |
| 250 | 250 | echo "\t\t<td><input type=\"password\" name=\"password\" size=\"32\" value=\"", |
@@ -317,10 +317,10 @@ discard block |
||
| 317 | 317 | $_POST['formPassword'] = ''; |
| 318 | 318 | } |
| 319 | 319 | |
| 320 | - echo '<form action="'.SUBFOLDER."/src/views/users.php\" method=\"post\">\n"; |
|
| 320 | + echo '<form action="' . SUBFOLDER . "/src/views/users.php\" method=\"post\">\n"; |
|
| 321 | 321 | echo "<table>\n"; |
| 322 | 322 | echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strusername']}</th>\n"; |
| 323 | - echo "\t\t<td class=\"data1\">", ($canRename ? "<input name=\"newname\" size=\"15\" maxlength=\"{$data->_maxNameLen}\" value=\"".htmlspecialchars($_POST['newname']).'" />' : $misc->printVal($userdata->fields['usename'])), "</td>\n\t</tr>\n"; |
|
| 323 | + echo "\t\t<td class=\"data1\">", ($canRename ? "<input name=\"newname\" size=\"15\" maxlength=\"{$data->_maxNameLen}\" value=\"" . htmlspecialchars($_POST['newname']) . '" />' : $misc->printVal($userdata->fields['usename'])), "</td>\n\t</tr>\n"; |
|
| 324 | 324 | echo "\t<tr>\n\t\t<th class=\"data left\"><label for=\"formSuper\">{$lang['strsuper']}</label></th>\n"; |
| 325 | 325 | echo "\t\t<td class=\"data1\"><input type=\"checkbox\" id=\"formSuper\" name=\"formSuper\"", |
| 326 | 326 | (isset($_POST['formSuper'])) ? ' checked="checked"' : '', " /></td>\n\t</tr>\n"; |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | |
| 392 | 392 | echo '<p>', sprintf($lang['strconfdropuser'], $misc->printVal($_REQUEST['username'])), "</p>\n"; |
| 393 | 393 | |
| 394 | - echo '<form action="'.SUBFOLDER."/src/views/users.php\" method=\"post\">\n"; |
|
| 394 | + echo '<form action="' . SUBFOLDER . "/src/views/users.php\" method=\"post\">\n"; |
|
| 395 | 395 | echo "<p><input type=\"hidden\" name=\"action\" value=\"drop\" />\n"; |
| 396 | 396 | echo '<input type="hidden" name="username" value="', htmlspecialchars($_REQUEST['username']), "\" />\n"; |
| 397 | 397 | echo $misc->form; |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | $this->printTitle($lang['strcreateuser'], 'pg.user.create'); |
| 439 | 439 | $this->printMsg($msg); |
| 440 | 440 | |
| 441 | - echo '<form action="'.SUBFOLDER."/src/views/users.php\" method=\"post\">\n"; |
|
| 441 | + echo '<form action="' . SUBFOLDER . "/src/views/users.php\" method=\"post\">\n"; |
|
| 442 | 442 | echo "<table>\n"; |
| 443 | 443 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strusername']}</th>\n"; |
| 444 | 444 | echo "\t\t<td class=\"data1\"><input size=\"15\" maxlength=\"{$data->_maxNameLen}\" name=\"formUsername\" value=\"", htmlspecialchars($_POST['formUsername']), "\" /></td>\n\t</tr>\n"; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $data = $misc->getDatabaseAccessor(); |
| 30 | 30 | |
| 31 | - $this->printHeader('M '.$lang['strviews']); |
|
| 31 | + $this->printHeader('M ' . $lang['strviews']); |
|
| 32 | 32 | $this->printBody(); |
| 33 | 33 | |
| 34 | 34 | switch ($action) { |
@@ -111,9 +111,9 @@ discard block |
||
| 111 | 111 | |
| 112 | 112 | $columns = [ |
| 113 | 113 | 'matview' => [ |
| 114 | - 'title' => 'M '.$lang['strview'], |
|
| 114 | + 'title' => 'M ' . $lang['strview'], |
|
| 115 | 115 | 'field' => Decorator::field('relname'), |
| 116 | - 'url' => SUBFOLDER."/redirect/matview?{$misc->href}&", |
|
| 116 | + 'url' => SUBFOLDER . "/redirect/matview?{$misc->href}&", |
|
| 117 | 117 | 'vars' => ['matview' => 'relname'], |
| 118 | 118 | ], |
| 119 | 119 | 'owner' => [ |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | $attrs = $data->getTableAttributes($_REQUEST['matview']); |
| 303 | 303 | |
| 304 | - echo '<form action="'.SUBFOLDER.'/src/views/'.$this->script.'" method="post" id="selectform">'; |
|
| 304 | + echo '<form action="' . SUBFOLDER . '/src/views/' . $this->script . '" method="post" id="selectform">'; |
|
| 305 | 305 | echo "\n"; |
| 306 | 306 | |
| 307 | 307 | if ($attrs->recordCount() > 0) { |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | $this->printTrail('getTrail'); |
| 435 | 435 | $this->printTitle($lang['strdrop'], 'pg.matview.drop'); |
| 436 | 436 | |
| 437 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 437 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 438 | 438 | |
| 439 | 439 | //If multi drop |
| 440 | 440 | if (isset($_REQUEST['ma'])) { |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | } |
| 555 | 555 | asort($arrFields); |
| 556 | 556 | |
| 557 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 557 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 558 | 558 | echo "<table>\n"; |
| 559 | 559 | echo "<tr><th class=\"data\">{$lang['strviewname']}</th></tr>"; |
| 560 | 560 | echo "<tr>\n<td class=\"data1\">\n"; |
@@ -633,7 +633,7 @@ discard block |
||
| 633 | 633 | echo "<p><input type=\"hidden\" name=\"action\" value=\"save_create_wiz\" />\n"; |
| 634 | 634 | |
| 635 | 635 | foreach ($arrSelTables as $curTable) { |
| 636 | - echo '<input type="hidden" name="formTables[]" value="'.htmlspecialchars(serialize($curTable))."\" />\n"; |
|
| 636 | + echo '<input type="hidden" name="formTables[]" value="' . htmlspecialchars(serialize($curTable)) . "\" />\n"; |
|
| 637 | 637 | } |
| 638 | 638 | |
| 639 | 639 | echo $misc->form; |
@@ -659,7 +659,7 @@ discard block |
||
| 659 | 659 | $this->printTitle($lang['strcreateviewwiz'], 'pg.matview.create'); |
| 660 | 660 | $this->printMsg($msg); |
| 661 | 661 | |
| 662 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 662 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 663 | 663 | echo "<table>\n"; |
| 664 | 664 | echo "<tr><th class=\"data\">{$lang['strtables']}</th></tr>"; |
| 665 | 665 | echo "<tr>\n<td class=\"data1\">\n"; |
@@ -669,7 +669,7 @@ discard block |
||
| 669 | 669 | $arrTmp = []; |
| 670 | 670 | $arrTmp['schemaname'] = $tables->fields['nspname']; |
| 671 | 671 | $arrTmp['tablename'] = $tables->fields['relname']; |
| 672 | - $arrTables[$tables->fields['nspname'].'.'.$tables->fields['relname']] = serialize($arrTmp); |
|
| 672 | + $arrTables[$tables->fields['nspname'] . '.' . $tables->fields['relname']] = serialize($arrTmp); |
|
| 673 | 673 | $tables->moveNext(); |
| 674 | 674 | } |
| 675 | 675 | echo \PHPPgAdmin\XHtml\HTMLController::printCombo($arrTables, 'formTables[]', false, '', true); |
@@ -712,7 +712,7 @@ discard block |
||
| 712 | 712 | $this->printTitle($lang['strcreateview'], 'pg.matview.create'); |
| 713 | 713 | $this->printMsg($msg); |
| 714 | 714 | |
| 715 | - echo '<form action="'.SUBFOLDER."/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 715 | + echo '<form action="' . SUBFOLDER . "/src/views/materializedviews.php\" method=\"post\">\n"; |
|
| 716 | 716 | echo "<table style=\"width: 100%\">\n"; |
| 717 | 717 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 718 | 718 | echo "\t<td class=\"data1\"><input name=\"formView\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -836,7 +836,7 @@ discard block |
||
| 836 | 836 | |
| 837 | 837 | // Make sure for multi-column foreign keys that we use a table alias tables joined to more than once |
| 838 | 838 | // This can (and should be) more optimized for multi-column foreign keys |
| 839 | - $adj_tbl2 = in_array($tbl2, $arrUsedTbls) ? "$tbl2 AS alias_ppa_".mktime() : $tbl2; |
|
| 839 | + $adj_tbl2 = in_array($tbl2, $arrUsedTbls) ? "$tbl2 AS alias_ppa_" . mktime() : $tbl2; |
|
| 840 | 840 | |
| 841 | 841 | $linkFields .= strlen($linkFields) ? "{$curLink['operator']} $adj_tbl2 ON (\"{$arrLeftLink['schemaname']}\".\"{$arrLeftLink['tablename']}\".\"{$arrLeftLink['fieldname']}\" = \"{$arrRightLink['schemaname']}\".\"{$arrRightLink['tablename']}\".\"{$arrRightLink['fieldname']}\") " |
| 842 | 842 | : "$tbl1 {$curLink['operator']} $adj_tbl2 ON (\"{$arrLeftLink['schemaname']}\".\"{$arrLeftLink['tablename']}\".\"{$arrLeftLink['fieldname']}\" = \"{$arrRightLink['schemaname']}\".\"{$arrRightLink['tablename']}\".\"{$arrRightLink['fieldname']}\") "; |
@@ -882,7 +882,7 @@ discard block |
||
| 882 | 882 | |
| 883 | 883 | //add where from additional conditions |
| 884 | 884 | if (strlen($addConditions)) { |
| 885 | - $viewQuery .= ' WHERE '.$addConditions; |
|
| 885 | + $viewQuery .= ' WHERE ' . $addConditions; |
|
| 886 | 886 | } |
| 887 | 887 | |
| 888 | 888 | $status = $data->createView($_POST['formView'], $viewQuery, false, $_POST['formComment']); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | $default_html = $this->printTabs($misc->getNavTabs('popup'), 'sql', false); |
| 70 | 70 | |
| 71 | - $default_html .= '<form action="'.SUBFOLDER.'/src/views/sql.php" method="post" enctype="multipart/form-data" class="sqlform" id="sqlform" target="detail">'; |
|
| 71 | + $default_html .= '<form action="' . SUBFOLDER . '/src/views/sql.php" method="post" enctype="multipart/form-data" class="sqlform" id="sqlform" target="detail">'; |
|
| 72 | 72 | $default_html .= "\n"; |
| 73 | 73 | $default_html .= $this->_printConnection('sql'); |
| 74 | 74 | |
@@ -78,13 +78,13 @@ discard block |
||
| 78 | 78 | $default_html .= '<label>'; |
| 79 | 79 | $default_html .= $this->misc->printHelp($lang['strsearchpath'], 'pg.schema.search_path', false); |
| 80 | 80 | |
| 81 | - $default_html .= ': <input type="text" name="search_path" size="50" value="'.$search_path.'" />'; |
|
| 81 | + $default_html .= ': <input type="text" name="search_path" size="50" value="' . $search_path . '" />'; |
|
| 82 | 82 | $default_html .= "</label>\n"; |
| 83 | 83 | $default_html .= "</div>\n"; |
| 84 | 84 | |
| 85 | 85 | $default_html .= '<div id="queryedition" style="padding:1%;width:98%;float:left;">'; |
| 86 | 86 | $default_html .= "\n"; |
| 87 | - $default_html .= '<textarea style="width:98%;" rows="10" cols="50" name="query" id="query" resizable="true">'.$sqlquery.'</textarea>'; |
|
| 87 | + $default_html .= '<textarea style="width:98%;" rows="10" cols="50" name="query" id="query" resizable="true">' . $sqlquery . '</textarea>'; |
|
| 88 | 88 | $default_html .= "\n"; |
| 89 | 89 | $default_html .= "</div>\n"; |
| 90 | 90 | |
@@ -94,20 +94,20 @@ discard block |
||
| 94 | 94 | $max_size = $misc->inisizeToBytes(ini_get('upload_max_filesize')); |
| 95 | 95 | if (is_float($max_size) && $max_size > 0) { |
| 96 | 96 | $default_html .= '<p>'; |
| 97 | - $default_html .= '<input type="hidden" name="MAX_FILE_SIZE" value="'.$max_size.'" />'; |
|
| 97 | + $default_html .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . $max_size . '" />'; |
|
| 98 | 98 | $default_html .= "\n"; |
| 99 | - $default_html .= '<label for="script">'.$lang['struploadscript'].'</label>'; |
|
| 99 | + $default_html .= '<label for="script">' . $lang['struploadscript'] . '</label>'; |
|
| 100 | 100 | $default_html .= ' <input id="script" name="script" type="file" /></p>'; |
| 101 | 101 | $default_html .= "</p>\n"; |
| 102 | 102 | } |
| 103 | 103 | } |
| 104 | 104 | $checked = (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''); |
| 105 | 105 | $default_html .= '<p>'; |
| 106 | - $default_html .= '<label for="paginate"><input type="checkbox" id="paginate" name="paginate"'.$checked.' /> '.$lang['strpaginate'].'</label>'; |
|
| 106 | + $default_html .= '<label for="paginate"><input type="checkbox" id="paginate" name="paginate"' . $checked . ' /> ' . $lang['strpaginate'] . '</label>'; |
|
| 107 | 107 | $default_html .= "</p>\n"; |
| 108 | - $default_html .= '<p><input type="submit" name="execute" accesskey="r" value="'.$lang['strexecute'].'" />'; |
|
| 108 | + $default_html .= '<p><input type="submit" name="execute" accesskey="r" value="' . $lang['strexecute'] . '" />'; |
|
| 109 | 109 | $default_html .= "\n"; |
| 110 | - $default_html .= '<input type="reset" accesskey="q" value="'.$lang['strreset'].'" /></p>'; |
|
| 110 | + $default_html .= '<input type="reset" accesskey="q" value="' . $lang['strreset'] . '" /></p>'; |
|
| 111 | 111 | $default_html .= "\n"; |
| 112 | 112 | $default_html .= '</form>'; |
| 113 | 113 | $default_html .= "\n"; |
@@ -130,8 +130,8 @@ discard block |
||
| 130 | 130 | // The javascript action on the select box reloads the |
| 131 | 131 | // popup whenever the server or database is changed. |
| 132 | 132 | // This ensures that the correct page encoding is used. |
| 133 | - $onchange = "onchange=\"location.href='".SUBFOLDER.'/sqledit/'. |
|
| 134 | - urlencode($action)."?server=' + encodeURI(server.options[server.selectedIndex].value) + '&database=' + encodeURI(database.options[database.selectedIndex].value) + "; |
|
| 133 | + $onchange = "onchange=\"location.href='" . SUBFOLDER . '/sqledit/' . |
|
| 134 | + urlencode($action) . "?server=' + encodeURI(server.options[server.selectedIndex].value) + '&database=' + encodeURI(database.options[database.selectedIndex].value) + "; |
|
| 135 | 135 | |
| 136 | 136 | // The exact URL to reload to is different between SQL and Find mode, however. |
| 137 | 137 | if ($action == 'find') { |
@@ -165,29 +165,29 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | $default_html .= "<form action=\"database.php\" method=\"post\" target=\"detail\">\n"; |
| 167 | 167 | $default_html .= $this->_printConnection('find'); |
| 168 | - $default_html .= '<p><input class="focusme" name="term" value="'.htmlspecialchars($_REQUEST['term'])."\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />\n"; |
|
| 168 | + $default_html .= '<p><input class="focusme" name="term" value="' . htmlspecialchars($_REQUEST['term']) . "\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />\n"; |
|
| 169 | 169 | |
| 170 | 170 | // Output list of filters. This is complex due to all the 'has' and 'conf' feature possibilities |
| 171 | 171 | $default_html .= "<select name=\"filter\">\n"; |
| 172 | - $default_html .= "\t<option value=\"\"".($_REQUEST['filter'] == '' ? ' selected="selected" ' : '').">{$lang['strallobjects']}</option>\n"; |
|
| 173 | - $default_html .= "\t<option value=\"SCHEMA\"".($_REQUEST['filter'] == 'SCHEMA' ? ' selected="selected" ' : '').">{$lang['strschemas']}</option>\n"; |
|
| 174 | - $default_html .= "\t<option value=\"TABLE\"".($_REQUEST['filter'] == 'TABLE' ? ' selected="selected" ' : '').">{$lang['strtables']}</option>\n"; |
|
| 175 | - $default_html .= "\t<option value=\"VIEW\"".($_REQUEST['filter'] == 'VIEW' ? ' selected="selected" ' : '').">{$lang['strviews']}</option>\n"; |
|
| 176 | - $default_html .= "\t<option value=\"SEQUENCE\"".($_REQUEST['filter'] == 'SEQUENCE' ? ' selected="selected" ' : '').">{$lang['strsequences']}</option>\n"; |
|
| 177 | - $default_html .= "\t<option value=\"COLUMN\"".($_REQUEST['filter'] == 'COLUMN' ? ' selected="selected" ' : '').">{$lang['strcolumns']}</option>\n"; |
|
| 178 | - $default_html .= "\t<option value=\"RULE\"".($_REQUEST['filter'] == 'RULE' ? ' selected="selected" ' : '').">{$lang['strrules']}</option>\n"; |
|
| 179 | - $default_html .= "\t<option value=\"INDEX\"".($_REQUEST['filter'] == 'INDEX' ? ' selected="selected" ' : '').">{$lang['strindexes']}</option>\n"; |
|
| 180 | - $default_html .= "\t<option value=\"TRIGGER\"".($_REQUEST['filter'] == 'TRIGGER' ? ' selected="selected" ' : '').">{$lang['strtriggers']}</option>\n"; |
|
| 181 | - $default_html .= "\t<option value=\"CONSTRAINT\"".($_REQUEST['filter'] == 'CONSTRAINT' ? ' selected="selected" ' : '').">{$lang['strconstraints']}</option>\n"; |
|
| 182 | - $default_html .= "\t<option value=\"FUNCTION\"".($_REQUEST['filter'] == 'FUNCTION' ? ' selected="selected" ' : '').">{$lang['strfunctions']}</option>\n"; |
|
| 183 | - $default_html .= "\t<option value=\"DOMAIN\"".($_REQUEST['filter'] == 'DOMAIN' ? ' selected="selected" ' : '').">{$lang['strdomains']}</option>\n"; |
|
| 172 | + $default_html .= "\t<option value=\"\"" . ($_REQUEST['filter'] == '' ? ' selected="selected" ' : '') . ">{$lang['strallobjects']}</option>\n"; |
|
| 173 | + $default_html .= "\t<option value=\"SCHEMA\"" . ($_REQUEST['filter'] == 'SCHEMA' ? ' selected="selected" ' : '') . ">{$lang['strschemas']}</option>\n"; |
|
| 174 | + $default_html .= "\t<option value=\"TABLE\"" . ($_REQUEST['filter'] == 'TABLE' ? ' selected="selected" ' : '') . ">{$lang['strtables']}</option>\n"; |
|
| 175 | + $default_html .= "\t<option value=\"VIEW\"" . ($_REQUEST['filter'] == 'VIEW' ? ' selected="selected" ' : '') . ">{$lang['strviews']}</option>\n"; |
|
| 176 | + $default_html .= "\t<option value=\"SEQUENCE\"" . ($_REQUEST['filter'] == 'SEQUENCE' ? ' selected="selected" ' : '') . ">{$lang['strsequences']}</option>\n"; |
|
| 177 | + $default_html .= "\t<option value=\"COLUMN\"" . ($_REQUEST['filter'] == 'COLUMN' ? ' selected="selected" ' : '') . ">{$lang['strcolumns']}</option>\n"; |
|
| 178 | + $default_html .= "\t<option value=\"RULE\"" . ($_REQUEST['filter'] == 'RULE' ? ' selected="selected" ' : '') . ">{$lang['strrules']}</option>\n"; |
|
| 179 | + $default_html .= "\t<option value=\"INDEX\"" . ($_REQUEST['filter'] == 'INDEX' ? ' selected="selected" ' : '') . ">{$lang['strindexes']}</option>\n"; |
|
| 180 | + $default_html .= "\t<option value=\"TRIGGER\"" . ($_REQUEST['filter'] == 'TRIGGER' ? ' selected="selected" ' : '') . ">{$lang['strtriggers']}</option>\n"; |
|
| 181 | + $default_html .= "\t<option value=\"CONSTRAINT\"" . ($_REQUEST['filter'] == 'CONSTRAINT' ? ' selected="selected" ' : '') . ">{$lang['strconstraints']}</option>\n"; |
|
| 182 | + $default_html .= "\t<option value=\"FUNCTION\"" . ($_REQUEST['filter'] == 'FUNCTION' ? ' selected="selected" ' : '') . ">{$lang['strfunctions']}</option>\n"; |
|
| 183 | + $default_html .= "\t<option value=\"DOMAIN\"" . ($_REQUEST['filter'] == 'DOMAIN' ? ' selected="selected" ' : '') . ">{$lang['strdomains']}</option>\n"; |
|
| 184 | 184 | if ($conf['show_advanced']) { |
| 185 | - $default_html .= "\t<option value=\"AGGREGATE\"".($_REQUEST['filter'] == 'AGGREGATE' ? ' selected="selected" ' : '').">{$lang['straggregates']}</option>\n"; |
|
| 186 | - $default_html .= "\t<option value=\"TYPE\"".($_REQUEST['filter'] == 'TYPE' ? ' selected="selected" ' : '').">{$lang['strtypes']}</option>\n"; |
|
| 187 | - $default_html .= "\t<option value=\"OPERATOR\"".($_REQUEST['filter'] == 'OPERATOR' ? ' selected="selected" ' : '').">{$lang['stroperators']}</option>\n"; |
|
| 188 | - $default_html .= "\t<option value=\"OPCLASS\"".($_REQUEST['filter'] == 'OPCLASS' ? ' selected="selected" ' : '').">{$lang['stropclasses']}</option>\n"; |
|
| 189 | - $default_html .= "\t<option value=\"CONVERSION\"".($_REQUEST['filter'] == 'CONVERSION' ? ' selected="selected" ' : '').">{$lang['strconversions']}</option>\n"; |
|
| 190 | - $default_html .= "\t<option value=\"LANGUAGE\"".($_REQUEST['filter'] == 'LANGUAGE' ? ' selected="selected" ' : '').">{$lang['strlanguages']}</option>\n"; |
|
| 185 | + $default_html .= "\t<option value=\"AGGREGATE\"" . ($_REQUEST['filter'] == 'AGGREGATE' ? ' selected="selected" ' : '') . ">{$lang['straggregates']}</option>\n"; |
|
| 186 | + $default_html .= "\t<option value=\"TYPE\"" . ($_REQUEST['filter'] == 'TYPE' ? ' selected="selected" ' : '') . ">{$lang['strtypes']}</option>\n"; |
|
| 187 | + $default_html .= "\t<option value=\"OPERATOR\"" . ($_REQUEST['filter'] == 'OPERATOR' ? ' selected="selected" ' : '') . ">{$lang['stroperators']}</option>\n"; |
|
| 188 | + $default_html .= "\t<option value=\"OPCLASS\"" . ($_REQUEST['filter'] == 'OPCLASS' ? ' selected="selected" ' : '') . ">{$lang['stropclasses']}</option>\n"; |
|
| 189 | + $default_html .= "\t<option value=\"CONVERSION\"" . ($_REQUEST['filter'] == 'CONVERSION' ? ' selected="selected" ' : '') . ">{$lang['strconversions']}</option>\n"; |
|
| 190 | + $default_html .= "\t<option value=\"LANGUAGE\"" . ($_REQUEST['filter'] == 'LANGUAGE' ? ' selected="selected" ' : '') . ">{$lang['strlanguages']}</option>\n"; |
|
| 191 | 191 | } |
| 192 | 192 | $default_html .= "</select>\n"; |
| 193 | 193 | |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | 'function' => [ |
| 93 | 93 | 'title' => $lang['strfunction'], |
| 94 | 94 | 'field' => Decorator::field('proproto'), |
| 95 | - 'url' => SUBFOLDER."/redirect/function?action=properties&{$misc->href}&", |
|
| 95 | + 'url' => SUBFOLDER . "/redirect/function?action=properties&{$misc->href}&", |
|
| 96 | 96 | 'vars' => ['function' => 'proproto', 'function_oid' => 'prooid'], |
| 97 | 97 | ], |
| 98 | 98 | 'returns' => [ |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | } |
| 388 | 388 | if (isset($names_arr[$i]) && $names_arr[$i] != '') { |
| 389 | 389 | $data->fieldClean($names_arr[$i]); |
| 390 | - $args .= '"'.$names_arr[$i].'" '; |
|
| 390 | + $args .= '"' . $names_arr[$i] . '" '; |
|
| 391 | 391 | } |
| 392 | 392 | $args .= $args_arr[$i]; |
| 393 | 393 | } |
@@ -395,8 +395,8 @@ discard block |
||
| 395 | 395 | $args = $fndata->fields['proarguments']; |
| 396 | 396 | } |
| 397 | 397 | |
| 398 | - $func_full = $fndata->fields['proname'].'('.$fndata->fields['proarguments'].')'; |
|
| 399 | - echo '<form action="'.SUBFOLDER."/src/views/functions.php\" method=\"post\">\n"; |
|
| 398 | + $func_full = $fndata->fields['proname'] . '(' . $fndata->fields['proarguments'] . ')'; |
|
| 399 | + echo '<form action="' . SUBFOLDER . "/src/views/functions.php\" method=\"post\">\n"; |
|
| 400 | 400 | echo "<table style=\"width: 90%\">\n"; |
| 401 | 401 | echo "<tr>\n"; |
| 402 | 402 | echo "<th class=\"data required\">{$lang['strschema']}</th>\n"; |
@@ -477,8 +477,8 @@ discard block |
||
| 477 | 477 | // Display function cost options |
| 478 | 478 | if ($data->hasFunctionCosting()) { |
| 479 | 479 | echo "<tr><th class=\"data required\" colspan=\"5\">{$lang['strfunctioncosting']}</th></tr>\n"; |
| 480 | - echo "<td class=\"data1\" colspan=\"2\">{$lang['strexecutioncost']}: <input name=\"formCost\" size=\"16\" value=\"". |
|
| 481 | - htmlspecialchars($_POST['formCost']).'" /></td>'; |
|
| 480 | + echo "<td class=\"data1\" colspan=\"2\">{$lang['strexecutioncost']}: <input name=\"formCost\" size=\"16\" value=\"" . |
|
| 481 | + htmlspecialchars($_POST['formCost']) . '" /></td>'; |
|
| 482 | 482 | echo "<td class=\"data1\" colspan=\"2\">{$lang['strresultrows']}: <input name=\"formRows\" size=\"16\" value=\"", |
| 483 | 483 | htmlspecialchars($_POST['formRows']), '"', (!$fndata->fields['proretset']) ? 'disabled' : '', '/></td>'; |
| 484 | 484 | } |
@@ -583,7 +583,7 @@ discard block |
||
| 583 | 583 | } |
| 584 | 584 | if (isset($names_arr[$i]) && $names_arr[$i] != '') { |
| 585 | 585 | $data->fieldClean($names_arr[$i]); |
| 586 | - $args .= '"'.$names_arr[$i].'" '; |
|
| 586 | + $args .= '"' . $names_arr[$i] . '" '; |
|
| 587 | 587 | } |
| 588 | 588 | $args .= $args_arr[$i]; |
| 589 | 589 | } |
@@ -597,7 +597,7 @@ discard block |
||
| 597 | 597 | } |
| 598 | 598 | |
| 599 | 599 | $funcdata->fields['proretset'] = $data->phpBool($funcdata->fields['proretset']); |
| 600 | - $func_full = $funcdata->fields['proname'].'('.$funcdata->fields['proarguments'].')'; |
|
| 600 | + $func_full = $funcdata->fields['proname'] . '(' . $funcdata->fields['proarguments'] . ')'; |
|
| 601 | 601 | echo "<table style=\"width: 90%\">\n"; |
| 602 | 602 | echo "<tr><th class=\"data\">{$lang['strfunction']}</th>\n"; |
| 603 | 603 | echo "<th class=\"data\">{$lang['strarguments']}</th>\n"; |
@@ -733,7 +733,7 @@ discard block |
||
| 733 | 733 | $this->printTrail('schema'); |
| 734 | 734 | $this->printTitle($lang['strdrop'], 'pg.function.drop'); |
| 735 | 735 | |
| 736 | - echo '<form action="'.SUBFOLDER."/src/views/functions.php\" method=\"post\">\n"; |
|
| 736 | + echo '<form action="' . SUBFOLDER . "/src/views/functions.php\" method=\"post\">\n"; |
|
| 737 | 737 | |
| 738 | 738 | //If multi drop |
| 739 | 739 | if (isset($_REQUEST['ma'])) { |
@@ -880,16 +880,16 @@ discard block |
||
| 880 | 880 | $szSelected = ' selected="selected"'; |
| 881 | 881 | } |
| 882 | 882 | /* this variable is include in the JS code bellow, so we need to ENT_QUOTES */ |
| 883 | - $szTypes .= '<option value="'.htmlspecialchars($types->fields['typname'], ENT_QUOTES)."\"{$szSelected}>"; |
|
| 884 | - $szTypes .= htmlspecialchars($types->fields['typname'], ENT_QUOTES).'</option>'; |
|
| 883 | + $szTypes .= '<option value="' . htmlspecialchars($types->fields['typname'], ENT_QUOTES) . "\"{$szSelected}>"; |
|
| 884 | + $szTypes .= htmlspecialchars($types->fields['typname'], ENT_QUOTES) . '</option>'; |
|
| 885 | 885 | $types->moveNext(); |
| 886 | 886 | } |
| 887 | 887 | |
| 888 | - $szFunctionName = "<td class=\"data1\"><input name=\"formFunction\" size=\"16\" maxlength=\"{$data->_maxNameLen}\" value=\"". |
|
| 889 | - htmlspecialchars($_POST['formFunction']).'" /></td>'; |
|
| 888 | + $szFunctionName = "<td class=\"data1\"><input name=\"formFunction\" size=\"16\" maxlength=\"{$data->_maxNameLen}\" value=\"" . |
|
| 889 | + htmlspecialchars($_POST['formFunction']) . '" /></td>'; |
|
| 890 | 890 | |
| 891 | - $szArguments = '<td class="data1"><input name="formArguments" style="width:100%;" size="16" value="'. |
|
| 892 | - htmlspecialchars($_POST['formArguments']).'" /></td>'; |
|
| 891 | + $szArguments = '<td class="data1"><input name="formArguments" style="width:100%;" size="16" value="' . |
|
| 892 | + htmlspecialchars($_POST['formArguments']) . '" /></td>'; |
|
| 893 | 893 | |
| 894 | 894 | $szSetOfSelected = ''; |
| 895 | 895 | $szNotSetOfSelected = ''; |
@@ -904,7 +904,7 @@ discard block |
||
| 904 | 904 | $szReturns .= "<option value=\"SETOF\"{$szSetOfSelected}>SETOF</option>"; |
| 905 | 905 | $szReturns .= '</select>'; |
| 906 | 906 | |
| 907 | - $szReturns .= '<select name="formReturns">'.$szTypes.'</select>'; |
|
| 907 | + $szReturns .= '<select name="formReturns">' . $szTypes . '</select>'; |
|
| 908 | 908 | |
| 909 | 909 | // Create string array type selector |
| 910 | 910 | |
@@ -924,7 +924,7 @@ discard block |
||
| 924 | 924 | // Create string for language |
| 925 | 925 | $szLanguage = '<td class="data1">'; |
| 926 | 926 | if ($fnlang == 'c' || $fnlang == 'internal') { |
| 927 | - $szLanguage .= $_POST['formLanguage']."\n"; |
|
| 927 | + $szLanguage .= $_POST['formLanguage'] . "\n"; |
|
| 928 | 928 | $szLanguage .= "<input type=\"hidden\" name=\"formLanguage\" value=\"{$_POST['formLanguage']}\" />\n"; |
| 929 | 929 | } else { |
| 930 | 930 | $szLanguage .= "<select name=\"formLanguage\">\n"; |
@@ -934,8 +934,8 @@ discard block |
||
| 934 | 934 | $szSelected = ' selected="selected"'; |
| 935 | 935 | } |
| 936 | 936 | if (strtolower($langs->fields['lanname']) != 'c' && strtolower($langs->fields['lanname']) != 'internal') { |
| 937 | - $szLanguage .= '<option value="'.htmlspecialchars($langs->fields['lanname'])."\"{$szSelected}>\n". |
|
| 938 | - $misc->printVal($langs->fields['lanname']).'</option>'; |
|
| 937 | + $szLanguage .= '<option value="' . htmlspecialchars($langs->fields['lanname']) . "\"{$szSelected}>\n" . |
|
| 938 | + $misc->printVal($langs->fields['lanname']) . '</option>'; |
|
| 939 | 939 | } |
| 940 | 940 | |
| 941 | 941 | $langs->moveNext(); |
@@ -967,7 +967,7 @@ discard block |
||
| 967 | 967 | } |
| 968 | 968 | $szJSAddTR = "<tr id=\"parent_add_tr\" onclick=\"addArg();\" onmouseover=\"this.style.cursor='pointer'\">\n<td style=\"text-align: right\" colspan=\"6\" class=\"data3\"><table><tr><td class=\"data3\"><img src=\"{$szImgPath}/AddArguments.png\" alt=\"Add Argument\" /></td><td class=\"data3\"><span style=\"font-size: 8pt\">{$lang['strargadd']}</span></td></tr></table></td>\n</tr>\n"; |
| 969 | 969 | |
| 970 | - echo '<script src="'.SUBFOLDER."/js/functions.js\" type=\"text/javascript\"></script> |
|
| 970 | + echo '<script src="' . SUBFOLDER . "/js/functions.js\" type=\"text/javascript\"></script> |
|
| 971 | 971 | <script type=\"text/javascript\"> |
| 972 | 972 | //<![CDATA[ |
| 973 | 973 | var g_types_select = '<select name=\"formArgType[]\">{$szTypes}</select>{$szArgReturns}'; |
@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | //]]> |
| 985 | 985 | </script> |
| 986 | 986 | "; |
| 987 | - echo '<form action="'.SUBFOLDER."/src/views//views/functions.php\" method=\"post\">\n"; |
|
| 987 | + echo '<form action="' . SUBFOLDER . "/src/views//views/functions.php\" method=\"post\">\n"; |
|
| 988 | 988 | echo "<table><tbody id=\"args_table\">\n"; |
| 989 | 989 | echo "<tr><th class=\"data required\">{$lang['strname']}</th>\n"; |
| 990 | 990 | echo "<th class=\"data required\" colspan=\"2\">{$lang['strreturns']}</th>\n"; |
@@ -1027,10 +1027,10 @@ discard block |
||
| 1027 | 1027 | // Display function cost options |
| 1028 | 1028 | if ($data->hasFunctionCosting()) { |
| 1029 | 1029 | echo "<tr><th class=\"data required\" colspan=\"4\">{$lang['strfunctioncosting']}</th></tr>\n"; |
| 1030 | - echo "<td class=\"data1\" colspan=\"2\">{$lang['strexecutioncost']}: <input name=\"formCost\" size=\"16\" value=\"". |
|
| 1031 | - htmlspecialchars($_POST['formCost']).'" /></td>'; |
|
| 1032 | - echo "<td class=\"data1\" colspan=\"2\">{$lang['strresultrows']}: <input name=\"formRows\" size=\"16\" value=\"". |
|
| 1033 | - htmlspecialchars($_POST['formRows']).'" /></td>'; |
|
| 1030 | + echo "<td class=\"data1\" colspan=\"2\">{$lang['strexecutioncost']}: <input name=\"formCost\" size=\"16\" value=\"" . |
|
| 1031 | + htmlspecialchars($_POST['formCost']) . '" /></td>'; |
|
| 1032 | + echo "<td class=\"data1\" colspan=\"2\">{$lang['strresultrows']}: <input name=\"formRows\" size=\"16\" value=\"" . |
|
| 1033 | + htmlspecialchars($_POST['formRows']) . '" /></td>'; |
|
| 1034 | 1034 | } |
| 1035 | 1035 | |
| 1036 | 1036 | // Display function properties |
@@ -1082,12 +1082,12 @@ discard block |
||
| 1082 | 1082 | |
| 1083 | 1083 | $szJS = ''; |
| 1084 | 1084 | |
| 1085 | - echo '<script src="'.SUBFOLDER.'/js/functions.js" type="text/javascript"></script>'; |
|
| 1086 | - echo '<script type="text/javascript">'.$this->buildJSData().'</script>'; |
|
| 1085 | + echo '<script src="' . SUBFOLDER . '/js/functions.js" type="text/javascript"></script>'; |
|
| 1086 | + echo '<script type="text/javascript">' . $this->buildJSData() . '</script>'; |
|
| 1087 | 1087 | if (!empty($_POST['formArgName'])) { |
| 1088 | 1088 | $szJS = $this->buildJSRows($this->buildFunctionArguments($_POST)); |
| 1089 | 1089 | } else { |
| 1090 | - $szJS = '<script type="text/javascript" src="'.SUBFOLDER.'/js/functions.js">noArgsRebuild(addArg());</script>'; |
|
| 1090 | + $szJS = '<script type="text/javascript" src="' . SUBFOLDER . '/js/functions.js">noArgsRebuild(addArg());</script>'; |
|
| 1091 | 1091 | } |
| 1092 | 1092 | |
| 1093 | 1093 | $cost = (isset($_POST['formCost'])) ? $_POST['formCost'] : null; |
@@ -1108,7 +1108,7 @@ discard block |
||
| 1108 | 1108 | } else { |
| 1109 | 1109 | // Append array symbol to type if chosen |
| 1110 | 1110 | $status = $data->createFunction($_POST['formFunction'], empty($_POST['nojs']) ? $this->buildFunctionArguments($_POST) : $_POST['formArguments'], |
| 1111 | - $_POST['formReturns'].$_POST['formArray'], $def, $_POST['formLanguage'], |
|
| 1111 | + $_POST['formReturns'] . $_POST['formArray'], $def, $_POST['formLanguage'], |
|
| 1112 | 1112 | $_POST['formProperties'], $_POST['formSetOf'] == 'SETOF', |
| 1113 | 1113 | $cost, $rows, $_POST['formComment'], false); |
| 1114 | 1114 | if ($status == 0) { |
@@ -1127,7 +1127,7 @@ discard block |
||
| 1127 | 1127 | if (isset($_POST['formArgName'])) { |
| 1128 | 1128 | $arrayArgs = []; |
| 1129 | 1129 | foreach ($arrayVars['formArgName'] as $pK => $pV) { |
| 1130 | - $arrayArgs[] = $arrayVars['formArgModes'][$pK].' '.trim($pV).' '.trim($arrayVars['formArgType'][$pK]).$arrayVars['formArgArray'][$pK]; |
|
| 1130 | + $arrayArgs[] = $arrayVars['formArgModes'][$pK] . ' ' . trim($pV) . ' ' . trim($arrayVars['formArgType'][$pK]) . $arrayVars['formArgArray'][$pK]; |
|
| 1131 | 1131 | } |
| 1132 | 1132 | |
| 1133 | 1133 | return implode(',', $arrayArgs); |
@@ -1182,7 +1182,7 @@ discard block |
||
| 1182 | 1182 | $szTypes = ''; |
| 1183 | 1183 | |
| 1184 | 1184 | while (!$arrayTypes->EOF) { |
| 1185 | - $arrayPTypes[] = "'".$arrayTypes->fields['typname']."'"; |
|
| 1185 | + $arrayPTypes[] = "'" . $arrayTypes->fields['typname'] . "'"; |
|
| 1186 | 1186 | $arrayTypes->moveNext(); |
| 1187 | 1187 | } |
| 1188 | 1188 | |
@@ -1190,9 +1190,9 @@ discard block |
||
| 1190 | 1190 | $arrayPModes[] = "'{$pV}'"; |
| 1191 | 1191 | } |
| 1192 | 1192 | |
| 1193 | - $szTypes = 'g_main_types = new Array('.implode(',', $arrayPTypes).');'; |
|
| 1194 | - $szModes = 'g_main_modes = new Array('.implode(',', $arrayPModes).');'; |
|
| 1193 | + $szTypes = 'g_main_types = new Array(' . implode(',', $arrayPTypes) . ');'; |
|
| 1194 | + $szModes = 'g_main_modes = new Array(' . implode(',', $arrayPModes) . ');'; |
|
| 1195 | 1195 | |
| 1196 | - return $szTypes.$szModes; |
|
| 1196 | + return $szTypes . $szModes; |
|
| 1197 | 1197 | } |
| 1198 | 1198 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | $ext = 'txt'; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | - header('Content-Disposition: attachment; filename=dump.'.$ext); |
|
| 97 | + header('Content-Disposition: attachment; filename=dump.' . $ext); |
|
| 98 | 98 | } |
| 99 | 99 | } else { |
| 100 | 100 | header('Content-Type: text/plain'); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | $values = (is_null($v) ? 'NULL' : "'{$v}'"); |
| 266 | 266 | $first = false; |
| 267 | 267 | } else { |
| 268 | - $values .= ', '.((is_null($v) ? 'NULL' : "'{$v}'")); |
|
| 268 | + $values .= ', ' . ((is_null($v) ? 'NULL' : "'{$v}'")); |
|
| 269 | 269 | } |
| 270 | 270 | } |
| 271 | 271 | echo ") VALUES ({$values});\n"; |
@@ -354,7 +354,7 @@ discard block |
||
| 354 | 354 | $this->printMsg($msg); |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | - echo '<form action="'.SUBFOLDER."/src/views/dataexport.php\" method=\"post\">\n"; |
|
| 357 | + echo '<form action="' . SUBFOLDER . "/src/views/dataexport.php\" method=\"post\">\n"; |
|
| 358 | 358 | echo "<table>\n"; |
| 359 | 359 | echo "<tr><th class=\"data\">{$lang['strformat']}:</th><td><select name=\"d_format\">\n"; |
| 360 | 360 | // COPY and SQL require a table |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | 'view' => [ |
| 113 | 113 | 'title' => $lang['strview'], |
| 114 | 114 | 'field' => Decorator::field('relname'), |
| 115 | - 'url' => SUBFOLDER."/redirect/view?{$misc->href}&", |
|
| 115 | + 'url' => SUBFOLDER . "/redirect/view?{$misc->href}&", |
|
| 116 | 116 | 'vars' => ['view' => 'relname'], |
| 117 | 117 | ], |
| 118 | 118 | 'owner' => [ |
@@ -300,7 +300,7 @@ discard block |
||
| 300 | 300 | |
| 301 | 301 | $attrs = $data->getTableAttributes($_REQUEST['view']); |
| 302 | 302 | |
| 303 | - echo '<form action="'.SUBFOLDER.'/src/views/'.$this->script.'" method="post" id="selectform">'; |
|
| 303 | + echo '<form action="' . SUBFOLDER . '/src/views/' . $this->script . '" method="post" id="selectform">'; |
|
| 304 | 304 | echo "\n"; |
| 305 | 305 | |
| 306 | 306 | if ($attrs->recordCount() > 0) { |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | $this->printTrail('view'); |
| 434 | 434 | $this->printTitle($lang['strdrop'], 'pg.view.drop'); |
| 435 | 435 | |
| 436 | - echo '<form action="'.SUBFOLDER."/src/views/views.php\" method=\"post\">\n"; |
|
| 436 | + echo '<form action="' . SUBFOLDER . "/src/views/views.php\" method=\"post\">\n"; |
|
| 437 | 437 | |
| 438 | 438 | //If multi drop |
| 439 | 439 | if (isset($_REQUEST['ma'])) { |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | } |
| 554 | 554 | asort($arrFields); |
| 555 | 555 | |
| 556 | - echo '<form action="'.SUBFOLDER."/src/views/views.php\" method=\"post\">\n"; |
|
| 556 | + echo '<form action="' . SUBFOLDER . "/src/views/views.php\" method=\"post\">\n"; |
|
| 557 | 557 | echo "<table>\n"; |
| 558 | 558 | echo "<tr><th class=\"data\">{$lang['strviewname']}</th></tr>"; |
| 559 | 559 | echo "<tr>\n<td class=\"data1\">\n"; |
@@ -632,7 +632,7 @@ discard block |
||
| 632 | 632 | echo "<p><input type=\"hidden\" name=\"action\" value=\"save_create_wiz\" />\n"; |
| 633 | 633 | |
| 634 | 634 | foreach ($arrSelTables as $curTable) { |
| 635 | - echo '<input type="hidden" name="formTables[]" value="'.htmlspecialchars(serialize($curTable))."\" />\n"; |
|
| 635 | + echo '<input type="hidden" name="formTables[]" value="' . htmlspecialchars(serialize($curTable)) . "\" />\n"; |
|
| 636 | 636 | } |
| 637 | 637 | |
| 638 | 638 | echo $misc->form; |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | $this->printTitle($lang['strcreateviewwiz'], 'pg.view.create'); |
| 659 | 659 | $this->printMsg($msg); |
| 660 | 660 | |
| 661 | - echo '<form action="'.SUBFOLDER."/src/views/views.php\" method=\"post\">\n"; |
|
| 661 | + echo '<form action="' . SUBFOLDER . "/src/views/views.php\" method=\"post\">\n"; |
|
| 662 | 662 | echo "<table>\n"; |
| 663 | 663 | echo "<tr><th class=\"data\">{$lang['strtables']}</th></tr>"; |
| 664 | 664 | echo "<tr>\n<td class=\"data1\">\n"; |
@@ -668,7 +668,7 @@ discard block |
||
| 668 | 668 | $arrTmp = []; |
| 669 | 669 | $arrTmp['schemaname'] = $tables->fields['nspname']; |
| 670 | 670 | $arrTmp['tablename'] = $tables->fields['relname']; |
| 671 | - $arrTables[$tables->fields['nspname'].'.'.$tables->fields['relname']] = serialize($arrTmp); |
|
| 671 | + $arrTables[$tables->fields['nspname'] . '.' . $tables->fields['relname']] = serialize($arrTmp); |
|
| 672 | 672 | $tables->moveNext(); |
| 673 | 673 | } |
| 674 | 674 | echo \PHPPgAdmin\XHtml\HTMLController::printCombo($arrTables, 'formTables[]', false, '', true); |
@@ -711,7 +711,7 @@ discard block |
||
| 711 | 711 | $this->printTitle($lang['strcreateview'], 'pg.view.create'); |
| 712 | 712 | $this->printMsg($msg); |
| 713 | 713 | |
| 714 | - echo '<form action="'.SUBFOLDER."/src/views/views.php\" method=\"post\">\n"; |
|
| 714 | + echo '<form action="' . SUBFOLDER . "/src/views/views.php\" method=\"post\">\n"; |
|
| 715 | 715 | echo "<table style=\"width: 100%\">\n"; |
| 716 | 716 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 717 | 717 | echo "\t<td class=\"data1\"><input name=\"formView\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -835,7 +835,7 @@ discard block |
||
| 835 | 835 | |
| 836 | 836 | // Make sure for multi-column foreign keys that we use a table alias tables joined to more than once |
| 837 | 837 | // This can (and should be) more optimized for multi-column foreign keys |
| 838 | - $adj_tbl2 = in_array($tbl2, $arrUsedTbls) ? "$tbl2 AS alias_ppa_".mktime() : $tbl2; |
|
| 838 | + $adj_tbl2 = in_array($tbl2, $arrUsedTbls) ? "$tbl2 AS alias_ppa_" . mktime() : $tbl2; |
|
| 839 | 839 | |
| 840 | 840 | $linkFields .= strlen($linkFields) ? "{$curLink['operator']} $adj_tbl2 ON (\"{$arrLeftLink['schemaname']}\".\"{$arrLeftLink['tablename']}\".\"{$arrLeftLink['fieldname']}\" = \"{$arrRightLink['schemaname']}\".\"{$arrRightLink['tablename']}\".\"{$arrRightLink['fieldname']}\") " |
| 841 | 841 | : "$tbl1 {$curLink['operator']} $adj_tbl2 ON (\"{$arrLeftLink['schemaname']}\".\"{$arrLeftLink['tablename']}\".\"{$arrLeftLink['fieldname']}\" = \"{$arrRightLink['schemaname']}\".\"{$arrRightLink['tablename']}\".\"{$arrRightLink['fieldname']}\") "; |
@@ -881,7 +881,7 @@ discard block |
||
| 881 | 881 | |
| 882 | 882 | //add where from additional conditions |
| 883 | 883 | if (strlen($addConditions)) { |
| 884 | - $viewQuery .= ' WHERE '.$addConditions; |
|
| 884 | + $viewQuery .= ' WHERE ' . $addConditions; |
|
| 885 | 885 | } |
| 886 | 886 | |
| 887 | 887 | $status = $data->createView($_POST['formView'], $viewQuery, false, $_POST['formComment']); |
@@ -41,20 +41,20 @@ discard block |
||
| 41 | 41 | $scripts = ''; |
| 42 | 42 | /* normal flow */ |
| 43 | 43 | if ($action == 'locks' || $action == 'processes') { |
| 44 | - $scripts .= '<script src="'.SUBFOLDER.'/js/database.js" type="text/javascript"></script>'; |
|
| 44 | + $scripts .= '<script src="' . SUBFOLDER . '/js/database.js" type="text/javascript"></script>'; |
|
| 45 | 45 | |
| 46 | 46 | $refreshTime = $conf['ajax_refresh'] * 1000; |
| 47 | 47 | |
| 48 | 48 | $scripts .= "<script type=\"text/javascript\">\n"; |
| 49 | 49 | $scripts .= "var Database = {\n"; |
| 50 | 50 | $scripts .= "ajax_time_refresh: {$refreshTime},\n"; |
| 51 | - $scripts .= "str_start: {text:'{$lang['strstart']}',icon: '".$misc->icon('Execute')."'},\n"; |
|
| 52 | - $scripts .= "str_stop: {text:'{$lang['strstop']}',icon: '".$misc->icon('Stop')."'},\n"; |
|
| 53 | - $scripts .= "load_icon: '".$misc->icon('Loading')."',\n"; |
|
| 51 | + $scripts .= "str_start: {text:'{$lang['strstart']}',icon: '" . $misc->icon('Execute') . "'},\n"; |
|
| 52 | + $scripts .= "str_stop: {text:'{$lang['strstop']}',icon: '" . $misc->icon('Stop') . "'},\n"; |
|
| 53 | + $scripts .= "load_icon: '" . $misc->icon('Loading') . "',\n"; |
|
| 54 | 54 | $scripts .= "server:'{$_REQUEST['server']}',\n"; |
| 55 | 55 | $scripts .= "dbname:'{$_REQUEST['database']}',\n"; |
| 56 | 56 | $scripts .= "action:'refresh_{$action}',\n"; |
| 57 | - $scripts .= "errmsg: '".str_replace("'", "\'", $lang['strconnectionfail'])."'\n"; |
|
| 57 | + $scripts .= "errmsg: '" . str_replace("'", "\'", $lang['strconnectionfail']) . "'\n"; |
|
| 58 | 58 | $scripts .= "};\n"; |
| 59 | 59 | $scripts .= "</script>\n"; |
| 60 | 60 | } |
@@ -175,7 +175,7 @@ discard block |
||
| 175 | 175 | $this->printTabs('database', 'find'); |
| 176 | 176 | $this->printMsg($msg); |
| 177 | 177 | |
| 178 | - echo '<form action="'.SUBFOLDER."/src/views/database.php\" method=\"post\">\n"; |
|
| 178 | + echo '<form action="' . SUBFOLDER . "/src/views/database.php\" method=\"post\">\n"; |
|
| 179 | 179 | echo '<p><input name="term" value="', htmlspecialchars($_REQUEST['term']), |
| 180 | 180 | "\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" />\n"; |
| 181 | 181 | // Output list of filters. This is complex due to all the 'has' and 'conf' feature possibilities |
@@ -296,18 +296,18 @@ discard block |
||
| 296 | 296 | |
| 297 | 297 | switch ($curr) { |
| 298 | 298 | case 'SCHEMA': |
| 299 | - echo '<li><a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", $misc->printVal($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
|
| 299 | + echo '<li><a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", $misc->printVal($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
|
| 300 | 300 | break; |
| 301 | 301 | case 'TABLE': |
| 302 | 302 | echo '<li>'; |
| 303 | 303 | echo "<a href=\"tables.php?subject=schema&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
| 304 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
|
| 304 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
|
| 305 | 305 | urlencode($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 306 | 306 | break; |
| 307 | 307 | case 'VIEW': |
| 308 | 308 | echo '<li>'; |
| 309 | 309 | echo "<a href=\"views.php?subject=schema&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
| 310 | - echo '<a href="'.SUBFOLDER."/redirect/view?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&view=', |
|
| 310 | + echo '<a href="' . SUBFOLDER . "/redirect/view?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&view=', |
|
| 311 | 311 | urlencode($rs->fields['name']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 312 | 312 | break; |
| 313 | 313 | case 'SEQUENCE': |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | break; |
| 319 | 319 | case 'COLUMNTABLE': |
| 320 | 320 | echo '<li>'; |
| 321 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 321 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 322 | 322 | echo "<a href=\"tblproperties.php?subject=table&{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
| 323 | 323 | echo "<a href=\"colproperties.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
| 324 | 324 | urlencode($rs->fields['relname']), '&column=', urlencode($rs->fields['name']), '">', |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | break; |
| 327 | 327 | case 'COLUMNVIEW': |
| 328 | 328 | echo '<li>'; |
| 329 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 329 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 330 | 330 | echo "<a href=\"viewproperties.php?subject=view&{$misc->href}&view=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
| 331 | 331 | echo "<a href=\"colproperties.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&view=', |
| 332 | 332 | urlencode($rs->fields['relname']), '&column=', urlencode($rs->fields['name']), '">', |
@@ -334,14 +334,14 @@ discard block |
||
| 334 | 334 | break; |
| 335 | 335 | case 'INDEX': |
| 336 | 336 | echo '<li>'; |
| 337 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 338 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 337 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 338 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 339 | 339 | echo "<a href=\"indexes.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 340 | 340 | break; |
| 341 | 341 | case 'CONSTRAINTTABLE': |
| 342 | 342 | echo '<li>'; |
| 343 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 344 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 343 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 344 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 345 | 345 | echo "<a href=\"constraints.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', |
| 346 | 346 | urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 347 | 347 | break; |
@@ -353,22 +353,22 @@ discard block |
||
| 353 | 353 | break; |
| 354 | 354 | case 'TRIGGER': |
| 355 | 355 | echo '<li>'; |
| 356 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 357 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 356 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 357 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 358 | 358 | echo "<a href=\"triggers.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&table=', urlencode($rs->fields['relname']), '">', |
| 359 | 359 | $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 360 | 360 | break; |
| 361 | 361 | case 'RULETABLE': |
| 362 | 362 | echo '<li>'; |
| 363 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 364 | - echo '<a href="'.SUBFOLDER."/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 363 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 364 | + echo '<a href="' . SUBFOLDER . "/redirect/table?{$misc->href}&table=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 365 | 365 | echo "<a href=\"rules.php?subject=table&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&reltype=table&table=', |
| 366 | 366 | urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 367 | 367 | break; |
| 368 | 368 | case 'RULEVIEW': |
| 369 | 369 | echo '<li>'; |
| 370 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 371 | - echo '<a href="'.SUBFOLDER."/redirect/view?{$misc->href}&view=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 370 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 371 | + echo '<a href="' . SUBFOLDER . "/redirect/view?{$misc->href}&view=", urlencode($rs->fields['relname']), '&schema=', urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['relname']), '</a>.'; |
|
| 372 | 372 | echo "<a href=\"rules.php?subject=view&{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '&reltype=view&view=', |
| 373 | 373 | urlencode($rs->fields['relname']), '">', $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 374 | 374 | break; |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | break; |
| 415 | 415 | case 'OPCLASS': |
| 416 | 416 | echo '<li>'; |
| 417 | - echo '<a href="'.SUBFOLDER."/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 417 | + echo '<a href="' . SUBFOLDER . "/redirect/schema?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', $misc->printVal($rs->fields['schemaname']), '</a>.'; |
|
| 418 | 418 | echo "<a href=\"opclasses.php?{$misc->href}&schema=", urlencode($rs->fields['schemaname']), '">', |
| 419 | 419 | $this->_highlight($misc->printVal($rs->fields['name']), $_REQUEST['term']), "</a></li>\n"; |
| 420 | 420 | break; |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | $this->printTabs('database', 'export'); |
| 445 | 445 | $this->printMsg($msg); |
| 446 | 446 | |
| 447 | - echo '<form action="'.SUBFOLDER."/src/views/dbexport.php\" method=\"post\">\n"; |
|
| 447 | + echo '<form action="' . SUBFOLDER . "/src/views/dbexport.php\" method=\"post\">\n"; |
|
| 448 | 448 | echo "<table>\n"; |
| 449 | 449 | echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n"; |
| 450 | 450 | // Data only |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | $this->printMsg($msg); |
| 534 | 534 | |
| 535 | 535 | if (strlen($msg) === 0) { |
| 536 | - echo '<br /><a id="control" href=""><img src="'.$misc->icon('Refresh')."\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 536 | + echo '<br /><a id="control" href=""><img src="' . $misc->icon('Refresh') . "\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 537 | 537 | } |
| 538 | 538 | |
| 539 | 539 | echo '<div id="data_block">'; |
@@ -734,7 +734,7 @@ discard block |
||
| 734 | 734 | $this->printTrail('database'); |
| 735 | 735 | $this->printTabs('database', 'locks'); |
| 736 | 736 | |
| 737 | - echo '<br /><a id="control" href=""><img src="'.$misc->icon('Refresh')."\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 737 | + echo '<br /><a id="control" href=""><img src="' . $misc->icon('Refresh') . "\" alt=\"{$lang['strrefresh']}\" title=\"{$lang['strrefresh']}\"/> {$lang['strrefresh']}</a>"; |
|
| 738 | 738 | |
| 739 | 739 | echo '<div id="data_block">'; |
| 740 | 740 | $this->currentLocks(); |
@@ -759,7 +759,7 @@ discard block |
||
| 759 | 759 | $this->printTrail('database'); |
| 760 | 760 | $this->printTabs('database', 'sql'); |
| 761 | 761 | echo "<p>{$lang['strentersql']}</p>\n"; |
| 762 | - echo '<form action="'.SUBFOLDER.'/src/views/sql.php" method="post" enctype="multipart/form-data" id="sqlform">'."\n"; |
|
| 762 | + echo '<form action="' . SUBFOLDER . '/src/views/sql.php" method="post" enctype="multipart/form-data" id="sqlform">' . "\n"; |
|
| 763 | 763 | echo "<p>{$lang['strsql']}<br />\n"; |
| 764 | 764 | echo '<textarea style="width:95%;" rows="15" cols="50" name="query" id="query">', |
| 765 | 765 | htmlspecialchars($_SESSION['sqlquery']), "</textarea></p>\n"; |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | $this->printTitle($lang['strproperties'], 'pg.type'); |
| 246 | 246 | $this->printMsg($msg); |
| 247 | 247 | |
| 248 | - $attPre = function (&$rowdata) use ($data) { |
|
| 248 | + $attPre = function(&$rowdata) use ($data) { |
|
| 249 | 249 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 250 | 250 | }; |
| 251 | 251 | |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | |
| 339 | 339 | echo '<p>', sprintf($lang['strconfdroptype'], $misc->printVal($_REQUEST['type'])), "</p>\n"; |
| 340 | 340 | |
| 341 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 341 | + echo '<form action="' . SUBFOLDER . "/src/views/types.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=\"drop\" />\n"; |
| 344 | 344 | echo '<input type="hidden" name="type" value="', htmlspecialchars($_REQUEST['type']), "\" />\n"; |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | $this->printTitle($lang['strcreatecomptype'], 'pg.type.create'); |
| 389 | 389 | $this->printMsg($msg); |
| 390 | 390 | |
| 391 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 391 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 392 | 392 | echo "<table>\n"; |
| 393 | 393 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 394 | 394 | echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | $this->printTitle($lang['strcreatecomptype'], 'pg.type.create'); |
| 432 | 432 | $this->printMsg($msg); |
| 433 | 433 | |
| 434 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 434 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 435 | 435 | |
| 436 | 436 | // Output table header |
| 437 | 437 | echo "<table>\n"; |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | $this->printTitle($lang['strcreateenumtype'], 'pg.type.create'); |
| 560 | 560 | $this->printMsg($msg); |
| 561 | 561 | |
| 562 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 562 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 563 | 563 | echo "<table>\n"; |
| 564 | 564 | echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 565 | 565 | echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -600,7 +600,7 @@ discard block |
||
| 600 | 600 | $this->printTitle($lang['strcreateenumtype'], 'pg.type.create'); |
| 601 | 601 | $this->printMsg($msg); |
| 602 | 602 | |
| 603 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 603 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 604 | 604 | |
| 605 | 605 | // Output table header |
| 606 | 606 | echo "<table>\n"; |
@@ -718,7 +718,7 @@ discard block |
||
| 718 | 718 | $this->printTitle($lang['strcreatetype'], 'pg.type.create'); |
| 719 | 719 | $this->printMsg($msg); |
| 720 | 720 | |
| 721 | - echo '<form action="'.SUBFOLDER."/src/views/types.php\" method=\"post\">\n"; |
|
| 721 | + echo '<form action="' . SUBFOLDER . "/src/views/types.php\" method=\"post\">\n"; |
|
| 722 | 722 | echo "<table>\n"; |
| 723 | 723 | echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; |
| 724 | 724 | echo "<td class=\"data1\"><input name=\"typname\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | $funcs->moveNext(); |
| 743 | 743 | } |
| 744 | 744 | echo "</select></td></tr>\n"; |
| 745 | - echo '<tr><th class="data left'.(version_compare($data->major_version, '7.4', '<') ? ' required' : '')."\">{$lang['strlength']}</th>\n"; |
|
| 745 | + echo '<tr><th class="data left' . (version_compare($data->major_version, '7.4', '<') ? ' required' : '') . "\">{$lang['strlength']}</th>\n"; |
|
| 746 | 746 | echo '<td class="data1"><input name="typlen" size="8" value="', |
| 747 | 747 | htmlspecialchars($_POST['typlen']), '" /></td></tr>'; |
| 748 | 748 | echo "<tr><th class=\"data left\">{$lang['strdefault']}</th>\n"; |
@@ -35,47 +35,47 @@ |
||
| 35 | 35 | |
| 36 | 36 | $intro_html .= $this->printTabs('root', 'intro', false); |
| 37 | 37 | |
| 38 | - $intro_html .= '<h1>'.$this->appName.' '.$this->appVersion.' (PHP '.PHP_VERSION.')</h1>'; |
|
| 38 | + $intro_html .= '<h1>' . $this->appName . ' ' . $this->appVersion . ' (PHP ' . PHP_VERSION . ')</h1>'; |
|
| 39 | 39 | |
| 40 | 40 | $intro_html .= '<form method="get" action="intro.php">'; |
| 41 | 41 | $intro_html .= '<table>'; |
| 42 | 42 | $intro_html .= '<tr class="data1">'; |
| 43 | - $intro_html .= '<th class="data">'.$this->lang['strlanguage'].'</th>'; |
|
| 43 | + $intro_html .= '<th class="data">' . $this->lang['strlanguage'] . '</th>'; |
|
| 44 | 44 | $intro_html .= '<td>'; |
| 45 | 45 | $intro_html .= '<select name="language" onchange="this.form.submit()">'; |
| 46 | 46 | |
| 47 | 47 | $this->language = isset($_SESSION['webdbLanguage']) ? $_SESSION['webdbLanguage'] : 'english'; |
| 48 | 48 | foreach ($this->appLangFiles as $k => $v) { |
| 49 | 49 | $selected = ($k == $this->language) ? ' selected="selected"' : ''; |
| 50 | - $intro_html .= "\t<option value=\"{$k}\"".$selected.">{$v}</option>\n"; |
|
| 50 | + $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n"; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | $intro_html .= '</select>'; |
| 54 | 54 | $intro_html .= '</td>'; |
| 55 | 55 | $intro_html .= '</tr>'; |
| 56 | 56 | $intro_html .= '<tr class="data2">'; |
| 57 | - $intro_html .= '<th class="data">'.$this->lang['strtheme'].'</th>'; |
|
| 57 | + $intro_html .= '<th class="data">' . $this->lang['strtheme'] . '</th>'; |
|
| 58 | 58 | $intro_html .= '<td>'; |
| 59 | 59 | $intro_html .= '<select name="theme" onchange="this.form.submit()">'; |
| 60 | 60 | |
| 61 | 61 | foreach ($this->appThemes as $k => $v) { |
| 62 | 62 | $selected = ($k == $this->conf['theme']) ? ' selected="selected"' : ''; |
| 63 | - $intro_html .= "\t<option value=\"{$k}\"".$selected.">{$v}</option>\n"; |
|
| 63 | + $intro_html .= "\t<option value=\"{$k}\"" . $selected . ">{$v}</option>\n"; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | $intro_html .= '</select>'; |
| 67 | 67 | $intro_html .= '</td>'; |
| 68 | 68 | $intro_html .= '</tr>'; |
| 69 | 69 | $intro_html .= '</table>'; |
| 70 | - $intro_html .= '<noscript><p><input type="submit" value="'.$this->lang['stralter'].'" /></p></noscript>'; |
|
| 70 | + $intro_html .= '<noscript><p><input type="submit" value="' . $this->lang['stralter'] . '" /></p></noscript>'; |
|
| 71 | 71 | $intro_html .= '</form>'; |
| 72 | 72 | |
| 73 | - $intro_html .= '<p>'.$this->lang['strintro'].'</p>'; |
|
| 73 | + $intro_html .= '<p>' . $this->lang['strintro'] . '</p>'; |
|
| 74 | 74 | |
| 75 | 75 | $intro_html .= '<ul class="intro">'; |
| 76 | - $intro_html .= ' <li><a href="https://github.com/HuasoFoundries/phpPgAdmin6">'.$this->lang['strppahome'].'</a></li>'; |
|
| 77 | - $intro_html .= '<li><a href="'.$this->lang['strpgsqlhome_url'].'">'.$this->lang['strpgsqlhome'].'</a></li>'; |
|
| 78 | - $intro_html .= '<li><a href="https://github.com/HuasoFoundries/phpPgAdmin6/issues">'.$this->lang['strreportbug'].'</a></li>'; |
|
| 76 | + $intro_html .= ' <li><a href="https://github.com/HuasoFoundries/phpPgAdmin6">' . $this->lang['strppahome'] . '</a></li>'; |
|
| 77 | + $intro_html .= '<li><a href="' . $this->lang['strpgsqlhome_url'] . '">' . $this->lang['strpgsqlhome'] . '</a></li>'; |
|
| 78 | + $intro_html .= '<li><a href="https://github.com/HuasoFoundries/phpPgAdmin6/issues">' . $this->lang['strreportbug'] . '</a></li>'; |
|
| 79 | 79 | //$intro_html .= '<li><a href="' . $this->lang['strviewfaq_url'] . '">' . $this->lang['strviewfaq'] . '</a></li>'; |
| 80 | 80 | $intro_html .= '</ul>'; |
| 81 | 81 | |