]> git.joonet.de Git - adminer.git/commitdiff
Hide hashes in select
authorJakub Vrana <jakub@vrana.cz>
Tue, 2 Nov 2010 09:29:32 +0000 (10:29 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 4 Nov 2010 08:51:23 +0000 (09:51 +0100)
editor/example.php

index e15807d83c17e19e9d60ae01b30bc234f2449282..f0c3b9e41145e4255bb5122d0fcd6cddca6647c7 100644 (file)
@@ -29,6 +29,9 @@ function adminer_object() {
                }
                
                function fieldName($field, $order = 0) {
+                       if ($order && ereg('_(md5|sha1)$', $field["field"])) {
+                               return ""; // hide hashes in select
+                       }
                        // only columns with comments will be displayed and only the first five in select
                        return ($order <= 5 ? h($field["comment"]) : "");
                }