' . htmlspecialchars($key) . '', $fields, $key); } /** Links after select heading * @param array result of SHOW TABLE STATUS * @return string */ function adminer_select_links($table_status) { global $SELF; return call_adminer('select_links', '' . lang('Table structure') . '', $table_status); } /** Query printed in select before execution * @param string query to be executed * @return string */ function adminer_select_query($query) { global $SELF; // it would be nice if $query can be passed by reference and printed value would be returned but call_user() doesn't allow reference parameters return call_adminer('select_query', "
" . htmlspecialchars($query) . "
" . lang('Edit') . "\n", $query);
}
/** Query printed after execution in the message
* @param string executed query
* @return string
*/
function adminer_message_query($query) {
global $SELF;
$id = "sql-" . count($_SESSION["messages"]);
return call_adminer('message_query', " " . lang('SQL command') . "
" . htmlspecialchars($query) . '' . lang('Edit') . '
\n";
foreach ($table_status as $row) {
echo '' . lang('select') . ' ';
echo '' . adminer_table_name($row) . "
\n";
}
}
echo '
' . lang('Create new table') . "\n"; } } }