Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function displayInfo2($the_userid) {
- $bar_class = new User($the_userid);
- if ($bar_class->id == "") {
- $the_info = "<u><i>Invalid User ID</i></u>.";
- } else {
- if ($bar_class->hppercent >= 75) {
- $colour = "#00DD00";
- } else {
- $colour = "#BB0000";
- }
- if ((time() - $bar_class->lastactive) < 900) {
- $colour1 = "#005500";
- $colour2 = "#006600";
- } else {
- $colour1 = "#550000";
- $colour2 = "#660000";
- }
- $the_info = '<table width="450px" class="userbar" cellspacing="0" cellpadding="3"><tr onclick="DoNav(\'' . $bar_class->id . '\');"><td width="40%">' . $bar_class->formattedname . '</td><td style="border-left: 1px solid #444444;" width="15%">LVL: ' . $bar_class->level . '</td><td style="border-left: 1px solid #444444;" width="15%">HP: <font color="' . $colour . '">' . $bar_class->hppercent . '%</font></td><td style="border-left: 1px solid #444444;" width="26%"><a href="/travel/bus.php">' . $bar_class->cityname . '</a></td><td align="center" style="border-left: 1px solid #444444; background-color:' . $colour1 . ';" width="4%"><div style="background-color:' . $colour2 . ';"> </div></td></tr></table><table width="450px" class="userbar2" cellspacing="0" cellpadding="3"><tr><td width="20%" align="center">[<a href="/attack.php?attack=' . $bar_class->id . '">attack</a>]</td><td style="border-left: 1px solid #444444;" width="20%" align="center">[<a href="/mug.php?mug=' . $bar_class->id . '">mug</a>]</td><td style="border-left: 1px solid #444444;" width="20%" align="center">[<a href="/spy.php?id=' . $bar_class->id . '">spy</a>]</td><td style="border-left: 1px solid #444444;" width="20%" align="center">[<a href="/profiles.php?id=' . $bar_class->id . '&contact=friend">friend</a>]</td><td style="border-left: 1px solid #444444;" width="20%" align="center">[<a href="/profiles.php?id=' . $bar_class->id . '&contact=enemy">enemy</a>]</td></tr></table>';
- }
- return $the_info;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement