]> git.joonet.de Git - adminer.git/commitdiff
Remove number of tables (slow)
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 30 Oct 2009 16:48:18 +0000 (16:48 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Fri, 30 Oct 2009 16:48:18 +0000 (16:48 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1222 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/database.inc.php
adminer/include/connect.inc.php

index b0b640413360f2f1e324afea8a6331768917f473..b4e5d6610a3147ce59c345b36975590b51cd8352 100644 (file)
@@ -23,6 +23,7 @@ if ($_POST && !$error && !isset($_POST["add_x"])) { // add is an image and PHP c
                        }
                        if (!$row) {
                                queries("DROP DATABASE " . idf_escape(DB));
+                               //! saved to history of removed database
                        }
                        queries_redirect(preg_replace('~db=[^&]*&~', '', ME) . "db=" . urlencode($_POST["name"]), lang('Database has been renamed.'), !$row);
                }
index 9ad74d2b6e5fad9744e8aca768c40c9867767cfb..1733a8e7c0740ed0c4d9d691d94969fa3c542e5f 100644 (file)
@@ -31,14 +31,12 @@ function connect_error() {
                        $collations = collations();
                        echo "<form action='' method='post'>\n";
                        echo "<table cellspacing='0' onclick='table_click(event);'>\n";
-                       echo "<thead><tr><td><input type='hidden' name='token' value='$token'>&nbsp;<th>" . lang('Database') . "<td>" . lang('Collation') . "<td>" . lang('Tables') . "</thead>\n";
+                       echo "<thead><tr><td><input type='hidden' name='token' value='$token'>&nbsp;<th>" . lang('Database') . "<td>" . lang('Collation') . "</thead>\n";
                        foreach ($databases as $db) {
                                $root = h(ME) . "db=" . urlencode($db);
                                echo "<tr" . odd() . "><td>" . checkbox("db[]", $db, false);
                                echo "<th><a href='$root'>" . h($db) . "</a>";
                                echo "<td><a href='$root&amp;database='>" . nbsp(db_collation($db, $collations)) . "</a>";
-                               $result = $connection->query("SHOW TABLES FROM " . idf_escape($db));
-                               echo "<td align='right'><a href='$root&amp;schema='>$result->num_rows</a>";
                                echo "\n";
                        }
                        echo "</table>\n";