bad query in query box
[phpmyadmin/crack.git] / tbl_properties_links.php3
blob54c0dd11adf34205a2332ccab98bfdb15b619965
1 <?php
2 /* $Id$ */
5 /**
6 * Count amount of navigation tabs
7 */
8 $db_details_links_count_tabs = 0;
11 /**
12 * Prepares links
14 if ($table_info_num_rows > 0) {
15 $lnk2 = 'sql.php3';
16 $arg2 = $url_query
17 . '&amp;sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($table))
18 . '&amp;pos=0';
19 $lnk4 = 'tbl_select.php3';
20 $arg4 = $url_query;
21 $ln6_stt = (PMA_MYSQL_INT_VERSION >= 40000)
22 ? 'TRUNCATE '
23 : 'DELETE FROM ';
24 $lnk6 = 'sql.php3';
25 $arg6 = $url_query . '&amp;sql_query='
26 . urlencode($ln6_stt . PMA_backquote($table))
27 . '&amp;zero_rows='
28 . urlencode(sprintf($strTableHasBeenEmptied, htmlspecialchars($table)));
29 $att6 = 'class="drop" onclick="return confirmLink(this, \'' . $ln6_stt . PMA_jsFormat($table) . '\')"';
30 } else {
31 $lnk2 = '';
32 $arg2 = '';
33 $lnk4 = '';
34 $arg4 = '';
35 $lnk6 = '';
36 $arg6 = '';
37 $att6 = '';
40 $arg7 = ereg_replace('tbl_properties.php3$', 'db_details.php3', $url_query) . '&amp;back=tbl_properties' . $sub_part . '.php3&amp;reload=1&amp;sql_query=' . urlencode('DROP TABLE ' . PMA_backquote($table) ) . '&amp;zero_rows=' . urlencode(sprintf($strTableHasBeenDropped, htmlspecialchars($table)));
41 $att7 = 'class="drop" onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"';
44 /**
45 * Displays links
48 <table border="0" cellspacing="0" cellpadding="3" width="100%" class="tabs">
49 <tr>
50 <td width="8">&nbsp;</td>
51 <?php
52 echo PMA_printTab($strStructure, 'tbl_properties_structure.php3', $url_query);
53 echo PMA_printTab($strBrowse, $lnk2, $arg2);
54 echo PMA_printTab($strSQL, 'tbl_properties.php3', $url_query);
55 echo PMA_printTab($strSelect, $lnk4, $arg4);
56 echo PMA_printTab($strInsert, 'tbl_change.php3', $url_query);
57 echo PMA_printTab($strExport, 'tbl_properties_export.php3', $url_query);
58 echo PMA_printTab($strOperations, 'tbl_properties_operations.php3', $url_query);
59 echo PMA_printTab($strOptions, 'tbl_properties_options.php3', $url_query);
60 echo PMA_printTab($strEmpty, $lnk6, $arg6, $att6);
61 echo PMA_printTab($strDrop, 'sql.php3', $arg7, $att7);
62 echo "\n";
64 </tr>
65 </table>
66 <br />