Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 361 lines (323 sloc) 12.19 kb
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
1 <?php
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
e8f3519 documentation;
Sebastian Mendel authored
4 * this file is register_globals save
5 *
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
6 * @todo move JavaScript out of here into .js files
e8f3519 documentation;
Sebastian Mendel authored
7 * @uses $cfg['QueryWindowDefTab']
8 * @uses $cfg['PropertiesIconic']
9 * @uses $cfg['QueryHistoryDB']
10 * @uses $cfg['Server']['user']
11 * @uses $cfg['AllowUserDropDatabase']
12 * @uses $cfg['Confirm']
13 * @uses $GLOBALS['db']
14 * @uses $GLOBALS['table']
15 * @uses $GLOBALS['strSQL']
16 * @uses $GLOBALS['strImportFiles']
17 * @uses $GLOBALS['strQuerySQLHistory']
18 * @uses $GLOBALS['strAll']
19 * @uses $GLOBALS['strChange']
20 * @uses $GLOBALS['strFormEmpty']
21 * @uses $GLOBALS['strNotNumber']
22 * @uses $GLOBALS['strNoDropDatabases']
23 * @uses $GLOBALS['strDoYouReally']
24 * @uses $GLOBALS['strQuerySQLHistory']
25 * @uses PMA_isSuperuser()
26 * @uses PMA_outBufferPre()
27 * @uses PMA_getRelationsParam()
28 * @uses PMA_isValid()
29 * @uses PMA_ifSetOr()
30 * @uses PMA_setHistory()
31 * @uses PMA_getHistory()
32 * @uses PMA_generate_common_url()
33 * @uses PMA_generate_common_hidden_inputs()
34 * @uses PMA_escapeJsString()
35 * @uses PMA_getTabs()
36 * @uses PMA_sqlQueryForm()
37 * @uses PMA_jsFormat()
38 * @uses in_array()
39 * @uses strlen()
40 * @uses preg_replace()
41 * @uses htmlspecialchars()
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
42 * @version $Id$
43 */
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
44
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
45 /**
46 *
47 */
d0facc3 splitted common.lib.php into common.inc.php, core.lib.php and common.lib...
Sebastian Mendel authored
48 require_once './libraries/common.inc.php';
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
49
c8eaea4 @lem9 is_superuser not defined
lem9 authored
50 $is_superuser = PMA_isSuperuser();
51
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
52 /**
e8f3519 documentation;
Sebastian Mendel authored
53 * Gets a core script and starts output buffering work
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
54 */
e8f3519 documentation;
Sebastian Mendel authored
55 require_once './libraries/sql_query_form.lib.php';
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
56
57 /**
e8f3519 documentation;
Sebastian Mendel authored
58 * starts output buffering if requested and supported
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
59 */
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
60 require_once './libraries/ob.lib.php';
e8f3519 documentation;
Sebastian Mendel authored
61 PMA_outBufferPre();
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
62
e8f3519 documentation;
Sebastian Mendel authored
63 /**
64 * load relations
65 */
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
66 require_once './libraries/relation.lib.php';
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
67 $cfgRelation = PMA_getRelationsParam();
68
e8f3519 documentation;
Sebastian Mendel authored
69 /**
70 * load bookmark support
71 */
72 require_once './libraries/bookmark.lib.php';
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
73
e8f3519 documentation;
Sebastian Mendel authored
74 $querydisplay_tabs = array(
75 'sql',
76 'files',
77 'history',
78 'full',
79 );
8fc4a4c moved styles into css
Sebastian Mendel authored
80
e8f3519 documentation;
Sebastian Mendel authored
81 if (isset($_REQUEST['querydisplay_tab'])
82 && in_array($_REQUEST['querydisplay_tab'], $querydisplay_tabs)) {
83 $querydisplay_tab = $_REQUEST['querydisplay_tab'];
3143135 XHTML 1.0 trans. compliance and more semantic XHTML output
Sebastian Mendel authored
84 } else {
e8f3519 documentation;
Sebastian Mendel authored
85 $querydisplay_tab = $GLOBALS['cfg']['QueryWindowDefTab'];
64bd56d @nijel Support for browsing selected columns (RFE #1275909).
nijel authored
86 }
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
87
e8f3519 documentation;
Sebastian Mendel authored
88 /**
89 * $_REQUEST['no_js'] is set if open new window by JavaScript failed
90 * so this page is loaded in main frame
91 */
92 $no_js = PMA_ifSetOr($_REQUEST['no_js'], false);
37d50c1 @derrabus Huge set of optimizations, please test!
derrabus authored
93
e8f3519 documentation;
Sebastian Mendel authored
94 if ($no_js) {
95 $querydisplay_tab = 'full';
96 $tabs = false;
97 } else {
5de17e7 @lem9 patch #1252031, CSS for navigation tabs
lem9 authored
98 $tabs = array();
99 $tabs['sql']['icon'] = 'b_sql.png';
e8f3519 documentation;
Sebastian Mendel authored
100 $tabs['sql']['text'] = $GLOBALS['strSQL'];
101 $tabs['sql']['fragment'] = '#';
102 $tabs['sql']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'sql\');return false;"';
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
103 $tabs['sql']['active'] = (bool) ($querydisplay_tab == 'sql');
5de17e7 @lem9 patch #1252031, CSS for navigation tabs
lem9 authored
104 $tabs['import']['icon'] = 'b_import.png';
e8f3519 documentation;
Sebastian Mendel authored
105 $tabs['import']['text'] = $GLOBALS['strImportFiles'];
106 $tabs['import']['fragment'] = '#';
107 $tabs['import']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'files\');return false;"';
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
108 $tabs['import']['active'] = (bool) ($querydisplay_tab == 'files');
0be9c38 @nijel Make drop and empty tabs lead to structure instead of SQL.
nijel authored
109 $tabs['history']['icon'] = 'b_bookmark.png';
e8f3519 documentation;
Sebastian Mendel authored
110 $tabs['history']['text'] = $GLOBALS['strQuerySQLHistory'];
111 $tabs['history']['fragment'] = '#';
112 $tabs['history']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'history\');return false;"';
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
113 $tabs['history']['active'] = (bool) ($querydisplay_tab == 'history');
4d878ae See Changelog: Lightweight tabs, DB-based SQL history, tabbed querywindo...
Garvin Hicking authored
114
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
115 if ($GLOBALS['cfg']['QueryWindowDefTab'] == 'full') {
e8f3519 documentation;
Sebastian Mendel authored
116 $tabs['all']['text'] = $GLOBALS['strAll'];
117 $tabs['all']['fragment'] = '#';
118 $tabs['all']['attr'] = 'onclick="javascript:PMA_querywindowCommit(\'full\');return false;"';
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
119 $tabs['all']['active'] = (bool) ($querydisplay_tab == 'full');
210576b Fixed Bug #723955, 723736, 723713 (Query Frame)
Garvin Hicking authored
120 }
4d878ae See Changelog: Lightweight tabs, DB-based SQL history, tabbed querywindo...
Garvin Hicking authored
121 }
122
e8f3519 documentation;
Sebastian Mendel authored
123 if ($GLOBALS['cfg']['PropertiesIconic']) {
8fc4a4c moved styles into css
Sebastian Mendel authored
124 $titles['Change'] =
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
125 '<img class="icon" width="16" height="16" src="' . $pmaThemeImage
e8f3519 documentation;
Sebastian Mendel authored
126 . 'b_edit.png" alt="' . $GLOBALS['strChange'] . '" title="' . $GLOBALS['strChange']
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
127 . '" />';
a199e51 @lem9 clarification
lem9 authored
128
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
129 if ('both' === $GLOBALS['cfg']['PropertiesIconic']) {
e8f3519 documentation;
Sebastian Mendel authored
130 $titles['Change'] .= $GLOBALS['strChange'];
a199e51 @lem9 clarification
lem9 authored
131 }
132 } else {
e8f3519 documentation;
Sebastian Mendel authored
133 $titles['Change'] = $GLOBALS['strChange'];
a199e51 @lem9 clarification
lem9 authored
134 }
135
37d50c1 @derrabus Huge set of optimizations, please test!
derrabus authored
136
e8f3519 documentation;
Sebastian Mendel authored
137 // Hidden forms and query frame interaction stuff
138 if (PMA_isValid($_REQUEST['query_history_latest'])) {
139 $sql_query = $_REQUEST['query_history_latest'];
140 $db = PMA_ifSetOr($_REQUEST['query_history_latest_db'], '');
141 $table = PMA_ifSetOr($_REQUEST['query_history_latest_table'], '');
9889178 @lem9 new query window behavior
lem9 authored
142 }
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
143
e8f3519 documentation;
Sebastian Mendel authored
144 $url_query = PMA_generate_common_url($db, $table);
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
145
e8f3519 documentation;
Sebastian Mendel authored
146 if (PMA_isValid($sql_query)) {
147 $show_query = 1;
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
148 }
149
e8f3519 documentation;
Sebastian Mendel authored
150 if ($no_js) {
b874154 moved all code for queryboxes into libraries/sql_query_form.lib.php, rep...
Sebastian Mendel authored
151 // ... we redirect to appropriate query sql page
152 // works only full if $db and $table is also stored/grabbed from $_COOKIE
e8f3519 documentation;
Sebastian Mendel authored
153 if (strlen($table)) {
ad06b4a @nijel Rename tbl_* files to drop useless _properties part.
nijel authored
154 require './tbl_sql.php';
e8f3519 documentation;
Sebastian Mendel authored
155 } elseif (strlen($db)) {
cac4247 @nijel Rename db_* files to drop useless _details part.
nijel authored
156 require './db_sql.php';
7358f5a allow 0 as name for database, table collumn, alias and index
Sebastian Mendel authored
157 } else {
7ae4646 @nijel Fix including of files when search path does not contain current directo...
nijel authored
158 require './server_sql.php';
b874154 moved all code for queryboxes into libraries/sql_query_form.lib.php, rep...
Sebastian Mendel authored
159 }
160 exit;
161 }
162
163 /**
164 * Defines the query to be displayed in the query textarea
165 */
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
166 if (! empty($show_query)) {
b874154 moved all code for queryboxes into libraries/sql_query_form.lib.php, rep...
Sebastian Mendel authored
167 $query_to_display = $sql_query;
168 } else {
169 $query_to_display = '';
170 }
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
171 unset($sql_query);
b874154 moved all code for queryboxes into libraries/sql_query_form.lib.php, rep...
Sebastian Mendel authored
172
e8f3519 documentation;
Sebastian Mendel authored
173 /**
174 * start HTML output
175 */
176 require_once './libraries/header_http.inc.php';
177 require_once './libraries/header_meta_style.inc.php';
178 ?>
179 <script type="text/javascript">
180 //<![CDATA[
181 var errorMsg0 = '<?php echo PMA_escapeJsString($GLOBALS['strFormEmpty']); ?>';
182 var errorMsg1 = '<?php echo PMA_escapeJsString($GLOBALS['strNotNumber']); ?>';
183 var noDropDbMsg = '<?php echo (!$is_superuser && !$GLOBALS['cfg']['AllowUserDropDatabase'])
184 ? PMA_escapeJsString($GLOBALS['strNoDropDatabases']) : ''; ?>';
185 var confirmMsg = '<?php echo $GLOBALS['cfg']['Confirm']
186 ? PMA_escapeJsString($GLOBALS['strDoYouReally']) : ''; ?>';
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
187
e8f3519 documentation;
Sebastian Mendel authored
188 function PMA_queryAutoCommit() {
189 document.getElementById('sqlqueryform').target = window.opener.frame_content.name;
190 document.getElementById('sqlqueryform').submit();
191 return;
192 }
193
194 function PMA_querywindowCommit(tab) {
195 document.getElementById('hiddenqueryform').querydisplay_tab.value = tab;
196 document.getElementById('hiddenqueryform').submit();
197 return false;
198 }
199
200 function PMA_querywindowResize() {
201 // for Gecko
202 if (typeof(self.sizeToContent) == 'function') {
203 self.sizeToContent();
204 //self.scrollbars.visible = false;
205 // give some more space ... to prevent 'fli(pp/ck)ing'
206 self.resizeBy(10, 50);
207 return;
208 }
209
210 // for IE, Opera
211 if (document.getElementById && typeof(document.getElementById('querywindowcontainer')) != 'undefined') {
212
213 // get content size
214 var newWidth = document.getElementById('querywindowcontainer').offsetWidth;
215 var newHeight = document.getElementById('querywindowcontainer').offsetHeight;
216
217 // set size to contentsize
218 // plus some offset for scrollbars, borders, statusbar, menus ...
219 self.resizeTo(newWidth + 45, newHeight + 75);
220 }
221 }
222
223 function PMA_querywindowInit()
224 {
225 <?php
226 if (PMA_isValid($_REQUEST['auto_commit'], 'identical', 'true')) {
227 echo 'PMA_queryAutoCommit();' . "\n";
228 }
229 if (PMA_isValid($_REQUEST['init'])) {
230 echo 'PMA_querywindowResize();' . "\n";
231 }
9889178 @lem9 new query window behavior
lem9 authored
232 ?>
e8f3519 documentation;
Sebastian Mendel authored
233 }
234
235 //]]>
236 </script>
237 <script src="./js/functions.js" type="text/javascript"></script>
238 </head>
239
240 <body id="bodyquerywindow" onload="PMA_querywindowInit();">
241 <div id="querywindowcontainer">
9889178 @lem9 new query window behavior
lem9 authored
242 <?php
e8f3519 documentation;
Sebastian Mendel authored
243
244 if ($tabs) {
245 echo PMA_getTabs($tabs);
246 unset($tabs);
9889178 @lem9 new query window behavior
lem9 authored
247 }
37d50c1 @derrabus Huge set of optimizations, please test!
derrabus authored
248
e8f3519 documentation;
Sebastian Mendel authored
249 PMA_sqlQueryForm($query_to_display, $querydisplay_tab);
250
251 // Hidden forms and query frame interaction stuff
252
253 $_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']);
254 if (! empty($_sql_history)
255 && ($querydisplay_tab == 'history' || $querydisplay_tab == 'full')) {
256 $tab = $querydisplay_tab != 'full' ? 'sql' : 'full';
257 echo $GLOBALS['strQuerySQLHistory'] . ':<br />' . "\n"
9889178 @lem9 new query window behavior
lem9 authored
258 .'<ul>';
e8f3519 documentation;
Sebastian Mendel authored
259 foreach ($_sql_history as $query) {
9889178 @lem9 new query window behavior
lem9 authored
260 echo '<li>' . "\n";
261 // edit link
262 echo '<a href="#" onclick="'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
263 .' document.getElementById(\'hiddenqueryform\').'
264 .'querydisplay_tab.value = \'' . $tab . '\';'
265 .' document.getElementById(\'hiddenqueryform\').'
266 .'query_history_latest.value = \''
5d88225 @lem9 bug #1549824, SQL history and quote escape
lem9 authored
267 . preg_replace('/(\r|\n)+/i', '\\n',
e8f3519 documentation;
Sebastian Mendel authored
268 PMA_jsFormat($query['sqlquery'], false)) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
269 .' document.getElementById(\'hiddenqueryform\').'
270 .'auto_commit.value = \'false\';'
271 .' document.getElementById(\'hiddenqueryform\').'
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
272 .'db.value = \'' . htmlspecialchars($query['db']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
273 .' document.getElementById(\'hiddenqueryform\').'
8fc4a4c moved styles into css
Sebastian Mendel authored
274 .'query_history_latest_db.value = \''
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
275 . htmlspecialchars($query['db']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
276 .' document.getElementById(\'hiddenqueryform\').'
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
277 .'table.value = \'' . htmlspecialchars($query['table']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
278 .' document.getElementById(\'hiddenqueryform\').'
8fc4a4c moved styles into css
Sebastian Mendel authored
279 .'query_history_latest_table.value = \''
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
280 . htmlspecialchars($query['table']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
281 .' document.getElementById(\'hiddenqueryform\').submit();'
282 .' return false;">' . $titles['Change'] . '</a>';
e8f3519 documentation;
Sebastian Mendel authored
283 // execute link
9889178 @lem9 new query window behavior
lem9 authored
284 echo '<a href="#" onclick="'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
285 .' document.getElementById(\'hiddenqueryform\').'
286 .'querydisplay_tab.value = \'' . $tab . '\';'
287 .' document.getElementById(\'hiddenqueryform\').'
288 .'query_history_latest.value = \''
5d88225 @lem9 bug #1549824, SQL history and quote escape
lem9 authored
289 . preg_replace('/(\r|\n)+/i', '\\r\\n',
e8f3519 documentation;
Sebastian Mendel authored
290 PMA_jsFormat($query['sqlquery'], false)) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
291 .' document.getElementById(\'hiddenqueryform\').'
292 .'auto_commit.value = \'true\';'
293 .' document.getElementById(\'hiddenqueryform\').'
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
294 .'db.value = \'' . htmlspecialchars($query['db']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
295 .' document.getElementById(\'hiddenqueryform\').'
8fc4a4c moved styles into css
Sebastian Mendel authored
296 .'query_history_latest_db.value = \''
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
297 . htmlspecialchars($query['db']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
298 .' document.getElementById(\'hiddenqueryform\').'
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
299 .'table.value = \'' . htmlspecialchars($query['table']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
300 .' document.getElementById(\'hiddenqueryform\').'
8fc4a4c moved styles into css
Sebastian Mendel authored
301 .'query_history_latest_table.value = \''
03f2245 bug #1664212 querywindow loses url encoded characters
Sebastian Mendel authored
302 . htmlspecialchars($query['table']) . '\';'
071a068 wrong handling of linebreaks in query: bug #1243888
Sebastian Mendel authored
303 .' document.getElementById(\'hiddenqueryform\').submit();'
e8f3519 documentation;
Sebastian Mendel authored
304 .' return false;">';
305 if (! empty($query['db'])) {
306 echo '[';
307 echo htmlspecialchars(PMA_backquote($query['db']));
308 if (! empty($query['table'])) {
309 echo '.' . htmlspecialchars(PMA_backquote($query['table']));
310 }
311 echo '] ';
312 }
313 if (strlen($query['sqlquery']) > 120) {
314 echo '<span title="' . htmlspecialchars($query['sqlquery']) . '">';
315 echo htmlspecialchars(substr($query['sqlquery'], 0, 50)) . ' [...] ';
316 echo htmlspecialchars(substr($query['sqlquery'], -50));
317 echo '</span>';
318 } else {
319 echo htmlspecialchars($query['sqlquery']);
320 }
321 echo '</a>' . "\n";
9889178 @lem9 new query window behavior
lem9 authored
322 echo '</li>' . "\n";
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
323 }
e8f3519 documentation;
Sebastian Mendel authored
324 unset($tab, $_sql_history, $query);
9889178 @lem9 new query window behavior
lem9 authored
325 echo '</ul>' . "\n";
326 }
327 ?>
e8f3519 documentation;
Sebastian Mendel authored
328 <form action="querywindow.php" method="post" name="hiddenqueryform"
329 id="hiddenqueryform">
330 <?php echo PMA_generate_common_hidden_inputs('', ''); ?>
331 <input type="hidden" name="db" value="<?php echo htmlspecialchars($db); ?>" />
332 <input type="hidden" name="table" value="<?php echo htmlspecialchars($table); ?>" />
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
333
334 <input type="hidden" name="query_history_latest" value="" />
335 <input type="hidden" name="query_history_latest_db" value="" />
336 <input type="hidden" name="query_history_latest_table" value="" />
37d50c1 @derrabus Huge set of optimizations, please test!
derrabus authored
337
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
338 <input type="hidden" name="auto_commit" value="false" />
4d878ae See Changelog: Lightweight tabs, DB-based SQL history, tabbed querywindo...
Garvin Hicking authored
339 <input type="hidden" name="querydisplay_tab" value="<?php echo $querydisplay_tab; ?>" />
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
340 </form>
64bd56d @nijel Support for browsing selected columns (RFE #1275909).
nijel authored
341 </div>
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
342 </body>
343 </html>
344
345 <?php
346 /**
347 * Close MySql connections
348 */
e8f3519 documentation;
Sebastian Mendel authored
349 if (! empty($controllink)) {
3885bb6 @lem9 dbh becomes controllink
lem9 authored
350 PMA_DBI_close($controllink);
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
351 }
e8f3519 documentation;
Sebastian Mendel authored
352 if (! empty($userlink)) {
0af2b97 @lem9 typo
lem9 authored
353 PMA_DBI_close($userlink);
dd6345c Display a (javascript) based query window as a new frame below the left
Garvin Hicking authored
354 }
355
356 /**
357 * Sends bufferized data
358 */
e8f3519 documentation;
Sebastian Mendel authored
359 PMA_outBufferPost();
37d50c1 @derrabus Huge set of optimizations, please test!
derrabus authored
360 ?>
Something went wrong with that request. Please try again.