Skip to content
Browse files

Support MD5 and SHA1 columns

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1117 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 8dc85b5 commit 4b81c92582d1c683f86167f369d78a9a1f7ce7e7 jakubvrana committed
Showing with 4 additions and 1 deletion.
  1. +1 −1 editor/example.php
  2. +3 −0 editor/include/adminer.inc.php
View
2 editor/example.php
@@ -30,7 +30,7 @@ function tableName($tableStatus) {
function fieldName($field, $order = 0) {
// only columns with comments will be displayed and only the first five in select
- return ($order <= 5 ? h($field["comment"]) : "");
+ return ($order <= 5 && !ereg('_(md5|sha1)$', $field["field"]) ? h($field["comment"]) : "");
}
}
View
3 editor/include/adminer.inc.php
@@ -300,6 +300,9 @@ function editFunctions($field) {
if (ereg('date|time', $field["type"])) {
$return[] = "now";
}
+ if (ereg('_(md5|sha1)$', $field["field"], $match)) {
+ $return[] = $match[1];
+ }
return $return;
}

0 comments on commit 4b81c92

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