To limit the characters add this :
PHP Code:
$browser = substr($browser, 0, 35);
$host = substr($host, 0, 35);
directly after this:
PHP Code:
$ip=$_SERVER['REMOTE_ADDR'];
$browser=$_SERVER['HTTP_USER_AGENT'];
$host=gethostbyaddr($_SERVER['REMOTE_ADDR']);
changing 35 to whatever length you want.
As for the white space, probably gotta look through your css for it. but you could try changing:
HTML Code:
<div class="bcontent" style="background:#FFFFFF;">
to
HTML Code:
<div class="bcontent" style="background:#FFFFFF; width:100%;">
Again not sure, as I haven't looked through your css.
Sooo, to sum it all up in one quote :
PHP Code:
<div class="box">
<div class="boxleft"><div class="boxright">
<div class="warning"> Your IP is exposed.</div>
<div class="bcontent" style="background:#FFFFFF; width:100%;">
<!-- USER INFO -->
<?php
$ip=$_SERVER['REMOTE_ADDR'];
$browser=$_SERVER['HTTP_USER_AGENT'];
$host=gethostbyaddr($_SERVER['REMOTE_ADDR']);
$browser = substr($browser, 0, 35);
$host = substr($host, 0, 35);
echo <<<D
<table>
<tbody><tr><td><b>Your IP:</b></font></td><td>$ip</font></td></tr>
<tr><td valign="top"><b>Browser:</b></font> </td><td>$browser</font></td></tr>
<tr><td><b>Host:</b></font> </td><td>$host</font></td></tr>
D;
?>
</tbody></table>
<!-- USER INFO -->
Cheers!
Bookmarks