Author Topic: host name in main admin window  (Read 5849 times)

0 Members and 1 Guest are viewing this topic.

Offline abda53bd

  • Sr. Member
  • ****
  • Posts: 486
    • View Profile
host name in main admin window
« on: May 11, 2005, 04:54:00 PM »
i know its in there with the "ban" mod.. but how can i put the host name lookup in the main admin control panel

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: host name in main admin window
« Reply #1 on: May 12, 2005, 12:22:14 AM »
In ACP in home.php find:
Code: [Select]
    echo "<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_lastaction']."</td>\n<td class=\"tableseparator\">&nbsp;</td>\n<td class=\"tableseparator\">".$lang['field_ip']."</td>\n</tr>\n";Replace it with:
Code: [Select]
    echo "<td class=\"tableseparator\">".$lang['field_username']."</td>\n<td class=\"tableseparator\">".$lang['field_lastaction']."</td>\n<td class=\"tableseparator\">&nbsp;</td>\n<td class=\"tableseparator\">".$lang['field_ip']."</td>\n<td class=\"tableseparator\">Hostname</td>\n</tr>\n";
Then find:
Code: [Select]
        echo "<td><a href=\"".$ip_whois_link.$row['session_ip']."\" target=\"_blank\">".$row['session_ip']."</a></td>\n";Insert below:
Code: [Select]
        echo "<td>".gethostbyaddr($row['session_ip'])."</td>\n";
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: host name in main admin window
« Reply #2 on: May 13, 2005, 09:49:53 AM »
Also, to show hostname for guests:
Find:
Code: [Select]
echo "<td>".$row['session_ip']."</td>\n";
Add this below
Code: [Select]
echo "<td>".gethostbyaddr($row['session_ip'])."</td>\n";
Btw, i had modified this "echo "<td>".gethostbyaddr($row['session_ip'])."</td>\n";"

And now I can do whois lookup for guest to, just replace it with:
Code: [Select]
echo "<td><a href=\"".$ip_whois_link.$row['session_ip']."\" target=\"_blank\">".$row['session_ip']."</a></td>\n";
Again this addres?!
http://www.funny.lt