Skip to content

Commit

Permalink
add style
Browse files Browse the repository at this point in the history
  • Loading branch information
nova2018 committed May 18, 2019
1 parent dad0fc4 commit 1c363dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewpeerlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ function dltable($name, $arr, $torrent)
$arrConn = [];
if (!empty($e["ipv4"])){
if (check_tjuip(ip2long($e['ipv4']))){
$arrConn[] = $lang_viewpeerlist['text_ipv4_in'];
$arrConn[] = '<span>' . $lang_viewpeerlist['text_ipv4_in'] . '</span>>';
}else{
$arrConn[] = '<span style="color:red;">' . $lang_viewpeerlist['text_ipv4_out'] . '</span>';
}
}
if (!empty($e["ipv6"])){
$arrConn[] = $lang_viewpeerlist['text_ipv6'];
$arrConn[] = '<span style="font-weight: bold">' . $lang_viewpeerlist['text_ipv6'] . '</span>';
}
empty($arrConn) && $arrConn[] = $lang_viewpeerlist['text_unknown'];

Expand Down

0 comments on commit 1c363dd

Please sign in to comment.