From 258d48a04749d57fd3e91524ac9c5da51440e739 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Apr 2011 14:32:30 +0400 Subject: show partial access key in main instance editor, better key input checking --- modules/pref-instances.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/pref-instances.php') diff --git a/modules/pref-instances.php b/modules/pref-instances.php index ab3d78c44..45df2eb39 100644 --- a/modules/pref-instances.php +++ b/modules/pref-instances.php @@ -70,7 +70,7 @@ print __("Access key:") . " "; print ""; @@ -143,6 +143,7 @@ print "   ".__('Instance URL')." + ".__('Access key')." ".__('Last connected')." "; @@ -163,7 +164,11 @@ $onclick = "onclick='editInstance($id, event)' title='".__('Click to edit')."'"; + $access_key = mb_substr($line['access_key'], 0, 4) . '...' . + mb_substr($line['access_key'], -4); + print "" . htmlspecialchars($line['access_url']) . ""; + print "" . htmlspecialchars($access_key) . ""; print "" . htmlspecialchars($line['last_connected']) . ""; print ""; -- cgit v1.2.3