From 258d48a04749d57fd3e91524ac9c5da51440e739 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 20 Apr 2011 14:32:30 +0400 Subject: [PATCH] show partial access key in main instance editor, better key input checking --- modules/popup-dialog.php | 2 +- modules/pref-instances.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 906e89f4f..f5a30a06e 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -1019,7 +1019,7 @@ print __("Access key:") . " "; print ""; 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 "";