mirror of
https://github.com/vrana/adminer.git
synced 2026-07-07 21:41:53 +02:00
Downloaded file name
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@665 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -200,7 +200,7 @@ function select($result, $dbh2 = null) {
|
||||
$val = "<i>NULL</i>";
|
||||
} else {
|
||||
if ($blobs[$key] && !is_utf8($val)) {
|
||||
$val = "<i>" . lang('%d byte(s)', strlen($val)) . "</i>";
|
||||
$val = "<i>" . lang('%d byte(s)', strlen($val)) . "</i>"; //! link to download
|
||||
} else {
|
||||
$val = nl2br(htmlspecialchars($val));
|
||||
if ($types[$key] == 254) {
|
||||
@@ -233,6 +233,10 @@ function shorten_utf8($string, $length) {
|
||||
return nl2br(htmlspecialchars($match[1])) . ($match[2] ? "<em>...</em>" : "");
|
||||
}
|
||||
|
||||
function friendly_url($val) {
|
||||
return preg_replace('~[^a-z0-9_]~i', '-', $val);
|
||||
}
|
||||
|
||||
function hidden_fields($process, $ignore = array()) {
|
||||
while (list($key, $val) = each($process)) {
|
||||
if (is_array($val)) {
|
||||
|
||||
Reference in New Issue
Block a user