From 348cbda8a04ba3d2f1f2d11ba2e5501228df184b Mon Sep 17 00:00:00 2001 From: kanoi Date: Thu, 13 Aug 2015 12:21:34 +1000 Subject: [PATCH] php - move the logout button next to the username and truncate the username at 12 chars --- pool/page.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pool/page.php b/pool/page.php index 4bfe7f6b..6bae844f 100644 --- a/pool/page.php +++ b/pool/page.php @@ -441,19 +441,16 @@ function pgtop($info, $dotop, $user, $douser) else { $extra = ''; - $first = substr($who, 0, 1); - if (($first == '1' || $first == '3') && strlen($who) > 12) + if (strlen($who) > 12) { - $who = substr($who, 0, 11); + $who = substr($who, 0, 12); $extra = '…'; } - $top .= " -".htmlspecialchars($who)."$extra 
-Hash Rate: -$uhr$u1hr
"; - $top .= makeForm('')." - -"; + $top .= "".htmlspecialchars($who)."$extra "; + $top .= makeForm(''); + $top .= ""; + $top .= "
Hash Rate:"; + $top .= "$uhr$u1hr
"; } $top .= '';