' . lang('Table structure') . '', $table_status);
}
/** Process and print select query 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', "", $query);
if (!$return) {
echo "
" . htmlspecialchars($query) . "
" . lang('Edit') . "
\n";
return $query;
}
return $return;
}
/** 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') . "', $query);
}
/** Prints navigation after Adminer title
* @param string can be "auth" if there is no database connection or "db" if there is no database selected
* @return bool true if default navigation should be printed
*/
function adminer_navigation($missing) {
global $SELF;
if (call_adminer('navigation', true, $missing) && $missing != "auth") {
$databases = get_databases();
?>
" . lang('No tables.') . "\n";
} else {
echo "\n";
foreach ($table_status as $row) {
echo '' . lang('select') . ' ';
echo '' . adminer_table_name($row) . "
\n";
}
echo "
\n";
}
echo '' . lang('Create new table') . "
\n";
}
}
}