1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 12:21:24 +02:00

Dump support is optional

This commit is contained in:
Jakub Vrana
2010-07-22 12:36:45 +02:00
parent 1f1d6c3430
commit a7cdc85497
3 changed files with 4 additions and 2 deletions

View File

@@ -557,7 +557,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
}
function support($feature) {
return ereg('^(view|trigger|variables|status)$', $feature);
return ereg('^(view|trigger|variables|status|dump)$', $feature);
}
$jush = "sqlite";

View File

@@ -515,7 +515,9 @@ document.getElementById('username').focus();
<form action="" method="post">
<p class="logout">
<a href="<?php echo h(ME); ?>sql="><?php echo bold(lang('SQL command'), isset($_GET["sql"])); ?></a>
<?php if (support("dump")) { ?>
<a href="<?php echo h(ME); ?>dump=<?php echo urlencode(isset($_GET["table"]) ? $_GET["table"] : $_GET["select"]); ?>"><?php echo bold(lang('Dump'), isset($_GET["dump"])); ?></a>
<?php } ?>
<input type="hidden" name="token" value="<?php echo $token; ?>">
<input type="submit" name="logout" value="<?php echo lang('Logout'); ?>">
</p>