Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove buttons from information_schema

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1338 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit c1c1b605cf9637a29b81d41efba1bf6aa6c933c1 1 parent c6813ad
jakubvrana authored

Showing 1 changed file with 7 additions and 5 deletions. Show diff stats Hide diff stats

  1. +7 5 adminer/db.inc.php
12 adminer/db.inc.php
@@ -81,11 +81,13 @@
81 81 echo "<td align='right'>" . number_format($sums[$val], 0, '.', lang(','));
82 82 }
83 83 echo "</table>\n";
84   - echo "<p><input type='hidden' name='token' value='$token'><input type='submit' value='" . lang('Analyze') . "'> <input type='submit' name='optimize' value='" . lang('Optimize') . "'> <input type='submit' name='check' value='" . lang('Check') . "'> <input type='submit' name='repair' value='" . lang('Repair') . "'> <input type='submit' name='truncate' value='" . lang('Truncate') . "' onclick=\"return confirm('" . lang('Are you sure?') . " (' + formChecked(this, /tables/) + ')');\"> <input type='submit' name='drop' value='" . lang('Drop') . "' onclick=\"return confirm('" . lang('Are you sure?') . " (' + formChecked(this, /tables|views/) + ')');\">\n";
85   - $dbs = get_databases();
86   - if (count($dbs) != 1) {
87   - $db = (isset($_POST["target"]) ? $_POST["target"] : DB);
88   - echo "<p>" . lang('Move to other database') . ($dbs ? ": " . html_select("target", $dbs, $db) : ': <input name="target" value="' . h($db) . '">') . " <input type='submit' name='move' value='" . lang('Move') . "'>\n";
  84 + if (!information_schema(DB)) {
  85 + echo "<p><input type='hidden' name='token' value='$token'><input type='submit' value='" . lang('Analyze') . "'> <input type='submit' name='optimize' value='" . lang('Optimize') . "'> <input type='submit' name='check' value='" . lang('Check') . "'> <input type='submit' name='repair' value='" . lang('Repair') . "'> <input type='submit' name='truncate' value='" . lang('Truncate') . "' onclick=\"return confirm('" . lang('Are you sure?') . " (' + formChecked(this, /tables/) + ')');\"> <input type='submit' name='drop' value='" . lang('Drop') . "' onclick=\"return confirm('" . lang('Are you sure?') . " (' + formChecked(this, /tables|views/) + ')');\">\n";
  86 + $dbs = get_databases();
  87 + if (count($dbs) != 1) {
  88 + $db = (isset($_POST["target"]) ? $_POST["target"] : DB);
  89 + echo "<p>" . lang('Move to other database') . ($dbs ? ": " . html_select("target", $dbs, $db) : ': <input name="target" value="' . h($db) . '">') . " <input type='submit' name='move' value='" . lang('Move') . "'>\n";
  90 + }
89 91 }
90 92 echo "</form>\n";
91 93 }

0 comments on commit c1c1b60

Please sign in to comment.
Something went wrong with that request. Please try again.