@@ -121,7 +121,7 @@ |
||
121 | 121 | * This is a callback function to display the result of each separate query |
122 | 122 | * @param ADORecordSet $rs The recordset returned by the script execetor |
123 | 123 | */ |
124 | - $sqlCallback = function ($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) { |
|
124 | + $sqlCallback = function($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) { |
|
125 | 125 | |
126 | 126 | // Check if $rs is false, if so then there was a fatal error |
127 | 127 | if ($rs === false) { |
@@ -91,11 +91,11 @@ |
||
91 | 91 | $lang = $this->lang; |
92 | 92 | $data = $misc->getDatabaseAccessor(); |
93 | 93 | |
94 | - $renderRoleConnLimit = function ($val) use ($lang) { |
|
94 | + $renderRoleConnLimit = function($val) use ($lang) { |
|
95 | 95 | return $val == '-1' ? $lang['strnolimit'] : htmlspecialchars($val); |
96 | 96 | }; |
97 | 97 | |
98 | - $renderRoleExpires = function ($val) use ($lang) { |
|
98 | + $renderRoleExpires = function($val) use ($lang) { |
|
99 | 99 | return $val == 'infinity' ? $lang['strnever'] : htmlspecialchars($val); |
100 | 100 | }; |
101 | 101 |
@@ -1005,7 +1005,7 @@ |
||
1005 | 1005 | } |
1006 | 1006 | echo "</table>\n"; |
1007 | 1007 | |
1008 | - if (!isset($_SESSION['counter'])) {$_SESSION['counter'] = 0;} |
|
1008 | + if (!isset($_SESSION['counter'])) {$_SESSION['counter'] = 0; } |
|
1009 | 1009 | |
1010 | 1010 | echo "<input type=\"hidden\" name=\"action\" value=\"insertrow\" />\n"; |
1011 | 1011 | echo '<input type="hidden" name="fields" value="', htmlentities(serialize($fields), ENT_QUOTES, 'UTF-8'), "\" />\n"; |
@@ -100,7 +100,7 @@ |
||
100 | 100 | $lang = $this->lang; |
101 | 101 | $data = $misc->getDatabaseAccessor(); |
102 | 102 | |
103 | - $tgPre = function (&$rowdata, $actions) use ($data) { |
|
103 | + $tgPre = function(&$rowdata, $actions) use ($data) { |
|
104 | 104 | // toggle enable/disable trigger per trigger |
105 | 105 | if (!$data->phpBool($rowdata->fields['tgenabled'])) { |
106 | 106 | unset($actions['disable']); |
@@ -114,7 +114,7 @@ |
||
114 | 114 | $lang = $this->lang; |
115 | 115 | $data = $misc->getDatabaseAccessor(); |
116 | 116 | |
117 | - $cnPre = function (&$rowdata) use ($data) { |
|
117 | + $cnPre = function(&$rowdata) use ($data) { |
|
118 | 118 | |
119 | 119 | if (is_null($rowdata->fields['consrc'])) { |
120 | 120 | $atts = $data->getAttributeNames($_REQUEST['table'], explode(' ', $rowdata->fields['indkey'])); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $lang = $this->lang; |
84 | 84 | $data = $misc->getDatabaseAccessor(); |
85 | 85 | |
86 | - $indPre = function (&$rowdata, $actions) use ($data, $lang) { |
|
86 | + $indPre = function(&$rowdata, $actions) use ($data, $lang) { |
|
87 | 87 | if ($data->phpBool($rowdata->fields['indisprimary'])) { |
88 | 88 | $rowdata->fields['+constraints'] = $lang['strprimarykey']; |
89 | 89 | $actions['drop']['disable'] = true; |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | |
221 | 221 | $reqvars = $misc->getRequestVars($subject); |
222 | 222 | |
223 | - $getIcon = function ($f) { |
|
223 | + $getIcon = function($f) { |
|
224 | 224 | if ($f['indisprimary'] == 't') { |
225 | 225 | return 'PrimaryKey'; |
226 | 226 | } |
@@ -84,7 +84,7 @@ |
||
84 | 84 | $lang = $this->lang; |
85 | 85 | $data = $misc->getDatabaseAccessor(); |
86 | 86 | |
87 | - $renderUseExpires = function ($val) use ($lang) { |
|
87 | + $renderUseExpires = function($val) use ($lang) { |
|
88 | 88 | return $val == 'infinity' ? $lang['strnever'] : htmlspecialchars($val); |
89 | 89 | }; |
90 | 90 |
@@ -248,10 +248,12 @@ |
||
248 | 248 | |
249 | 249 | $_gets['strings'] = $_REQUEST['strings']; |
250 | 250 | |
251 | - if ($save_history && is_object($rs) && ($type == 'QUERY')) //{ |
|
251 | + if ($save_history && is_object($rs) && ($type == 'QUERY')) { |
|
252 | + //{ |
|
252 | 253 | { |
253 | 254 | $misc->saveScriptHistory($_REQUEST['query']); |
254 | 255 | } |
256 | + } |
|
255 | 257 | |
256 | 258 | if (isset($_REQUEST['query'])) { |
257 | 259 | $query = $_REQUEST['query']; |
@@ -95,7 +95,7 @@ |
||
95 | 95 | |
96 | 96 | $reqvars = $misc->getRequestVars('schema'); |
97 | 97 | |
98 | - $getIcon = function ($f) { |
|
98 | + $getIcon = function($f) { |
|
99 | 99 | switch ($f['contype']) { |
100 | 100 | case 'u': |
101 | 101 | return 'UniqueConstraint'; |