Browse Source

php - move the logout button next to the username and truncate the username at 12 chars

master
kanoi 9 years ago
parent
commit
348cbda8a0
  1. 17
      pool/page.php

17
pool/page.php

@ -441,19 +441,16 @@ function pgtop($info, $dotop, $user, $douser)
else else
{ {
$extra = ''; $extra = '';
$first = substr($who, 0, 1); if (strlen($who) > 12)
if (($first == '1' || $first == '3') && strlen($who) > 12)
{ {
$who = substr($who, 0, 11); $who = substr($who, 0, 12);
$extra = '…'; $extra = '…';
} }
$top .= " $top .= "<span class=topwho>".htmlspecialchars($who)."$extra&nbsp;</span>";
<span class=topwho>".htmlspecialchars($who)."$extra&nbsp;</span><br> $top .= makeForm('');
<span class=topdes>Hash&nbsp;Rate:</span> $top .= "<input type=submit name=Logout value=Logout></form>";
<span class=topdat>$uhr$u1hr</span><br>"; $top .= "<br><span class=topdes>Hash&nbsp;Rate:</span>";
$top .= makeForm('')." $top .= "<span class=topdat>$uhr$u1hr</span><br>";
<input type=submit name=Logout value=Logout>
</form>";
} }
$top .= '</span>'; $top .= '</span>';

Loading…
Cancel
Save