Use password input for _md5 and _sha1 fields (Editor)
This commit is contained in:
parent
fdea1970d0
commit
0926122e14
|
@ -10,6 +10,7 @@ Create table default data type: int
|
||||||
Create table keyboard shortcuts: Ctrl+Up, Ctrl+Down
|
Create table keyboard shortcuts: Ctrl+Up, Ctrl+Down
|
||||||
Homepage customization
|
Homepage customization
|
||||||
Use IN for search in numeric fields (Editor)
|
Use IN for search in numeric fields (Editor)
|
||||||
|
Use password input for _md5 and _sha1 fields (Editor)
|
||||||
Work without session.use_cookies (bug #3138640)
|
Work without session.use_cookies (bug #3138640)
|
||||||
Portuguese translation
|
Portuguese translation
|
||||||
|
|
||||||
|
|
|
@ -415,6 +415,9 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
|
||||||
if (ereg('date|timestamp', $field["type"])) {
|
if (ereg('date|timestamp', $field["type"])) {
|
||||||
return "<input value='" . h($value) . "'$attrs> (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength
|
return "<input value='" . h($value) . "'$attrs> (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength
|
||||||
}
|
}
|
||||||
|
if (eregi('_(md5|sha1)$', $field["field"])) {
|
||||||
|
return "<input type='password' value='" . h($value) . "'$attrs>";
|
||||||
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue