Whois Latest [Chat Scripts]

Questions? Need Help? Want to share? » PHP Forum
Script Name:
Whois Latest

Download:
whois-latest.zip

Category:
Chat Scripts

Archive Content:

Content:

README:

Whois Script v. 1.2.2
Author: [ed]
Site: http://www.acemiles.com
Support: See site
       
*==================*
*-License----------*
*==================*
This work is licensed under the Creative Commons Attribution-ShareAlike License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/2.0/
or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.


*==================*
*-Notice-----------*
*==================*
There is a huge potential for someone to be able to attack/annoy you on your network with this script. You will definitely want to look into setting up some method to limit the number of connections for this bot. If you IRCd supports it, setup flood limits on the hostmask of the bot. Also, caching is a great idea for this type of system, but I havn't had time to incorporate that (since it would involve connecting to a MySQL server)



*==================*
*-Install----------*
*==================*

1) Modify config.php in a text editor (pico, TextEdit, Notepad) to change the server, port, nickname, etc settings of the bot.
2) Modify whois.php to make the style more like you want it
3) Upload the following files to your web server:
        - config.php
        - func.php
        - install.php
        - irc.php
        - whois.php
4) Load http://yourdomain.com/path/install.php
5) Remove install.php
6) Load http://yourdomain.com/path/whois.php to test.

If you wish to further customize the whois.php file, read the Customization section below.

If you have any problems, please double check your settings in irc.php, then feel free to contact us via our web site, http://www.acemiles.com

*==================*
*-Caching----------*
*==================*

We now cache via a MySQL server. More details later.

*==================*
*-Support----------*
*==================*

We offer free of charge support via our web site at http://www.acemiles.com
We also offer free installations of any of our scripts.

*==================*
*-Customization----*
*==================*
The whois.php that is provided with this script is simply an example. If you know a little bit of PHP, you can do much more with this script.

First off, you will need to start with a blank PHP page, obviously.
Then, you should either require() or include() func.php

Once you have done this, you can start adding in variables. The following is a list of all the variables that the script outputs to your whois.php:
$nickname - Nickname
$hostname - Hostname
$username - Username
$realname - Realname
$channumber - Total number of channels the user is in
$channels[] - Array of the channels the user is in. For example, $channels[1] prints the first channel the user is in.
$server - Server address that the user is connected to
$servername - Server name that the user is connected to
$sec - Number of seconds the user has been idle
$idletime - Formatted idle time, hours minutes seconds. Looks better than previous one.
$signon - Time of signon.
$signonrfc - Time of signon, RFC822 style.
$ircop - Returned only if the user is an operator. (313)

IRC daemon specific replies:
$nickreg - Unreal/Bahumut - Nickname is registered/identified. Returns 1 if yes, NULL if no.


*==================*
*-Thanks-to--------*
*==================*
Cobi (WinBots.org)
Jon Haworth (Laughing-Buddha.net)
William (wikkedwire.com)
Ap0s7le (ap0s7le.com)

*==================*
*-To-do------------*
*==================*
- XML output for use in a multi-network whois system.
Email me your ideas, ed <at> nullnet <dot> net


Other Chat Scripts Scripts:

WebMaster Resources Home

©RingsWorld.com