package.xml0000644000175000017500000010622711461276032013771 0ustar clockwerxclockwerx Net_SmartIRC pear.php.net Net_SmartIRC is a PHP class for communication with IRC networks Net_SmartIRC is a PHP class for communication with IRC networks, which conforms to the RFC 2812 (IRC protocol). It's an API that handles all IRC protocol messages. This class is designed for creating IRC bots, chats and show irc related info on webpages. Full featurelist of Net_SmartIRC ------------------------------------- - full object oriented programmed - every received IRC message is parsed into an ircdata object (it contains following info: from, nick, ident, host, channel, message, type, rawmessage) - actionhandler for the API on different types of messages (channel/notice/query/kick/join..) callbacks can be registered - messagehandler for the API class based messagehandling, using IRC reply codes - time events callbacks to methods in intervals - send/receive floodprotection - detects and changes nickname on nickname collisions - autoreconnect, if connection is lost - autoretry for connecting to IRC servers - debugging/logging system with log levels (destination can be file, stdout, syslog or browserout) - supports fsocks and PHP socket extension - supports PHP 4.1.x to 4.3.2 (also PHP 5.0.0b1) - sendbuffer with a queue that has 3 priority levels (high, medium, low) plus a bypass level (critical) - channel syncing (tracking of users/modes/topic etc in objects) - user syncing (tracking the user in channels, nick/ident/host/realname/server/hopcount in objects) - when channel syncing is acticated the following functions are available: isJoined isOpped isVoiced isBanned - on reconnect all joined channels will be rejoined, also when keys are used - own CTCP version reply can be set - IRC commands: pass op deop voice devoice ban unban join part action message notice query ctcp mode topic nick invite list names kick who whois whowas quit Mirco 'meebey' Bauer meebey mail@meebey.net yes Nicolas CHAILLAN nicos nicos@php.net yes 2010-10-25 1.0.2 1.0.0 stable stable LGPL Automatically built QA release Req #16526 Colour and bold codes are not supported - giggsey 4.4.4 1.7.0 0.2.5 0.2.5 beta beta 2002-09-02 LGPL v0.2.5 ------ - improved socket handling - bufferedsend fix - new version number system - cpu usage reduced - added changelog file 0.2.6 0.2.6 beta beta 2002-10-12 LGPL v0.2.6 ------ * phpSmartIRCclass.inc.php: - phpSmartIRCclass.inc renamed to phpSmartIRCclass.inc.php because of security reasons - changed function_exists() to get_loaded_extensions() for checking if the PHP build has real socket support - log() changed to create Linux style formated logs - new methods for logging (daemon style) log() for add log entries setlogdestination() can be STDOUT or FILE setlogfile() sets the file - changed received data processing in rawreceive() * HOWTO: - added a mini howto for using the class * DOCUMENTATION: - added class documentation of the project * CREDITS: - added credits file 0.3.0 0.3.0 beta beta 2002-10-23 LGPL v0.3.0 ----- * phpSmartIRCclass.inc.php: - added "Ping? Pong!" log message for debugging - added real linux/windows syslog logging to setlogdestination(). - new method listen_for() makes it possible to show irc related information on a homepage, like how many users on a channel are. * HOWTO: - added how to run/call the selfwritten bot * DOCUMENTATION: - added (missing) explaination for new methods * example2.php: - new examplefile with the new listen_for() method 0.3.2 0.3.2 stable stable 2002-11-05 LGPL v0.3.2 ------ * phpSmartIRCclass.inc.php: - Replaced all quotes by single quote where possible for speedup. - Added _disconnecttime for doing a clean IRC quit. - Added Zend IDE style documentation for parameter variables types and method descriptions. - Spaces in nickname and username will be automaticly removed. - Nicknamecollisions are automaticly detected and nickname will be changed to nickname with 3 random numbers. - New method nicknameuse(). - Fixed a serious fsock bug. - Added new type TYPE_ERROR. - Fixed wrong usage of & when calling methods with params that are called by reference. - Fixed a debug message "DEBUG: disconnected", now it will only occur when debug mode is enabled. - listen_for() will now do a quickdisconnect, for a big speedup. - Changed logging system, now with debug levels, default is DEBUG_NOTICE. - Added benchmark system, now its possible to time things for doing optimizations. - New methods: benchmark(), benchmarktstart(), benchmarkend() and show_benchmark() for the benchmark system - Added microint(), for getting the microtime as float, needed for the benchmarks. - Added a couple of log() calls, for different debug levels. - fsockets now runs in non blocking mode, because of broken? getstatus for fsockets. - Added mode() method, for chaning modes of a user or channel. - Added op() and deop() method. Added ban() and unban() method (thx for diff file to Peter Petermann). * DOCUMENTATION: - added documentation for new logging system - added the whole DEBUG_* list * HOWTO: - changed parameter description for debug() * example.php: - replaced all quotes by singlequotes where possible. - fixed wrong usage of message() * example2.php: - replaced all quotes by singlquotes where possible. - added benchmark test to the example 0.4.0 0.4.0 stable stable 2002-11-26 LGPL v0.4.0 ------ * phpSmartIRCclass.inc.php: - fixed serious socket bug The buffer of the socket got full because only 512 bytes were read at once, which caused losing some IRC messages that are comming fast like the MOTD. Now it will read 10240 bytes at once, and doesn't loose any IRC message. - fixed sendbuffer The sendbuffer will only be sent, when the class is fully connected and registered on the IRC network. Before if a nickname collision happened, all sent IRC commands from the buffer were ignored by the IRC server. - fixed socket status Socket handling is now compatible with PHP 4.3 dev. - fixed $_nick When the nickname got changed because of nickname is already in use, $_nick will be updated. (thanks for the hint to Andreas Streichardt). - fixed actionhandler ids (unregister caused that the other ids were changed). - fixed TYPE_TOPIC to the right bitoperator value. - added a reference to the IRC class in actionhandler callbacks WARNING: all user writtin methods have to be changed!! method( &$data ) _has to be changed_ to method( &$irc, &$data ) If you don't change those, your IRC scripts will _not_ work anymore! - changed internal methodnames to _methodname - changed sendbuffer Now it uses configurable senddelay, instead of static 2 messages per second (send flood protection). - changed TYPEs All TYPE_* are now bitwise constants, register_actionhandler() can now react to more than one message type. - added TYPE_ACTION for those common /me messages. - added timeevents Added method register_timehandler() unregister_timeid() and reordertimehandler(). Those timehandler can be used to call methods in specified intervalls, e.g. for timeevents. Added needed class CphpSmartIRCclass_timehandler. - moved all IRC related defines to defines.inc.php. - changed if() elseif() structures where possible to switch() for clearer/faster code. - added more debug messages for actionhandler. - added unregister_actionhandler() and unregister_actionid() method. Also added needed reorderactionhandler(), which is called after an unregister methods was called. - added $data->channel to actionhandler callback. * defines.inc.php: - initial import. - now all IRC related defines are now in this file instead of phpSmartIRCclass.inc.php. * DOCUMENTATION: - updated/added methods description * example.php: - changed user function parameter to new style ( &$irc and &$data ). - added TYPE_NOTICE to query_test example. 0.5.0 0.5.0 stable stable 2003-01-07 LGPL v0.5.0 ------ fixes: - fixed critical bug in the main _rawreceive() for() loop, messages were lost. changes: - License changed from GPL to LGPL. - updated in all files the copyright year. - changed documentation tags in front of all methods to the phpDocumentator compatible format. - improved connect() errorhandling. - changed login() parameters to $nick, $realname, $usermode = 0, $username = null, $password = null. - changed join() parameters to $channelarray, $key = null. - changed kick() parameters to $channel, $nicknamearray, $reason = null. - changed listenFor() parameters to $messagetype return value is now the result, instead the of a reference to the result parameter. - sendbuffer has now 3 queues: high, medium and low high sends 2 messages, then 1 of medium low is only send if high _and_ medium is empty. - select() call for sockets is strongly optimized new: - phpDocumentator package tags. - include() for messagehandler.php (needed for the new API). - setChannelSynching() method, for enabling the channel synching. - setCtcpVersion() method, for changing the ctcp version reply string. - setReceiveTimeout() method, for changing the receive timeout. - setTransmitTimeout() method, for changing the transmit timeout. - setAutoReconnect() method, for enabling the autoreconnect feature. - channel variable, a reference to _channels because $object->channel("#chan")->topic is not possible in PHP4 (ZE1). - reconnect() method, it will reconnect and also join all channels. - channel() method, getting a reference to the channel, only if channelsynching is on. - added ident, host, messageex and rawmessageex variables to the Net_SmartIRC_data class. - class Net_SmartIRC_user, stores info about one user, only used if channelsynching is on. - class Net_SmartIRC_channel, stores info about one channel, only used if channelsynching is on. 0.5.1 0.5.1 stable stable 2003-01-17 LGPL v0.5.1: ------- fixes: - major bugs in ChannelSynching fixed. - fsocks support fixed. - setUseSocket() method fixed. If false was passed as parameter, it tried to load the socket extension. Also warnings are now suppressed with @ in front of dl(). - fixed a typo in reconnect(). - missing SMARTIRC_DEBUG_CHANNELSYNCHING constant added. changes: - new design for HTML documentation used (PEAR template). - moved all examples to their own directory (examples/). - moved the documentation to docs/HTML/. - added new file descriptions to README. - removed not needed parts of DOCUMENTATION (most is now in the HTML version). - updated the HTML documentation. new: - example5/6/7.php added. - setAutoRetry() method added. Autoretrying of connecting to the IRC server, is now supported. 0.5.5 0.5.5 stable stable 2003-07-23 LGPL v0.5.5: ------- fixes: - fixed a bug in _rawreceive() messages were parsed wrong which caused problems with kick reasons. (thx to sniper for reporting this). - fixed bug in message() CTCP ACTION messages had missing \001 at the end. - fixed a bug in quit(), which caused quit messages not to be sent to the server. - fixed reconnect() bug, it sent the channel join requests right after connect(), and tried to join a channel without a name. - fixes in ChannelSync code When a user joins a channel after SmartIRC, no WHO info is updated in the user object. Fixed wrong update of channel mode when rpl_channelmodeis received. Fixed bug in _mode() method, which caused wrong handling of mode changes. Topic updates are now tracked (thanks to sniper). Fixed bug which caused fatal errors with ChannelSync enabled (closes sf.net bug #705269). Fixed bug in _event_mode(), unhandled modes were stored wrong. Fixed bug in _event_rpl_namreply(), which caused that the first char of the first nick of a namreply got cut (closes sf.net bug #747832). - fixed bug in _checktimer() Which caused problems when a timehandler is unregistered. - fixed _gettye() It wasn't recognizing SMARTIRC_TYPE_ACTION. - removed if(!$obj) check for newly created objects (closes PHP bug #24622), required for PHP 4.1.2 compatibility. changes: - removed all irc commands from SmartIRC.php they have now their own file (SmartIRC/irccommands.php). - Net_SmartIRC_messagehandler class now extends Net_SmartIRC_irccommands. - removed the 1. parameter (&$irc) of all message handlers, not needed anymore. - renamed class Net_SmartIRC_user to Net_SmartIRC_channeluser, added class Net_SmartIRC_ircuser. - added prefix _event to all message handlers (needed because of class restructuring). - tweaked filling of the ircdata objects. - log() now checks the passed debug level bitwise. - $data->message will be null instead of random garbage, if the IRC message has no colon (the message part), - All methods that depend on ChannelSync mode, checks if it's enabled. - Optimized the usage of time() for $this->_lastrx. - updated the URL of a SmartIRC based bot (atbs). - _loggedin is now set to false when the socket is dead, required for proper working reconnect(). - on a reconnect(), the logfile won't be overwritten anymore. - updated phpdoc tags. - all access to the channel array now uses strtolower() for the key. - fixed typo in function name setChannelSynching(), now it's called setChannelSyncing() with a BC wrapper. - removed all SMARTIRC_ prefixes for debug output. - changed isJoined($channel) to isJoined($channel, $nickname) for checking if the specified user is joined. - removed "destructors", because they don't free the memory. new: - added isOpped() isVoiced() isBanned(). - added debug output and debug level for the messageparser. - reconnect() uses now the channel key if one exists. - added channel key syncing in _mode(). - when an actionhandler message regex has a leading '/' then the regex is used as it is, this allows complex perl regex's. - added message type SMARTIRC_TYPE_CTCP_REQUEST and SMARTIRC_CTCTP_REPLY for more advanced CTCP. - added new log destinations SMARTIRC_NONE and SMARTIRC_BROWSEROUT (for firendly browserouput). When the script is called from a browser, the BROWSEROUT will automatic be used (closed sf.net bug #708155). - added error handling for socket_select() in _rawreceive(). - added getMessage() to Net_SmartIRC_Error class. - added debug level for ChannelSync code (SMARTIRC_DEBUG_CHANNELSYNCING). - added filename and linenumber to debug output. - added key property to channel class. - added to all IRC commands optional $priority parameter with default value SMARTIRC_MEDIUM. - added isError() for more advanced errorhandling, needed for encapsulation. - added _isValidType() method, which checks for valid SMARTIRC_TYPE_* types. 1.0.1 1.0.0 stable stable 2009-07-18 LGPL QA release Updated to package 2.0 Bug #1950 Constructor calls ignore_user_abort(true) - undocumented and not always desired amir Bug #3064 Doesn't work with php 5.0.3 meebey Request #4727 Req Regarding Examples amir Bug #5220 connect() returns in some situations no false amir Bug #6525 When joining empty channel channel array is wrong amir Bug #9848 fix for "Only variable references..." warning amir Bug #10118 quit command doesn't disconnect the socket amir Request #10119 Req CTCP version reply should be fully configurable amir Request #13056 Allow multiple actionhandlers to execute amir 1.0.2 1.0.0 stable stable 2010-10-25 LGPL Automatically built QA release Req #16526 Colour and bold codes are not supported - giggsey Net_SmartIRC-1.0.2/docs/DOCUMENTATION0000600000175000017500000000533611461276032017415 0ustar clockwerxclockwerx/** * $Id: DOCUMENTATION 135642 2003-07-22 17:52:10Z meebey $ * $Revision: 135642 $ * $Author: meebey $ * $Date: 2003-07-23 03:22:10 +0930 (Wed, 23 Jul 2003) $ * * Copyright (c) 2002-2003 Mirco "MEEBEY" Bauer * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ API Documention of SmartIRC ------------------------------- Contents: - Message Types - Debug Levels Message Types: -------------- For RegisterActionhandler() and message() you pass a message type. The IRC protocol defines different kinds of messages. I don't cover all of them because there are just too many of them. RegisterActionhandler() uses bitwise constats, eg. SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE would match if the message is SMARTIRC_TYPE_QUERY _or_ SMARTIRC_TYPE_NOTICE. SmartIRC supports currently the following message types: SMARTIRC_TYPE_UNKNOWN SMARTIRC_TYPE_CHANNEL SMARTIRC_TYPE_QUERY SMARTIRC_TYPE_CTCP SMARTIRC_TYPE_CTCP_REQUEST SMARTIRC_TYPE_CTCP_REPLY SMARTIRC_TYPE_NOTICE SMARTIRC_TYPE_WHO SMARTIRC_TYPE_JOIN SMARTIRC_TYPE_INVITE SMARTIRC_TYPE_ACTION SMARTIRC_TYPE_TOPICCHANGE SMARTIRC_TYPE_NICKCHANGE SMARTIRC_TYPE_KICK SMARTIRC_TYPE_QUIT SMARTIRC_TYPE_LOGIN SMARTIRC_TYPE_INFO SMARTIRC_TYPE_LIST SMARTIRC_TYPE_NAME SMARTIRC_TYPE_MOTD SMARTIRC_TYPE_MODECHANGE SMARTIRC_TYPE_PART SMARTIRC_TYPE_ERROR SMARTIRC_TYPE_BANLIST SMARTIRC_TYPE_TOPIC SMARTIRC_TYPE_NONRELEVANT SMARTIRC_TYPE_WHOIS SMARTIRC_TYPE_WHOWAS SMARTIRC_TYPE_USERMODE SMARTIRC_TYPE_CHANNELMODE SMARTIRC_TYPE_CTCP_REQUEST SMARTIRC_TYPE_CTCP_REPLY Debug Levels: ------------ Here the list of avialable debug levels, used for the setDebug() setting and log() method: SMARTIRC_DEBUG_NONE SMARTIRC_DEBUG_NOTICE SMARTIRC_DEBUG_CONNECTION SMARTIRC_DEBUG_SOCKET SMARTIRC_DEBUG_IRCMESSAGES SMARTIRC_DEBUG_MESSAGETYPES SMARTIRC_DEBUG_ACTIONHANDLER SMARTIRC_DEBUG_TIMEHANDLER SMARTIRC_DEBUG_MESSAGEHANDLER SMARTIRC_DEBUG_CHANNELSYNCHING SMARTIRC_DEBUG_MODULES SMARTIRC_DEBUG_USERSYNCING SMARTIRC_DEBUG_MESSAGEPARSER SMARTIRC_DEBUG_ALL Net_SmartIRC-1.0.2/docs/HOWTO0000600000175000017500000001153711461276032016304 0ustar clockwerxclockwerx/** * $Id: HOWTO 112185 2003-01-16 23:02:34Z meebey $ * $Revision: 112185 $ * $Author: meebey $ * $Date: 2003-01-17 09:32:34 +1030 (Fri, 17 Jan 2003) $ * * Copyright (c) 2002-2003 Mirco "MEEBEY" Bauer * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ Mini-HowTo for Net_SmartIRC ------------------------------- Contents - Write your bot methods - Creating an object of Net_SmartIRC - Get Net_SmartIRC set up right - Register actionhandlers for your bot methods - Get things happen - Test the bot - Smart words Here is a guide for setting up the Net_SmartIRC and using it for a little IRC bot. ie.. You want to create a bot that reacts when the message in a channel is "!test". Write your bot methods: ---------------------- First you have to write your methods that will be executed when the event ("!test") happens. The imported thing is that the methods you write have to be methods in a class, since PHP doesn't allow references to normal PHP functions, only to objects... All methods you write have to have _2_ parameters and use a '&' in front of the variable name. With "function yourfunction( &$irc, &$data )" you are on the good side. The objectname for Net_SmartIRC we use in this howto is $irc After your class, you must make a object out of it, so Net_SmartIRC can call later your defined methods. Example: class mybot { function test_command(&$irc, &$data) { $irc->message(SMARTIRC_TYPE_CHANNEL, '#bots', $data->nick.': no I don't like tests!'); } } $mybot = &new mybot(); this will send a channel message to the #bots channel and will tell the guy who said !test, that the bot doesn't like tests.. Creating an object of Net_SmartIRC: ------------------------------------ If you want to use Net_SmartIRC for your program/script you first have to create a object of the class before you can use the methods or the class itself. Here is an example: include('SmartIRC.php'); $irc = &new Net_SmartIRC(); now you can call the methods of the class, with $irc->METHODNAME.... Get Net_SmartIRC set up right: ------------------------------- Before you can let the Net_SmartIRC do the IRC handling for you, you first have to tell it which server, username, realname etc.. if you want to use real sockets instead of fsocks you would do this (highly recommend): $irc->setUseSockets(true); or if you want to get debug messages for testing: $irc->setDebug(SMARTIRC_DEBUG_ALL); for all settings see the DOCUMENTATION file. Register actionhandlers for your bot methods: ----------------------------------------- You have a !test method but no relation to Net_SmartIRC yet. All your bot methods must be registered, or they won't be called, because Net_SmartIRC doesn't know them... logical... The test_command() method should be called when someone says "!test" in the channels where the bot is. Here is an example: $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '!test', &$mybot, 'test_command'); This tells Net_SmartIRC to call method called "test_command" from the object $mybot, when a message in a channel is "!test"... There are also different message types. These you will find in DOCUMENTATION Ok now we have everything ready to go! Get things happening: ------------------- connect to the IRC server and port: $irc->connect('irc.server.net', 6667); login with nickname, realname, usermode, username: $irc->login('MyBot', 'MyBotty Bot', 0,'MyBotty'); let the bot join a channel $irc->join('#bots'); now wait for the actionhandlers to happen, or idle: $irc->listen(); If the function listen() will return because of a return signal, then we should make a clean disconnect from the IRC server. $irc->disconnect(); Test the bot: ----------- Spawn the bot with this command "php yourbot.php" (assumes that you have the CGI/CLI version of PHP) Now just join the same IRC server that the bot is on and goto #bots and say !test You should get the "yourNickname: I don't like test" reply from your bot, yeah thats it... pretty easy if you wrote some methods... Smart words: ----------- And don't forget, all people on IRC are humans like you and me, be friendly and respect everyone like you want to be respected! Net_SmartIRC-1.0.2/docs/HTML/classtrees_Net_SmartIRC.html0000600000175000017500000005713711461276032023603 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Trees for Package Net_SmartIRC


Root class mybot


Root class mybot


Root class mybot


Root class mybot


Root class mybot


Root class mybot


Root class Net_SmartIRC_actionhandler


Root class Net_SmartIRC_base


Root class Net_SmartIRC_channel


Root class Net_SmartIRC_data


Root class Net_SmartIRC_Error


Root class Net_SmartIRC_listenfor


Root class Net_SmartIRC_timehandler


Root class Net_SmartIRC_user


Documentation generated on Wed, 23 Jul 2003 19:59:08 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/elementindex.html0000600000175000017500000017662711461276032021610 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Index of all elements

[ ' ] [ a ] [ b ] [ c ] [ d ] [ e ] [ f ] [ g ] [ h ] [ i ] [ j ] [ k ] [ l ] [ m ] [ n ] [ o ] [ p ] [ q ] [ r ] [ s ] [ t ] [ u ] [ v ] [ w ] [ _ ]

'

'SMARTIRC_'.$key
in file defines.php, constant 'SMARTIRC_'.$key
top

a

$away
in file SmartIRC.php, variable Net_SmartIRC_user::$away
top

b

$bans
in file SmartIRC.php, variable Net_SmartIRC_channel::$bans
ban
in file irccommands.php, method Net_SmartIRC_irccommands::ban()
    bans a hostmask for the given channel or requests the current banlist
top

c

$channel
in file SmartIRC.php, variable Net_SmartIRC_base::$channel
    Stores all channels in this array where we are joined, works only if channelsyncing is activated.
$channel
in file SmartIRC.php, variable Net_SmartIRC_data::$channel
changeNick
in file irccommands.php, method Net_SmartIRC_irccommands::changeNick()
    changes the own nickname
channel
in file irccommands.php, method Net_SmartIRC_irccommands::channel()
    returns an object reference to the specified channel
channel_test
in file example.php, method mybot::channel_test()
connect
in file SmartIRC.php, method Net_SmartIRC_base::connect()
    Creates the sockets and connects to the IRC server on the given port.
top

d

deop
in file irccommands.php, method Net_SmartIRC_irccommands::deop()
    deops an user in the given channel
devoice
in file irccommands.php, method Net_SmartIRC_irccommands::devoice()
    devoice a user in the given channel
disconnect
in file SmartIRC.php, method Net_SmartIRC_base::disconnect()
    Disconnects from the IRC server nicely with a QUIT or just destroys the socket.
defines.php
procedural page defines.php
top

e

$error_msg
in file SmartIRC.php, variable Net_SmartIRC_Error::$error_msg
example2.php
procedural page example2.php
example3.php
procedural page example3.php
example4.php
procedural page example4.php
example5.php
procedural page example5.php
example6.php
procedural page example6.php
example7.php
procedural page example7.php
example.php
procedural page example.php
top

f

$from
in file SmartIRC.php, variable Net_SmartIRC_data::$from
top

g

getList
in file irccommands.php, method Net_SmartIRC_irccommands::getList()
    gets a list of one ore more channels
getMessage
in file SmartIRC.php, method Net_SmartIRC_Error::getMessage()
getMotd
in file SmartIRC.php, method Net_SmartIRC_base::getMotd()
    Returns the full motd.
getTopic
in file irccommands.php, method Net_SmartIRC_irccommands::getTopic()
    gets the topic of a channel
getUsermode
in file SmartIRC.php, method Net_SmartIRC_base::getUsermode()
    Returns the usermode.
top

h

$hopcount
in file SmartIRC.php, variable Net_SmartIRC_user::$hopcount
$host
in file SmartIRC.php, variable Net_SmartIRC_data::$host
$host
in file SmartIRC.php, variable Net_SmartIRC_user::$host
handler
in file SmartIRC.php, method Net_SmartIRC_listenfor::handler()
    stores the received answer into the result array
top

i

$id
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$id
$id
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$id
$ident
in file SmartIRC.php, variable Net_SmartIRC_user::$ident
$ident
in file SmartIRC.php, variable Net_SmartIRC_data::$ident
$interval
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$interval
$ircop
in file SmartIRC.php, variable Net_SmartIRC_user::$ircop
invite
in file irccommands.php, method Net_SmartIRC_irccommands::invite()
    invites a user to the specified channel
isBanned
in file SmartIRC.php, method Net_SmartIRC_base::isBanned()
    Checks if the hostmask is on the specified channel banned and returns the result.
isError
in file SmartIRC.php, method Net_SmartIRC_base::isError()
isJoined
in file SmartIRC.php, method Net_SmartIRC_base::isJoined()
    checks if we or the given user is joined to the specified channel and returns the result ChannelSyncing is required for this.
isOpped
in file SmartIRC.php, method Net_SmartIRC_base::isOpped()
    Checks if we or the given user is opped on the specified channel and returns the result.
isVoiced
in file SmartIRC.php, method Net_SmartIRC_base::isVoiced()
    Checks if we or the given user is voiced on the specified channel and returns the result.
irccommands.php
procedural page irccommands.php
top

j

$joinedchannels
in file SmartIRC.php, variable Net_SmartIRC_ircuser::$joinedchannels
join
in file irccommands.php, method Net_SmartIRC_irccommands::join()
    Joins one or more IRC channels with an optional key.
top

k

$key
in file SmartIRC.php, variable Net_SmartIRC_channel::$key
kick
in file irccommands.php, method Net_SmartIRC_irccommands::kick()
    Kicks one or more user from an IRC channel with an optional reason.
top

l

$lastmicrotimestamp
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$lastmicrotimestamp
listen
in file SmartIRC.php, method Net_SmartIRC_base::listen()
    goes into receive mode
listenFor
in file SmartIRC.php, method Net_SmartIRC_base::listenFor()
    waits for a special message type and puts the answer in $result
log
in file SmartIRC.php, method Net_SmartIRC_base::log()
    Adds an entry to the log.
login
in file SmartIRC.php, method Net_SmartIRC_base::login()
    login and register nickname on the IRC network
top

m

$message
in file SmartIRC.php, variable Net_SmartIRC_data::$message
$message
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$message
$messageex
in file SmartIRC.php, variable Net_SmartIRC_data::$messageex
$method
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$method
$method
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$method
$mode
in file SmartIRC.php, variable Net_SmartIRC_channel::$mode
message
in file irccommands.php, method Net_SmartIRC_irccommands::message()
    sends a new message
mode
in file irccommands.php, method Net_SmartIRC_irccommands::mode()
    sets or gets the mode of an user or channel
mybot
in file example.php, class mybot
messagehandler.php
procedural page messagehandler.php
top

n

$name
in file SmartIRC.php, variable Net_SmartIRC_channel::$name
$nick
in file SmartIRC.php, variable Net_SmartIRC_data::$nick
$nick
in file SmartIRC.php, variable Net_SmartIRC_user::$nick
$nreplycodes
in file SmartIRC.php, variable Net_SmartIRC_base::$nreplycodes
    All numeric IRC replycodes, the index is the numeric replycode.
names
in file irccommands.php, method Net_SmartIRC_irccommands::names()
    requests all nicknames of one or more channels
Net_SmartIRC
in file SmartIRC.php, class Net_SmartIRC
    $Id: elementindex.html 135710 2003-07-23 18:08:55Z meebey $
Net_SmartIRC
in file SmartIRC.php, method Net_SmartIRC_base::Net_SmartIRC()
    Constructor. Initiales the messagebuffer and "links" the replycodes from global into properties. Also some PHP runtime settings are configured.
Net_SmartIRC_actionhandler
in file SmartIRC.php, class Net_SmartIRC_actionhandler
Net_SmartIRC_base
in file SmartIRC.php, class Net_SmartIRC_base
    main SmartIRC class
Net_SmartIRC_channel
in file SmartIRC.php, class Net_SmartIRC_channel
Net_SmartIRC_channeluser
in file SmartIRC.php, class Net_SmartIRC_channeluser
Net_SmartIRC_data
in file SmartIRC.php, class Net_SmartIRC_data
Net_SmartIRC_Error
in file SmartIRC.php, class Net_SmartIRC_Error
Net_SmartIRC_Error
in file SmartIRC.php, method Net_SmartIRC_Error::Net_SmartIRC_Error()
Net_SmartIRC_irccommands
in file irccommands.php, class Net_SmartIRC_irccommands
    $Id: elementindex.html 135710 2003-07-23 18:08:55Z meebey $
Net_SmartIRC_ircuser
in file SmartIRC.php, class Net_SmartIRC_ircuser
Net_SmartIRC_listenfor
in file SmartIRC.php, class Net_SmartIRC_listenfor
Net_SmartIRC_messagehandler
in file messagehandler.php, class Net_SmartIRC_messagehandler
    $Id: elementindex.html 135710 2003-07-23 18:08:55Z meebey $
Net_SmartIRC_timehandler
in file SmartIRC.php, class Net_SmartIRC_timehandler
Net_SmartIRC_user
in file SmartIRC.php, class Net_SmartIRC_user
top

o

$object
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$object
$object
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$object
$op
in file SmartIRC.php, variable Net_SmartIRC_channeluser::$op
$ops
in file SmartIRC.php, variable Net_SmartIRC_channel::$ops
op
in file irccommands.php, method Net_SmartIRC_irccommands::op()
    ops an user in the given channel
top

p

part
in file irccommands.php, method Net_SmartIRC_irccommands::part()
    parts from one or more IRC channels with an optional reason
top

q

query_test
in file example.php, method mybot::query_test()
quit
in file irccommands.php, method Net_SmartIRC_irccommands::quit()
    sends QUIT to IRC server and disconnects
top

r

$rawmessage
in file SmartIRC.php, variable Net_SmartIRC_data::$rawmessage
$rawmessageex
in file SmartIRC.php, variable Net_SmartIRC_data::$rawmessageex
$realname
in file SmartIRC.php, variable Net_SmartIRC_user::$realname
$replycodes
in file SmartIRC.php, variable Net_SmartIRC_base::$replycodes
    All IRC replycodes, the index is the replycode name.
$result
in file SmartIRC.php, variable Net_SmartIRC_listenfor::$result
reconnect
in file SmartIRC.php, method Net_SmartIRC_base::reconnect()
    Reconnects to the IRC server with the same login info, it also rejoins the channels
registerActionhandler
in file SmartIRC.php, method Net_SmartIRC_base::registerActionhandler()
    registers a new actionhandler and returns the assigned id
registerTimehandler
in file SmartIRC.php, method Net_SmartIRC_base::registerTimehandler()
    registers a timehandler and returns the assigned id
top

s

$server
in file SmartIRC.php, variable Net_SmartIRC_user::$server
setAutoReconnect
in file SmartIRC.php, method Net_SmartIRC_base::setAutoReconnect()
    Enables/disables autoreconnecting.
setAutoRetry
in file SmartIRC.php, method Net_SmartIRC_base::setAutoRetry()
    Enables/disables autoretry for connecting to a server.
setBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::setBenchmark()
    Enables/disables the benchmark engine.
setChannelSynching
in file SmartIRC.php, method Net_SmartIRC_base::setChannelSynching()
    Deprecated, use setChannelSyncing() instead!
setChannelSyncing
in file SmartIRC.php, method Net_SmartIRC_base::setChannelSyncing()
    Enables/disables channel syncing.
setCtcpVersion
in file SmartIRC.php, method Net_SmartIRC_base::setCtcpVersion()
    Sets the CTCP version reply string.
setDebug
in file SmartIRC.php, method Net_SmartIRC_base::setDebug()
    Sets the level of debug messages.
setDisconnecttime
in file SmartIRC.php, method Net_SmartIRC_base::setDisconnecttime()
    Sets the delaytime before closing the socket when disconnect.
setLogdestination
in file SmartIRC.php, method Net_SmartIRC_base::setLogdestination()
    Sets the destination of all log messages.
setLogfile
in file SmartIRC.php, method Net_SmartIRC_base::setLogfile()
    Sets the file for the log if the destination is set to file.
setReceivedelay
in file SmartIRC.php, method Net_SmartIRC_base::setReceivedelay()
    Sets the delay for receiving data from the IRC server.
setReceiveTimeout
in file SmartIRC.php, method Net_SmartIRC_base::setReceiveTimeout()
    Sets the receive timeout.
setSenddelay
in file SmartIRC.php, method Net_SmartIRC_base::setSenddelay()
    Sets the delay for sending data to the IRC server.
setTopic
in file irccommands.php, method Net_SmartIRC_irccommands::setTopic()
    sets a new topic of a channel
setTransmitTimeout
in file SmartIRC.php, method Net_SmartIRC_base::setTransmitTimeout()
    Sets the transmit timeout.
setUseSockets
in file SmartIRC.php, method Net_SmartIRC_base::setUseSockets()
    Enables/disables the usage of real sockets.
showBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::showBenchmark()
    Shows the benchmark result.
SmartIRC.php
procedural page SmartIRC.php
SMARTIRC_BROWSEROUT
in file defines.php, constant SMARTIRC_BROWSEROUT
SMARTIRC_CRITICAL
in file defines.php, constant SMARTIRC_CRITICAL
SMARTIRC_CRLF
in file defines.php, constant SMARTIRC_CRLF
    $Id: elementindex.html 135710 2003-07-23 18:08:55Z meebey $
SMARTIRC_DEBUG_ACTIONHANDLER
in file defines.php, constant SMARTIRC_DEBUG_ACTIONHANDLER
SMARTIRC_DEBUG_ALL
in file defines.php, constant SMARTIRC_DEBUG_ALL
SMARTIRC_DEBUG_CHANNELSYNCING
in file defines.php, constant SMARTIRC_DEBUG_CHANNELSYNCING
SMARTIRC_DEBUG_CONNECTION
in file defines.php, constant SMARTIRC_DEBUG_CONNECTION
SMARTIRC_DEBUG_IRCMESSAGES
in file defines.php, constant SMARTIRC_DEBUG_IRCMESSAGES
SMARTIRC_DEBUG_MESSAGEHANDLER
in file defines.php, constant SMARTIRC_DEBUG_MESSAGEHANDLER
SMARTIRC_DEBUG_MESSAGEPARSER
in file defines.php, constant SMARTIRC_DEBUG_MESSAGEPARSER
SMARTIRC_DEBUG_MESSAGETYPES
in file defines.php, constant SMARTIRC_DEBUG_MESSAGETYPES
SMARTIRC_DEBUG_MODULES
in file defines.php, constant SMARTIRC_DEBUG_MODULES
SMARTIRC_DEBUG_NONE
in file defines.php, constant SMARTIRC_DEBUG_NONE
SMARTIRC_DEBUG_NOTICE
in file defines.php, constant SMARTIRC_DEBUG_NOTICE
SMARTIRC_DEBUG_SOCKET
in file defines.php, constant SMARTIRC_DEBUG_SOCKET
SMARTIRC_DEBUG_TIMEHANDLER
in file defines.php, constant SMARTIRC_DEBUG_TIMEHANDLER
SMARTIRC_DEBUG_USERSYNCING
in file defines.php, constant SMARTIRC_DEBUG_USERSYNCING
SMARTIRC_FILE
in file defines.php, constant SMARTIRC_FILE
SMARTIRC_HIGH
in file defines.php, constant SMARTIRC_HIGH
SMARTIRC_LOW
in file defines.php, constant SMARTIRC_LOW
SMARTIRC_MEDIUM
in file defines.php, constant SMARTIRC_MEDIUM
SMARTIRC_NONE
in file defines.php, constant SMARTIRC_NONE
SMARTIRC_STATE_CONNECTED
in file defines.php, constant SMARTIRC_STATE_CONNECTED
SMARTIRC_STATE_CONNECTING
in file defines.php, constant SMARTIRC_STATE_CONNECTING
SMARTIRC_STATE_DISCONNECTED
in file defines.php, constant SMARTIRC_STATE_DISCONNECTED
SMARTIRC_STDOUT
in file defines.php, constant SMARTIRC_STDOUT
SMARTIRC_SYSLOG
in file defines.php, constant SMARTIRC_SYSLOG
SMARTIRC_TYPE_ACTION
in file defines.php, constant SMARTIRC_TYPE_ACTION
SMARTIRC_TYPE_ALL
in file defines.php, constant SMARTIRC_TYPE_ALL
SMARTIRC_TYPE_BANLIST
in file defines.php, constant SMARTIRC_TYPE_BANLIST
SMARTIRC_TYPE_CHANNEL
in file defines.php, constant SMARTIRC_TYPE_CHANNEL
SMARTIRC_TYPE_CHANNELMODE
in file defines.php, constant SMARTIRC_TYPE_CHANNELMODE
SMARTIRC_TYPE_CTCP
in file defines.php, constant SMARTIRC_TYPE_CTCP
SMARTIRC_TYPE_CTCP_REPLY
in file defines.php, constant SMARTIRC_TYPE_CTCP_REPLY
SMARTIRC_TYPE_CTCP_REQUEST
in file defines.php, constant SMARTIRC_TYPE_CTCP_REQUEST
SMARTIRC_TYPE_ERROR
in file defines.php, constant SMARTIRC_TYPE_ERROR
SMARTIRC_TYPE_INFO
in file defines.php, constant SMARTIRC_TYPE_INFO
SMARTIRC_TYPE_INVITE
in file defines.php, constant SMARTIRC_TYPE_INVITE
SMARTIRC_TYPE_JOIN
in file defines.php, constant SMARTIRC_TYPE_JOIN
SMARTIRC_TYPE_KICK
in file defines.php, constant SMARTIRC_TYPE_KICK
SMARTIRC_TYPE_LIST
in file defines.php, constant SMARTIRC_TYPE_LIST
SMARTIRC_TYPE_LOGIN
in file defines.php, constant SMARTIRC_TYPE_LOGIN
SMARTIRC_TYPE_MODECHANGE
in file defines.php, constant SMARTIRC_TYPE_MODECHANGE
SMARTIRC_TYPE_MOTD
in file defines.php, constant SMARTIRC_TYPE_MOTD
SMARTIRC_TYPE_NAME
in file defines.php, constant SMARTIRC_TYPE_NAME
SMARTIRC_TYPE_NICKCHANGE
in file defines.php, constant SMARTIRC_TYPE_NICKCHANGE
SMARTIRC_TYPE_NONRELEVANT
in file defines.php, constant SMARTIRC_TYPE_NONRELEVANT
SMARTIRC_TYPE_NOTICE
in file defines.php, constant SMARTIRC_TYPE_NOTICE
SMARTIRC_TYPE_PART
in file defines.php, constant SMARTIRC_TYPE_PART
SMARTIRC_TYPE_QUERY
in file defines.php, constant SMARTIRC_TYPE_QUERY
SMARTIRC_TYPE_QUIT
in file defines.php, constant SMARTIRC_TYPE_QUIT
SMARTIRC_TYPE_TOPIC
in file defines.php, constant SMARTIRC_TYPE_TOPIC
SMARTIRC_TYPE_TOPICCHANGE
in file defines.php, constant SMARTIRC_TYPE_TOPICCHANGE
SMARTIRC_TYPE_UNKNOWN
in file defines.php, constant SMARTIRC_TYPE_UNKNOWN
SMARTIRC_TYPE_USERMODE
in file defines.php, constant SMARTIRC_TYPE_USERMODE
SMARTIRC_TYPE_WHO
in file defines.php, constant SMARTIRC_TYPE_WHO
SMARTIRC_TYPE_WHOIS
in file defines.php, constant SMARTIRC_TYPE_WHOIS
SMARTIRC_TYPE_WHOWAS
in file defines.php, constant SMARTIRC_TYPE_WHOWAS
SMARTIRC_UNUSED
in file defines.php, constant SMARTIRC_UNUSED
SMARTIRC_VERSION
in file SmartIRC.php, constant SMARTIRC_VERSION
SMARTIRC_VERSIONSTRING
in file SmartIRC.php, constant SMARTIRC_VERSIONSTRING
startBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::startBenchmark()
    Starts the benchmark (sets the counters).
stopBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::stopBenchmark()
    Stops the benchmark and displays the result.
top

t

$topic
in file SmartIRC.php, variable Net_SmartIRC_channel::$topic
$type
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$type
$type
in file SmartIRC.php, variable Net_SmartIRC_data::$type
throwError
in file SmartIRC.php, method Net_SmartIRC_base::throwError()
top

u

$users
in file SmartIRC.php, variable Net_SmartIRC_channel::$users
unban
in file irccommands.php, method Net_SmartIRC_irccommands::unban()
    unbans a hostmask on the given channel
unregisterActionhandler
in file SmartIRC.php, method Net_SmartIRC_base::unregisterActionhandler()
    unregisters an existing actionhandler
unregisterActionid
in file SmartIRC.php, method Net_SmartIRC_base::unregisterActionid()
    unregisters an existing actionhandler via the id
unregisterTimeid
in file SmartIRC.php, method Net_SmartIRC_base::unregisterTimeid()
    unregisters an existing timehandler via the id
top

v

$voice
in file SmartIRC.php, variable Net_SmartIRC_channeluser::$voice
$voices
in file SmartIRC.php, variable Net_SmartIRC_channel::$voices
voice
in file irccommands.php, method Net_SmartIRC_irccommands::voice()
    voice a user in the given channel
top

w

who
in file irccommands.php, method Net_SmartIRC_irccommands::who()
    requests a 'WHO' from the specified target
whois
in file irccommands.php, method Net_SmartIRC_irccommands::whois()
    requests a 'WHOIS' from the specified target
whowas
in file irccommands.php, method Net_SmartIRC_irccommands::whowas()
    requests a 'WHOWAS' from the specified target (if he left the IRC network)
top

_

_event_error
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_error()
_event_err_nicknameinuse
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_err_nicknameinuse()
_event_join
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_join()
_event_kick
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_kick()
_event_mode
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_mode()
_event_nick
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_nick()
_event_part
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_part()
_event_ping
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_ping()
_event_privmsg
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_privmsg()
_event_quit
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_quit()
_event_rpl_banlist
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_banlist()
_event_rpl_channelmodeis
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_channelmodeis()
_event_rpl_endofmotd
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_endofmotd()
_event_rpl_motd
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_motd()
_event_rpl_motdstart
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_motdstart()
_event_rpl_namreply
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_namreply()
_event_rpl_topic
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_topic()
_event_rpl_umodeis
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_umodeis()
_event_rpl_welcome
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_welcome()
_event_rpl_whoreply
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_whoreply()
_event_topic
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_topic()
top

Documentation generated on Wed, 23 Jul 2003 19:59:08 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/elementindex_Net_SmartIRC.html0000600000175000017500000021262611461276032024110 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Element index for package Net_SmartIRC

[ ' ] [ a ] [ b ] [ c ] [ d ] [ e ] [ f ] [ g ] [ h ] [ i ] [ j ] [ k ] [ l ] [ m ] [ n ] [ o ] [ p ] [ q ] [ r ] [ s ] [ t ] [ u ] [ v ] [ w ] [ _ ]

'

'SMARTIRC_'.$key
in file defines.php, constant 'SMARTIRC_'.$key
top

_

_event_error
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_error()
_event_err_nicknameinuse
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_err_nicknameinuse()
_event_join
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_join()
_event_kick
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_kick()
_event_mode
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_mode()
_event_nick
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_nick()
_event_part
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_part()
_event_ping
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_ping()
_event_privmsg
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_privmsg()
_event_quit
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_quit()
_event_rpl_banlist
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_banlist()
_event_rpl_channelmodeis
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_channelmodeis()
_event_rpl_endofmotd
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_endofmotd()
_event_rpl_motd
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_motd()
_event_rpl_motdstart
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_motdstart()
_event_rpl_namreply
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_namreply()
_event_rpl_topic
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_topic()
_event_rpl_umodeis
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_umodeis()
_event_rpl_welcome
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_welcome()
_event_rpl_whoreply
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_rpl_whoreply()
_event_topic
in file messagehandler.php, method Net_SmartIRC_messagehandler::_event_topic()
top

a

$away
in file SmartIRC.php, variable Net_SmartIRC_user::$away
top

b

$bans
in file SmartIRC.php, variable Net_SmartIRC_channel::$bans
ban
in file irccommands.php, method Net_SmartIRC_irccommands::ban()
    bans a hostmask for the given channel or requests the current banlist
top

c

$channel
in file SmartIRC.php, variable Net_SmartIRC_base::$channel
    Stores all channels in this array where we are joined, works only if channelsyncing is activated.
$channel
in file SmartIRC.php, variable Net_SmartIRC_data::$channel
changeNick
in file irccommands.php, method Net_SmartIRC_irccommands::changeNick()
    changes the own nickname
channel
in file irccommands.php, method Net_SmartIRC_irccommands::channel()
    returns an object reference to the specified channel
channel_test
in file example.php, method mybot::channel_test()
connect
in file SmartIRC.php, method Net_SmartIRC_base::connect()
    Creates the sockets and connects to the IRC server on the given port.
top

d

deop
in file irccommands.php, method Net_SmartIRC_irccommands::deop()
    deops an user in the given channel
devoice
in file irccommands.php, method Net_SmartIRC_irccommands::devoice()
    devoice a user in the given channel
disconnect
in file SmartIRC.php, method Net_SmartIRC_base::disconnect()
    Disconnects from the IRC server nicely with a QUIT or just destroys the socket.
defines.php
procedural page defines.php
top

e

$error_msg
in file SmartIRC.php, variable Net_SmartIRC_Error::$error_msg
example2.php
procedural page example2.php
example3.php
procedural page example3.php
example4.php
procedural page example4.php
example5.php
procedural page example5.php
example6.php
procedural page example6.php
example7.php
procedural page example7.php
example.php
procedural page example.php
top

f

$from
in file SmartIRC.php, variable Net_SmartIRC_data::$from
top

g

getList
in file irccommands.php, method Net_SmartIRC_irccommands::getList()
    gets a list of one ore more channels
getMessage
in file SmartIRC.php, method Net_SmartIRC_Error::getMessage()
getMotd
in file SmartIRC.php, method Net_SmartIRC_base::getMotd()
    Returns the full motd.
getTopic
in file irccommands.php, method Net_SmartIRC_irccommands::getTopic()
    gets the topic of a channel
getUsermode
in file SmartIRC.php, method Net_SmartIRC_base::getUsermode()
    Returns the usermode.
top

h

$hopcount
in file SmartIRC.php, variable Net_SmartIRC_user::$hopcount
$host
in file SmartIRC.php, variable Net_SmartIRC_data::$host
$host
in file SmartIRC.php, variable Net_SmartIRC_user::$host
handler
in file SmartIRC.php, method Net_SmartIRC_listenfor::handler()
    stores the received answer into the result array
top

i

$id
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$id
$id
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$id
$ident
in file SmartIRC.php, variable Net_SmartIRC_user::$ident
$ident
in file SmartIRC.php, variable Net_SmartIRC_data::$ident
$interval
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$interval
$ircop
in file SmartIRC.php, variable Net_SmartIRC_user::$ircop
invite
in file irccommands.php, method Net_SmartIRC_irccommands::invite()
    invites a user to the specified channel
isBanned
in file SmartIRC.php, method Net_SmartIRC_base::isBanned()
    Checks if the hostmask is on the specified channel banned and returns the result.
isError
in file SmartIRC.php, method Net_SmartIRC_base::isError()
isJoined
in file SmartIRC.php, method Net_SmartIRC_base::isJoined()
    checks if we or the given user is joined to the specified channel and returns the result ChannelSyncing is required for this.
isOpped
in file SmartIRC.php, method Net_SmartIRC_base::isOpped()
    Checks if we or the given user is opped on the specified channel and returns the result.
isVoiced
in file SmartIRC.php, method Net_SmartIRC_base::isVoiced()
    Checks if we or the given user is voiced on the specified channel and returns the result.
irccommands.php
procedural page irccommands.php
top

j

$joinedchannels
in file SmartIRC.php, variable Net_SmartIRC_ircuser::$joinedchannels
join
in file irccommands.php, method Net_SmartIRC_irccommands::join()
    Joins one or more IRC channels with an optional key.
top

k

$key
in file SmartIRC.php, variable Net_SmartIRC_channel::$key
kick
in file irccommands.php, method Net_SmartIRC_irccommands::kick()
    Kicks one or more user from an IRC channel with an optional reason.
top

l

$lastmicrotimestamp
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$lastmicrotimestamp
listen
in file SmartIRC.php, method Net_SmartIRC_base::listen()
    goes into receive mode
listenFor
in file SmartIRC.php, method Net_SmartIRC_base::listenFor()
    waits for a special message type and puts the answer in $result
log
in file SmartIRC.php, method Net_SmartIRC_base::log()
    Adds an entry to the log.
login
in file SmartIRC.php, method Net_SmartIRC_base::login()
    login and register nickname on the IRC network
top

m

$message
in file SmartIRC.php, variable Net_SmartIRC_data::$message
$message
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$message
$messageex
in file SmartIRC.php, variable Net_SmartIRC_data::$messageex
$method
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$method
$method
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$method
$mode
in file SmartIRC.php, variable Net_SmartIRC_channel::$mode
message
in file irccommands.php, method Net_SmartIRC_irccommands::message()
    sends a new message
mode
in file irccommands.php, method Net_SmartIRC_irccommands::mode()
    sets or gets the mode of an user or channel
mybot
in file example.php, class mybot
messagehandler.php
procedural page messagehandler.php
top

n

$name
in file SmartIRC.php, variable Net_SmartIRC_channel::$name
$nick
in file SmartIRC.php, variable Net_SmartIRC_data::$nick
$nick
in file SmartIRC.php, variable Net_SmartIRC_user::$nick
$nreplycodes
in file SmartIRC.php, variable Net_SmartIRC_base::$nreplycodes
    All numeric IRC replycodes, the index is the numeric replycode.
names
in file irccommands.php, method Net_SmartIRC_irccommands::names()
    requests all nicknames of one or more channels
Net_SmartIRC
in file SmartIRC.php, class Net_SmartIRC
    $Id: elementindex_Net_SmartIRC.html 135710 2003-07-23 18:08:55Z meebey $
Net_SmartIRC
in file SmartIRC.php, method Net_SmartIRC_base::Net_SmartIRC()
    Constructor. Initiales the messagebuffer and "links" the replycodes from global into properties. Also some PHP runtime settings are configured.
Net_SmartIRC_actionhandler
in file SmartIRC.php, class Net_SmartIRC_actionhandler
Net_SmartIRC_base
in file SmartIRC.php, class Net_SmartIRC_base
    main SmartIRC class
Net_SmartIRC_channel
in file SmartIRC.php, class Net_SmartIRC_channel
Net_SmartIRC_channeluser
in file SmartIRC.php, class Net_SmartIRC_channeluser
Net_SmartIRC_data
in file SmartIRC.php, class Net_SmartIRC_data
Net_SmartIRC_Error
in file SmartIRC.php, class Net_SmartIRC_Error
Net_SmartIRC_Error
in file SmartIRC.php, method Net_SmartIRC_Error::Net_SmartIRC_Error()
Net_SmartIRC_irccommands
in file irccommands.php, class Net_SmartIRC_irccommands
    $Id: elementindex_Net_SmartIRC.html 135710 2003-07-23 18:08:55Z meebey $
Net_SmartIRC_ircuser
in file SmartIRC.php, class Net_SmartIRC_ircuser
Net_SmartIRC_listenfor
in file SmartIRC.php, class Net_SmartIRC_listenfor
Net_SmartIRC_messagehandler
in file messagehandler.php, class Net_SmartIRC_messagehandler
    $Id: elementindex_Net_SmartIRC.html 135710 2003-07-23 18:08:55Z meebey $
Net_SmartIRC_timehandler
in file SmartIRC.php, class Net_SmartIRC_timehandler
Net_SmartIRC_user
in file SmartIRC.php, class Net_SmartIRC_user
top

o

$object
in file SmartIRC.php, variable Net_SmartIRC_timehandler::$object
$object
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$object
$op
in file SmartIRC.php, variable Net_SmartIRC_channeluser::$op
$ops
in file SmartIRC.php, variable Net_SmartIRC_channel::$ops
op
in file irccommands.php, method Net_SmartIRC_irccommands::op()
    ops an user in the given channel
top

p

part
in file irccommands.php, method Net_SmartIRC_irccommands::part()
    parts from one or more IRC channels with an optional reason
top

q

query_test
in file example.php, method mybot::query_test()
quit
in file irccommands.php, method Net_SmartIRC_irccommands::quit()
    sends QUIT to IRC server and disconnects
top

r

$rawmessage
in file SmartIRC.php, variable Net_SmartIRC_data::$rawmessage
$rawmessageex
in file SmartIRC.php, variable Net_SmartIRC_data::$rawmessageex
$realname
in file SmartIRC.php, variable Net_SmartIRC_user::$realname
$replycodes
in file SmartIRC.php, variable Net_SmartIRC_base::$replycodes
    All IRC replycodes, the index is the replycode name.
$result
in file SmartIRC.php, variable Net_SmartIRC_listenfor::$result
reconnect
in file SmartIRC.php, method Net_SmartIRC_base::reconnect()
    Reconnects to the IRC server with the same login info, it also rejoins the channels
registerActionhandler
in file SmartIRC.php, method Net_SmartIRC_base::registerActionhandler()
    registers a new actionhandler and returns the assigned id
registerTimehandler
in file SmartIRC.php, method Net_SmartIRC_base::registerTimehandler()
    registers a timehandler and returns the assigned id
top

s

$server
in file SmartIRC.php, variable Net_SmartIRC_user::$server
setAutoReconnect
in file SmartIRC.php, method Net_SmartIRC_base::setAutoReconnect()
    Enables/disables autoreconnecting.
setAutoRetry
in file SmartIRC.php, method Net_SmartIRC_base::setAutoRetry()
    Enables/disables autoretry for connecting to a server.
setBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::setBenchmark()
    Enables/disables the benchmark engine.
setChannelSynching
in file SmartIRC.php, method Net_SmartIRC_base::setChannelSynching()
    Deprecated, use setChannelSyncing() instead!
setChannelSyncing
in file SmartIRC.php, method Net_SmartIRC_base::setChannelSyncing()
    Enables/disables channel syncing.
setCtcpVersion
in file SmartIRC.php, method Net_SmartIRC_base::setCtcpVersion()
    Sets the CTCP version reply string.
setDebug
in file SmartIRC.php, method Net_SmartIRC_base::setDebug()
    Sets the level of debug messages.
setDisconnecttime
in file SmartIRC.php, method Net_SmartIRC_base::setDisconnecttime()
    Sets the delaytime before closing the socket when disconnect.
setLogdestination
in file SmartIRC.php, method Net_SmartIRC_base::setLogdestination()
    Sets the destination of all log messages.
setLogfile
in file SmartIRC.php, method Net_SmartIRC_base::setLogfile()
    Sets the file for the log if the destination is set to file.
setReceivedelay
in file SmartIRC.php, method Net_SmartIRC_base::setReceivedelay()
    Sets the delay for receiving data from the IRC server.
setReceiveTimeout
in file SmartIRC.php, method Net_SmartIRC_base::setReceiveTimeout()
    Sets the receive timeout.
setSenddelay
in file SmartIRC.php, method Net_SmartIRC_base::setSenddelay()
    Sets the delay for sending data to the IRC server.
setTopic
in file irccommands.php, method Net_SmartIRC_irccommands::setTopic()
    sets a new topic of a channel
setTransmitTimeout
in file SmartIRC.php, method Net_SmartIRC_base::setTransmitTimeout()
    Sets the transmit timeout.
setUseSockets
in file SmartIRC.php, method Net_SmartIRC_base::setUseSockets()
    Enables/disables the usage of real sockets.
showBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::showBenchmark()
    Shows the benchmark result.
SmartIRC.php
procedural page SmartIRC.php
SMARTIRC_BROWSEROUT
in file defines.php, constant SMARTIRC_BROWSEROUT
SMARTIRC_CRITICAL
in file defines.php, constant SMARTIRC_CRITICAL
SMARTIRC_CRLF
in file defines.php, constant SMARTIRC_CRLF
    $Id: elementindex_Net_SmartIRC.html 135710 2003-07-23 18:08:55Z meebey $
SMARTIRC_DEBUG_ACTIONHANDLER
in file defines.php, constant SMARTIRC_DEBUG_ACTIONHANDLER
SMARTIRC_DEBUG_ALL
in file defines.php, constant SMARTIRC_DEBUG_ALL
SMARTIRC_DEBUG_CHANNELSYNCING
in file defines.php, constant SMARTIRC_DEBUG_CHANNELSYNCING
SMARTIRC_DEBUG_CONNECTION
in file defines.php, constant SMARTIRC_DEBUG_CONNECTION
SMARTIRC_DEBUG_IRCMESSAGES
in file defines.php, constant SMARTIRC_DEBUG_IRCMESSAGES
SMARTIRC_DEBUG_MESSAGEHANDLER
in file defines.php, constant SMARTIRC_DEBUG_MESSAGEHANDLER
SMARTIRC_DEBUG_MESSAGEPARSER
in file defines.php, constant SMARTIRC_DEBUG_MESSAGEPARSER
SMARTIRC_DEBUG_MESSAGETYPES
in file defines.php, constant SMARTIRC_DEBUG_MESSAGETYPES
SMARTIRC_DEBUG_MODULES
in file defines.php, constant SMARTIRC_DEBUG_MODULES
SMARTIRC_DEBUG_NONE
in file defines.php, constant SMARTIRC_DEBUG_NONE
SMARTIRC_DEBUG_NOTICE
in file defines.php, constant SMARTIRC_DEBUG_NOTICE
SMARTIRC_DEBUG_SOCKET
in file defines.php, constant SMARTIRC_DEBUG_SOCKET
SMARTIRC_DEBUG_TIMEHANDLER
in file defines.php, constant SMARTIRC_DEBUG_TIMEHANDLER
SMARTIRC_DEBUG_USERSYNCING
in file defines.php, constant SMARTIRC_DEBUG_USERSYNCING
SMARTIRC_FILE
in file defines.php, constant SMARTIRC_FILE
SMARTIRC_HIGH
in file defines.php, constant SMARTIRC_HIGH
SMARTIRC_LOW
in file defines.php, constant SMARTIRC_LOW
SMARTIRC_MEDIUM
in file defines.php, constant SMARTIRC_MEDIUM
SMARTIRC_NONE
in file defines.php, constant SMARTIRC_NONE
SMARTIRC_STATE_CONNECTED
in file defines.php, constant SMARTIRC_STATE_CONNECTED
SMARTIRC_STATE_CONNECTING
in file defines.php, constant SMARTIRC_STATE_CONNECTING
SMARTIRC_STATE_DISCONNECTED
in file defines.php, constant SMARTIRC_STATE_DISCONNECTED
SMARTIRC_STDOUT
in file defines.php, constant SMARTIRC_STDOUT
SMARTIRC_SYSLOG
in file defines.php, constant SMARTIRC_SYSLOG
SMARTIRC_TYPE_ACTION
in file defines.php, constant SMARTIRC_TYPE_ACTION
SMARTIRC_TYPE_ALL
in file defines.php, constant SMARTIRC_TYPE_ALL
SMARTIRC_TYPE_BANLIST
in file defines.php, constant SMARTIRC_TYPE_BANLIST
SMARTIRC_TYPE_CHANNEL
in file defines.php, constant SMARTIRC_TYPE_CHANNEL
SMARTIRC_TYPE_CHANNELMODE
in file defines.php, constant SMARTIRC_TYPE_CHANNELMODE
SMARTIRC_TYPE_CTCP
in file defines.php, constant SMARTIRC_TYPE_CTCP
SMARTIRC_TYPE_CTCP_REPLY
in file defines.php, constant SMARTIRC_TYPE_CTCP_REPLY
SMARTIRC_TYPE_CTCP_REQUEST
in file defines.php, constant SMARTIRC_TYPE_CTCP_REQUEST
SMARTIRC_TYPE_ERROR
in file defines.php, constant SMARTIRC_TYPE_ERROR
SMARTIRC_TYPE_INFO
in file defines.php, constant SMARTIRC_TYPE_INFO
SMARTIRC_TYPE_INVITE
in file defines.php, constant SMARTIRC_TYPE_INVITE
SMARTIRC_TYPE_JOIN
in file defines.php, constant SMARTIRC_TYPE_JOIN
SMARTIRC_TYPE_KICK
in file defines.php, constant SMARTIRC_TYPE_KICK
SMARTIRC_TYPE_LIST
in file defines.php, constant SMARTIRC_TYPE_LIST
SMARTIRC_TYPE_LOGIN
in file defines.php, constant SMARTIRC_TYPE_LOGIN
SMARTIRC_TYPE_MODECHANGE
in file defines.php, constant SMARTIRC_TYPE_MODECHANGE
SMARTIRC_TYPE_MOTD
in file defines.php, constant SMARTIRC_TYPE_MOTD
SMARTIRC_TYPE_NAME
in file defines.php, constant SMARTIRC_TYPE_NAME
SMARTIRC_TYPE_NICKCHANGE
in file defines.php, constant SMARTIRC_TYPE_NICKCHANGE
SMARTIRC_TYPE_NONRELEVANT
in file defines.php, constant SMARTIRC_TYPE_NONRELEVANT
SMARTIRC_TYPE_NOTICE
in file defines.php, constant SMARTIRC_TYPE_NOTICE
SMARTIRC_TYPE_PART
in file defines.php, constant SMARTIRC_TYPE_PART
SMARTIRC_TYPE_QUERY
in file defines.php, constant SMARTIRC_TYPE_QUERY
SMARTIRC_TYPE_QUIT
in file defines.php, constant SMARTIRC_TYPE_QUIT
SMARTIRC_TYPE_TOPIC
in file defines.php, constant SMARTIRC_TYPE_TOPIC
SMARTIRC_TYPE_TOPICCHANGE
in file defines.php, constant SMARTIRC_TYPE_TOPICCHANGE
SMARTIRC_TYPE_UNKNOWN
in file defines.php, constant SMARTIRC_TYPE_UNKNOWN
SMARTIRC_TYPE_USERMODE
in file defines.php, constant SMARTIRC_TYPE_USERMODE
SMARTIRC_TYPE_WHO
in file defines.php, constant SMARTIRC_TYPE_WHO
SMARTIRC_TYPE_WHOIS
in file defines.php, constant SMARTIRC_TYPE_WHOIS
SMARTIRC_TYPE_WHOWAS
in file defines.php, constant SMARTIRC_TYPE_WHOWAS
SMARTIRC_UNUSED
in file defines.php, constant SMARTIRC_UNUSED
SMARTIRC_VERSION
in file SmartIRC.php, constant SMARTIRC_VERSION
SMARTIRC_VERSIONSTRING
in file SmartIRC.php, constant SMARTIRC_VERSIONSTRING
startBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::startBenchmark()
    Starts the benchmark (sets the counters).
stopBenchmark
in file SmartIRC.php, method Net_SmartIRC_base::stopBenchmark()
    Stops the benchmark and displays the result.
top

t

$topic
in file SmartIRC.php, variable Net_SmartIRC_channel::$topic
$type
in file SmartIRC.php, variable Net_SmartIRC_actionhandler::$type
$type
in file SmartIRC.php, variable Net_SmartIRC_data::$type
throwError
in file SmartIRC.php, method Net_SmartIRC_base::throwError()
top

u

$users
in file SmartIRC.php, variable Net_SmartIRC_channel::$users
unban
in file irccommands.php, method Net_SmartIRC_irccommands::unban()
    unbans a hostmask on the given channel
unregisterActionhandler
in file SmartIRC.php, method Net_SmartIRC_base::unregisterActionhandler()
    unregisters an existing actionhandler
unregisterActionid
in file SmartIRC.php, method Net_SmartIRC_base::unregisterActionid()
    unregisters an existing actionhandler via the id
unregisterTimeid
in file SmartIRC.php, method Net_SmartIRC_base::unregisterTimeid()
    unregisters an existing timehandler via the id
top

v

$voice
in file SmartIRC.php, variable Net_SmartIRC_channeluser::$voice
$voices
in file SmartIRC.php, variable Net_SmartIRC_channel::$voices
voice
in file irccommands.php, method Net_SmartIRC_irccommands::voice()
    voice a user in the given channel
top

w

who
in file irccommands.php, method Net_SmartIRC_irccommands::who()
    requests a 'WHO' from the specified target
whois
in file irccommands.php, method Net_SmartIRC_irccommands::whois()
    requests a 'WHOIS' from the specified target
whowas
in file irccommands.php, method Net_SmartIRC_irccommands::whowas()
    requests a 'WHOWAS' from the specified target (if he left the IRC network)
top

Documentation generated on Wed, 23 Jul 2003 19:59:07 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/errors.html0000600000175000017500000005424011461276032020425 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Post-parsing
example.php
example2.php
example3.php
example4.php
example5.php
example6.php
example7.php
irccommands.php
messagehandler.php
SmartIRC.php

Post-parsing

Warnings:


Warning - duplicate class element "mybot" in file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example7.php will be ignored. Use an @ignore tag on the original if you want this case to be documented.
Warning - duplicate class element "mybot" in file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example6.php will be ignored. Use an @ignore tag on the original if you want this case to be documented.
Warning - duplicate class element "mybot" in file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example3.php will be ignored. Use an @ignore tag on the original if you want this case to be documented.
Warning - duplicate class element "mybot" in file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example4.php will be ignored. Use an @ignore tag on the original if you want this case to be documented.
Warning - duplicate class element "mybot" in file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example5.php will be ignored. Use an @ignore tag on the original if you want this case to be documented.

defines.php

Warnings:


Warning on line 233 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/SmartIRC/defines.php, assuming package Net_SmartIRC

example.php

Warnings:


Warning on line 30 - no @package tag was used in a DocBlock for class mybot, assuming package Net_SmartIRC
Warning on line 55 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example.php, assuming package Net_SmartIRC

example2.php

Warnings:


Warning on line 52 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example2.php, assuming package Net_SmartIRC

example3.php

Warnings:


Warning on line 30 - no @package tag was used in a DocBlock for class mybot, assuming package Net_SmartIRC
Warning on line 56 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example3.php, assuming package Net_SmartIRC

example4.php

Warnings:


Warning on line 30 - no @package tag was used in a DocBlock for class mybot, assuming package Net_SmartIRC
Warning on line 62 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example4.php, assuming package Net_SmartIRC

example5.php

Warnings:


Warning on line 30 - no @package tag was used in a DocBlock for class mybot, assuming package Net_SmartIRC
Warning on line 55 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example5.php, assuming package Net_SmartIRC

example6.php

Warnings:


Warning on line 30 - no @package tag was used in a DocBlock for class mybot, assuming package Net_SmartIRC
Warning on line 54 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example6.php, assuming package Net_SmartIRC

example7.php

Warnings:


Warning on line 31 - no @package tag was used in a DocBlock for class mybot, assuming package Net_SmartIRC
Warning on line 68 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/examples/example7.php, assuming package Net_SmartIRC

irccommands.php

Warnings:


Warning on line 27 - no @package tag was used in a DocBlock for class Net_SmartIRC_irccommands, assuming package Net_SmartIRC
Warning on line 431 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/SmartIRC/irccommands.php, assuming package Net_SmartIRC

messagehandler.php

Warnings:


Warning on line 27 - no @package tag was used in a DocBlock for class Net_SmartIRC_messagehandler, assuming package Net_SmartIRC
Warning on line 406 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/SmartIRC/messagehandler.php, assuming package Net_SmartIRC

SmartIRC.php

Warnings:


Warning on line 2200 - no @package tag was used in a DocBlock for class Net_SmartIRC, assuming package Net_SmartIRC
Warning on line 2208 - no @package tag was used in a DocBlock for class Net_SmartIRC_data, assuming package Net_SmartIRC
Warning on line 2274 - no @package tag was used in a DocBlock for class Net_SmartIRC_actionhandler, assuming package Net_SmartIRC
Warning on line 2310 - no @package tag was used in a DocBlock for class Net_SmartIRC_timehandler, assuming package Net_SmartIRC
Warning on line 2346 - no @package tag was used in a DocBlock for class Net_SmartIRC_channel, assuming package Net_SmartIRC
Warning on line 2400 - no @package tag was used in a DocBlock for class Net_SmartIRC_user, assuming package Net_SmartIRC
Warning on line 2454 - no @package tag was used in a DocBlock for class Net_SmartIRC_channeluser, assuming package Net_SmartIRC
Warning on line 2472 - no @package tag was used in a DocBlock for class Net_SmartIRC_ircuser, assuming package Net_SmartIRC
Warning on line 2484 - no @package tag was used in a DocBlock for class Net_SmartIRC_listenfor, assuming package Net_SmartIRC
Warning on line 2507 - no @package tag was used in a DocBlock for class Net_SmartIRC_Error, assuming package Net_SmartIRC
Warning on line 2520 - no @package tag was used in a DocBlock for file /var/www/pear/phpdoc/phpdoc/tmp/Net_SmartIRC-0.5.5/SmartIRC.php, assuming package Net_SmartIRC

Documentation generated on by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/index.html0000600000175000017500000003241711461276032020222 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Package Net_SmartIRC



Documentation generated on Wed, 23 Jul 2003 19:59:08 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/li_Net_SmartIRC.html0000600000175000017500000005245211461276032022032 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Package Net_SmartIRC



Documentation generated on Wed, 23 Jul 2003 19:59:08 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/ric_CHANGELOG.html0000600000175000017500000007045411461276032021242 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



CHANGELOG

/**
 * $Id: ric_CHANGELOG.html 135710 2003-07-23 18:08:55Z meebey $
 * $Revision: 135710 $
 * $Author: meebey $
 * $Date: 2003-07-24 03:38:55 +0930 (Thu, 24 Jul 2003) $
 */

v0.5.5:
-------
fixes:
 - fixed a bug in _rawreceive()
   messages were parsed wrong which caused problems with kick reasons.
   (thx to sniper for reporting this).
 - fixed bug in message()
   CTCP ACTION messages had missing \001 at the end.
 - fixed a bug in quit(), which caused quit messages not to be sent to the server.
 - fixed reconnect() bug, it sent the channel join requests right after connect(),
   and tried to join a channel without a name.
 - fixes in ChannelSync code
   When a user joins a channel after SmartIRC, no WHO info is updated in the user object.
   Fixed wrong update of channel mode when rpl_channelmodeis received.
   Fixed bug in _mode() method, which caused wrong handling of mode changes.
   Topic updates are now tracked (thanks to sniper).
   Fixed bug which caused fatal errors with ChannelSync enabled
   (closes sf.net bug  #705269).
   Fixed bug in _event_mode(), unhandled modes were stored wrong.
   Fixed bug in _event_rpl_namreply(), which caused that the first char of the first nick
   of a namreply got cut (closes sf.net bug #747832).
 - fixed bug in _checktimer()
   Which caused problems when a timehandler is unregistered.
 - fixed _gettye()
   It wasn't recognizing SMARTIRC_TYPE_ACTION.
 - removed if(!$obj) check for newly created objects (closes PHP bug #24622),
   required for PHP 4.1.2 compatibility.

changes:
 - removed all irc commands from SmartIRC.php
   they have now their own file (SmartIRC/irccommands.php).
 - Net_SmartIRC_messagehandler class now extends Net_SmartIRC_irccommands.
 - removed the 1. parameter (&$irc) of all message handlers, not needed anymore.
 - renamed class Net_SmartIRC_user to Net_SmartIRC_channeluser,
   added class Net_SmartIRC_ircuser.
 - added prefix _event to all message handlers (needed because of class restructuring).
 - tweaked filling of the ircdata objects.
 - log() now checks the passed debug level bitwise.
 - $data->message will be null instead of random garbage,
   if the IRC message has no colon (the message part),
 - All methods that depend on ChannelSync mode, checks if it's enabled.
 - Optimized the usage of time() for $this->_lastrx.
 - updated the URL of a SmartIRC based bot (atbs).
 - _loggedin is now set to false when the socket is dead,
   required for proper working  reconnect().
 - on a reconnect(), the logfile won't be overwritten anymore.
 - updated phpdoc tags.
 - all access to the channel array now uses strtolower() for the key.
 - fixed typo in function name setChannelSynching(),
   now it's called setChannelSyncing() with a BC wrapper.
 - removed all SMARTIRC_ prefixes for debug output.
 - changed isJoined($channel) to isJoined($channel, $nickname)
   for checking if the specified user is joined.
 - removed "destructors", because they don't free the memory.

new:
 - added isOpped() isVoiced() isBanned().
 - added debug output and debug level for the messageparser.
 - reconnect() uses now the channel key if one exists.
 - added channel key syncing in _mode().
 - when an actionhandler message regex has a leading '/' then the regex is used as it is,
   this allows complex perl regex's.
 - added message type SMARTIRC_TYPE_CTCP_REQUEST and SMARTIRC_CTCTP_REPLY for more advanced CTCP.
 - added new log destinations SMARTIRC_NONE and SMARTIRC_BROWSEROUT
   (for firendly browserouput). When the script is called from a browser,
   the BROWSEROUT will automatic be used (closed sf.net bug #708155).
 - added error handling for socket_select() in _rawreceive().
 - added getMessage() to Net_SmartIRC_Error class.
 - added debug level for ChannelSync code (SMARTIRC_DEBUG_CHANNELSYNCING).
 - added filename and linenumber to debug output.
 - added key property to channel class.
 - added to all IRC commands optional $priority parameter with default value SMARTIRC_MEDIUM.
 - added isError() for more advanced errorhandling, needed for encapsulation.
 - added _isValidType() method, which checks for valid SMARTIRC_TYPE_* types.

v0.5.1
------
fixes:
 - major bugs in ChannelSynching fixed.
 - fsocks support fixed.
 - setUseSocket() method fixed.
   If false was passed as parameter, it tried to load the socket extension.
   Also warnings are now suppressed with @ in front of dl().
 - fixed a typo in reconnect().
 - missing SMARTIRC_DEBUG_CHANNELSYNCHING constant added.
 
changes:
 - new design for HTML documentation used (PEAR template).
 - moved all examples to their own directory (examples/).
 - moved the documentation to docs/HTML/.
 - added new file descriptions to README.
 - removed not needed parts of DOCUMENTATION (most is now in the HTML version).
 - updated the HTML documentation.
 
new:
 - example5/6/7.php added.
 - setAutoRetry() method added.
   Autoretrying of connecting to the IRC server, is now supported.
 
v0.5.0
------
fixes:
 - fixed critical bug in the main _rawreceive() for() loop, messages were lost.

changes:
 - License changed from GPL to LGPL.
 - updated in all files the copyright year.
 - changed documentation tags in front of all methods to the phpDocumentator compatible format.
 - improved connect() errorhandling.
 - changed login() parameters to $nick, $realname, $usermode = 0, $username = null, $password = null.
 - changed join() parameters to $channelarray, $key = null.
 - changed kick() parameters to $channel, $nicknamearray, $reason = null.
 - changed listenFor() parameters to $messagetype
   return value is now the result, instead the of a reference to the result parameter.
 - sendbuffer has now 3 queues: high, medium and low
   high sends 2 messages, then 1 of medium
   low is only send if high _and_ medium is empty.
 - select() call for sockets is strongly optimized

new:
 - phpDocumentator package tags.
 - include() for messagehandler.php (needed for the new API).
 - setChannelSynching() method, for enabling the channel synching.
 - setCtcpVersion() method, for changing the ctcp version reply string.
 - setReceiveTimeout() method, for changing the receive timeout.
 - setTransmitTimeout() method, for changing the transmit timeout.
 - setAutoReconnect() method, for enabling the autoreconnect feature.
 - channel variable, a reference to _channels because $object->channel("#chan")->topic is not possible in PHP4 (ZE1).
 - reconnect() method, it will reconnect and also join all channels.
 - channel() method, getting a reference to the channel, only if channelsynching is on.
 - added ident, host, messageex and rawmessageex variables to the Net_SmartIRC_data class.
 - class Net_SmartIRC_user, stores info about one user, only used if channelsynching is on.
 - class Net_SmartIRC_channel, stores info about one channel, only used if channelsynching is on.

v0.4.0
------
* phpSmartIRCclass.inc.php:
 - fixed serious socket bug
   The buffer of the socket got full because only 512 bytes were read at once,
   which caused losing some IRC messages that are comming fast like the MOTD.
   Now it will read 10240 bytes at once, and doesn't loose any IRC message.
 - fixed sendbuffer
   The sendbuffer will only be sent, when the class is fully connected and
   registered on the IRC network. Before if a nickname collision happened,
   all sent IRC commands from the buffer were ignored by the IRC server.
 - fixed socket status
   Socket handling is now compatible with PHP 4.3 dev.
 - fixed $_nick
   When the nickname got changed because of nickname is already in use,
   $_nick  will be updated. (thanks for the hint to Andreas Streichardt).
 - fixed actionhandler ids (unregister caused that the other ids were  changed).
 - fixed TYPE_TOPIC to the right bitoperator value.
 - added a reference to the IRC class in actionhandler callbacks
   WARNING: all user writtin methods have to be changed!!
   method( &$data ) _has to be changed_ to method( &$irc, &$data )
   If you don't change those, your IRC scripts will _not_ work anymore!
 - changed internal methodnames to _methodname
 - changed sendbuffer
   Now it uses configurable senddelay, instead of static 2 messages  
   per second (send flood protection).
 - changed TYPEs
   All TYPE_* are now bitwise constants, register_actionhandler() can now
   react to more than one message type.
 - added TYPE_ACTION for those common /me messages.
 - added timeevents   Added method register_timehandler()
   unregister_timeid() and   reordertimehandler(). Those timehandler
   can be used to call methods in specified intervalls, e.g. for
   timeevents. Added needed class CphpSmartIRCclass_timehandler.
 - moved all IRC related defines to defines.inc.php.
 - changed if() elseif() structures where possible to switch() for
   clearer/faster code.
 - added more debug messages for actionhandler.
 - added unregister_actionhandler() and unregister_actionid() method.
   Also added needed reorderactionhandler(), which is called after an
   unregister methods was called.
 - added $data->channel to actionhandler callback.

* defines.inc.php:
 - initial import. 
 - now all IRC related defines are now in this file instead of
   phpSmartIRCclass.inc.php.

* DOCUMENTATION:
 - updated/added methods description

* example.php:
 - changed user function parameter to new style ( &$irc and &$data ).
 - added TYPE_NOTICE to query_test example.

v0.3.2
------
* phpSmartIRCclass.inc.php:
 - Replaced all quotes by single quote where possible for speedup.
 - Added _disconnecttime for doing a clean IRC quit.
 - Added Zend IDE style documentation for parameter variables types
   and method descriptions.
 - Spaces in nickname and username will be automaticly removed.
 - Nicknamecollisions are automaticly detected and nickname will be
   changed to nickname with 3 random numbers.
 - New method nicknameuse().
 - Fixed a serious fsock bug.
 - Added new type TYPE_ERROR.
 - Fixed wrong usage of & when calling methods with params that are
   called by reference.
 - Fixed a debug message "DEBUG: disconnected", now it will only
   occur when debug mode is enabled.
 - listen_for() will now do a quickdisconnect, for a big speedup.
 - Changed logging system, now with debug levels, default is
   DEBUG_NOTICE.
 - Added benchmark system, now its possible to time things for doing
   optimizations.
 - New methods: benchmark(), benchmarktstart(), benchmarkend()
   and show_benchmark() for the benchmark system
 - Added microint(), for getting the microtime as float, needed for
   the benchmarks.
 - Added a couple of log() calls, for different debug levels.
 - fsockets now runs in non blocking mode, because of broken?
   getstatus for fsockets.
 - Added mode() method, for chaning modes of a user or channel.
 - Added op() and deop() method.  Added ban() and unban() method
   (thx for diff file to Peter Petermann).

* DOCUMENTATION:
 - added documentation for new logging system
 - added the whole DEBUG_* list

* HOWTO:
 - changed parameter description for debug()

* example.php:
 - replaced all quotes by singlequotes where possible.
 - fixed wrong usage of message()

* example2.php:
 - replaced all quotes by singlquotes where possible.
 - added benchmark test to the example

v0.3.0
-----
* phpSmartIRCclass.inc.php:
 - added "Ping? Pong!" log message for debugging
 - added real linux/windows syslog logging
   to setlogdestination().
 - new method listen_for() makes it possible
   to show irc related information on a homepage, like how many users
   on a channel are.

* HOWTO:
 - added how to run/call the selfwritten bot

* DOCUMENTATION:
 - added (missing) explaination for new methods

* example2.php:
 - new examplefile with the new listen_for() method

v0.2.6
------
* phpSmartIRCclass.inc.php:
 - phpSmartIRCclass.inc renamed to
   phpSmartIRCclass.inc.php because of security reasons
 - changed function_exists() to get_loaded_extensions() for
   checking if the PHP build has real socket support
 - log() changed to create Linux style formated logs
 - new methods for logging (daemon style)
   log() for add log entries setlogdestination() can be STDOUT or FILE
   setlogfile() sets the file
 - changed received data processing in rawreceive()

* HOWTO:
 - added a mini howto for using the class

* DOCUMENTATION:
 - added class documentation of the project

* CREDITS:
 - added credits file

v0.2.5
------
- improved socket handling
- bufferedsend fix
- new version number system
- cpu usage reduced
- added changelog file


Documentation generated on by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/ric_README.html0000600000175000017500000004413311461276032020703 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



README

/**
 * $Id: ric_README.html 135710 2003-07-23 18:08:55Z meebey $
 * $Revision: 135710 $
 * $Author: meebey $
 * $Date: 2003-07-24 03:38:55 +0930 (Thu, 24 Jul 2003) $
 */

Net_SmartIRC
----------------
What is this?
Net_SmartIRC is a PHP class for communication with IRC networks, which
conforms to the RFC 2812 (IRC Protocol). It's an API that handles all IRC
protocol messages. It is designed for creating IRC bots, chats and show irc
related info on webpages.

Please report bugs to:
http://sourceforge.net/tracker/?group_id=60664&atid=494859

Project Homepage:
http://sourceforge.net/projects/phpsmartirc

official PEAR package page:
http://pear.php.net/package-info.php?package=Net_SmartIRC

files included in SmartIRC
--------------------------
SmartIRC.php
The class itself.

FEATURES
A full list of features that SmartIRC includes

CHANGELOG
Listing of changes between all versions.

README
this file

LICENSE
The license of Net_SmartIRC.

CREDITS
Creditlist with people that work/help on Net_SmartIRC.

SmartIRC/
 defines.php
 Nessesary IRC related defines (IRC reply codes).

 messagehandler.php
 All defined messagehandler that SmartIRC currently uses for channelsynching
 and some other API handling.

 irccommands.php
 All supported IRC commands (like join/part/kick/etc..)

docs/
 DOCUMENTATION
 Appendix to the HTML documention for developers.

 HOWTO
 Mini howto with detailed information, step by step.

 HTML/
  index.html
  the full documenation of SmartIRC

examples/
 example.php
 An example of how you can use this class for a mini php bot.

 example2.php
 This example shows how to display the amount of users in a specific
 IRC channel on your homepage.

 example3.php
 This bot echos the oplist if !ops is said on the channel.

 example4.php
 This bot checks all realnames of people that are on the channel
 and displays the result.
 
 example5.php
 This bot can kicks users when !kick NICKNAME is said on the channel.
 
 example6.php
 This example shows how an onjoin greeting can be done with SmartIRC.
 
 example7.php
 This is an example how timers can be used and how to unregister them.


Documentation generated on by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/media/background.png0000600000175000017500000000035611461276032022126 0ustar clockwerxclockwerx‰PNG  IHDRɸéÆ+tEXtCreation Timewo 27 nov 2002 16:02:37 +0100œ™étIMEÒ $˜$ pHYs  ÒÝ~ügAMA± üaPLTEððð™™™¥5à4IDATxÚíÒÁ @Aí¿é+Á—x„™ ²ª}=@Ip ÿÉy—˜å¼K ÌrÞ¥„Es@ ’ 5IEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/empty.png0000600000175000017500000000031611461276032021141 0ustar clockwerxclockwerx‰PNG  IHDR(Ë4»+tEXtCreation Timewo 27 nov 2002 16:17:33 +0100OqÙ€tIMEÒ )yÝ J pHYs  ÒÝ~ügAMA± üaPLTEÿÿÿ§ÄÈtRNS@æØf IDATxÚc`å'ÞüIEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/style.css0000600000175000017500000001342611461276032021155 0ustar clockwerxclockwerxa { color:#000000; text-decoration: none; } a:visited { color:#000000; text-decoration: none; } a:active { color:#000000; text-decoration: none; } a:hover { color:#000000; text-decoration: underline; } a.green { color:#006600; text-decoration: none; } a.green:visited { color:#006600; text-decoration: none; } a.green:active { color:#006600; text-decoration: none; } a.green:hover { color:#006600; text-decoration: underline; } a.upperright { font-size: 11px; color:#000000; font-weight: bold; text-decoration: none; } a.upperright:visited { font-size: 11px; color:#000000; font-weight: bold; text-decoration: none; } a.upperright:active { font-size: 11px; color:#000000; font-weight: bold; text-decoration: none; } a.upperright:hover { font-size: 11px; color:#000000; font-weight: bold; text-decoration: none; } .upperright { font-size: 11px; color:#000000; font-weight: bold; } a.menu { color:#ffffff; text-decoration: none; } a.menu:visited { color:#ffffff; text-decoration: none; } a.menu:active { color:#ffffff; text-decoration: none; } a.menu:hover { color:#ffffff; text-decoration: underline; } body { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; margin: 0; padding: 0; background-color: #ffffff; color: #000000; } td, th { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; } p { font-family: verdana,arial,helvetica,sans-serif; } .menu { font-size: 8pt; color: #ffffff; } ul li { margin: 0.2em 0em 0.2em 0em; padding: 0em; list-style-position: outside; list-style-type: square; font-size: 8pt; } span.li { color: #000000; } ul { /* color: #014fbe; */ color: #006600; margin: 3px 0em 3px 16px; } th.pack { color: #FFFFFF; background: #009933; text-align: right; } td.package_info_title { color: #006600; font-weight: bold; } th.others { color: #006600; text-align: left; } em { font-weight: bold; font-style: italic; } span.green { color: #006600; } span.headline { font-family: verdana,arial,helvetica,sans-serif; font-size: 125%; font-weight: bold; color: #ffffff; } span.title { font-family: verdana,arial,helvetica,sans-serif; font-size: 110%; font-weight: bold; color: #006600; } .newsDate { font-size: 85%; font-style: italic; color: #66cc66; } .compact { font-family: arial, helvetica, sans-serif; font-size: 90%; } .menuWhite { font-family: verdana,arial,helvetica,sans-serif; font-size: 75%; color: #ffffff; } .menuBlack { font-family: verdana,arial,helvetica,sans-serif; text-decoration: none; font-weight: bold; font-size: 75%; color: #000000; } .sidebar { font-size: 85%; } code, pre, tt { font-family: Courier, "Courier New", monospace; font-size: 90%; } pre.php { border-color: black; border-style: dashed; border-width: 1px; background-color: #eeeeee; padding: 5px; } h1 { font-family: verdana,arial,helvetica,sans-serif; font-size: 140%; font-weight: bold; color: #006600; } h2 { font-family: verdana,arial,helvetica,sans-serif; font-size: 125%; font-weight: bold; color: #006600; } h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 110%; font-weight: bold; color: #006600; } small { font-family: verdana,arial,helvetica,sans-serif; font-size: 75%; } a.small { font-family: verdana,arial,helvetica,sans-serif; font-size: 75%; text-decoration: none; } .tableTitle { font-family: verdana,arial,helvetica,sans-serif; font-weight: bold; } .tableExtras { font-family: verdana,arial,helvetica,sans-serif; font-size: 85%; color: #FFFFFF; } input { font-family: verdana,arial,helvetica,sans-serif; } textarea { font-family: verdana,arial,helvetica,sans-serif; } input.small, select.small { font-family: verdana,arial,helvetica,sans-serif; font-size: 75%; } textarea.small { font-family: verdana,arial,helvetica,sans-serif; font-size: 75%; } form { margin-bottom : 0; } a { color: #006600; background-color: transparent; text-decoration: none; } a:hover { text-decoration: underline; } a.menu { color: #ffffff; background-color: transparent; } td { font-size: 10pt; } td.header_top { color: #ffffff; background-color: #9999cc; font-size: 16pt; font-weight: bold; text-align: right; padding: 10px; } td.header_line { color: #ffffff; background-color: #333366; } td.header_menu { color: #ffffff; background-color: #666699; font-size: 8pt; text-align: right; padding: 2px; padding-right: 5px; } td.menu { padding: 2px; padding-left: 5px; } td.code_border { color: #000000; background-color: #c0c0c0; } td.code { color: #000000; background-color: #f0f0f0; } .type { font-style: italic; } div.credit { font-size: 8pt; text-align: center; } div.package { padding-left: 5px; } div.tags { padding-left: 15px; } div.function { padding-left: 15px; } div.top { font-size: 8pt; } div.warning { color: #ff0000; background-color: transparent; } div.description { padding-left: 15px; } hr { height: 1px; border-style: solid; border-color: #c0c0c0; margin-top: 10px; margin-bottom: 10px; } span.smalllinenumber { font-size: 8pt; }Net_SmartIRC-1.0.2/docs/HTML/media/TreeMenu.js0000600000175000017500000005027111461276032021364 0ustar clockwerxclockwerx// +-----------------------------------------------------------------------+ // | Copyright (c) 2002, Richard Heyes, Harald Radi | // | All rights reserved. | // | | // | Redistribution and use in source and binary forms, with or without | // | modification, are permitted provided that the following conditions | // | are met: | // | | // | o Redistributions of source code must retain the above copyright | // | notice, this list of conditions and the following disclaimer. | // | o Redistributions in binary form must reproduce the above copyright | // | notice, this list of conditions and the following disclaimer in the | // | documentation and/or other materials provided with the distribution.| // | o The names of the authors may not be used to endorse or promote | // | products derived from this software without specific prior written | // | permission. | // | | // | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | // | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | // | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | // | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | // | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | // | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | // | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | // | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | // | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | // | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | // | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | // | | // +-----------------------------------------------------------------------+ // | Author: Richard Heyes | // | Harald Radi | // +-----------------------------------------------------------------------+ // // $Id: TreeMenu.js,v 1.1 2003-07-23 18:08:55 meebey Exp $ /** * TreeMenu class */ function TreeMenu(iconpath, myname, linkTarget, defaultClass, usePersistence, noTopLevelImages) { // Properties this.iconpath = iconpath; this.myname = myname; this.linkTarget = linkTarget; this.defaultClass = defaultClass; this.usePersistence = usePersistence; this.noTopLevelImages = noTopLevelImages; this.n = new Array(); this.nodeRefs = new Array(); this.branches = new Array(); this.branchStatus = new Array(); this.layerRelations = new Array(); this.childParents = new Array(); this.cookieStatuses = new Array(); this.preloadImages(); } /** * Adds a node to the tree */ TreeMenu.prototype.addItem = function (newNode) { newIndex = this.n.length; this.n[newIndex] = newNode; return this.n[newIndex]; } /** * Preload images hack for Mozilla */ TreeMenu.prototype.preloadImages = function () { var plustop = new Image; plustop.src = this.iconpath + '/plustop.gif'; var plusbottom = new Image; plusbottom.src = this.iconpath + '/plusbottom.gif'; var plus = new Image; plus.src = this.iconpath + '/plus.gif'; var minustop = new Image; minustop.src = this.iconpath + '/minustop.gif'; var minusbottom = new Image; minusbottom.src = this.iconpath + '/minusbottom.gif'; var minus = new Image; minus.src = this.iconpath + '/minus.gif'; var branchtop = new Image; branchtop.src = this.iconpath + '/branchtop.gif'; var branchbottom = new Image; branchbottom.src = this.iconpath + '/branchbottom.gif'; var branch = new Image; branch.src = this.iconpath + '/branch.gif'; var linebottom = new Image; linebottom.src = this.iconpath + '/linebottom.gif'; var line = new Image; line.src = this.iconpath + '/line.gif'; } /** * Main function that draws the menu and assigns it * to the layer (or document.write()s it) */ TreeMenu.prototype.drawMenu = function ()// OPTIONAL ARGS: nodes = [], level = [], prepend = '', expanded = false, visbility = 'inline', parentLayerID = null { /** * Necessary variables */ var output = ''; var modifier = ''; var layerID = ''; var parentLayerID = ''; /** * Parse any optional arguments */ var nodes = arguments[0] ? arguments[0] : this.n var level = arguments[1] ? arguments[1] : []; var prepend = arguments[2] ? arguments[2] : ''; var expanded = arguments[3] ? arguments[3] : false; var visibility = arguments[4] ? arguments[4] : 'inline'; var parentLayerID = arguments[5] ? arguments[5] : null; var currentlevel = level.length; for (var i=0; i 1 ? "top" : 'single'; } else if(i == (nodes.length-1)) { modifier = "bottom"; } else { modifier = ""; } /** * Single root branch is always expanded */ if (!this.doesMenu() || (parentLayerID == null && (nodes.length == 1 || this.noTopLevelImages))) { expanded = true; } else if (nodes[i].expanded) { expanded = true; } else { expanded = false; } /** * Make sure visibility is correct based on parent status */ visibility = this.checkParentVisibility(layerID) ? visibility : 'none'; /** * Setup branch status and build an indexed array * of branch layer ids */ if (nodes[i].n.length > 0) { this.branchStatus[layerID] = expanded; this.branches[this.branches.length] = layerID; } /** * Setup toggle relationship */ if (!this.layerRelations[parentLayerID]) { this.layerRelations[parentLayerID] = new Array(); } this.layerRelations[parentLayerID][this.layerRelations[parentLayerID].length] = layerID; /** * Branch images */ var gifname = nodes[i].n.length && this.doesMenu() && nodes[i].isDynamic ? (expanded ? 'minus' : 'plus') : 'branch'; var iconimg = nodes[i].icon ? this.stringFormat('', this.iconpath, nodes[i].icon) : ''; /** * Add event handlers */ var eventHandlers = ""; for (j in nodes[i].events) { eventHandlers += this.stringFormat('{0}="{1}" ', j, nodes[i].events[j]); } /** * Build the html to write to the document * IMPORTANT: * document.write()ing the string: '
', layerID, visibility, (nodes[i].cssClass ? nodes[i].cssClass : this.defaultClass)) : this.stringFormat('
', ''); var onMDown = this.doesMenu() && nodes[i].n.length && nodes[i].isDynamic ? this.stringFormat('onmousedown="{0}.toggleBranch(\'{1}\', true)" style="cursor: pointer; cursor: hand"', this.myname, layerID) : ''; var imgTag = this.stringFormat('', this.iconpath, gifname, modifier, layerID, onMDown); var linkStart = nodes[i].link ? this.stringFormat('', nodes[i].link, this.linkTarget) : ''; var linkEnd = nodes[i].link ? '' : ''; output = this.stringFormat('{0}{1}{2}{3}{4}{6}{7}
', layerTag, prepend, parentLayerID == null && (nodes.length == 1 || this.noTopLevelImages) ? '' : imgTag, iconimg, linkStart, eventHandlers, nodes[i].title, linkEnd); /** * Write out the HTML. Uses document.write for speed over layers and * innerHTML. This however means no dynamic adding/removing nodes on * the client side. This could be conditional I guess if dynamic * adding/removing is required. */ document.write(output + "\r\n"); /** * Traverse sub nodes ? */ if (nodes[i].n.length) { /** * Determine what to prepend. If there is only one root * node then the prepend to pass to children is nothing. * Otherwise it depends on where we are in the tree. */ if (parentLayerID == null && (nodes.length == 1 || this.noTopLevelImages)) { var newPrepend = ''; } else if (i < (nodes.length - 1)) { var newPrepend = prepend + this.stringFormat('', this.iconpath); } else { var newPrepend = prepend + this.stringFormat('', this.iconpath); } this.drawMenu(nodes[i].n, level, newPrepend, nodes[i].expanded, expanded ? 'inline' : 'none', layerID); } } } /** * Toggles a branches visible status. Called from resetBranches() * and also when a +/- graphic is clicked. */ TreeMenu.prototype.toggleBranch = function (layerID, updateStatus) // OPTIONAL ARGS: fireEvents = true { var currentDisplay = this.getLayer(layerID).style.display; var newDisplay = (this.branchStatus[layerID] && currentDisplay == 'inline') ? 'none' : 'inline'; var fireEvents = arguments[2] != null ? arguments[2] : true; for (var i=0; i= 5)); var is_gecko = (agt.indexOf('gecko') != -1); var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)); var is_ie4 = (is_ie && (is_major == 4) && (agt.indexOf("msie 4")!=-1) ); var is_ie4up = (is_ie && (is_major >= 4)); //--> end hide JavaScript Net_SmartIRC-1.0.2/docs/HTML/media/images/blank.png0000600000175000017500000000022011461276032022331 0ustar clockwerxclockwerx‰PNG  IHDRÎ Ö!tIMEÐ +‰Tº pHYs ð ðB¬4˜PLTEÿÿÿ¥ÙŸÝtRNSÿå·0JIDATxÚcøÿÿ¾{-áý×=KIEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/checkerboard.gif0000600000175000017500000000007111461276032023643 0ustar clockwerxclockwerxGIF89a ‘ððð™™™, Œ¨|ùš´Z¸°Ë²¿ V;Net_SmartIRC-1.0.2/docs/HTML/media/images/Class.gif0000600000175000017500000000206611461276032022302 0ustar clockwerxclockwerxGIF89a÷9JRk{µ½ÆÖ!œ)œÆcÞ!RÖ½!RÖ)RÎ)k¥)s¥19B!BZ­JJ!1Rcckck„kkk)sss!ss1ss„s{s{s„{{{)){B1{s!{s){sB{{{{{{){{9{„{„{„1{„œ{Œœ„„{„{{„„„„„„„„c„„k„„œ„Œ{„Œ„„ÎÖŒ{{Œ„1Œ„BŒ„sŒŒŒŒkŒŒ”ŒŒœŒ”­Œœ””cc”„s”Œk”Œs””s””„”œ”ÆÖœ!!œ)!œckœ„„œŒŒœ”1œ”Œœ”Æ¥¥1¥!!¥„„¥ŒŒ­­­!)µ½!!½ÿÿÆÎÿÿÖÖÖ!ÖÿÿÞÞ9Þÿ÷Þÿÿççïïç÷ïç÷ÿçÿÿïçsïççïïçïï÷ï÷çï÷ïï÷÷ïÿ÷ïÿÿ÷ïï÷÷c÷÷ï÷÷÷÷÷ÿ÷ÿ÷÷ÿÿÿÖÎÿÖÖÿÖÞÿÞçÿçÞÿççÿïçÿïïÿ÷{ÿ÷ïÿ÷÷ÿ÷ÿÿÿkÿÿ½ÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þ?%ºté¡7o4`Pp¡E•>Lô‡Ð$mDp@€Ç'E’<ýù´ˆ70  0 Š O•"M²ÔGQ-o° @Å¢E‘^¼`$)Ò=<€àÁG[Êœ1éR‘$Ä!rÅÏ¥FlÜ éÄ'Nšf˜P’‰¢FkâÀqQ¢Ã„L`øP¢ÁBS'FiâÈ!႘èÁQãÆ&H\ƨùÐ匆šÐ ‘#Å&I08l˜bæÇAVà"ä“J&yùÆO'M:FÐcKž>ù9âç“ NC– ñÀJ’C‹ð ¤"D¢$¤É Fôðe —,=˜H)âDˆ^¨¹å +=BD!ò¤H«['ôlE0‰ J` Èø%ŒŸ³ôvÁYÌAãÇ' üìÅ‹0;Net_SmartIRC-1.0.2/docs/HTML/media/images/Constants.gif0000600000175000017500000000205411461276032023206 0ustar clockwerxclockwerxGIF89a÷!ZkcJ{s„{ŒŒkkÿÿcJŒ„ZR„s”{œ”÷÷÷ÿÿÿ!sZ!„s!ŒŒ!÷ï)cZ)sB)ÎÖ)çÞ)ïï)ÿÿ1{J1{Z9kZ9”¥9ÖçBÖÎBçïB÷ÿRÞÎRççRïçZ””s„ks”Œsÿÿ{{R{{Z{{c{{k{{s{Œ{{Æ­„{Z„{s„„k„„s„„{„Œk„Œs„”k„”„„œŒ„ÎÆŒ{sŒ„ZŒ„sŒ„{Œ„„ŒŒcŒŒsŒŒ{Œ”cŒÖ­”ŒR”Œ{””{””„””Œ”œ{œŒ„œ”cœœ{œÎ”¥½{¥Æc¥Ö½­œ„­œŒ­Î­µ½Zµÿÿ½ÆŒ½Îœ½ÖŒ½ï­½ÿÿƵ”ƽ{ƽ”Æç¥Æï½Æ÷µÆÿïÎÆ{ÎÎcÎÖŒÎ÷½ÖÎkÖç­Öï­ÞÞ¥ÞçŒçÞ­çç­çç÷ç÷¥ç÷ÎçÿÖçÿççÿÿïç„ïçŒïçïïïïï÷çï÷ïïÿœïÿïïÿ÷ïÿÿ÷çç÷ï½÷÷ï÷÷÷÷ÿ¥÷ÿÆ÷ÿÖ÷ÿ÷÷ÿÿÿïœÿïÿÿ÷Öÿ÷÷ÿ÷ÿÿÿÆÿÿÎÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þ7Aš´É‘£F€4ý)è(Q£Lv6Mò#)S¦Fš6I4¨ Ц?†´à@ÒÃ"…6j$I ™:_ðp B¨ÑIM4i*BF4L0iñQ$a´Hš *h³£ M9”ç…@x(ÁŒ% &å¨d%ƒ‰ * 0@ N›&ñX$F *(hP‹" &á{`Œ Œ ¨Ë“¼J*áåÄ  Ìa3GG€I5*…Ó!Øî¼á³¦IP"-º‚& xÊ<*shG€M<œÄXòÃ… 3¨4!R%GG,°@€íÜ`À€AI›Nf’„ˆaCG;Net_SmartIRC-1.0.2/docs/HTML/media/images/Constructor.gif0000600000175000017500000000202411461276032023554 0ustar clockwerxclockwerxGIF89a÷!)1BJs{Œs”sçZs½ï!{!Ö!!Þ)Æ))Ö))ï)1”11­!1½)1½91Þ11Þ91ï19”)9½99Æ19Æ99Î)9ç9BÎ9BÞ9BÞBJ„JJœRJ½BJÆRJÞJJçBRµBRµRRÎRRÞJZ”ZZ”cZ¥ZZ½RZ½ZZÖZZÞJc¥scçZk„kkŒck½csÆs{„s{„{{”{{œ„{­Œ{Î{„”{„­sµÿ­½ÿ­½ÿ½Æÿ½ÎÿÎÖÿçÞÿÖÞÿÞç÷÷çÿÖçÿÞçÿççÿïïïÿï÷ïïÿçïÿïïÿ÷ïÿÿ÷ïÿ÷÷÷÷÷ÿ÷ÿï÷ÿ÷÷ÿÿÿïÿÿ÷÷ÿ÷ÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,ùÇ 3æŒÁ0gÈŒ“†ŒÃ4@˜0Œ@2iÀh!ƒÆ  Óˆ4Ø 2 ¨ `á’ͤ‘¡A\Ät S&!C0c4øB†‹)[Æ„!Êq € £ÐàÁdŠÒ†fĈé&M–#04ü`r¥Ë˜.`Ð`)ø¥‹+BÄ€"ÅÊ•4TjQrÅ…V¨x"Ї\p$!¡#‚ƒ8`xñ¢ •4F†¼àáá‚ 2HñáÊÂ)Nˆ`A@#0 (¡ '@Ô˜P ÇŽ=fÌ@SÐ —+’9‚G‹%ADöÌ(†‘" ½ŒÑ;Net_SmartIRC-1.0.2/docs/HTML/media/images/Destructor.gif0000600000175000017500000000202311461276032023364 0ustar clockwerxclockwerxGIF89a÷!)1BJs{Œs”sçZs½ï!{!Ö!!Þ)Æ))Ö))ï)1”11­!1½)1½91Þ11Þ91ï19”)9½99Æ19Æ99Î)9ç9BÎ9BÞ9BÞBJ„JJœRJ½BJÆRJÞJJçBRµBRµRRÎRRÞJZ”ZZ”cZ¥ZZ½RZ½ZZÖZZÞJc¥scçZk„kkŒck½csÆs{„s{„{{”{{œ„{­Œ{Î{„”{„­sµÿ­½ÿ­½ÿ½Æÿ½ÎÿÎÞÿÖÞÿÞÞÿçç÷÷çÿÖçÿÞçÿççÿïïïÿï÷ïïÿçïÿïïÿ÷ïÿÿ÷ïÿ÷÷÷÷ÿï÷ÿ÷÷ÿÿÿïÿÿ÷÷ÿ÷ÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,øÏ„¦ŒÁ2b†Ã0¡™‡g¾ó%Œ™„_²P$Cæ!—3g ‚c†Ì0 L‰eÎ4 €Ê•[À”,ã%æÇ, Çxé² +½ˆébæ Á„g¢Ìر$JA†fÀ€áâå –#/2øXb…‹Ë/f®„9ã…K*@Àx¥Š•3S\fI"¥EƒV¤häI†[n ‘B@\H!ƒË”3E„¸ØÑÁ*`ˆái˜(L„X1a‡"0”(¡õË–&>Ð@‡FL0àa‚4ªTi@A „˜ðŠlHpa„ÅŸD àA"’*M:¢ ”øâU«*$3…<„ÛáÁ2ŽÐÀ¶mÛOD @·®]º\`P €ß¿€>>???@@@AAABBBCCCDDDEEEFFFGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQQQRRRSSSTTTUUUVVVWWWXXXYYYZZZ[[[\\\]]]^^^___```aaabbbcccdddeeefffggghhhiiijjjkkklllmmmnnnooopppqqqrrrssstttuuuvvvwwwxxxyyyzzz{{{|||}}}~~~€€€‚‚‚ƒƒƒ„„„………†††‡‡‡ˆˆˆ‰‰‰ŠŠŠ‹‹‹ŒŒŒŽŽŽ‘‘‘’’’“““”””•••–––———˜˜˜™™™ššš›››œœœžžžŸŸŸ   ¡¡¡¢¢¢£££¤¤¤¥¥¥¦¦¦§§§¨¨¨©©©ªªª«««¬¬¬­­­®®®¯¯¯°°°±±±²²²³³³´´´µµµ¶¶¶···¸¸¸¹¹¹ººº»»»¼¼¼½½½¾¾¾¿¿¿ÀÀÀÁÁÁÂÂÂÃÃÃÄÄÄÅÅÅÆÆÆÇÇÇÈÈÈÉÉÉÊÊÊËËËÌÌÌÍÍÍÎÎÎÏÏÏÐÐÐÑÑÑÒÒÒÓÓÓÔÔÔÕÕÕÖÖÖ×××ØØØÙÙÙÚÚÚÛÛÛÜÜÜÝÝÝÞÞÞßßßàààáááâââãããäääåååæææçççèèèéééêêêëëëìììíííîîîïïïðððñññòòòóóóôôôõõõööö÷÷÷øøøùùùúúúûûûüüüýýýþþþÿÿÿ,þÿÝÓ§ïŸ>xðÄLá0Á‚>~ø |§O®u$H`H€èß>yþÞý㧯¼.S(”@@‰Þ?|îæåK·.x)&¨0@‡?wA‚„“çŽÑ<[X€ˆ º"HDˆ˜§ÏР5› ‚äNŸ¸'@fœÀðb¤>8cúÜãwO(JHœAàÞ"nëÚ°Ñ×/‘(QŠD8°HŽ»euä¼™³¯!K,Й„HŽ9>mÚÌYó1Jqõ´æÎ9u𠄯ݼE*¹ë§—6xØ0”Ïß?wˆÜý£×П4m²Ç¾yûØí»×OÀˆ$éó·¯9wŸüìõ#ÔÇ’ô~ûæyôGï9¿|©Æ ;Net_SmartIRC-1.0.2/docs/HTML/media/images/I.png0000600000175000017500000000022411461276032021436 0ustar clockwerxclockwerx‰PNG  IHDRÎ Ö!tIMEÐ %*ÛúðU pHYs ð ðB¬4˜PLTE—Ž{ÿÿÿRHtRNSÿå·0JIDATxÚcø_ÿ€áÿ &6{)áƒaÅIEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/L.png0000600000175000017500000000023111461276032021437 0ustar clockwerxclockwerx‰PNG  IHDRÎ Ö!tIMEÐ %"Õ!xg pHYs ð ðB¬4˜PLTE—Ž{ÿÿÿRHtRNSÿå·0JIDATxÚcø_ÿ€áÿ ÆE‡:@hì4o*—OkckIEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/leftbg.gif0000600000175000017500000000151011461276032022471 0ustar clockwerxclockwerxGIF89aÒ÷ÎÎÎ÷÷÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,Ò-H° Áƒ*\Ȱ¡Ã‡#Jœ¨€€‹1RÜȱ£Ç C2´˜1c@;Net_SmartIRC-1.0.2/docs/HTML/media/images/Lminus.png0000600000175000017500000000033311461276032022516 0ustar clockwerxclockwerx‰PNG  IHDRêYQtIMEÐ %ý#Àù pHYs ð ðB¬4˜0PLTEÿÿÿ—Ž{y8ÇtRNSÿå·0J0IDATxÚcE!À &6Q% P„0!Jð0ˆQ‹d.Š0˜4i 7g¤»­IEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/Lplus.png0000600000175000017500000000034011461276032022344 0ustar clockwerxclockwerx‰PNG  IHDRêYQtIMEÐ '/™¦fX pHYs ð ðB¬4˜0PLTEÿÿÿ—Ž{y8ÇtRNSÿå·0J5IDATxÚcE!À &6Q% P„0!J LFlLFEEEÜ & ™‹â &© ÷Lã)—IEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/minus.gif0000600000175000017500000000010011461276032022353 0ustar clockwerxclockwerxGIF89a ‘rrrøüø!ù, Œ¢+Æë^ X;e–ñ¡;Net_SmartIRC-1.0.2/docs/HTML/media/images/msgError.gif0000600000175000017500000000174511461276032023040 0ustar clockwerxclockwerxGIF89a÷k11s11{1)„)1”))œ)9¥)1ïÿ÷ïÿÿ÷÷÷÷÷ÿ÷ÿÿÿÞçÿççÿçïÿïïÿï÷ÿ÷ïÿ÷÷ÿ÷ÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,Ê<Ѐƒ34 j@À ÄP 2X  Âƈh¸pB–t€0ÀÊ  ÀyAC„ xÀr‚^>€,#,P¡A h á! H à +… j°@!‚ ´b°XV¥ƒ  ¡îÇhZ°PÀ…¸w…ØëáÃÐÔJpâGXT±r†Šÿb€øpôÃeSÿÕ±gßÊ!;Net_SmartIRC-1.0.2/docs/HTML/media/images/msgFatalError.gif0000600000175000017500000000202011461276032023773 0ustar clockwerxclockwerxGIF89a÷!)19BRŒ)!œ!)œ))­­!)µ)!µ)1½½½½½!ÆÆÆ!Æ!)ÎÎÎÎ!ÖÖÞÞÞÞÞ!çççïïï!ïÿÿ÷÷÷÷÷ï÷÷÷÷ÿÿÿÿƽÿÆÆÿÎÆÿÎÎÿÖÖÿçÞÿççÿïçÿïïÿï÷ÿ÷ïÿ÷÷ÿ÷ÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,õuðXѢŠ "\ÁC Ì Ac†"(àÔ¨ ðh Á hذAƒ† œh£@† 0b0 Ɔ R ê À ƒ.˜°-ˆ~T𠄈 (0´ãÐ,`º€@Œ;zä.ȃßhÌm¡»BoÜÈqCãñ”Ä9ïÑ#aô;Net_SmartIRC-1.0.2/docs/HTML/media/images/msgHint.gif0000600000175000017500000000173511461276032022650 0ustar clockwerxclockwerxGIF89a÷!19)9BJ9BJµµ­µµµ½½µ½½½½½ÆÆ½ÖÆÆ½ÆÆÆÆÆÎÖÖÎïïçïïï÷ïÿ÷÷ï÷÷÷÷÷ÿ÷ÿï÷ÿ÷ÿ÷ÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,ÂG1¢ƒF 8"DA"2p €‚‚":0ÈAA 'P⡇€ÜƒÃ 4žÔà ˆ q2ÂEdl¸€K "0P!a–,rÀ Ôƒ‚ƒB,@Ð „C”ŽPPáƒË º†0X¡ÀÒŒO `iPlAn.p`ÁÉ4 ¡¡×†„n$Xñ‚C lXc‡˜hÜÌÐ ‚ E Ìs3VXŽ;Net_SmartIRC-1.0.2/docs/HTML/media/images/msgInformation.gif0000600000175000017500000000170311461276032024226 0ustar clockwerxclockwerxGIF89a÷)19119B19!J)!BçÞÿççÿïïïïïÿ÷ïÿ÷÷ï÷÷÷÷÷ÿÿ÷ÿÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,¨#P¨@B… *DHÁ ÂŒ0AáÁˆ%T¨è` RÜè`‚ˆh¤ ±Â*J`9pÂ@ƒ& PR!ˈ4.˜ð`‚Ƀ)+ÌÈ@D‘*ŘÓ\‚TØ@âŠ28±„¤(€`ìÂ3»”PTæG Fèy´àܳ+t¬8±0Ë®9-&¬ ·à²H–;Net_SmartIRC-1.0.2/docs/HTML/media/images/msgWarning.gif0000600000175000017500000000202311461276032023342 0ustar clockwerxclockwerxGIF89a÷!!çï!çïJçïRçïZçïçç÷Zïïcïïkïï{ï÷9ï÷Rï÷Zï÷ïï÷÷÷ïB÷ï„÷÷)÷÷9÷÷÷÷÷ÿ÷ÿ÷ÿ)÷ÿ9÷ÿB÷ÿc÷ÿ{÷ÿï÷ÿ÷÷ÿÿÿ÷Bÿ÷Zÿ÷Öÿ÷Þÿÿÿÿ!ÿÿ9ÿÿBÿÿJÿÿZÿÿÎÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,øk¨1ÂÆ7l°1B` H¨PE€1hPœhƒ5jÄ À€5Jt´ð±A $€` `‰K4(1 $8£áNŠ6dÀ €Ȱ1Qå&œ0pàÄ„(,t`Á‡  \¡ ÀX€èp & xÈá`  :´¸pÁD‡RÐ8(c„ +ê"¸°Â2hÔ˜!ˆ '8‘3jX ! ƒ"D€@!D4XVI@@oÀ}ǨÀ¡D 3f¤‘Å 3 ”øñㆠ«K ;Net_SmartIRC-1.0.2/docs/HTML/media/images/openfoldericon.png0000600000175000017500000000035011461276032024254 0ustar clockwerxclockwerx‰PNG  IHDRíÝâRtIMEÐ 1F…B pHYs  ÒÝ~üPLTEÿÿŸŸÿÿÿÿÏŸÿÿŸÏÏ`èYÃàtRNS@æØfYIDATxÚeÌÁ €0@Qtƒ^zné7'ÿ j¼øO¯ ðµ"N ¢–ƒÝlCl #ò 3Ìn‡O9jBô¬sG¸÷€ª²÷øP„ù*ðž–’Á¯ŸÄ›…IEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/pearlogo.gif0000600000175000017500000000213211461276032023037 0ustar clockwerxclockwerxGIF89ah2ÄÿÀÀÀýþý5šðøìøüöüþû7›9œ>Ÿ G¤[¯*k·>õúòèóá{ÁKÂà¬ÕêÅáðÕ™Ïi¯Ý‚ûýùÂêÂæ–ÐöšÉî–ÍñšÌð™þþýÿÿÿ!ù,h2@ÿ Ždižhª®lëVZ< ¦Ë€}WRïÿ Rb±øý`± Bt˜Üf¢Åd*A9Î2éM,‘Bö‘0!oèt¥pAà"!Õ‘’ [O¢çj¨CÁïο¶™fiàÉ"`H—IVÂV»7¥Ø×\ÐO(.üQ% 1¿ÜÜs!ÏâHA&7·Á†)o’RÔjv¨øà7O,0ÀìPÒãˆ%@X GaFðàÙÁ£È…P4ó„–$£óè¨à¢B iƒù°Í‚&!2„‡%A¢ ñ¡åJ¡O’@*d‘ 9”ÀXÉÄçK›MRnâdç(J^ö4Rd)Ë‘(Ož0é²J(QVàˆñÓΠ:þ\ú£'Ã#PN0±iÄÂ5 ù¡Â'Pa´Ñä£AZT(9¡a’¨!0rÀ(³&Ï¡<Ý%IN+>Ì0“ÆQtü¾ÙâÆF‚L¨ c¤L¢D‚òü¨rˆ… &|ØãF"9”¦(Á!D„\¸@c„$J”Ö@ÁB†…„¸à¡Ä¤IŒ•90¢G„Ex˜áâE(àŒ Ý@`.yˆÔ ’ä'#J“"…’" DDˆ&… ;Net_SmartIRC-1.0.2/docs/HTML/media/images/ProtectedProperty.gif0000600000175000017500000000205411461276032024730 0ustar clockwerxclockwerxGIF89a÷!!!!ccccksksks1skssss!s{{s{{{{{{{{1{{B{{Z{„{„){„R„{„{„{„{!„{)„{9„„„„„„9„„B„ŒŒ„Œ„)Œ„BŒŒŒŒ1”Œ””””1””9””B”œ”œ1œŒ­¥sÞç1Þçkçç)çç1çç”ïçZïçŒïï)ïï1ïï9ïïRïïZïïÿï÷!ï÷9ï÷kï÷ç÷ïB÷ïR÷ï{÷ï„÷ïï÷÷÷÷÷÷!÷÷)÷÷9÷÷B÷÷{÷÷„÷÷¥÷÷­÷÷Æ÷÷Î÷÷ç÷÷ï÷÷ÿ÷ÿJ÷ÿR÷ÿc÷ÿçÿ÷ÿ÷)ÿ÷1ÿ÷9ÿ÷Jÿ÷Rÿ÷Zÿ÷sÿ÷Þÿ÷çÿ÷ïÿ÷÷ÿ÷ÿÿÿÿÿÿÿÿÿ!ÿÿ)ÿÿ9ÿÿBÿÿJÿÿRÿÿcÿÿkÿÿsÿÿ{ÿÿ„ÿÿŒÿÿ”ÿÿœÿÿ­ÿÿµÿÿ½ÿÿÆÿÿÎÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þÙd4h ¢!‡¾bÃfÍ¡‡hl0ˆÑÁEB…˜ 2”å"êܸPEÉA„PÚ‚¨†(Dº¼˜pA„&Nh8„(’DæÜ ãå .ìÒ Ì'FVTÐqd –…[ÆP)ªK&8°XÒDÊ2P¼`©BdJ  ,˜(‘¤Ç’,¯Ìò¡ p˜PÂ(d‚øPq#ƒ D ÐBQ/LˆèpâA °XqEË‹ Ô´iã =° ©b… 28t#DŠ-4rT¡¥ÅŽhdÃ@ $V¨ä°ÒCÃ…8×$Ó¥ÅVvt°p@€Æ6j¨¦‹ -4<0ØÍ %ʓ⋋ (€ã” NœQ!Æ & ’pF !&œù!&F ž\¼‘!$D°•m2Ê%ÒæIš3p¥" ;Net_SmartIRC-1.0.2/docs/HTML/media/images/spacer.gif0000600000175000017500000000006711461276032022511 0ustar clockwerxclockwerxGIF89a ‘ÿÿÿÿÿÿ!ù, ”©Ëíc+;Net_SmartIRC-1.0.2/docs/HTML/media/images/spacer2.gif0000600000175000017500000000014611461276032022571 0ustar clockwerxclockwerxGIF89a³ÿÿÿÿÿÿ!ù,PÈI«½8ëÍ»ÿ`(Ždiž(;Net_SmartIRC-1.0.2/docs/HTML/media/images/T.png0000600000175000017500000000023011461276032021446 0ustar clockwerxclockwerx‰PNG  IHDRÎ Ö!tIMEÐ #;çw! pHYs ð ðB¬4˜PLTE—Ž{ÿÿÿRHtRNSÿå·0JIDATxÚcø_ÿ€áÿ ÆE‡:à“o)ÍÕµIEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/Thumbs.db0000600000175000017500000011100011461276032022304 0ustar clockwerxclockwerxÐÏࡱá>þÿ þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿýÿÿÿ   + #!"$'%&(.)*,;-/3012485679C:<þÿÿÿ=>?@ABDþÿÿÿEFGþÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿRoot Entryÿÿÿÿÿÿÿÿp_9ÈÞ³ÂÀl1ÿÿÿÿÿÿÿÿÿÿÿÿ^2ÿÿÿÿß3ÿÿÿÿÿÿÿÿÿÿÿÿ Õþÿÿÿ þÿÿÿ þÿÿÿþÿÿÿ !þÿÿÿ#$%&'(þÿÿÿ*+,-./þÿÿÿ12345þÿÿÿ789:;<=þÿÿÿ?@ABCDEFþÿÿÿHIJKLMþÿÿÿOPQRSTUþÿÿÿWXYZ[\þÿÿÿ^_`abcdþÿÿÿfghijklþÿÿÿnopqrstuvw¦yz{|}~€ RBÿØÿÀRGBAÿÚRGBA?÷ú÷ú÷úùþŠ(¢Š(¢Š(¢Š(¢Š(¢¿ÿÙ ÓÃÿØÿÀRGBAÿÚRGBA?ëäøÅ£Åâk(ÛOZ»Àï&ÁæÊ­·üØ=:ž:Whÿôdñlú+A2$hI66Em¸æÁät8'DÏ¿ÌO¿w¯iÖâ ÝnÿQ×cŒ4å–ÓTšE‰˜aQ>Qò¦}þb}þ®ZOkÊ—åµ}i]lžxÚ=^ἆÀÀoœçïwÇJn±nöþ »Ö,íqÚ™µ> Ô5­źÕä‰d󧗪ܣ¸Û…œçïwÇÝ¢½‡Ä>»ŸTršX¾‰ÚVó@‡l…·)Ë©ë‘Ù¾¢½QÑÔØ]iQµÊÁÕ²–,¼ºpî¹›ê+Ô5 6y­/4Ùôß·Z\~d!Û!bÊrêAúäv?QENÿ ôÙt‰l;{[{¬›…·YÁ*mwsÎ+øVm¿Ã{ ^hþE–Ÿ}“

®JM{PðÏMëÜÝ麅Ä1/šÄ¼rIµМ ¥ŽFê U¸÷×ï|5ãƒgtךf¡q kç1gŽI  t'…ŽFê U¸O|WÔí|nÚF£<Ú…Ž¥uq4¹ã‘ʨe')cÊàÕ@ «ÙÞZ:\}¾ÕwܪhË`J€’=œv=b½¥Õ¬©7Û­—}¨F‰›T<8=p{î¾)|5Ãý£¦9Œh£-2Hž'¡Îb¥fßh^¹±»4ÿÿÿÿ×5ÿÿÿÿÿÿÿÿÿÿÿÿä6ÿÿÿÿ"£7ÿÿÿÿÿÿÿÿÿÿÿÿ)˜Õ€YL—Ceƒ«+®æéÕyP³V}î€|Ascsª*À,æKˆ!²ÁÕ•×{t꼨Ù«—ðÀë› JËV×'Ëi2\CG,YXonAÊ€}šŠÿÙ ØÈÿØÿÀRGBAÿÚRGBA?êµ P×¼Y4Pk:Ä/#LYbÔ¥ŠÒ9<±µ6¼nùŽàz÷Ú†‡6¯ªWÖb¹º’rNha#“ËùQonää»5ÒîÖwÕõˆ'ºyÎØµ9¡†4Š_/åD d §nFî~`züÿ^{{©jÖZ~©ºÇˆ`Ô¬mغZãhnpànèJ·¡àç‚Ü=á¸ÁºÜãYñÞ—nZhίpP1ÈW·BU¾SÈ<ð_šÓµøµÏ‡Z¾§m­xŠoN¶-4gW¸(çk¿î’­Áäx.W¯ÞéšÍŽ¥<¶V^qw’H®£*¥±r¬ÆFxúsÁ¯RšÎö‘m¬ÚYä’ ¨Ê‚رV ã<œcÓž zO|¾#±ki,Œ²«É-½Ô{A@î\«uÈÉÁœðh¦j~[´¹Ä^eäkÝÄQ9Ôg€Û¶ä@;? ©{àtÕl/í¯nc ©F±ÞÏGÎuÀ »f@$³ðªÚOÂk=;÷ºL—HF¡Çw@.*˜œrÝ2ÊýÇÅñ5ÖŽé2¤òkÓ`…-ãÄ¡#^€dçñ®÷GÐ4½ÌÛiÖëD’Àd’ORIäÑ_ÿÙ Œ|ÿØÿÀRGBAÿÚRGBA?î~)Ãâk ÑäXìv½h«°;K ®'žŸì¿­ø® ««qïFœèæçìò2Hø \U0 8åºd•ûŠIâk­!Òdxì6;^´ VBÎÒÀ‚«€IÇ'§³üÿ^5á=wÇú½„6T×Ïkk÷Z9 Ÿ˜à9ÝÚoS\¿‚¬õÃáÏ"æK‘d›6Šv ÈÌ~÷NÛz“üMï^?áoÇÚ­¬VZ\ׯmk¬’#yà±ÈöëþÓzš+Ý^/ˆrë’ÂS¡=ÑV\ƒl[¿ðïÙøgÚ¶]~"?ˆ Ê<(ttAVá­‹ÿß;ö~ö¯ršˆ3ë/¯…_D’ä«« ÍÁ¶/ÐÿýŸ†h®ƒEÐ4ßY½¾›l±)bÌI$ú“É®¶RÞ1K²5補þ5½¤h:^fm´Ûu‚2Kd’}ry4WÿÙ8ÿÿÿÿ0W9ÿÿÿÿÿÿÿÿÿÿÿÿ6Î01 ÿÿÿÿ>11 ÿÿÿÿG¨ K; ÿØÿÀ RGBAÿÚRGBA?ô‹ýWÄ:°‘tÈþËðqó¸íÉõôþ^‘ªø‡V.™Ùbþ÷¹>¾€À«Ò/õ_êÂEÓ#û,_ÁÀÞã·'×Ðø|ÿ\景øÓAš+}F/‡I£?1ÈU×9cžô5Ìé¾!ñ¯‡ç‚ÛQ‚KÔùëää ªã9<þ†¹7Ä>5ðüð[j0Izÿ=c<œµ\g'ŸÐÑ]þ§mo§kq¤çå2ªØôÏ\W¡jvÖñjv·ÁN~S*  LõÅz§mo§kq¤çå2ªØôÏ\QSèè²@eu "± Ì2@úÔú:,]CH¬B³ >µ>Ž‹$WPÒ+¬Ã$­ÿ٠²ÿØÿÀRGBAÿÚRGBA?àüc¢ê3|O¶Ó5¹'¾–ãPKi¤…bIæ%eXœÑ´n¡ŽÔóp×ãQ›â}¶™­É=ô·‚[M$+O1,ƒ*Äà£u v§˜€¦½ÞæÎ+½¾cN»s*w¯®Ò3ø×ÏõŸáíSâô:?‡§»Óï Ôä†e1´¶èŒÛËàìr[rƒ†Á Ö‡´]N?‹ÐèþžïO¼ƒS’e”ÆÒÛ¢3o/ƒ±ÈEmÊ ƒT%³KkëH­fº»—&K©$Uq¸•f ç*¾£~GJ+ß¾*è·:W‹ímæ]*x¥¸Œ6ܤNd‰Î½ ÁN]¸Ž½û⮀ës¥x¾ÖÑ®eÒ§Š[ˆÃmÊDæHØœá@;МåÛˆë^Їá7…öêzߎ.­d‚çZ•ÞÞ7}Á"vóX© ¥Š¨$r"Þ§l€T? ¼/·SÖüquk$:Ô®öñ»î ·šÅHÀe,UA#‘õ;d¡KdK©®2ÆIB©'²®pâXúóé€ ÿÙ óÿØÿÀRGBAÿÚRGBA?ÕÕ¬lmgºÑ´è5CzÍsý¡§Û ¿Ý.q¹£c–PÀÁÉïŠMrk(ÖÂ{Â=Ioåkèi–ª5,ÎÌlÙdÝÊ€rzÔ¼G¬ØY:ItÔäÒ_I{¥[¨æpÁD… ¦àX 凨ùþ¦ðÞ™okã}.átû+gmK1}žÖÄHö·„Æ#F`6¯Þë´¹­Cž5°º]6ÆÕ¿´Á…m­ ÉGµ½& ñÆŒÀlO½×õÍj|?–ßPñ…úi–xÕÀ-¬àŒÁÚ^“xãFqò§-×h=sEu—Ö¾Õ ‚þâÖÚxïK:Ç2ÆÍåLJî÷Ú¹=Ob+²»Ðü/ªÃ<7÷ZH/Y¤Ž9Ò2|¹²»ç‹“ÔúŠí.<-á=NÎêÒþþ;M×®ÒCÄqŸÝÍ•ÎFy¹=NzÑY—°ñG‰l×ûL¸Ñ¬¦2Mwö·‘äK]˜<ŠÇxŒÕEeIàM#Ä ¶‚=MºÑmn<ÙïZõä’Uò\‚„Âüò8sÄ`·ðŠÊá·ªkZ[hº}Ö‡msç\^½óË,£ÈeùÝXísþ¬ꢊôºõ:õš(¢Š+ÿÙ œŒÿØÿÀRGBAÿÚRGBA?«mªx“Äk6£&½/ú»r«ˆÀ´ð7É'u<סYè×>!ŽKùµ=F9YÆR ¶ °Õé^´¾‹Ugº¹½¿YiÄ7,‹Ê)è8êM|ÿQÝ^øE–¿øHu)B¼xIYJ’e9ÂŽÎ>•G^Ñ/dk‚1ÈÃÒ³'ÁÖ—ú¤Z¢mB!žHmd"0ÞcäV$ ®Üñ³~zÜ2ÚÚݦ‹Ü AUc$ïLBŒ;`IÚíŒãšèd–(\Yª¿ÚB„ •àúcùfŠìáø{,ú¥µÎ±¬I{k$Z,—A$}èê_͸“ h‚sW†d¸¹‰¯¯Þ{tå­Õ¥Û!È#vù Ó&Ž×.‚ê夀¼#vÙ=ncÀöÅÿÙ ÝÍÿØÿÀRGBAÿÚRGBA?èïõ¿Þê7³Ûx–KÝÄÛCg*,Sž˜4S$ðw‰±}uhÒífÚÀ) 6Ý€ç=§«i×Þ{]F BþdŽ@fYeÜ6dÆ?Ú¬ýoIA©ay~â U¦Yg. g¯Í¡gac£øµ|gyªE­…Ž'xn$‚Öm±YÇ"±ù9Û·9ùã÷•¸>Éit4¸’q¨HÌ‹3¤nBŒ1ÚÀôçëÆ{Öû´0?ÙUíAU7 U° Áôÿz+¸áÌ×:¥¥Î¯®Ouko–6‘És²fܬ»üÛ‰r  8dœã~OµÔ‘‹Ë×’ÝNZi6ÉÈ#v÷nã,ÚGÚ‚ÇspÏrñØc¹WÿÙ ¾®ÿØÿÀRGBAÿÚRGBA?wÄ}[X³×™­oõh|öœ—”°ÀeÔ"*ºª¨äŒû’JöZþ™u{¨½ÚëZ­¡•® q¨ÍËfUDD‘©¸äŒû’YoüD¹ÖmµE›O¹Õ£’á®IF¥,6àDΪˆŠêªB¦ã’3ï’Wçúãcñž¡{¥\˧¯ÛL¶Îë»W¹l0Lä|ý3Ó#ó®cZ³¾·ð=Æ»³âi>Ìïsj·† NáóôÏ# uÂÇã]J÷N¸h/*éxšm.KyãŽ)’MƒÍ61̓ÈèpNxé]ÕÇÅ]2M¥Éoi/ªßjúŒ}4“I4PHŸºs†åFw·QÎTç”5¹'Â%õ[í_Q‘¯¦’i&Š ÷QîpܨÎöê9Êœò†Šåü â][Xø±-…Ù†x­ãŒ©1Ðo‰¸žJõþóg'—ð/‰umcâĶfâ·Žv2¤XÇA¼J&ây+×ûÍœž_À¾%Õµ‹Ø]˜gŠÞ9ØÊ‘cð(›‰ä¯_ï6rJÿÙ.``&ÂcM=ŸÂblank.png&ÂcM=ŸÂClass.gif2ÂcM=ŸÂclassFolder.gif,ÂcM=ŸÂConstant.gif.Catalogÿÿÿÿÿÿÿÿÿÿÿÿm@61ÿÿÿÿxV 71%ÿÿÿÿ§Ç81ÿÿÿÿ«òÂcM=ŸÂConstants.gif2ÂcM=ŸÂConstructor.gif0ÂcM=ŸÂDestructor.gif$ÂcM=ŸÂDisk.gif& ÂcM=ŸÂerror.gif$ ÂcM=ŸÂfile.png4 ÂcM=ŸÂFolderClosed.gif0 ÂcM=ŸÂfoldericon.png4 ÂcM=ŸÂFolderOpened.gif.ÂcM=ŸÂFunctions.gif0ÂcM=ŸÂGhostClass.gif$â†ð©Âp J : `.ÿØÿÀ.`RGBAÿÚRGBA?÷ú÷ú÷úùþŠ(¢Š(¢Š(¢Š(¢Š(¢Š(¢«Þ^Cey[—m‘ êìz=i’H±Xõ8¹>• ÅÌV¨Få›j(êÍè(®vÃRþÚÕÞÒW¸•a%™­\Ç dtRÀ‚ÇŸ\{UH¥73”bìçä8Qížõivu-A •æq$˜¤hG@H9cÏÓÚŠé%µŽhLLdÚF>YYOæjáEeÚsf"¶ž’3ÛŒpìæh¬æ†ïIÛ$Éubƒ÷ÊKʃ•cËc$äóÚ¡+%¾ 3‡¿ãTš;;kÅ#Ïh£çŠBZE«u8ÇC’ryíEiÛÜCwn“Á"Ƀ*êr©‘ÖDŒO Š» ÑÜB“Bêñ¸Ê²ž %:¤¢Š(¢Š(¢Š(¢Š(¢Š(¢Š(¢¹Kwú½ :ÇojÀœ‰d,8ÈEdnoZ¡¨ÈÆžÌIÉü€ÇÔ×?â'¸FÊà©îX9=¸Pã#-ëEtZV™‘§Cgn */'»äÕ¸aX"XÔpkØÙÅag¼C £“ê}h«µ%Y¢Š(¢²t˜ÞÖ÷Q³Ü¾‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥þÿÿÿ³¨©ªþÿÿÿ¬­®¯°±²þÿÿÿ¼µ¶·¸¹º»þÿÿÿÙ¾¿ÀþÿÿÿÂÃÄÅþÿÿÿÇÈþÿÿÿÊËÌÍÎÏÐþÿÿÿÒÓÔÕÖרþÿÿÿÚÛÝÞßàáâãþÿÿÿåæþÿÿÿèéêëìíîïþÿÿÿñòóôõö÷øþÿÿÿúûüýþÿBH$rr¡†HëÓvqНn¦9f#`mÊ;Œõýk?OF·º¼¶Ü¾J¸x—' 0Éü3œbŠGñ>Ž—ñصæ.d›ÈDòß—çŒã9î¡ÑðÎۃɧI¬ØEs»Ï‰d“ÊEØÜ¿¦qŽÔV½MW¨¢Š(¢Š(¢Š(¢Š(¢Š(®;Æ“HùD‰‹Xy7é•8upr£i>›‡¨¬ýA‹¡Nb (ã¯$}8üÅs¾#•ÝŒkfÔEt¤©ÃÌÜŽ3é¸zÑ]UÜWÖq]@Á£•C)z7Y#WSFEo[ÏͼsÄÁ‘ÔE=:¤¢Š(¢±¬£†Oj—;OqA»<ÁnŸV5Z%S<˜;ªgÔuþµ™kO¯ßϰ‰‘#‡vx+‚ßÌš+Îõ9’ÓÄo|Â2Ö·Ï* bî ØÉüj¥Ê®õ•97 Ç5Îj[P[–1ƒoteO1ö®àN2h­ëOˆW>h’îÆ´#—¶³G8=@÷©Vúaó²FñzÆÙ5~\ƒæÍo–Øå­Ü–õç¨Æh®‹XñUž“³’æK¤ó"Hð>^99è0xõÅO-ÚÇå„RìãpÓÔúV¥ö· €"<ï:ïEN>^99é×ô¢¹?øY7±²Ã¥«Ž£í 1U?´d^íC£}b\ÆvÌtÕuqüè«Çâ 6‘nðAo.£6ç1«Ÿ)#2-ŽûNô4åÔZHÂÄ#yŽIÁ;BäŒçð58ñL’ÙÆ-ã‚[×ËùjÊ‚O¾Óìhª ñ2᫦–¬:ƒrF)§Se8i-AA’ oÊŒUäÓ‡Pg#U¨<¨5ÑŠ[ ]¿fž`RFÎcBÀtèqDšŒð° dv'øFiïâ›Øf %µ¹SÒ‚ŽÝQ ÝñEQ‡ÅºŽ½ªèÖãO±ŽâäÈ#”³1Qåd?ì°@àzP½ÜóËf<¨CË­Ïib>‡ª‡[¾Ô¯t”û%šÍr\G&X•Yr¿FÚüaE_²þÐÒ.Ú!£Rÿ¼}"íºsÉŒ÷J’&–Ù ‘“o!ÁOZµj×V˜¬YU˜om:á°ËÏU=ÅÝE.äˆK¶9C÷dƒßëŠÓVáw`1Æk©I2¨ #.Jgó¢¥§Sè¬]IM§ˆ4»ÈUw]Hlçí•ØÎ§ð*ï£Ug]弊d>[}0Hþ_­eßm¬i÷1(Ý;›i}×k8?Sÿ}+•¦:³—Ãj¬²î™lƒíU.K‹«`¹æã Nk½iF¿b"/†Ô0á{®[9ö¢´üu Úîž- †6ž ¤¸dPŠ˜• w鸡©n@KøÕ@xÙ¤ÀêAP3úÕÝy#ƒ[µX"<è%yʨˆ1„'ðÜÒŠæÇÚLbVdŠÂ)l„qéÎMV¶Ú%™C.zV=¡Qs:,…–4@£vv‚ 8ôç4UÝ&A¤Z&™6¡ö#hJØÀÁ”ò&,œç9<œæ›o ­¼b î|­¹R"CyÎvóOÓ­oâÓ­ÖÆêÿì¥DE¬'ržs“Nsœž¹¢®Þh:äöpj÷)qu3Eöi¡ò%P²ÈUö ‚có“‰VÓ÷ïæH|¶a†l?½éÚ¬¶¨ª.¡8žä¼~D‘ù!dP²9V€!ñÀãó“‚ h¼[Y[­JxÂß z´Dð=M1¢¸‘qrˆO%0âµÛë…–÷Q†%gs3EeľtþμÇýø5àÆO&\ß©^€&ˆ)ÈwXÿ¿&Š“Ã¼Mágoº¾kì-¤¢3¶ãJ' ÜOýûj]5Äz¯†]¾ê™ ?öîôW§ÙêZ/Š!’$‰ncÚ¬Ë4<œŽ£Ôfµ• ¼L¤ó/^â»Hntín&O(MUb%‹‚3‘×ÜfŠÄÕtë»[›o&çeÝ£Ÿ°Mq!aµ•{i=¼Ð›löíþ‰$Ï»ÍB>ãüCß’1É9¢¯Eâ zWŽøFåŽ]ÀI#È`w ÷©–êéˆ_²sÉ'Š·«ªHëö;£ävq°äôUÓ[^÷mö]5Ë €ÓWŽyڬ݈ù½E8ÿ¤]¯Êv@s“ÝñÐùÔ玮Ÿ»o"Å‹ €ÒGöR{ó{Q\Χà»ëëÛ™<Ûm’Lu OaLšÏÎÈp¥IÏR+>÷@–òI7ùEBÃç`y>Š­mà;廊6–Ù-Û‰dY]¤ 2p ¯óœ ˆé1Éó »« ÿØÿÀ RGBAÿÚRGBA?í¬,/ÛUÐb‹ÃšDÚLºiyçüÌ߸ù›÷'7Iµ7aÆâJí®ãOÓïßUÐ"‹Ãz<ÚLºnùî$?37ú?Ìß¹8qºM©»7WmvÖíªè1EáÍ"m&]4¼óÈ~foÜ|Íû“‡¤Ú›°ãq%v×Ïõçuç5çtQEQEWÿÙ æÖÿØÿÀRGBAÿÚRGBA?ô‹Ïh÷:µ¶o©Ír±qöYV7'ÊWiWåe?7˵¾lפ^xëG¹Õ­´ë}Nh£•ˆ{²Ê±¹8ØR»J¸?+)ù¾]­óf½"óÇZ=έm§[êsE¬CÜ}–UÉÆÀ²•ÚUÁùYOÍòío›5óýs:ö­uáQüE`²2Goþ’¹arˆ v9;¿ºÿÂz »ó:ö­uáQüE`²2Goþ’¹arˆ v9;¿ºÿÂz »ó:ö­uáQüE`²2Goþ’¹arˆ v9;¿ºÿÂz »”û}T¼½°ðÔö¬–z}ÀEœØH¦;{q›i~Ðdò¥gÙdTæ~niöú©y{aá©íY,ôû€‹9°‘Lvöã6Òý ÉåJϲȨÌü&ÜÓíôRòöÃÃSÚ²Yé÷sa"˜ííÆm¥ûA“Ê•Ÿd!‘P™øM¹¢»ðŒW°˜õŸ.xœÖÉÊF>f#'ðÛø×`žŠö³åÏ‚Ù9BÇÌÄdþìÂ1^ÂcÖ|¹âpC['(Aù˜ŒŸÃoãEÿÙcM=ŸÂPrivateDataMember.gif6ÂcM Ä´ÿØÿÀRGBAÿÚRGBA?Ùø·ã Ößû+M¾¸[tö綆o›iÁ_5WhPCÚÙÈ*q†Vî¼kã )&}2kË¥² ÿjkX'Ê¥|ä\R6ÖÎåÚqµ•¶~,øÆãìÿÙzmýÄVÉ¿íÒ[A6NÓ‚¾j®Ý † µ³Tã ­óýyׄõßêöØis_=­¯*ÑÈTüç±ÈöëþÓzš¯à«=pøpÁs%ÈŽ2M£E;ef?§m£’‰½ëϼ!­øûUµŠËK91(ÿÿÿÿ´Ð02ÿÿÿÿÿÿÿÿÿÿÿÿ½Ú12ÿÿÿÿÿÿÿÿÿÿÿÿÁ22ÿÿÿÿÿÿÿÿÿÿÿÿƇžöK[\íd©Ãž ŒöëþÓzš+Õ5}+U—QÔ¼/ “I§_Ýì23{‡2O'ÚD‚(ÙæÚŽ™ùS†ÝUµ'T—S½ðߨÝôÛËÂc°ÈÌÐ\9–âO´‰Q²3͵]3ò§ º½?ZÑu+‹ûÿ ¥›Éa}vv¿Ødf6÷džO´‰Q²3͵3ò§ ºŠôÃúo‡ìÞÛM¶X•ŽæêI'ÔžMz|¤ªD¡#^€dçúסhú— Zm6Ý`Œ’Ä ’IîIäÑ_ÿÙ=ŸÂPrivateMethod.gifÂcM=ŸÂI.p ξÿØÿÀRGBAÿÚRGBA?÷ú÷ú÷úùþ«Ø6ý:Õ·nÌ(wnÝž9ÜÙúî?SÖ ²mÖí»vbSÙϾ[?™úžµ ›n±·mÛ³œç9ã×'?™úš*ÅOSQEQUì~jÛ·f;·nÏœîlýw©ëPY6ë vÝ»1)Îìçß-ŸÌýOZ†Í·XÛ¶íÙNsœñ듟ÌýMb§©¨¯ÿÙ ÿÿØÿÀRGBAÿÚRGBA?÷ú÷ú÷úùþ«­ý›íÛwnÆÜHs·ç¾ôÿ¾—ÔT {hÛvÝBwcs¸ÿÐ×þú¢¡[ËVÆÛ˜Nìc9ÎÜèKÿ}QEBúÞ““S²B@`ád½Á¢}_M¶¾£h¤€Øi”pFAëÜj'ÕtèÎþÕIàÌ£‚2_Cš*õ\«tU{ß§Z¶íÙ…íÛ³Àç;›?]ÇêzÔMºÂÝ·nÌJs»9àwËgó?SÖ¡³mÖ6í»vcSœçëžW·Ë¹NŒ§½ð^¬¾"Ó£À¶ÛnUݘ]ÜÛ$c“»u+Ûåܤ¯Q›Âú¾±>{f† )ŒK;éòƒ¼ ~Ï/Ú<ß*VlBAùŸ…Ûš©e£êÓjzo‡å´dµÓn€Y„ªc‚Û›iMÁ“Ê”¾ØC"¨?4Ÿsnj¥†“«I©iÞ–ÕÒ×M¹fk TÇ·6Ò›7Ê”¾ÈC"¨?4Ÿsnh¦øcà=œ24þ#–9á'wÙ!'i<õ|ôû¡}á]åÞý¹n`Ö’- i(Üó9Ÿø_C‘]íæˆ5»c¶°ÉlGÍiÌÁ3 ÿ€…냸Q_ÿÙngÂcM=ŸÂL.png(d$ªÂleftbg.gif(ÂcM=ŸÂLminus.png:ÂcM=ŸÂPrivateProperty.gif&ÂcM=ŸÂ ïßÿØÿÀRGBAÿÚRGBA?ö}oVþÌ–%ý…¯“$²ÜÞ‘pѨÞ dÉÜúW´ë:¨Ó6šúÊÂ×Êy%¸¼û‹†E%” —î}+ÚµQtÆæ¾²±µ¼’Ü^p‹†E%” —î}+çúÎðçŠá×b²»‡R°¹³»·2~é<f,Dø‘ÀÞ€W¨8õ¬ÿx¦ ~ÞÊößP²¸´º€È|µ ðÉû¼Fø‘€Þ€W¨8ªñE¾¿mg{m¨YÜZ]A¼ù`+Ã'îñáØýàzƒŠ+mõ½&6 &§d„€À5ÂÈ={‚ m>¯¦ÆÛ_Q´R@l4Ê8# õî5²ú®ÃßÚ© ”pFAëèsE–w2ÞÁuks RE‘‘,&@ÁŠ̸ûƒó¢êÖâ[¸nm§Š'Ž7Œ‰".b§³ }ßÖ‹«Y了âÞxãxÑЉ".b§³ }ßÖŠ¡¡iMio¦ºMØílE½´1DFÈÈLeŒ»ÎN}MQÑ4³gm§yrB--lŽ´1FFÔ!0 }Ørsêj–‹¦}Ž×OI´µ³öÐÆ‡åL&bí»ÎOÔÑ[µµ[WÿÙ ²¢ ÿØÿÀ RGBAÿÚRGBA?ô]+KžKM7o†´¬Þ ÜËpDÄ]í³È œç©©jZ…újri×[Xi壒{hk›™C2Á»1§ä;•Éo1p…7Yº½ÔuW¿mÌ–v,ÑIqo Ëqs"€Ì ݘÀVù er[Ì\!MÇçú4½KP°N}Jâk› ò±Å5Ì Í¬Ž»•gÛ„;îÆÕBË\9mÀÓµ-BÁ4×Ôn%¹°ÔcŽk˜›YK*Ï·Ç÷cj¡ 宾àZÞê:KØ.£s%å…ó,QÏq Ãqm#Ê'ÛˆÈcòª„1på·«k3iÚ^±¦›k¹tGÏxî- 3µ›L˜%>cƒ+3‚¿Ö0!4õ›ìtÍkKk{¹4KÎxç´€Ü5›L˜%>cƒ+3‚¿Ö0!0ÏÚ ³[Ý\i7¯,ÑÏk ¬Ú^dVxá¥fpP7úÆ" $£G±›QÒô}1m®¢Ò4ß%Þâê^4 yab'Ì@$Ur\/úµ:¹ Ѭ'¾Ót]-mîÓIÓ|™$¸º€À×XX˜ùˆª®K…ÿV W$E6»o¦Z­½Õ¾“bñM$÷P˜ñ¢æ5X›÷ˆEW%Âÿ«P«’ ÿÙ  ýÿØÿÀRGBAÿÚRGBA?ÙñçÄÍvOÝx_ÁI]Ú£îd’3( Ë’A+÷HÃ1;€nNÇŽþ&ëÒøšç¾ Ž'¼µF3Ü)G•™@fXT¤¯*à ÄîFÜŸV¼Õ/õ-Bâ×I¸[k[bÑÍr‘‰eyË9_—$îR¹??Ñà/‰ºì~%¶ð·V!ytŠ`œ”ŽDv•ePv‚Ü(Vh*wdø›¯Gâ[o øÚ(’òéÁpJ$Šì *̪B‚Ü*Œ+´;²ËT¿ÓoííµiÖâÚ䄆åãJ’YVP0¿7Ý AÚ0Û² Èñ߀µÍÆ~+ðÆ–š„s³L¡ci¤³ˆÜâ<åÎâ]H NTSY<ð½áïÝø·ÃRjQÜ3Nª±´ÒZNÄeÄ{²ä±.¤'*ƒPÜÁu j2Gjóé7µÇî"3Im+Xù|³åÉpTn9($£Àž×uÿZx«ÅZiñÛ²ÌÁ¢hd»IÚæ<åà’6†cG<¯x‡Ævž-ñ>•š–쳕hÚ.çRv¹vPîÉ!AÀÂÌh¶‚ëÄ…´¯höúM¼ËqûøŒ2\ʤ•;8dÀä°ÀÀ!‰¢¿ÿÙ 'ÿØÿÀRGBAÿÚRGBA?ôÝc[¿º]Z}>imô½$•¹¸¶Ž9n'uœCæ-Br¬X1$:…V\ŸIñˆ/þɬ]éòMo¥i;…ÕŬQKq;( ‡Ìo-U X1$:…V\ŸJ×õûöµÖ.ôùf·Ò´ÂîâÒ(¥¹Aæ7–¡ X1$:…V\ŸŸèÑõ»ûQ¤Ï¨M%Ηª¶×71GÄÀ² ¼³å°º¥BJ)VfÈþÿÿÿ@ABCDþÿÿÿFGHIJKþÿÿÿMþÿÿÿOPQRSYUVWXþÿÿÿ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€xt8Å,³Ü[}˜ÞÉÜ   dù‚ýÅPXš“Jµ¼Õì´k¶ž'Mòd–k‹ahodˆ~ì$  dù‚ýÅPXš“L¶¼Öm4kµž-'Mòd’{‹ahodˆ~ì$  dù‚ýÅPXš+ÿÙ —‡ÿØÿÀRGBAÿÚRGBA?ökX]F—Q–ÆòêÖ­ª«:/v °ùG|tëÓ${‰¼@žÑ%Õ¦°¾»‚eK4VtLrä3”wÇN½2kÙ|I¯§†tYui¬/®íáæd³EgDîä3”wÇN½2kçú½k:^Z[Ü"â9â(Þ­ÁꤩëÔ= hX^Ç©iö÷‘â%•Fõn9RTõê †¯ØÝǨØ[ÝÄŽx–UÕ¸`åISר$z(ºµ¶¾†K{Ëxn-äÆèæ@èØäd#?…-þŸiªY½õ¬VÒc|S tlŒ©<Š[ÛMNÕí/­`º¶|oŠdƒ‘•#‘ETÑì®tÍÚÊîõ/'JÒHÉÚ/ ÂñéT¼9¦Ýèú®{}ìÐ!C4vën¥A;@>U ¸^?»Tü=§]i ®{}ìÖèc3Çn¶êÊ ÚiÂ…\/”WÿÙ ÿïÿØÿÀRGBAÿÚRGBA?¹ñ'Ç>'Ð|]sc õÅ•ºÆ²[E É#Ùì΂]d^£Çsé:ÅÖª÷~")«ÝX¶™n·öÐdI¡1ä;É4n™dê‚Gvô­ZãUkÍ|&±sbÚmºÜ[[AötI¢1ä;É4n™dÎ@#»|ÿGÃoøŸ^ñmµŒ×÷¶ÍIqË#Œ&w«".Hvzœ‡'Á£Ýj©uáÖ}bêùõ;v¸¹¶¸û3¤ˆÁ.’C"G…3’r@ÜêÉ{ Öno›R®.mî>Ìé",—I!‘+™É9 wRº?‹ž›_Ó“S°·3ÝÛÄðL‘®]àlœ¨,ÊÝ£I€XW<[£¸^åc™¡žÚ[I-—2Éjê~d\òFÇ*9ù^]ªÌÀU¯èïw\Æ“4rÛKc¨¥ºæY-]OÌ‹ƒ¾HÛ•ü¯.Õf`(£á'ƒ¦Ð4÷ÔïíÌsÄB’.$H–eY›’=<€ÀŠ<13*ÿÿÿÿ  23+ÿÿÿÿì33,ÿÿÿÿ ê43-ÿÿÿÿ(é'£›XR飘C ´V:r\.ÙcµE3®É$a–|©åVR(ð¦Žö¥Ó¤ËVÑXéÉp¸–;TQó:ãä’Få‡*E¹U”Š+ÿÙ àÐÿØÿÀRGBAÿÚRGBA?é|C®x³SÔÞïBñDz^šÄ­¼+§Å9‘ãÍ.Äçy ËŽ f6êDZ©Ùkš­À»Ó¼Gs¦Z}Ćx>ß&DcósŒco©5ë—Úvµ¬\«Ýiv¸Ù0ZÁ p ùÉ‘óÛBž¤×ÏõÃø¯Æÿü5_ŒöYC1t¨¢.2Ä…ñ­Öºê-g²ÔcÞ×W.Z.ãûÀÓ(m嘆gAR+N?i÷FÙáÓ.,õhÞG»ºV{cq¼5$› æïs¹Hå@ùJΜ~ ±º’ÝàÓnlµhÞI.ÜÜo?½I&Ãy›ÜîR9P>R„rW{¢ü8ñ%Ljľ$¾K«™n¡k¦‘gFBÙ±UH;y\q¸î«Kà n/¬ä¿žK‹oÞ­ì3^´«tŒ„(òÄhˆTíåänvê´¿åŸQ´“R¹’â×÷‹{÷*Ý#! <±"vòr7»uÿÙ ÝÍÿØÿÀRGBAÿÚRGBA?î~)Çâ2+}*WŽÄ#µë@Åd à°ÁUÀ$ã“ÓÙ½gÅV÷w6ÞIó³ÝÜ}žC¥ÁS“Ž[¦qò¿uñLx–ëIX4w’-?cµë@åd`£;K ®'·Ofùþ¼{ºïõ[lô»‹Ùm-3ƒ…Nà9íŒÿ´Þ¦¹ŸÙkðŽ.ÚäFŒM£EpÁ™YŽ ôí·©?ÄÞõã^×¼«ÚÃa¤Üß=µ¦v´nTáŽc‘žÝÚoSEZÑ<ãiõù¢[Yí/™%[ۇݔIĪóo7y!†3ŽÅH§Ûx:ÎWàÓîlµU2›ë„g·ûRÉþ¹%›kù¡Øîå„¡Zöüap#º}ͦ¬Lßo¸F{´¬Ÿë’Y¶¿šŽáŽWøJEw¿þx›Ã:üR¾¤ÅKýªvÓ,Á—¢€Á‚ÃŽA­3Ãzņµ§ÞNqbD»G½i–é~_ÝùjˆÊÁ0ÈàsšµáŸËá­NÊKK™£‰L¢õ^ù¦[•eÂæ?-QYX&œsEÿÙ53.ÿÿÿÿ0ð63/ÿÿÿÿ8™73ÿÿÿÿÿÿÿÿÿÿÿÿ?q83ÿÿÿÿÿÿÿÿÿÿÿÿE¯ äÔÿØÿÀRGBAÿÚRGBA?í>%øŠ}ûO³kǶ±š ¥£3m(窃¼ôù½¯k½i$Ôm¬Äï rÃ$ŽÑðÇiA·=@;ÏNz`Šö»é%“Rµ±¼1K²¹N¶”sÔ¼ôç‚+çúñ-/âÿ†|^uÍ/|–’'—q¬Ì' ¸ív9;±÷[·ÕD$#ާF3Ô}ïáçÜu¯eÖ.ž;»kcsäA"HÒ8êpTc=GÞþ}ÇZö]béã»¶¶7>D$#ާF3Ô}ïáçÜu¯ŸëÏ5íVëÛøŠÁddŽßý!%rÂå(ìrwuÿ„ôw!óÍ{UºðƦþ"°Y#·ÿHI\°¹DŠ;ßÝá=ÝÈ|ó^Õn¼1©¿ˆ¬FHíÿÒW,.QbŽÇ'w÷_øOA·r½3SÓcÔaÚß$É“ª¹*¨õ×½3SÓcÔaÚß$É“ª¹*¨õ×½3SÓcÔaÚß$É“ª¹*¨õ׊ÆOE{ G¬ùsÄà†µNP‚1ó1?†ßNkp\U0 8åºg+÷SÄ×ZBC¤ÈñØw½h«v–\N9==Ÿçúñ¯ ë¾?Õì!°Òæ¾{[^U£©ùÎc‘í×ý¦õ5Ëø*Ë\>ò.d¹ÆI³h§`ÌŒÇúvÛÔŸâozñÿë~>Õmb²Òæ½{k\íd©ÏŽG·_ö›ÔÑ_RIKìVG\0È õ¯G•ÁY(F ‘Àú×ÔAð7òÛmÊ»³  »›c±ÉݺǕíòîSÃxÆ{ßj«â->70­¶Û•’Fatslv9;±÷Xò½¾]ÊJú3Æþ ´ñ®Œm]þÏu>LÛwm'¨#ºžãùô;›´‘Ëž2|¹vçêîqüˆzͰ¸ÚÈÞ\ñ“åËŒã=AÔ÷È€A\„þYÚ/‰%Žâ2ãÒì'ž®@cÛî…ô9›y£nÀ`Ö’-[Hþdg ÿ ÜŠ+ÿÙ L< ÿØÿÀ RGBAÿÚRGBA?÷ú÷ú÷úùþŠ(¢Š(¢Š(¢¿ÿÙectedDataMember.gif:"ÂcM=ŸÂProtectedMethod.gif>#ÂcM=ŸÂProtec93ÿÿÿÿLX04ÿÿÿÿÿÿÿÿÿÿÿÿT(14ÿÿÿÿÿÿÿÿÿÿÿÿZV 24ÿÿÿÿÿÿÿÿÿÿÿÿˆétedProperty.gif<$ÂcM=ŸÂPublicDataMember.gif4%ÂcM=ŸÂPublicMethod.gif8&ÂcM=ŸÂPublicProperty.gif('ÂcM=ŸÂspacer.gif(ÂcM=Ÿ  ÿØÿÀRGBAÿÚRGBA?÷ú÷ú÷úùþ¨Ù^Û}ŠÙZê!PI$/ûMŸ¾ŸÄ~ðääNÎòßì–ê×11  È $…ÿhçï/s÷‡'#5-.àû, ×—(£@I$/ûG?y{Ÿ¼99ä¡õ½&6 &§d„€À5ÂÈ={‚ «é±¶×Ôm 2ŽÈ={‚ ªéÑœ=ýª’Á™Gd¾‡4Uê¹Vèªö ¿NµmÛ³ Û·gÎw6~»Ôõ¨,›u…»nݘ”çvsÀï–Ïæ~§­CfÛ¬mÛvìÆ§9ÎxõÉÏæ~¦Š±SÔÔWÿÙÂT.png,)â†ð©Âpearlogo.gif( J : `.ÿØÿÀ.`RGBAÿÚRGBA?÷ú÷ú÷úùþŠ(¢Š(¢Š(¢Š(¢Š(¢Š(¢«Þ^Cey[—m‘ êìz=i’H±Xõ8¹>• ÅÌV¨Få›j(êÍè(®vÃRþÚÕÞÒW¸•a%™­\Ç dtRÀ‚ÇŸ\{UH¥73”bìçä8Qížõivu-A •æq$˜¤hG@H9cÏÓÚŠé%µŽhLLdÚF>YYOæjáEeÚsf"¶ž’3ÛŒpìæh¬æ†ïIÛ$Éubƒ÷ÊKʃ•cËc$äóÚ¡+%¾ 3‡¿ãTš;;kÅ#Ïh£çŠBZE«u8ÇC’ryíEiÛÜCwn“Á"Ƀ*êr©‘ÖDŒO Š» ÑÜB“Bêñ¸Ê²ž %:¤¢Š(¢Š(¢Š(¢Š(¢Š(¢Š(¢¹‚ƒ„…†‡þÿÿÿ‰Š‹ŒŽþÿÿÿ™’“”•–—˜þÿÿÿª›œžŸ ¡þÿÿÿ£¤¥¦§¨©þÿÿÿþÿÿÿ¬­®¯°±²þÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿKwú½ :ÇojÀœ‰d,8ÈEdnoZ¡¨ÈÆžÌIÉü€ÇÔ×?â'¸FÊà©îX9=¸Pã#-ëEtZV™‘§Cgn */'»äÕ¸aX"XÔpkØÙÅag¼C £“ê}h«µ%Y¢Š(¢²t˜ÞÖ÷Q³Ü¾BH$rr¡†HëÓvqНn¦9f#`mÊ;Œõýk?OF·º¼¶Ü¾J¸x—' 0Éü3œbŠGñ>Ž—ñصæ.d›ÈDòß—çŒã9î¡ÑðÎۃɧI¬ØEs»Ï‰d“ÊEØÜ¿¦qŽÔV½MW¨¢Š(¢Š(¢Š(¢Š(¢Š(®;Æ“HùD‰‹Xy7é•8upr£i>›‡¨¬ýA‹¡Nb (ã¯$}8üÅs¾#•ÝŒkfÔEt¤©ÃÌÜŽ3é¸zÑ]UÜWÖq]@Á£•C)z7Y#WSFEo[ÏͼsÄÁ‘ÔE=:¤¢Š(¢±¬£†Oj—;OqA»<ÁnŸV5Z%S<˜;ªgÔuþµ™kO¯ßϰ‰‘#‡vx+‚ßÌš+Îõ9’ÓÄo|Â2Ö·Ï* bî ØÉüj¥Ê®õ•97 Ç5Îj[P[–1ƒoteO1ö®àN2h­ëOˆW>h’îÆ´#—¶³G8=@÷©Vúaó²FñzÆÙ5~\ƒæÍo–Øå­Ü–õç¨Æh®‹XñUž“³’æK¤ó"Hð>^99è0xõÅO-ÚÇå„RìãpÓÔúV¥ö· €"<ï:ïEN>^99é×ô¢¹?øY7±²Ã¥«Ž£í 1U?´d^íC£}b\ÆvÌtÕuqüè«Çâ 6‘nðAo.£6ç1«Ÿ)#2-ŽûNô4åÔZHÂÄ#yŽIÁ;BäŒçð58ñL’ÙÆ-ã‚[×ËùjÊ‚O¾Óìhª ñ2᫦–¬:ƒrF)§Se8i-AA’ oÊŒUäÓ‡Pg#U¨<¨5ÑŠ[ ]¿fž`RFÎcBÀtèqDšŒð° dv'øFiïâ›Øf %µ¹SÒ‚ŽÝQ ÝñEQ‡ÅºŽ½ªèÖãO±ŽâäÈ#”³1Qåd?ì°@àzP½ÜóËf<¨CË­Ïib>‡ª‡[¾Ô¯t”û%šÍr\G&X•Yr¿FÚüaE_²þÐÒ.Ú!£Rÿ¼}"íºsÉŒ÷J’&–Ù ‘“o!ÁOZµj×V˜¬YU˜om:á°ËÏU=ÅÝE.äˆK¶9C÷dƒßëŠÓVáw`1Æk©I2¨ #.Jgó¢¥§Sè¬]IM§ˆ4»ÈUw]Hlçí•ØÎ§ð*ï£Ug]弊d>[}0Hþ_­eßm¬i÷1(Ý;›i}×k8?Sÿ}+•¦:³—Ãj¬²î™lƒíU.K‹«`¹æã Nk½iF¿b"/†Ô0á{®[9ö¢´üu Úîž- †6ž ¤¸dPŠ˜• w鸡©n@KøÕ@xÙ¤ÀêAP3úÕÝy#ƒ[µX"<è%yʨˆ1„'ðÜÒŠæÇÚLbVdŠÂ)l„qéÎMV¶Ú%™C.zV=¡Qs:,…–4@£vv‚ 8ôç4UÝ&A¤Z&™6¡ö#hJØÀÁ”ò&,œç9<œæ›o ­¼b î|­¹R"CyÎvóOÓ­oâÓ­ÖÆêÿì¥DE¬'ržs“Nsœž¹¢®Þh:äöpj÷)qu3Eöi¡ò%P²ÈUö ‚có“‰VÓ÷ïæH|¶a†l?½éÚ¬¶¨ª.¡8žä¼~D‘ù!dP²9V€!ñÀãó“‚ h¼[Y[­JxÂß z´Dð=M1¢¸‘qrˆO%0âµÛë…–÷Q†%gs3EeľtþμÇýø5àÆO&\ß©^€&ˆ)ÈwXÿ¿&Š“Ã¼Mágoº¾kì-¤¢3¶ãJ' ÜOýûj]5Äz¯†]¾ê™ ?öîôW§ÙêZ/Š!’$‰ncÚ¬Ë4<œŽ£Ôfµ• ¼L¤ó/^â»Hntín&O(MUb%‹‚3‘×ÜfŠÄÕtë»[›o&çeÝ£Ÿ°Mq!aµ•{i=¼Ð›löíþ‰$Ï»ÍB>ãüCß’1É9¢¯Eâ zWŽøFåŽ]ÀI#È`w ÷©–êéˆ_²sÉ'Š·«ªHëö;£ävq°äôUÓ[^÷mö]5Ë €ÓWŽyڬ݈ù½E8ÿ¤]¯Êv@s“ÝñÐùÔ玮Ÿ»o"Å‹ €ÒGöR{ó{Q\Χà»ëëÛ™<Ûm’Lu OaLšÏÎÈp¥IÏR+>÷@–òI7ùEBÃç`y>Š­mà;廊6–Ù-Û‰dY]¤ 2p ¯óœ ˆé1Éóc÷GN9ëPÙÃs<ð_Ïq ¯Ê‹[xr§$ï`~èéÇ=j+Hn'ž éî!uòEŽ-¼9S’w°?ttüè­ZÒ­ +ÿÙ*ÂcM=ŸÂTminus.png&+ÂcM=ŸÂTplus. ôäÿØÿÀRGBAÿÚRGBA?ö}oVþÌ–%ý…¯“$²ÜÞ‘pѨÞ dÉÜúW´ë:¨Ó6šúÊÂ×Êy%¸¼û‹†E%” —î}+ÚµQtÆæ¾²±µ¼’Ü^p‹†E%” —î}+çúÌðljàÖmtû‹}JÊæÊâ×p(1$2+È|Çùÿzç8ëšÎðω­õ»; «]FÒæÎâÛwÉÄÉû¬G!óçýàœã®k;Ã>&¶×,¬n­u K›;‹}ß'úÈ_÷xŽCæ?ÏûÀ'9õͺúÞ““S²B@`ád½Á¶ßWÓcm¯¨Ú) 6ez÷Û}WNŒáïíT Ê8# õô9¢‹Ë;™o`ºµ¹†)"ŽHÈ– `Åf\}ÁùÑukq-Ü76ÓÅÇÆD‘1SÙ†>ïëEÕ¬ò]CqoïëEPд¦´·Ó]&ƒìv¶"ÞÚ¢#dd&2ÆGÝ€€g'>¦¨èšY³¶Ó34ÿÿÿÿÿÿÿÿÿÿÿÿ‘44ÿÿÿÿÿÿÿÿÿÿÿÿšÂ54ÿÿÿÿÿÿÿÿÿÿÿÿ¢û64ÿÿÿÿÿÿÿÿÿÿÿÿ«ô¼¹!–¶bÞÚ£#j˜‹¾ì99õ5KEÓ>Çk§ˆ¤„ZZÙ‹{hcCò¦±vÝ€€g'êh­ÚÚ­Š+ÿÙpng&,ÂcM=ŸÂTypes.gif,-ÂcM=ŸÂ ¶¦ÿØÿÀRGBAÿÚRGBA?éõ}3Sսγ£Ë©]Otº¾µÓ4ÎV Bx¢DŽO/åD tÛú±>½Ö±£Ï©_Opš¾µÒ4ÎVFx¢DŽCʈ@é·õb}~®KĦûH±ÔÊkºúÞAnÒ$‹«ÎPÿtãyEÿÙVariable.gif$.ÂcM=ŸÂVars.gif èØÿØÿÀRGBAÿÚRGBA?éõ{ íKÄRõMhMq$øŽJX!Eö|¨Œ`»NܮÚßõX´‰Òêm_Z†îõî ,Zœ°B‰ ›ÄVUg ‚rïçæ T6ÏÄ=N "Qw.¯­Cux÷-NX!T†M‡djʬápBnMÿ7̨oŸëϵ OU·³Õ„šÏˆm¯¬ mñVrŠø;]~nTàðzt=‹sz^¿»ðßWÕ­uÏA¬i¶äÏÕîJ?u׿åN§CØ·-¥ké¯|:Õõ[}oÄ0júu±3Fu{‚Šä®¿7*px=:ÅŠöCHÕ º¸û-‰˜¼’Mä%Ä]‹!œddàŽ„sÁéé6ð"x§L“Nº°óeI$šÎú¡á.åÈ!œddàŽ„sÁéé~7ð4~*ÒdÓç±óeY%šÒú"¡á.åˆ!œdg‚:Ï¡Qß|9¶Öa¹KÉ›ÈÄw-3z6퀀Äå¥WÑþiÚO‡/tXncÔcÞL4Π’0ŶF=ÅC£ü"Ó4Ÿ ÞèÉ8DÔ#ÞL4Πœ`–Ø T0Œ{Š+ÿÙNet_SmartIRC-1.0.2/docs/HTML/media/images/Tminus.png0000600000175000017500000000031711461276032022530 0ustar clockwerxclockwerx‰PNG  IHDRêYQtIMEÐ &Åb l pHYs ð ðB¬4˜0PLTEÿÿÿ—Ž{`*4tRNS@æØf%IDATxÚc`l›¨  ¤ñ3•”€€µHæâwÄMN,]IEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/Tplus.png0000600000175000017500000000033611461276032022361 0ustar clockwerxclockwerx‰PNG  IHDRêYQtIMEÐ 'ÁÎ*I pHYs ð ðB¬4˜0PLTEÿÿÿ—Ž{y8ÇtRNSÿå·0J3IDATxÚcE!À &6Q% P„0!J LFlLFEEEÜ & ™‹ß ¹ àÔIEND®B`‚Net_SmartIRC-1.0.2/docs/HTML/media/images/Types.gif0000600000175000017500000000203111461276032022331 0ustar clockwerxclockwerxGIF89a÷ssZsscs{J{{R{{c{{k{{s{„Z„„R„„c„„k„„s„„{„ŒZ„ŒkŒŒZŒŒcŒŒkŒŒsŒŒ{ŒŒ„Œ”k”ŒŒ””s””{””„””Œ””””œcœ”„œ”Œœœ„œœŒœœ”œ¥s¥¥s­¥¥­¥­­­”µ­­µµ”µµ¥½µµ½µ½½½”½½œ½½¥½½­½½µ½ÆŒÆ½ÎÆÆŒÆÆœÆÆ­ÆÆµÆÆ½ÆÆÆÆÎŒÎÆÎÎÎŒÎΔÎΜÎεÎÎÎÎÖsÎÖ{ÎÖ„ÎÞ{ÖÎÆÖÖÆÖÞ”ÖÞœÖÞ¥ÞÖÞÞÞ¥ÞÞµÞçŒÞçœÞç¥ÞïŒçç­çï¥çïµïï½ï÷µï÷½÷ïï÷ïÿ÷÷½÷÷Æ÷÷Þ÷÷ï÷÷ÿ÷ÿµÿ÷ïÿ÷÷ÿ÷ÿÿÿÎÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þǰ)fÁ5eØ D¸FÍ…eÔ¨ùò°LB6É ³…D Á Cðâ–- ¹’CE2l¸h,£I•&6°´ˆ°!B„ &8cÆÌ ,x3æÌ™Ø`Ð’%†‡!_ÔÐðŇ”Ø@0cãB1k^$Yq"Š‘ ¸|8såABx]P(¥€2 Δ]£âÆ "3B‰âà諭$áA$ F–LáŒ&fÐ`‘&“%lñpæI&HdÈ0 (¬ð€Á lXÐÁ‚ ¬C`@€>úôŠe*rI˜&C„;Net_SmartIRC-1.0.2/docs/HTML/media/images/Variable.gif0000600000175000017500000000203311461276032022754 0ustar clockwerxclockwerxGIF89a÷!)1JRZck{„Œ”œ¥­µ½ÆÎÖÞï÷ÿ)Jµ½ÎÞ÷ÿÎc{œ­çcsŒ”œ¥½ÖÿŒ”½Î÷ÖB{œÎÞJcs{„¥JkŒÖÖÿÞïÿçççççÿçïïçïÿç÷ÿïïçïïïïïÿï÷ÿ÷ïÿ÷÷ç÷÷ï÷÷÷÷÷ÿ÷ÿç÷ÿï÷ÿ÷÷ÿÿÿ÷ÿÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þ¹@á"e‹.\¨LáråÊ+VÙ² (XžXtèp‹A,‡ôpâä .O¸hÙÂ% r( ¢$&[¸`q¢ ÂŽ : 0ðá„Ê“-G¨‰1ƒÂ NèPB—œT|°˜P#C 5^8ð1@!'?аpÄ… L$°ºJ%lLøð‚„ ÌBå@ %FDtð@®PIÈÈ #ŒHh #¡ 2I%. °H°A,Y:áaÀ ' €€å$ÂÀ à^€–# ·æ‚d‹(YnÀ"ÅaÁ…±‘‡æ2ÅJ”*V;Net_SmartIRC-1.0.2/docs/HTML/media/images/Vars.gif0000600000175000017500000000205011461276032022141 0ustar clockwerxclockwerxGIF89a÷!9BRZks{œ¥ÖÞïB)9­19Œ”ÆÖç{Z!cïZs”{Œ„!­sscss„ss­s{1{sk{s„{{R{{k{{s„„c„Œc„ŒkŒ{sŒ„sŒ„{Œ„„Œ„ŒŒ„œŒŒJŒŒcŒŒkŒŒ{ŒŒ””Œk”Œs”Œ{””{””„””ŒœŒ„œ”„œ¥c¥¥{­­Þµ½kµ½Þ½µ­½µÞ½½c½½ÿ½ÆR½ÆZ½Æs½ÆŒÆ½œÆÆœÆÆ­ÆÆÆÆÎsÎÆsÎÆœÎÆ¥ÎÖkÖÖÎÞÞ­ÞÞ½ÞÞÖÞÞÿÞç”Þç¥ÞçÖçÞ­çÞÆçç¥çïŒçï¥ïï„ïï¥ïïÿï÷µïÿŒ÷ï½÷ïÞ÷÷œ÷÷Æ÷÷Ö÷÷ç÷÷ï÷÷÷÷÷ÿ÷ÿ÷÷ÿÿÿïÿÿ÷ïÿ÷÷ÿ÷ÿÿÿ¥ÿÿÎÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þýôQħ`¢=öâ'?zü( ("‹Š ʨH¢=F€ ‚C¢:ÿhD¨$Ë-e¸ ÙÓP AøŠñe 1P"Pyác‡Ž=6î(DHOœ(¬ˆ#ÈP!ø‘Slj 80H! ›#Ñ ´E…lH ÁMö$¡£ç…,0PâI¼ŠbŠ‚… `€0h b…È„ø“Å ÎTiSÄB %xÀÔ`‚Oh´éb@ Ìt²Ô‘‚áB™'s¦°©­gÇÈBdøpAƒ ŒMZXP”¨ë”ÈN"; ~ö$ê#Huó{¨÷é£' ;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/branch.gif0000600000175000017500000000010611461276032024444 0ustar clockwerxclockwerxGIF89a€ÿÀÀÀ„‚„!ù,@„©Ëí£œ´ÚKÃÕ–WŸm€FŽ&x ’±›;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/branchbottom.gif0000600000175000017500000000011011461276032025664 0ustar clockwerxclockwerxGIF89a€ÿÀÀÀ„‚„!ù,@„©Ëí£œ´ÚKÃÕ–WŸm€FŽ&ˆ¥ªT;¦T;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/branchtop.gif0000600000175000017500000000010311461276032025164 0ustar clockwerxclockwerxGIF89a€ÀÀÀ„‚„!ù,@„©Ëí£œ´Ú‹³Þ\ð…àøyWY¡”Ú;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/Class.gif0000600000175000017500000000206511461276032024262 0ustar clockwerxclockwerxGIF89a÷9JRk{µ½ÆÖ!œ)œÆcÞ!RÖ½!RÖ)RÎ)k¥)s¥19B!BZ­JJ!1Rcckck„kkk)sss!ss1ss„s{s{s„{{{)){B1{s!{s){sB{{{{{{){{9{„{„{„1{„œ{Œœ„„{„{{„„„„„„„„c„„k„„œ„Œ{„Œ„„ÎÖŒ{{Œ„1Œ„BŒ„sŒŒŒŒkŒŒ”ŒŒœŒ”­Œœ””cc”„s”Œk”Œs””s””„”œ”ÆÖœ!!œ)!œckœ„„œŒŒœ”1œ”Œœ”Æ¥¥1¥!!¥„„¥ŒŒ­­­!)µ½!!½ÿÿÆÎÿÿÖÖÖ!ÖÿÿÞÞ9Þÿ÷Þÿÿççïïç÷ïç÷ÿçÿÿïçsïççïïçïï÷ï÷çï÷ïï÷÷ïÿ÷ïÿÿ÷ïï÷÷c÷÷ï÷÷÷÷÷ÿ÷ÿ÷÷ÿÿÿÖÎÿÖÖÿÖÞÿÞçÿçÞÿççÿïçÿïïÿ÷{ÿ÷ïÿ÷÷ÿ÷ÿÿÿkÿÿ½ÿÿÖÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þ? H° Áƒ&ºté¡7o4`Pp¡E&úCh’6 "8 Àà$O>-"dçM ( ˆ"È`¤I–ú(ª£å ƒ¨X„q`¤/IŠôD 8Âà£-eNˆ˜t©Èbйâ§!A6nÐôâ'M3L(ÉtpM8.Jt˜ J4Xh2˜&Ž2*Xñ‰5nl"‰Ë5ºœqâÃP4r¤˜Õ²…ŒV’\„‡P Ox6xðÀ ³© $Z”I )Ù ^(È:ÆK„ôÊ“°¾ýû;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/classFolder.gif0000600000175000017500000000210411461276032025450 0ustar clockwerxclockwerxGIF89a÷19B91R11!kZ)!)19ZJ9s!s{Rs”!{{{k{„k{Œ{„{„{R„{Z„{k„{„„„c„„k„ŒŒ9Œ{Œ„Œ„sŒŒZŒŒcŒŒkŒŒsŒŒ{ŒŒŒŒ”sŒÎ„”s”„R”„c”„Œ”Œk”Œ„”Œ”””B””c””k””„”œ{œJœ„œ”kœœ¥œ¥„¥!¥!J­1­s­”c­µœµµµ½kµ½­µÆB½µs½ÆŒÆÆ!Æ)Æ­ŒÆÆ¥Æ÷kÎÎ1εkÎÎZÎÎsÖÆcÖÆ­ÖÎŒÖÖŒÖÖ”ÖÖœÞÞœÞç„Þç¥Þ÷RçÖ{ççRç÷½ï¥ÆïÎkïÞsïï”ï÷÷ï÷ÿïÿ½ïÿÖïÿïïÿ÷÷!÷­Œ÷µs÷çR÷ïœ÷÷”÷÷µ÷÷ï÷÷÷÷÷ÿ÷ÿ÷÷ÿÿÿœsÿ­{ÿÆ„ÿΜÿÖ„ÿÖœÿÞŒÿÞµÿÞÞÿç1ÿçœÿïµÿïÿÿ÷½ÿ÷Öÿ÷ïÿ÷ÿÿÿ9ÿÿJÿÿ¥ÿÿ­ÿÿ½ÿÿÆÿÿÎÿÿÞÿÿçÿÿïÿÿ÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,þ3 H° Áƒ 6Ê„)Ï¥=˜"æÁÔ¨b&>ab„ÉÒ%.Ì„§ &<(j¤P±b=ñœ,˜gÇ/\î8á°Fž5—8f´qÄ 5JÌ,‚‹.elQi$H“ܰa“ˆÑ¢J.dA) šAR"0aË1,dD!‰L …8ÀÀ‹š,+äldCÑ¡>BÎ4@ Á&jÔ@iN”$C(T€Ae ,ܳBÒŸ'qªdˆQÆ‘£iD =Q+H )Bç‘!Zd´Q @r5ÁÑ¡ÃD<ÔCcÄFf|rAć+4*@(ˆG€è$  € D|SrÍ8|ØèÉdÿM&6#%$à€;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/Disk.gif0000600000175000017500000000170311461276032024105 0ustar clockwerxclockwerxGIF89a÷111999BBBBBJJJJJJRRRRRRZZZZcccccskkkkkssssss„ssŒ{{{„„„„„Œ„„”ŒŒŒ”””œœœœœµ¥¥¥­­­µµµ½½½ÆÆÆÎÎÎÎÎÞÖÖÖÞÞÞçççïïï÷÷÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ,¨IH° Áƒ*\Ȱ¡C8|ѡÇC€ØÐ`$4Žè°¡F‚>€à ¤#Bx@!A 4pAñC ˜àA *DÀ ¡C…ޏð`A"pÀ!„ 0PpÀ€Q‚!8@h@Cƒ@°ƒ#D8M ¡À\ BœDø2ÃÒ"/Ì Ò¡ãÇ#KF;Net_SmartIRC-1.0.2/docs/HTML/media/images/TreeMenuJS/file.png0000600000175000017500000000075111461276032024153 0ustar clockwerxclockwerx‰PNG  IHDRëŠZ,tEXtCreation TimeTue 29 Jan 2002 20:17:29 +0100žu‡PtIMEÓ/­³ pHYsttk$³ÖgAMA± üa@IDATxÚcüÿÿ?¹€‰l@Àg566âQW__Eô? 444üÿý+:pàHëìúêL§±£ÓÁÁÂhhhùÿÿ7išÿÿ~a0²Š ‹3£jùépÑ_×¶$¤·-;| .iÕŒÅf¸N 6¸ÜìU;àìe]6/¯2|C+7¯n‡2!+]ÖÕÇñ7o]³‹ŸSÃ<<€6/¼Â²rVŸõÿûÿ]3PÏš-W€Œ¯ @ãesëˆ H„³­øP›²'ÖìÄE8[.Ä$N•;âuþ$Ì€ˆû¸Ø#âŽÏfdô6ã‡{ÿ_o"|RŸ ‚¤d= bd‚p®caPa`à€°‘Ó6"‘=2) { this.childNodes[this.childNodes.length -2]._last = false; } while (root.parentNode) { root = root.parentNode; } if (root.rendered) { if (this.childNodes.length >= 2) { document.getElementById(this.childNodes[this.childNodes.length -2].id + '-plus').src = ((this.childNodes[this.childNodes.length -2].folder)?webFXTreeConfig.tMinusIcon:webFXTreeConfig.tIcon); if (this.childNodes[this.childNodes.length -2].folder) { this.childNodes[this.childNodes.length -2].plusIcon = webFXTreeConfig.tPlusIcon; this.childNodes[this.childNodes.length -2].minusIcon = webFXTreeConfig.tMinusIcon; } this.childNodes[this.childNodes.length -2]._last = false; } this._last = true; var foo = this; while (foo.parentNode) { for (var i = 0; i < foo.parentNode.childNodes.length; i++) { if (foo.id == foo.parentNode.childNodes[i].id) { break; } } if (++i == foo.parentNode.childNodes.length) { foo.parentNode._last = true; } else { foo.parentNode._last = false; } foo = foo.parentNode; } document.getElementById(this.id + '-cont').insertAdjacentHTML("beforeEnd", node.toString()); if ((!this.folder) && (!this.openIcon)) { this.icon = webFXTreeConfig.folderIcon; this.openIcon = webFXTreeConfig.openFolderIcon; } this.folder = true; this.indent(); this.expand(); } return node; } WebFXTreeAbstractNode.prototype.toggle = function() { if (this.folder) { if (this.open) { this.collapse(); } else { this.expand(); } } } WebFXTreeAbstractNode.prototype.select = function() { document.getElementById(this.id + '-anchor').focus(); } WebFXTreeAbstractNode.prototype.focus = function() { webFXTreeHandler.selected = this; if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.openIcon; } document.getElementById(this.id + '-anchor').style.backgroundColor = 'highlight'; document.getElementById(this.id + '-anchor').style.color = 'highlighttext'; document.getElementById(this.id + '-anchor').focus(); } WebFXTreeAbstractNode.prototype.blur = function() { if ((this.openIcon) && (webFXTreeHandler.behavior != 'classic')) { document.getElementById(this.id + '-icon').src = this.icon; } document.getElementById(this.id + '-anchor').style.backgroundColor = 'transparent'; document.getElementById(this.id + '-anchor').style.color = 'menutext'; } WebFXTreeAbstractNode.prototype.doExpand = function() { if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.openIcon; } if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'block'; } this.open = true; webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '1'); } WebFXTreeAbstractNode.prototype.doCollapse = function() { if (webFXTreeHandler.behavior == 'classic') { document.getElementById(this.id + '-icon').src = this.icon; } if (this.childNodes.length) { document.getElementById(this.id + '-cont').style.display = 'none'; } this.open = false; webFXTreeHandler.cookies.setCookie(this.id.substr(18,this.id.length - 18), '0'); } WebFXTreeAbstractNode.prototype.expandAll = function() { this.expandChildren(); if ((this.folder) && (!this.open)) { this.expand(); } } WebFXTreeAbstractNode.prototype.expandChildren = function() { for (var i = 0; i < this.childNodes.length; i++) { this.childNodes[i].expandAll(); } } WebFXTreeAbstractNode.prototype.collapseAll = function() { if ((this.folder) && (this.open)) { this.collapse(); } this.collapseChildren(); } WebFXTreeAbstractNode.prototype.collapseChildren = function() { for (var i = 0; i < this.childNodes.length; i++) { this.childNodes[i].collapseAll(); } } WebFXTreeAbstractNode.prototype.indent = function(lvl, del, last, level) { /* * Since we only want to modify items one level below ourself, * and since the rightmost indentation position is occupied by * the plus icon we set this to -2 */ if (lvl == null) { lvl = -2; } var state = 0; for (var i = this.childNodes.length - 1; i >= 0 ; i--) { state = this.childNodes[i].indent(lvl + 1, del, last, level); if (state) { return; } } if (del) { if (level >= this._level) { if (this.folder) { document.getElementById(this.id + '-plus').src = (this.open)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.lPlusIcon; this.plusIcon = webFXTreeConfig.lPlusIcon; this.minusIcon = webFXTreeConfig.lMinusIcon; } else { document.getElementById(this.id + '-plus').src = webFXTreeConfig.lIcon; } return 1; } } var foo = document.getElementById(this.id + '-indent-' + lvl); if (foo) { if ((del) && (last)) { foo._last = true; } if (foo._last) { foo.src = webFXTreeConfig.blankIcon; } else { foo.src = webFXTreeConfig.iIcon; } } return 0; } /* * WebFXTree class */ function WebFXTree(sText, sAction, sBehavior, sIcon, sOpenIcon) { this.base = WebFXTreeAbstractNode; this.base(sText, sAction); this.icon = sIcon || webFXTreeConfig.rootIcon; this.openIcon = sOpenIcon || webFXTreeConfig.openRootIcon; /* Defaults to open */ this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '0')?false:true; this.folder = true; this.rendered = false; if (!webFXTreeHandler.behavior) { webFXTreeHandler.behavior = sBehavior || webFXTreeConfig.defaultBehavior; } this.targetWindow = ''; } WebFXTree.prototype = new WebFXTreeAbstractNode; WebFXTree.prototype.setBehavior = function (sBehavior) { webFXTreeHandler.behavior = sBehavior; }; WebFXTree.prototype.getBehavior = function (sBehavior) { return webFXTreeHandler.behavior; }; WebFXTree.prototype.getSelected = function() { if (webFXTreeHandler.selected) { return webFXTreeHandler.selected; } else { return null; } } WebFXTree.prototype.remove = function() { } WebFXTree.prototype.expand = function() { this.doExpand(); } WebFXTree.prototype.collapse = function() { this.focus(); this.doCollapse(); } WebFXTree.prototype.getFirst = function() { return null; } WebFXTree.prototype.getLast = function() { return null; } WebFXTree.prototype.getNextSibling = function() { return null; } WebFXTree.prototype.getPreviousSibling = function() { return null; } WebFXTree.prototype.keydown = function(key) { if (key == 39) { this.expand(); return false; } if (key == 37) { this.collapse(); return false; } if ((key == 40) && (this.open)) { this.childNodes[0].select(); return false; } return true; } WebFXTree.prototype.toString = function() { var str = "

"; str += "
"; for (var i = 0; i < this.childNodes.length; i++) { str += this.childNodes[i].toString(i, this.childNodes.length); } str += "
"; this.rendered = true; return str; }; /* * WebFXTreeItem class */ function WebFXTreeItem(sText, sAction, eParent, sIcon, sOpenIcon) { this.base = WebFXTreeAbstractNode; this.base(sText, sAction); /* Defaults to close */ this.open = (webFXTreeHandler.cookies.getCookie(this.id.substr(18,this.id.length - 18)) == '1')?true:false; if (eParent) { eParent.add(this); } if (sIcon) { this.icon = sIcon; } if (sOpenIcon) { this.openIcon = sOpenIcon; } } WebFXTreeItem.prototype = new WebFXTreeAbstractNode; WebFXTreeItem.prototype.remove = function() { var parentNode = this.parentNode; var prevSibling = this.getPreviousSibling(true); var nextSibling = this.getNextSibling(true); var folder = this.parentNode.folder; var last = ((nextSibling) && (nextSibling.parentNode) && (nextSibling.parentNode.id == parentNode.id))?false:true; this.getPreviousSibling().focus(); this._remove(); if (parentNode.childNodes.length == 0) { parentNode.folder = false; parentNode.open = false; } if (last) { if (parentNode.id == prevSibling.id) { document.getElementById(parentNode.id + '-icon').src = webFXTreeConfig.fileIcon; } else { } } if ((!prevSibling.parentNode) || (prevSibling.parentNode != parentNode)) { parentNode.indent(null, true, last, this._level); } if (document.getElementById(prevSibling.id + '-plus')) { if (nextSibling) { if ((parentNode == prevSibling) && (parentNode.getNextSibling)) { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.tIcon; } else if (nextSibling.parentNode != prevSibling) { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.lIcon; } } else { document.getElementById(prevSibling.id + '-plus').src = webFXTreeConfig.lIcon; } } } WebFXTreeItem.prototype._remove = function() { for (var i = this.childNodes.length - 1; i >= 0; i--) { this.childNodes[i]._remove(); } for (var i = 0; i < this.parentNode.childNodes.length; i++) { if (this.id == this.parentNode.childNodes[i].id) { for (var j = i; j < this.parentNode.childNodes.length; j++) { this.parentNode.childNodes[i] = this.parentNode.childNodes[i+1] } this.parentNode.childNodes.length = this.parentNode.childNodes.length - 1; if (i + 1 == this.parentNode.childNodes.length) { this.parentNode._last = true; } } } webFXTreeHandler.all[this.id] = null; if (document.getElementById(this.id)) { document.getElementById(this.id).innerHTML = ""; document.getElementById(this.id).removeNode(); } } WebFXTreeItem.prototype.expand = function() { this.doExpand(); document.getElementById(this.id + '-plus').src = this.minusIcon; } WebFXTreeItem.prototype.collapse = function() { this.focus(); this.doCollapse(); document.getElementById(this.id + '-plus').src = this.plusIcon; } WebFXTreeItem.prototype.getFirst = function() { return this.childNodes[0]; } WebFXTreeItem.prototype.getLast = function() { if (this.childNodes[this.childNodes.length - 1].open) { return this.childNodes[this.childNodes.length - 1].getLast(); } else { return this.childNodes[this.childNodes.length - 1]; } } WebFXTreeItem.prototype.getNextSibling = function() { for (var i = 0; i < this.parentNode.childNodes.length; i++) { if (this == this.parentNode.childNodes[i]) { break; } } if (++i == this.parentNode.childNodes.length) { return this.parentNode.getNextSibling(); } else { return this.parentNode.childNodes[i]; } } WebFXTreeItem.prototype.getPreviousSibling = function(b) { for (var i = 0; i < this.parentNode.childNodes.length; i++) { if (this == this.parentNode.childNodes[i]) { break; } } if (i == 0) { return this.parentNode; } else { if ((this.parentNode.childNodes[--i].open) || (b && this.parentNode.childNodes[i].folder)) { return this.parentNode.childNodes[i].getLast(); } else { return this.parentNode.childNodes[i]; } } } WebFXTreeItem.prototype.keydown = function(key) { if ((key == 39) && (this.folder)) { if (!this.open) { this.expand(); return false; } else { this.getFirst().select(); return false; } } else if (key == 37) { if (this.open) { this.collapse(); return false; } else { this.parentNode.select(); return false; } } else if (key == 40) { if (this.open) { this.getFirst().select(); return false; } else { var sib = this.getNextSibling(); if (sib) { sib.select(); return false; } } } else if (key == 38) { this.getPreviousSibling().select(); return false; } return true; } WebFXTreeItem.prototype.toString = function (nItem, nItemCount) { var foo = this.parentNode; var indent = ''; if (nItem + 1 == nItemCount) { this.parentNode._last = true; } var i = 0; while (foo.parentNode) { foo = foo.parentNode; indent = "" + indent; i++; } this._level = i; if (this.childNodes.length) { this.folder = 1; } else { this.open = false; } if ((this.folder) || (webFXTreeHandler.behavior != 'classic')) { if (!this.icon) { this.icon = webFXTreeConfig.folderIcon; } if (!this.openIcon) { this.openIcon = webFXTreeConfig.openFolderIcon; } } else if (!this.icon) { this.icon = webFXTreeConfig.fileIcon; } var label = this.text; label = label.replace('<', '<'); label = label.replace('>', '>'); var str = "
"; str += indent; str += "" str += "" + label + "
"; str += "
"; for (var i = 0; i < this.childNodes.length; i++) { str += this.childNodes[i].toString(i,this.childNodes.length); } str += "
"; this.plusIcon = ((this.parentNode._last)?webFXTreeConfig.lPlusIcon:webFXTreeConfig.tPlusIcon); this.minusIcon = ((this.parentNode._last)?webFXTreeConfig.lMinusIcon:webFXTreeConfig.tMinusIcon); return str; }Net_SmartIRC-1.0.2/docs/HTML/media/lib/tab.webfx.css0000600000175000017500000000277611461276032022451 0ustar clockwerxclockwerx/* bright: rgb(234,242,255); normal: rgb(120,172,255); dark: rgb(0,66,174); */ .dynamic-tab-pane-control.tab-pane { position: relative; width: 100%; } .dynamic-tab-pane-control .tab-row .tab { font-family: Verdana, Helvetica, Arial; font-size: 12px; cursor: Default; display: inline; margin: 1px -5px 1px 5px; float: left; padding: 3px 6px 3px 6px; background: rgb(234,242,255); border: 1px solid; border-color: #006600; border-left: 0; border-bottom: 0; border-top: 0; cursor: hand; cursor: pointer; z-index: 1; position: relative; top: 0; } .dynamic-tab-pane-control .tab-row .tab.selected { border: 1px solid #006600; border-bottom: 0; z-index: 3; padding: 2px 6px 5px 6px; margin: 1px -6px -2px 0px; top: -2px; background: white; } .dynamic-tab-pane-control .tab-row .tab a { font-family: Verdana, Helvetica, Arial; font-size: 13px; color: #006600; text-decoration: none; cursor: hand; cursor: pointer; } .dynamic-tab-pane-control .tab-row .hover a { color: #006600; } .dynamic-tab-pane-control .tab-row .tab.selected a { font-weight: bold; } .dynamic-tab-pane-control .tab-page { clear: both; border: 1px solid #006600; background: White; z-index: 2; position: relative; top: -2px; color: Black; font-family: Verdana, Helvetica, Arial; font-size: 13px; padding: 10px; } .dynamic-tab-pane-control .tab-row { z-index: 1; white-space: nowrap; background: rgb(234,242,255); height: 1.85em; width: 100%; } Net_SmartIRC-1.0.2/docs/HTML/media/lib/tabpane.js0000600000175000017500000001557211461276032022025 0ustar clockwerxclockwerx/* * Tab Pane * * This script was created by Erik Arvidsson (erik(at)eae.net) * for WebFX (http://webfx.eae.net) * Copyright 2002 * * For usage see license at http://webfx.eae.net/license.html * * Version: 1.0 * Created: 2002-01-?? First working version * Updated: 2002-02-17 Cleaned up for 1.0 public version * * Dependencies: *.css - a css file to define the layout * */ // This function is used to define if the browser supports the needed // features function hasSupport() { if (typeof hasSupport.support != "undefined") return hasSupport.support; var ie55 = /msie 5\.[56789]/i.test( navigator.userAgent ); hasSupport.support = ( typeof document.implementation != "undefined" && document.implementation.hasFeature( "html", "1.0" ) || ie55 ) // IE55 has a serious DOM1 bug... Patch it! if ( ie55 ) { document._getElementsByTagName = document.getElementsByTagName; document.getElementsByTagName = function ( sTagName ) { if ( sTagName == "*" ) return document.all; else return document._getElementsByTagName( sTagName ); }; } return hasSupport.support; } /////////////////////////////////////////////////////////////////////////////////// // The constructor for tab panes // // el : HTMLElement The html element used to represent the tab pane // bUseCookie : Boolean Optional. Default is true. Used to determine whether to us // persistance using cookies or not // function WebFXTabPane( el, bUseCookie ) { if ( !hasSupport() || el == null ) return; this.element = el; this.element.tabPane = this; this.pages = []; this.selectedIndex = null; this.useCookie = bUseCookie != null ? bUseCookie : true; // add class name tag to class name this.element.className = this.classNameTag + " " + this.element.className; // add tab row this.tabRow = document.createElement( "div" ); this.tabRow.className = "tab-row"; el.insertBefore( this.tabRow, el.firstChild ); var tabIndex = 0; if ( this.useCookie ) { tabIndex = Number( WebFXTabPane.getCookie( "webfxtab_" + this.element.id ) ); if ( isNaN( tabIndex ) ) tabIndex = 0; } this.selectedIndex = tabIndex; // loop through child nodes and add them var cs = el.childNodes; var n; for (var i = 0; i < cs.length; i++) { if (cs[i].nodeType == 1 && cs[i].className == "tab-page") { this.addTabPage( cs[i] ); } } } WebFXTabPane.prototype = { classNameTag: "dynamic-tab-pane-control", setSelectedIndex: function ( n ) { if (this.selectedIndex != n) { if (this.selectedIndex != null && this.pages[ this.selectedIndex ] != null ) this.pages[ this.selectedIndex ].hide(); this.selectedIndex = n; this.pages[ this.selectedIndex ].show(); if ( this.useCookie ) WebFXTabPane.setCookie( "webfxtab_" + this.element.id, n ); // session cookie } }, getSelectedIndex: function () { return this.selectedIndex; }, addTabPage: function ( oElement ) { if ( !hasSupport() ) return; if ( oElement.tabPage == this ) // already added return oElement.tabPage; var n = this.pages.length; var tp = this.pages[n] = new WebFXTabPage( oElement, this, n ); tp.tabPane = this; // move the tab out of the box this.tabRow.appendChild( tp.tab ); if ( n == this.selectedIndex ) tp.show(); else tp.hide(); return tp; } }; // Cookie handling WebFXTabPane.setCookie = function ( sName, sValue, nDays ) { var expires = ""; if ( nDays ) { var d = new Date(); d.setTime( d.getTime() + nDays * 24 * 60 * 60 * 1000 ); expires = "; expires=" + d.toGMTString(); } document.cookie = sName + "=" + sValue + expires + "; path=/"; }; WebFXTabPane.getCookie = function (sName) { var re = new RegExp( "(\;|^)[^;]*(" + sName + ")\=([^;]*)(;|$)" ); var res = re.exec( document.cookie ); return res != null ? res[3] : null; }; WebFXTabPane.removeCookie = function ( name ) { setCookie( name, "", -1 ); }; /////////////////////////////////////////////////////////////////////////////////// // The constructor for tab pages. This one should not be used. // Use WebFXTabPage.addTabPage instead // // el : HTMLElement The html element used to represent the tab pane // tabPane : WebFXTabPane The parent tab pane // nindex : Number The index of the page in the parent pane page array // function WebFXTabPage( el, tabPane, nIndex ) { if ( !hasSupport() || el == null ) return; this.element = el; this.element.tabPage = this; this.index = nIndex; var cs = el.childNodes; for (var i = 0; i < cs.length; i++) { if (cs[i].nodeType == 1 && cs[i].className == "tab") { this.tab = cs[i]; break; } } // insert a tag around content to support keyboard navigation var a = document.createElement( "A" ); a.href = "javascript:void 0;"; while ( this.tab.hasChildNodes() ) a.appendChild( this.tab.firstChild ); this.tab.appendChild( a ); // hook up events, using DOM0 var oThis = this; this.tab.onclick = function () { oThis.select(); }; this.tab.onmouseover = function () { WebFXTabPage.tabOver( oThis ); }; this.tab.onmouseout = function () { WebFXTabPage.tabOut( oThis ); }; } WebFXTabPage.prototype = { show: function () { var el = this.tab; var s = el.className + " selected"; s = s.replace(/ +/g, " "); el.className = s; this.element.style.display = "block"; }, hide: function () { var el = this.tab; var s = el.className; s = s.replace(/ selected/g, ""); el.className = s; this.element.style.display = "none"; }, select: function () { this.tabPane.setSelectedIndex( this.index ); } }; WebFXTabPage.tabOver = function ( tabpage ) { var el = tabpage.tab; var s = el.className + " hover"; s = s.replace(/ +/g, " "); el.className = s; }; WebFXTabPage.tabOut = function ( tabpage ) { var el = tabpage.tab; var s = el.className; s = s.replace(/ hover/g, ""); el.className = s; }; // This function initializes all uninitialized tab panes and tab pages function setupAllTabs() { if ( !hasSupport() ) return; var all = document.getElementsByTagName( "*" ); var l = all.length; var tabPaneRe = /tab\-pane/; var tabPageRe = /tab\-page/; var cn, el; var parentTabPane; for ( var i = 0; i < l; i++ ) { el = all[i] cn = el.className; // no className if ( cn == "" ) continue; // uninitiated tab pane if ( tabPaneRe.test( cn ) && !el.tabPane ) new WebFXTabPane( el ); // unitiated tab page wit a valid tab pane parent else if ( tabPageRe.test( cn ) && !el.tabPage && tabPaneRe.test( el.parentNode.className ) ) { el.parentNode.tabPane.addTabPage( el ); } } } // initialization hook up // DOM2 if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", setupAllTabs, false ); // IE else if ( typeof window.attachEvent != "undefined" ) window.attachEvent( "onload", setupAllTabs ); else { if ( window.onload != null ) { var oldOnload = window.onload; window.onload = function ( e ) { oldOnload( e ); setupAllTabs(); }; } else window.onload = setupAllTabs; }Net_SmartIRC-1.0.2/docs/HTML/media/lib/ua.js0000600000175000017500000000623311461276032021012 0ustar clockwerxclockwerx/* ua.js revision 0.200 2001-12-03 Contributor(s): Bob Clary, Netscape Communications, Copyright 2001 Netscape grants you a royalty free license to use, modify and distribute this software provided that this copyright notice appears on all copies. This software is provided "AS IS," without a warranty of any kind. */ function xbDetectBrowser() { var oldOnError = window.onerror; var element = null; window.onerror = null; // work around bug in xpcdom Mozilla 0.9.1 window.saveNavigator = window.navigator; navigator.OS = ''; navigator.version = parseFloat(navigator.appVersion); navigator.org = ''; navigator.family = ''; var platform; if (typeof(window.navigator.platform) != 'undefined') { platform = window.navigator.platform.toLowerCase(); if (platform.indexOf('win') != -1) navigator.OS = 'win'; else if (platform.indexOf('mac') != -1) navigator.OS = 'mac'; else if (platform.indexOf('unix') != -1 || platform.indexOf('linux') != -1 || platform.indexOf('sun') != -1) navigator.OS = 'nix'; } var i = 0; var ua = window.navigator.userAgent.toLowerCase(); if (ua.indexOf('opera') != -1) { i = ua.indexOf('opera'); navigator.family = 'opera'; navigator.org = 'opera'; navigator.version = parseFloat('0' + ua.substr(i+6), 10); } else if ((i = ua.indexOf('msie')) != -1) { navigator.org = 'microsoft'; navigator.version = parseFloat('0' + ua.substr(i+5), 10); if (navigator.version < 4) navigator.family = 'ie3'; else navigator.family = 'ie4' } else if (ua.indexOf('gecko') != -1) { navigator.family = 'gecko'; var rvStart = navigator.userAgent.indexOf('rv:') + 3; var rvEnd = navigator.userAgent.indexOf(')', rvStart); var rv = navigator.userAgent.substring(rvStart, rvEnd); var decIndex = rv.indexOf('.'); if (decIndex != -1) { rv = rv.replace(/\./g, '') rv = rv.substring(0, decIndex-1) + '.' + rv.substr(decIndex) } navigator.version = parseFloat(rv); if (ua.indexOf('netscape') != -1) navigator.org = 'netscape'; else if (ua.indexOf('compuserve') != -1) navigator.org = 'compuserve'; else navigator.org = 'mozilla'; } else if ((ua.indexOf('mozilla') !=-1) && (ua.indexOf('spoofer')==-1) && (ua.indexOf('compatible') == -1) && (ua.indexOf('opera')==-1)&& (ua.indexOf('webtv')==-1) && (ua.indexOf('hotjava')==-1)) { var is_major = parseFloat(navigator.appVersion); if (is_major < 4) navigator.version = is_major; else { i = ua.lastIndexOf('/') navigator.version = parseFloat('0' + ua.substr(i+1), 10); } navigator.org = 'netscape'; navigator.family = 'nn' + parseInt(navigator.appVersion); } else if ((i = ua.indexOf('aol')) != -1 ) { // aol navigator.family = 'aol'; navigator.org = 'aol'; navigator.version = parseFloat('0' + ua.substr(i+4), 10); } else if ((i = ua.indexOf('hotjava')) != -1 ) { // hotjava navigator.family = 'hotjava'; navigator.org = 'sun'; navigator.version = parseFloat(navigator.appVersion); } window.onerror = oldOnError; } xbDetectBrowser(); Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/mybot.html0000600000175000017500000006130011461276032022470 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class mybot



  • Package: - Net_SmartIRC

Class Methods

channel_test (line 32)
void channel_test ( &$irc, &$data )

[ Top ]

query_test (line 37)
void query_test ( &$irc, &$data )

[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC.html0000600000175000017500000011360011461276032023571 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC
Net_SmartIRC_base
   |
   --Net_SmartIRC_irccommands
      |
      --Net_SmartIRC_messagehandler
         |
         --Net_SmartIRC

$Id: Net_SmartIRC.html 135710 2003-07-23 18:08:55Z meebey $



Inherited Variables

Inherited Methods

Class: Net_SmartIRC_messagehandler

_event_error
_event_err_nicknameinuse
_event_join
_event_kick
_event_mode
_event_nick
_event_part
_event_ping
_event_privmsg
_event_quit
_event_rpl_banlist
_event_rpl_channelmodeis
_event_rpl_endofmotd
_event_rpl_motd
_event_rpl_motdstart
_event_rpl_namreply
_event_rpl_topic
_event_rpl_umodeis
_event_rpl_welcome
_event_rpl_whoreply
_event_topic

Class: Net_SmartIRC_irccommands

ban - bans a hostmask for the given channel or requests the current banlist
changeNick - changes the own nickname
channel - returns an object reference to the specified channel
deop - deops an user in the given channel
devoice - devoice a user in the given channel
getList - gets a list of one ore more channels
getTopic - gets the topic of a channel
invite - invites a user to the specified channel
join - Joins one or more IRC channels with an optional key.
kick - Kicks one or more user from an IRC channel with an optional reason.
message - sends a new message
mode - sets or gets the mode of an user or channel
names - requests all nicknames of one or more channels
op - ops an user in the given channel
part - parts from one or more IRC channels with an optional reason
quit - sends QUIT to IRC server and disconnects
setTopic - sets a new topic of a channel
unban - unbans a hostmask on the given channel
voice - voice a user in the given channel
who - requests a 'WHO' from the specified target
whois - requests a 'WHOIS' from the specified target
whowas - requests a 'WHOWAS' from the specified target (if he left the IRC network)

Class: Net_SmartIRC_base

connect - Creates the sockets and connects to the IRC server on the given port.
disconnect - Disconnects from the IRC server nicely with a QUIT or just destroys the socket.
getMotd - Returns the full motd.
getUsermode - Returns the usermode.
isBanned - Checks if the hostmask is on the specified channel banned and returns the result.
isError
isJoined - checks if we or the given user is joined to the specified channel and returns the result ChannelSyncing is required for this.
isOpped - Checks if we or the given user is opped on the specified channel and returns the result.
isVoiced - Checks if we or the given user is voiced on the specified channel and returns the result.
listen - goes into receive mode
listenFor - waits for a special message type and puts the answer in $result
log - Adds an entry to the log.
login - login and register nickname on the IRC network
Net_SmartIRC - Constructor. Initiales the messagebuffer and "links" the replycodes from global into properties. Also some PHP runtime settings are configured.
reconnect - Reconnects to the IRC server with the same login info, it also rejoins the channels
registerActionhandler - registers a new actionhandler and returns the assigned id
registerTimehandler - registers a timehandler and returns the assigned id
setAutoReconnect - Enables/disables autoreconnecting.
setAutoRetry - Enables/disables autoretry for connecting to a server.
setBenchmark - Enables/disables the benchmark engine.
setChannelSynching - Deprecated, use setChannelSyncing() instead!
setChannelSyncing - Enables/disables channel syncing.
setCtcpVersion - Sets the CTCP version reply string.
setDebug - Sets the level of debug messages.
setDisconnecttime - Sets the delaytime before closing the socket when disconnect.
setLogdestination - Sets the destination of all log messages.
setLogfile - Sets the file for the log if the destination is set to file.
setReceivedelay - Sets the delay for receiving data from the IRC server.
setReceiveTimeout - Sets the receive timeout.
setSenddelay - Sets the delay for sending data to the IRC server.
setTransmitTimeout - Sets the transmit timeout.
setUseSockets - Enables/disables the usage of real sockets.
showBenchmark - Shows the benchmark result.
startBenchmark - Starts the benchmark (sets the counters).
stopBenchmark - Stops the benchmark and displays the result.
throwError
unregisterActionhandler - unregisters an existing actionhandler
unregisterActionid - unregisters an existing actionhandler via the id
unregisterTimeid - unregisters an existing timehandler via the id

Documentation generated on Wed, 23 Jul 2003 19:59:11 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_actionhandler.html0000600000175000017500000006777011461276032026504 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_actionhandler



  • Package: - Net_SmartIRC

Class Variables

$id (line 2280)
Data type: integer

Tags:
  • Access: - public
[ Top ]


$message (line 2292)
Data type: string

Tags:
  • Access: - public
[ Top ]


$method (line 2304)
Data type: string

Tags:
  • Access: - public
[ Top ]


$object (line 2298)
Data type: object

Tags:
  • Access: - public
[ Top ]


$type (line 2286)
Data type: integer

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:12 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_base.html0000600000175000017500000027212411461276032024572 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_base

main SmartIRC class



Child classes:
Net_SmartIRC_irccommands
main SmartIRC class

Class Variables

$channel (line 331)
Data type: array

Description:
Stores all channels in this array where we are joined, works only if channelsyncing is activated.

Eg. for accessing a user, use it like this: (in this example the SmartIRC object is stored in $irc) $irc->channel['#test']->users['meebey']->nick;


Tags:
[ Top ]


$nreplycodes (line 318)
Data type: array

Description:
All numeric IRC replycodes, the index is the numeric replycode.

Tags:
  • Access: - public
  • See: - $SMARTIRC_nreplycodes
[ Top ]


$replycodes (line 309)
Data type: array

Description:
All IRC replycodes, the index is the replycode name.

Tags:
  • Access: - public
  • See: - $SMARTIRC_replycodes
[ Top ]




Class Methods

connect (line 822)
void connect ( $address, $port )

Parameters:
  •  
string   $address  
  •  
integer   $port  

Description:
Creates the sockets and connects to the IRC server on the given port.

Tags:
  • Access: - public
[ Top ]

disconnect (line 890)
boolean disconnect ( [$quickdisconnect = false] )

Parameters:
  •  
boolean   $quickdisconnect   default: false

Description:
Disconnects from the IRC server nicely with a QUIT or just destroys the socket.

Disconnects from the IRC server in the given quickness mode. $quickdisconnect: true, just close the socket false, send QUIT and wait $_disconnectime before closing the socket


Tags:
  • Access: - public
[ Top ]

getMotd (line 798)
array getMotd ( )

Description:
Returns the full motd.

Tags:
  • Access: - public
[ Top ]

getUsermode (line 809)
string getUsermode ( )

Description:
Returns the usermode.

Tags:
  • Access: - public
[ Top ]

isBanned (line 1108)
boolean isBanned ( $channel, $hostmask )

Parameters:
  •  
string   $channel  
  •  
string   $hostmask  

Description:
Checks if the hostmask is on the specified channel banned and returns the result.

ChannelSyncing is required for this.


Tags:
[ Top ]

isError (line 2191)
void isError ( $object )

[ Top ]

isJoined (line 1020)
boolean isJoined ( $channel, [$nickname = null] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  

Description:
checks if we or the given user is joined to the specified channel and returns the result ChannelSyncing is required for this.

Tags:
[ Top ]

isOpped (line 1048)
boolean isOpped ( $channel, [$nickname = null] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  

Description:
Checks if we or the given user is opped on the specified channel and returns the result.

ChannelSyncing is required for this.


Tags:
[ Top ]

isVoiced (line 1078)
boolean isVoiced ( $channel, [$nickname = null] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  

Description:
Checks if we or the given user is voiced on the specified channel and returns the result.

ChannelSyncing is required for this.


Tags:
[ Top ]

listen (line 1135)
boolean listen ( )

Description:
goes into receive mode

Goes into receive and idle mode. Only call this if you want to "spawn" the bot. No further lines of PHP code will be processed after this call, only the bot methods!


Tags:
  • Access: - public
[ Top ]

listenFor (line 1156)
array listenFor ( $messagetype )

Parameters:
  •  
integer   $messagetype   see in the documentation 'Message Types'

Description:
waits for a special message type and puts the answer in $result

Creates a special actionhandler for that given TYPE and returns the answer. This will only receive the requested type, immediately quit and disconnect from the IRC server. Made for showing IRC statistics on your homepage, or other IRC related information.


Tags:
  • Return: - answer from the IRC server for this $messagetype
  • Access: - public
[ Top ]

log (line 735)
void log ( $level, $entry, [$file = null], [$line = null] )

Parameters:
  •  
integer   $level   bit constants (SMARTIRC_DEBUG_*)
  •  
string   $entry   the new log entry

Description:
Adds an entry to the log.

Adds an entry to the log with Linux style log format. Possible $level constants (can also be combined with "|"s) SMARTIRC_DEBUG_NONE SMARTIRC_DEBUG_NOTICE SMARTIRC_DEBUG_CONNECTION SMARTIRC_DEBUG_SOCKET SMARTIRC_DEBUG_IRCMESSAGES SMARTIRC_DEBUG_MESSAGETYPES SMARTIRC_DEBUG_ACTIONHANDLER SMARTIRC_DEBUG_TIMEHANDLER SMARTIRC_DEBUG_MESSAGEHANDLER SMARTIRC_DEBUG_CHANNELSYNCING SMARTIRC_DEBUG_MODULES SMARTIRC_DEBUG_USERSYNCING SMARTIRC_DEBUG_ALL


Tags:
[ Top ]

login (line 981)
void login ( $nick, $realname, [$usermode = 0], [$username = null], [$password = null] )

Parameters:
  •  
string   $nick  
  •  
string   $realname  
  •  
integer   $usermode  
  •  
string   $username  
  •  
string   $password  

Description:
login and register nickname on the IRC network

Registers the nickname and user information on the IRC network.


Tags:
  • Access: - public
[ Top ]

Net_SmartIRC (line 340)
void Net_SmartIRC ( )

Description:
Constructor. Initiales the messagebuffer and "links" the replycodes from global into properties. Also some PHP runtime settings are configured.

Tags:
  • Access: - public
[ Top ]

reconnect (line 940)
void reconnect ( )

Description:
Reconnects to the IRC server with the same login info, it also rejoins the channels

Tags:
  • Access: - public
[ Top ]

registerActionhandler (line 1184)
integer registerActionhandler ( $handlertype, $regexhandler, &$object, $methodname )

Parameters:
  •  
integer   $handlertype   bits constants, see in this documentation Message Types
  •  
string   $regexhandler   the message that has to be in the IRC message in regex syntax
  •  
object   $object   a reference to the objects of the method
  •  
string   $methodname   the methodname that will be called when the handler happens

Description:
registers a new actionhandler and returns the assigned id

Registers an actionhandler in Net_SmartIRC for calling it later. The actionhandler id is needed for unregistering the actionhandler.


Tags:
  • Return: - assigned actionhandler id
  • Access: - public
  • See: - example.php
[ Top ]

registerTimehandler (line 1292)
integer registerTimehandler ( $interval, &$object, $methodname )

Parameters:
  •  
integer   $interval   interval time in milliseconds
  •  
object   $object   a reference to the objects of the method
  •  
string   $methodname   the methodname that will be called when the handler happens

Description:
registers a timehandler and returns the assigned id

Registers a timehandler in Net_SmartIRC, which will be called in the specified interval. The timehandler id is needed for unregistering the timehandler.


Tags:
  • Return: - assigned timehandler id
  • Access: - public
  • See: - example7.php
[ Top ]

setAutoReconnect (line 608)
void setAutoReconnect ( $boolean )

Parameters:
  •  
boolean   $boolean  

Description:
Enables/disables autoreconnecting.

Tags:
  • Access: - public
[ Top ]

setAutoRetry (line 624)
void setAutoRetry ( $boolean )

Parameters:
  •  
boolean   $boolean  

Description:
Enables/disables autoretry for connecting to a server.

Tags:
  • Access: - public
[ Top ]

setBenchmark (line 439)
void setBenchmark ( $boolean )

Parameters:
  •  
boolean   $boolean  

Description:
Enables/disables the benchmark engine.

Tags:
  • Access: - public
[ Top ]

setChannelSynching (line 456)
void setChannelSynching ( $boolean )

Parameters:
  •  
boolean   $boolean  

Description:
Deprecated, use setChannelSyncing() instead!

Tags:
  • Access: - public
  • Deprecated: - 
[ Top ]

setChannelSyncing (line 472)
void setChannelSyncing ( $boolean )

Parameters:
  •  
boolean   $boolean  

Description:
Enables/disables channel syncing.

Channel syncing means, all users on all channel we are joined are tracked in the channel array. This makes it very handy for botcoding.


Tags:
  • Access: - public
[ Top ]

setCtcpVersion (line 494)
void setCtcpVersion ( $versionstring )

Parameters:
  •  
string   $versionstring  

Description:
Sets the CTCP version reply string.

Tags:
  • Access: - public
[ Top ]

setDebug (line 427)
void setDebug ( $level )

Parameters:
  •  
integer   $level  

Description:
Sets the level of debug messages.

Sets the debug level (bitwise), useful for testing/developing your code. Here the list of all possible debug levels: SMARTIRC_DEBUG_NONE SMARTIRC_DEBUG_NOTICE SMARTIRC_DEBUG_CONNECTION SMARTIRC_DEBUG_SOCKET SMARTIRC_DEBUG_IRCMESSAGES SMARTIRC_DEBUG_MESSAGETYPES SMARTIRC_DEBUG_ACTIONHANDLER SMARTIRC_DEBUG_TIMEHANDLER SMARTIRC_DEBUG_MESSAGEHANDLER SMARTIRC_DEBUG_CHANNELSYNCING SMARTIRC_DEBUG_MODULES SMARTIRC_DEBUG_USERSYNCING SMARTIRC_DEBUG_ALL

Default: SMARTIRC_DEBUG_NOTICE


Tags:
[ Top ]

setDisconnecttime (line 552)
void setDisconnecttime ( $milliseconds )

Parameters:
  •  
integer   $milliseconds  

Description:
Sets the delaytime before closing the socket when disconnect.

Tags:
  • Access: - public
[ Top ]

setLogdestination (line 514)
void setLogdestination ( $type )

Parameters:
  •  
integer   $type   must be on of the constants

Description:
Sets the destination of all log messages.

Sets the destination of log messages. $type can be: SMARTIRC_FILE for saving the log into a file SMARTIRC_STDOUT for echoing the log to stdout SMARTIRC_SYSLOG for sending the log to the syslog Default: SMARTIRC_STDOUT


Tags:
[ Top ]

setLogfile (line 540)
void setLogfile ( $file )

Parameters:
  •  
string   $file  

Description:
Sets the file for the log if the destination is set to file.

Sets the logfile, if logdestination is set to SMARTIRC_FILE. This should be only used with full path!


Tags:
  • Access: - public
[ Top ]

setReceivedelay (line 572)
void setReceivedelay ( $milliseconds )

Parameters:
  •  
integer   $milliseconds  

Description:
Sets the delay for receiving data from the IRC server.

Sets the delaytime between messages that are received, this reduces your CPU load. Don't set this too low (min 100ms). Default: 100


Tags:
  • Access: - public
[ Top ]

setReceiveTimeout (line 643)
void setReceiveTimeout ( $seconds )

Parameters:
  •  
integer   $seconds  

Description:
Sets the receive timeout.

If the timeout occurs, the connection will be reinitialized Default: 300 seconds


Tags:
  • Access: - public
[ Top ]

setSenddelay (line 592)
void setSenddelay ( $milliseconds )

Parameters:
  •  
integer   $milliseconds  

Description:
Sets the delay for sending data to the IRC server.

Sets the delaytime between messages that are sent, because IRC servers doesn't like floods. This will avoid sending your messages too fast to the IRC server. Default: 250


Tags:
  • Access: - public
[ Top ]

setTransmitTimeout (line 662)
void setTransmitTimeout ( $seconds )

Parameters:
  •  
integer   $seconds  

Description:
Sets the transmit timeout.

If the timeout occurs, the connection will be reinitialized Default: 300 seconds


Tags:
  • Access: - public
[ Top ]

setUseSockets (line 378)
void setUseSockets ( $boolean )

Parameters:
  •  
bool   $boolean  

Description:
Enables/disables the usage of real sockets.

Enables/disables the usage of real sockets instead of fsocks (works only if your PHP build has loaded the PHP socket extension) Default: false


Tags:
  • Access: - public
[ Top ]

showBenchmark (line 705)
void showBenchmark ( )

Description:
Shows the benchmark result.

Tags:
  • Access: - public
[ Top ]

startBenchmark (line 677)
void startBenchmark ( )

Description:
Starts the benchmark (sets the counters).

Tags:
  • Access: - public
[ Top ]

stopBenchmark (line 689)
void stopBenchmark ( )

Description:
Stops the benchmark and displays the result.

Tags:
  • Access: - public
[ Top ]

throwError (line 2195)
void &throwError ( $message )

[ Top ]

unregisterActionhandler (line 1216)
boolean unregisterActionhandler ( $handlertype, $regexhandler, &$object, $methodname )

Parameters:
  •  
integer   $handlertype  
  •  
string   $regexhandler  
  •  
object   $object  
  •  
string   $methodname  

Description:
unregisters an existing actionhandler

Tags:
  • Access: - public
[ Top ]

unregisterActionid (line 1257)
boolean unregisterActionid ( $id )

Parameters:
  •  
integer   $id  

Description:
unregisters an existing actionhandler via the id

Tags:
  • Access: - public
[ Top ]

unregisterTimeid (line 1321)
boolean unregisterTimeid ( $id )

Parameters:
  •  
integer   $id  

Description:
unregisters an existing timehandler via the id

Tags:
[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:12 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_channel.html0000600000175000017500000007563011461276032025273 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_channel



  • Package: - Net_SmartIRC

Class Variables

$bans (line 2382)
Data type: array

Tags:
  • Access: - public
[ Top ]


$key (line 2358)
Data type: string

Tags:
  • Access: - public
[ Top ]


$mode (line 2394)
Data type: string

Tags:
  • Access: - public
[ Top ]


$name (line 2352)
Data type: string

Tags:
  • Access: - public
[ Top ]


$ops (line 2370)
Data type: array

Tags:
  • Access: - public
[ Top ]


$topic (line 2388)
Data type: string

Tags:
  • Access: - public
[ Top ]


$users (line 2364)
Data type: array

Tags:
  • Access: - public
[ Top ]


$voices (line 2376)
Data type: array

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_channeluser.html0000600000175000017500000006542411461276032026172 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_channeluser
Net_SmartIRC_user
   |
   --Net_SmartIRC_channeluser



  • Package: - Net_SmartIRC

Inherited Variables

Class Variables

$op (line 2460)
Data type: boolean

Tags:
  • Access: - public
[ Top ]


$voice (line 2466)
Data type: boolean

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_data.html0000600000175000017500000010176511461276032024573 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_data



  • Package: - Net_SmartIRC

Class Variables

$channel (line 2238)
Data type: string

Tags:
  • Access: - public
[ Top ]


$from (line 2214)
Data type: string

Tags:
  • Access: - public
[ Top ]


$host (line 2232)
Data type: string

Tags:
  • Access: - public
[ Top ]


$ident (line 2226)
Data type: string

Tags:
  • Access: - public
[ Top ]


$message (line 2244)
Data type: string

Tags:
  • Access: - public
[ Top ]


$messageex (line 2250)
Data type: array

Tags:
  • Access: - public
[ Top ]


$nick (line 2220)
Data type: string

Tags:
  • Access: - public
[ Top ]


$rawmessage (line 2262)
Data type: string

Tags:
  • Access: - public
[ Top ]


$rawmessageex (line 2268)
Data type: array

Tags:
  • Access: - public
[ Top ]


$type (line 2256)
Data type: integer

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_Error.html0000600000175000017500000006376111461276032024756 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_Error



  • Package: - Net_SmartIRC

Class Variables

$error_msg (line 2509)
Data type: mixed

[ Top ]




Class Methods

Net_SmartIRC_Error (line 2511)
void constructor Net_SmartIRC_Error ( $message )

[ Top ]

getMessage (line 2516)
void getMessage ( )

[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_irccommands.html0000600000175000017500000023003311461276032026150 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_irccommands
Net_SmartIRC_base
   |
   --Net_SmartIRC_irccommands

$Id: Net_SmartIRC_irccommands.html 135710 2003-07-23 18:08:55Z meebey $



Child classes:
Net_SmartIRC_messagehandler
$Id: Net_SmartIRC_irccommands.html 135710 2003-07-23 18:08:55Z meebey $

Inherited Variables

Inherited Methods

Class: Net_SmartIRC_base

connect - Creates the sockets and connects to the IRC server on the given port.
disconnect - Disconnects from the IRC server nicely with a QUIT or just destroys the socket.
getMotd - Returns the full motd.
getUsermode - Returns the usermode.
isBanned - Checks if the hostmask is on the specified channel banned and returns the result.
isError
isJoined - checks if we or the given user is joined to the specified channel and returns the result ChannelSyncing is required for this.
isOpped - Checks if we or the given user is opped on the specified channel and returns the result.
isVoiced - Checks if we or the given user is voiced on the specified channel and returns the result.
listen - goes into receive mode
listenFor - waits for a special message type and puts the answer in $result
log - Adds an entry to the log.
login - login and register nickname on the IRC network
Net_SmartIRC - Constructor. Initiales the messagebuffer and "links" the replycodes from global into properties. Also some PHP runtime settings are configured.
reconnect - Reconnects to the IRC server with the same login info, it also rejoins the channels
registerActionhandler - registers a new actionhandler and returns the assigned id
registerTimehandler - registers a timehandler and returns the assigned id
setAutoReconnect - Enables/disables autoreconnecting.
setAutoRetry - Enables/disables autoretry for connecting to a server.
setBenchmark - Enables/disables the benchmark engine.
setChannelSynching - Deprecated, use setChannelSyncing() instead!
setChannelSyncing - Enables/disables channel syncing.
setCtcpVersion - Sets the CTCP version reply string.
setDebug - Sets the level of debug messages.
setDisconnecttime - Sets the delaytime before closing the socket when disconnect.
setLogdestination - Sets the destination of all log messages.
setLogfile - Sets the file for the log if the destination is set to file.
setReceivedelay - Sets the delay for receiving data from the IRC server.
setReceiveTimeout - Sets the receive timeout.
setSenddelay - Sets the delay for sending data to the IRC server.
setTransmitTimeout - Sets the transmit timeout.
setUseSockets - Enables/disables the usage of real sockets.
showBenchmark - Shows the benchmark result.
startBenchmark - Starts the benchmark (sets the counters).
stopBenchmark - Stops the benchmark and displays the result.
throwError
unregisterActionhandler - unregisters an existing actionhandler
unregisterActionid - unregisters an existing actionhandler via the id
unregisterTimeid - unregisters an existing timehandler via the id

Class Methods

ban (line 323)
void ban ( $channel, [$hostmask = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $hostmask  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
bans a hostmask for the given channel or requests the current banlist

The banlist will be requested if no hostmask is specified


Tags:
  • Access: - public
[ Top ]

changeNick (line 370)
void changeNick ( $newnick, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $newnick  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
changes the own nickname

Trys to set a new nickname, nickcollisions are handled.


Tags:
  • Access: - public
[ Top ]

channel (line 77)
object &channel ( $channelname )

Parameters:
  •  
string   $channelname  

Description:
returns an object reference to the specified channel

If the channel does not exist (because not joint) false will be returned.


Tags:
  • Return: - reference to the channel object
  • Access: - public
[ Top ]

deop (line 279)
void deop ( $channel, $nickname, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
deops an user in the given channel

Tags:
  • Access: - public
[ Top ]

devoice (line 307)
void devoice ( $channel, $nickname, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
devoice a user in the given channel

Tags:
  • Access: - public
[ Top ]

getList (line 171)
void getList ( [$channelarray = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
mixed   $channelarray  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
gets a list of one ore more channels

Requests a full channellist if $channelarray is not given. (use it with care, usualy its a looooong list)


Tags:
  • Access: - public
[ Top ]

getTopic (line 231)
void getTopic ( $channel, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
gets the topic of a channel

Tags:
  • Access: - public
[ Top ]

invite (line 355)
void invite ( $nickname, $channel, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $nickname  
  •  
string   $channel  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
invites a user to the specified channel

Tags:
  • Access: - public
[ Top ]

join (line 96)
void join ( $channelarray, [$key = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
mixed   $channelarray  
  •  
string   $key  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
Joins one or more IRC channels with an optional key.

Tags:
  • Access: - public
[ Top ]

kick (line 145)
void kick ( $channel, $nicknamearray, [$reason = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
mixed   $nicknamearray  
  •  
string   $reason  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
Kicks one or more user from an IRC channel with an optional reason.

Tags:
  • Access: - public
[ Top ]

message (line 41)
boolean message ( $type, $destination, $message, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
integer   $type   specifies the type, like QUERY/ACTION or CTCP see 'Message Types'
  •  
string   $destination   can be a user or channel
  •  
string   $message   the message

Description:
sends a new message

Sends a message to a channel or user.


Tags:
  • Access: - public
  • See: - DOCUMENTATION
[ Top ]

mode (line 247)
void mode ( $target, [$newmode = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $target   the target, can be an user (only yourself) or a channel
  •  
string   $newmode   the new mode like +mt
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
sets or gets the mode of an user or channel

Changes/requests the mode of the given target.


Tags:
  • Access: - public
[ Top ]

names (line 195)
void names ( [$channelarray = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
mixed   $channelarray  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
requests all nicknames of one or more channels

The requested nickname list also includes op and voice state


Tags:
  • Access: - public
[ Top ]

op (line 265)
void op ( $channel, $nickname, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
ops an user in the given channel

Tags:
  • Access: - public
[ Top ]

part (line 120)
void part ( $channelarray, [$reason = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
mixed   $channelarray  
  •  
string   $reason  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
parts from one or more IRC channels with an optional reason

Tags:
  • Access: - public
[ Top ]

quit (line 423)
void quit ( [$quitmessage = null], [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $quitmessage   optional quitmessage
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
sends QUIT to IRC server and disconnects

Tags:
  • Access: - public
[ Top ]

setTopic (line 218)
void setTopic ( $channel, $newtopic, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $newtopic  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
sets a new topic of a channel

Tags:
  • Access: - public
[ Top ]

unban (line 341)
void unban ( $channel, $hostmask, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $hostmask  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
unbans a hostmask on the given channel

Tags:
  • Access: - public
[ Top ]

voice (line 293)
void voice ( $channel, $nickname, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $channel  
  •  
string   $nickname  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
voice a user in the given channel

Tags:
  • Access: - public
[ Top ]

who (line 383)
void who ( $target, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $target  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
requests a 'WHO' from the specified target

Tags:
  • Access: - public
[ Top ]

whois (line 396)
void whois ( $target, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $target  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
requests a 'WHOIS' from the specified target

Tags:
  • Access: - public
[ Top ]

whowas (line 410)
void whowas ( $target, [$priority = SMARTIRC_MEDIUM] )

Parameters:
  •  
string   $target  
  •  
integer   $priority   message priority, default is SMARTIRC_MEDIUM

Description:
requests a 'WHOWAS' from the specified target (if he left the IRC network)

Tags:
  • Access: - public
[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_ircuser.html0000600000175000017500000006347511461276032025343 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_ircuser
Net_SmartIRC_user
   |
   --Net_SmartIRC_ircuser



  • Package: - Net_SmartIRC

Inherited Variables

Class Variables

$joinedchannels (line 2478)
Data type: array

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_listenfor.html0000600000175000017500000006360511461276032025667 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_listenfor



  • Package: - Net_SmartIRC

Class Variables

$result (line 2490)
Data type: array

Tags:
  • Access: - public
[ Top ]




Class Methods

handler (line 2499)
void handler ( &$irc, &$ircdata )

Parameters:
  •  
object   $irc  
  •  
object   $ircdata  

Description:
stores the received answer into the result array

[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_messagehandler.html0000600000175000017500000015714411461276032026646 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_messagehandler
Net_SmartIRC_base
   |
   --Net_SmartIRC_irccommands
      |
      --Net_SmartIRC_messagehandler

$Id: Net_SmartIRC_messagehandler.html 135710 2003-07-23 18:08:55Z meebey $



Child classes:
Net_SmartIRC
$Id: Net_SmartIRC_messagehandler.html 135710 2003-07-23 18:08:55Z meebey $

Inherited Variables

Inherited Methods

Class: Net_SmartIRC_irccommands

ban - bans a hostmask for the given channel or requests the current banlist
changeNick - changes the own nickname
channel - returns an object reference to the specified channel
deop - deops an user in the given channel
devoice - devoice a user in the given channel
getList - gets a list of one ore more channels
getTopic - gets the topic of a channel
invite - invites a user to the specified channel
join - Joins one or more IRC channels with an optional key.
kick - Kicks one or more user from an IRC channel with an optional reason.
message - sends a new message
mode - sets or gets the mode of an user or channel
names - requests all nicknames of one or more channels
op - ops an user in the given channel
part - parts from one or more IRC channels with an optional reason
quit - sends QUIT to IRC server and disconnects
setTopic - sets a new topic of a channel
unban - unbans a hostmask on the given channel
voice - voice a user in the given channel
who - requests a 'WHO' from the specified target
whois - requests a 'WHOIS' from the specified target
whowas - requests a 'WHOWAS' from the specified target (if he left the IRC network)

Class: Net_SmartIRC_base

connect - Creates the sockets and connects to the IRC server on the given port.
disconnect - Disconnects from the IRC server nicely with a QUIT or just destroys the socket.
getMotd - Returns the full motd.
getUsermode - Returns the usermode.
isBanned - Checks if the hostmask is on the specified channel banned and returns the result.
isError
isJoined - checks if we or the given user is joined to the specified channel and returns the result ChannelSyncing is required for this.
isOpped - Checks if we or the given user is opped on the specified channel and returns the result.
isVoiced - Checks if we or the given user is voiced on the specified channel and returns the result.
listen - goes into receive mode
listenFor - waits for a special message type and puts the answer in $result
log - Adds an entry to the log.
login - login and register nickname on the IRC network
Net_SmartIRC - Constructor. Initiales the messagebuffer and "links" the replycodes from global into properties. Also some PHP runtime settings are configured.
reconnect - Reconnects to the IRC server with the same login info, it also rejoins the channels
registerActionhandler - registers a new actionhandler and returns the assigned id
registerTimehandler - registers a timehandler and returns the assigned id
setAutoReconnect - Enables/disables autoreconnecting.
setAutoRetry - Enables/disables autoretry for connecting to a server.
setBenchmark - Enables/disables the benchmark engine.
setChannelSynching - Deprecated, use setChannelSyncing() instead!
setChannelSyncing - Enables/disables channel syncing.
setCtcpVersion - Sets the CTCP version reply string.
setDebug - Sets the level of debug messages.
setDisconnecttime - Sets the delaytime before closing the socket when disconnect.
setLogdestination - Sets the destination of all log messages.
setLogfile - Sets the file for the log if the destination is set to file.
setReceivedelay - Sets the delay for receiving data from the IRC server.
setReceiveTimeout - Sets the receive timeout.
setSenddelay - Sets the delay for sending data to the IRC server.
setTransmitTimeout - Sets the transmit timeout.
setUseSockets - Enables/disables the usage of real sockets.
showBenchmark - Shows the benchmark result.
startBenchmark - Starts the benchmark (sets the counters).
stopBenchmark - Stops the benchmark and displays the result.
throwError
unregisterActionhandler - unregisters an existing actionhandler
unregisterActionid - unregisters an existing actionhandler via the id
unregisterTimeid - unregisters an existing timehandler via the id

Class Methods

_event_error (line 35)
void _event_error ( &$ircdata )

[ Top ]

_event_err_nicknameinuse (line 402)
void _event_err_nicknameinuse ( &$ircdata )

[ Top ]

_event_join (line 44)
void _event_join ( &$ircdata )

[ Top ]

_event_kick (line 77)
void _event_kick ( &$ircdata )

[ Top ]

_event_mode (line 131)
void _event_mode ( &$ircdata )

[ Top ]

_event_nick (line 91)
void _event_nick ( &$ircdata )

[ Top ]

_event_part (line 70)
void _event_part ( &$ircdata )

[ Top ]

_event_ping (line 30)
void _event_ping ( &$ircdata )

[ Top ]

_event_privmsg (line 231)
void _event_privmsg ( &$ircdata )

[ Top ]

_event_quit (line 84)
void _event_quit ( &$ircdata )

[ Top ]

_event_rpl_banlist (line 383)
void _event_rpl_banlist ( &$ircdata )

[ Top ]

_event_rpl_channelmodeis (line 279)
void _event_rpl_channelmodeis ( &$ircdata )

[ Top ]

_event_rpl_endofmotd (line 269)
void _event_rpl_endofmotd ( &$ircdata )

[ Top ]

_event_rpl_motd (line 264)
void _event_rpl_motd ( &$ircdata )

[ Top ]

_event_rpl_motdstart (line 259)
void _event_rpl_motdstart ( &$ircdata )

[ Top ]

_event_rpl_namreply (line 354)
void _event_rpl_namreply ( &$ircdata )

[ Top ]

_event_rpl_topic (line 392)
void _event_rpl_topic ( &$ircdata )

[ Top ]

_event_rpl_umodeis (line 274)
void _event_rpl_umodeis ( &$ircdata )

[ Top ]

_event_rpl_welcome (line 250)
void _event_rpl_welcome ( &$ircdata )

[ Top ]

_event_rpl_whoreply (line 298)
void _event_rpl_whoreply ( &$ircdata )

[ Top ]

_event_topic (line 223)
void _event_topic ( &$ircdata )

[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:10 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_timehandler.html0000600000175000017500000007010111461276032026143 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_timehandler



  • Package: - Net_SmartIRC

Class Variables

$id (line 2316)
Data type: integer

Tags:
  • Access: - public
[ Top ]


$interval (line 2322)
Data type: integer

Tags:
  • Access: - public
[ Top ]


$lastmicrotimestamp (line 2328)
Data type: integer

Tags:
  • Access: - public
[ Top ]


$method (line 2340)
Data type: string

Tags:
  • Access: - public
[ Top ]


$object (line 2334)
Data type: object

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/Net_SmartIRC_user.html0000600000175000017500000007651411461276032024643 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:



Class Net_SmartIRC_user



  • Package: - Net_SmartIRC

Child classes:

Class Variables

$away (line 2436)
Data type: boolean

Tags:
  • Access: - public
[ Top ]


$hopcount (line 2448)
Data type: integer

Tags:
  • Access: - public
[ Top ]


$host (line 2418)
Data type: string

Tags:
  • Access: - public
[ Top ]


$ident (line 2412)
Data type: string

Tags:
  • Access: - public
[ Top ]


$ircop (line 2430)
Data type: boolean

Tags:
  • Access: - public
[ Top ]


$nick (line 2406)
Data type: string

Tags:
  • Access: - public
[ Top ]


$realname (line 2424)
Data type: string

Tags:
  • Access: - public
[ Top ]


$server (line 2442)
Data type: string

Tags:
  • Access: - public
[ Top ]




Documentation generated on Wed, 23 Jul 2003 19:59:13 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example2_php.html0000600000175000017500000005370311461276032030136 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 28]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example3_php.html0000600000175000017500000005373011461276032030137 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 28]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example4_php.html0000600000175000017500000005373011461276032030140 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 28]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example5_php.html0000600000175000017500000005373011461276032030141 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 28]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example6_php.html0000600000175000017500000005373011461276032030142 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 28]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example7_php.html0000600000175000017500000005373011461276032030143 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 29]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_examples_example_php.html0000600000175000017500000005400611461276032030051 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:

mybot


Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('../SmartIRC.php') [line 28]






Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_SmartIRC_defines_php.html0000600000175000017500000013014711461276032027642 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:



Page Details:

Tags:
  • Package: - Net_SmartIRC






Constants:
'SMARTIRC_'.$key (line 231)
'SMARTIRC_'.$key: $value
[ Top ]

SMARTIRC_BROWSEROUT (line 33)
SMARTIRC_BROWSEROUT: 3
[ Top ]

SMARTIRC_CRITICAL (line 38)
SMARTIRC_CRITICAL: 3
[ Top ]

SMARTIRC_CRLF (line 28)
SMARTIRC_CRLF: "\r\n"
Description:
$Id: _SmartIRC-0.5.5_SmartIRC_defines_php.html 135710 2003-07-23 18:08:55Z meebey $

$Revision: 135710 $ $Author: meebey $ $Date: 2003-07-24 03:38:55 +0930 (Thu, 24 Jul 2003) $

Copyright (c) 2002-2003 Mirco "MEEBEY" Bauer <mail@meebey.net> <http://www.meebey.net>

Full LGPL License: <http://www.meebey.net/lgpl.txt>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


[ Top ]

SMARTIRC_DEBUG_ACTIONHANDLER (line 48)
SMARTIRC_DEBUG_ACTIONHANDLER: 32
[ Top ]

SMARTIRC_DEBUG_ALL (line 55)
SMARTIRC_DEBUG_ALL: 4095
[ Top ]

SMARTIRC_DEBUG_CHANNELSYNCING (line 51)
SMARTIRC_DEBUG_CHANNELSYNCING: 256
[ Top ]

SMARTIRC_DEBUG_CONNECTION (line 44)
SMARTIRC_DEBUG_CONNECTION: 2
[ Top ]

SMARTIRC_DEBUG_IRCMESSAGES (line 46)
SMARTIRC_DEBUG_IRCMESSAGES: 8
[ Top ]

SMARTIRC_DEBUG_MESSAGEHANDLER (line 50)
SMARTIRC_DEBUG_MESSAGEHANDLER: 128
[ Top ]

SMARTIRC_DEBUG_MESSAGEPARSER (line 54)
SMARTIRC_DEBUG_MESSAGEPARSER: 2048
[ Top ]

SMARTIRC_DEBUG_MESSAGETYPES (line 47)
SMARTIRC_DEBUG_MESSAGETYPES: 16
[ Top ]

SMARTIRC_DEBUG_MODULES (line 52)
SMARTIRC_DEBUG_MODULES: 512
[ Top ]

SMARTIRC_DEBUG_NONE (line 42)
SMARTIRC_DEBUG_NONE:
[ Top ]

SMARTIRC_DEBUG_NOTICE (line 43)
SMARTIRC_DEBUG_NOTICE: 1
[ Top ]

SMARTIRC_DEBUG_SOCKET (line 45)
SMARTIRC_DEBUG_SOCKET: 4
[ Top ]

SMARTIRC_DEBUG_TIMEHANDLER (line 49)
SMARTIRC_DEBUG_TIMEHANDLER: 64
[ Top ]

SMARTIRC_DEBUG_USERSYNCING (line 53)
SMARTIRC_DEBUG_USERSYNCING: 1024
[ Top ]

SMARTIRC_FILE (line 31)
SMARTIRC_FILE: 1
[ Top ]

SMARTIRC_HIGH (line 37)
SMARTIRC_HIGH: 2
[ Top ]

SMARTIRC_LOW (line 35)
SMARTIRC_LOW:
[ Top ]

SMARTIRC_MEDIUM (line 36)
SMARTIRC_MEDIUM: 1
[ Top ]

SMARTIRC_NONE (line 34)
SMARTIRC_NONE: 4
[ Top ]

SMARTIRC_STATE_CONNECTED (line 41)
SMARTIRC_STATE_CONNECTED: 2
[ Top ]

SMARTIRC_STATE_CONNECTING (line 40)
SMARTIRC_STATE_CONNECTING: 1
[ Top ]

SMARTIRC_STATE_DISCONNECTED (line 39)
SMARTIRC_STATE_DISCONNECTED:
[ Top ]

SMARTIRC_STDOUT (line 30)
SMARTIRC_STDOUT:
[ Top ]

SMARTIRC_SYSLOG (line 32)
SMARTIRC_SYSLOG: 2
[ Top ]

SMARTIRC_TYPE_ACTION (line 64)
SMARTIRC_TYPE_ACTION: 256
[ Top ]

SMARTIRC_TYPE_ALL (line 86)
SMARTIRC_TYPE_ALL: 1073741823
[ Top ]

SMARTIRC_TYPE_BANLIST (line 77)
SMARTIRC_TYPE_BANLIST: 2097152
[ Top ]

SMARTIRC_TYPE_CHANNEL (line 57)
SMARTIRC_TYPE_CHANNEL: 2
[ Top ]

SMARTIRC_TYPE_CHANNELMODE (line 83)
SMARTIRC_TYPE_CHANNELMODE: 134217728
[ Top ]

SMARTIRC_TYPE_CTCP (line 59)
SMARTIRC_TYPE_CTCP: 8
[ Top ]

SMARTIRC_TYPE_CTCP_REPLY (line 85)
SMARTIRC_TYPE_CTCP_REPLY: 536870912
[ Top ]

SMARTIRC_TYPE_CTCP_REQUEST (line 84)
SMARTIRC_TYPE_CTCP_REQUEST: 268435456
[ Top ]

SMARTIRC_TYPE_ERROR (line 76)
SMARTIRC_TYPE_ERROR: 1048576
[ Top ]

SMARTIRC_TYPE_INFO (line 70)
SMARTIRC_TYPE_INFO: 16384
[ Top ]

SMARTIRC_TYPE_INVITE (line 63)
SMARTIRC_TYPE_INVITE: 128
[ Top ]

SMARTIRC_TYPE_JOIN (line 62)
SMARTIRC_TYPE_JOIN: 64
[ Top ]

SMARTIRC_TYPE_KICK (line 67)
SMARTIRC_TYPE_KICK: 2048
[ Top ]

SMARTIRC_TYPE_LIST (line 71)
SMARTIRC_TYPE_LIST: 32768
[ Top ]

SMARTIRC_TYPE_LOGIN (line 69)
SMARTIRC_TYPE_LOGIN: 8192
[ Top ]

SMARTIRC_TYPE_MODECHANGE (line 74)
SMARTIRC_TYPE_MODECHANGE: 262144
[ Top ]

SMARTIRC_TYPE_MOTD (line 73)
SMARTIRC_TYPE_MOTD: 131072
[ Top ]

SMARTIRC_TYPE_NAME (line 72)
SMARTIRC_TYPE_NAME: 65536
[ Top ]

SMARTIRC_TYPE_NICKCHANGE (line 66)
SMARTIRC_TYPE_NICKCHANGE: 1024
[ Top ]

SMARTIRC_TYPE_NONRELEVANT (line 79)
SMARTIRC_TYPE_NONRELEVANT: 8388608
[ Top ]

SMARTIRC_TYPE_NOTICE (line 60)
SMARTIRC_TYPE_NOTICE: 16
[ Top ]

SMARTIRC_TYPE_PART (line 75)
SMARTIRC_TYPE_PART: 524288
[ Top ]

SMARTIRC_TYPE_QUERY (line 58)
SMARTIRC_TYPE_QUERY: 4
[ Top ]

SMARTIRC_TYPE_QUIT (line 68)
SMARTIRC_TYPE_QUIT: 4096
[ Top ]

SMARTIRC_TYPE_TOPIC (line 78)
SMARTIRC_TYPE_TOPIC: 4194304
[ Top ]

SMARTIRC_TYPE_TOPICCHANGE (line 65)
SMARTIRC_TYPE_TOPICCHANGE: 512
[ Top ]

SMARTIRC_TYPE_UNKNOWN (line 56)
SMARTIRC_TYPE_UNKNOWN: 1
[ Top ]

SMARTIRC_TYPE_USERMODE (line 82)
SMARTIRC_TYPE_USERMODE: 67108864
[ Top ]

SMARTIRC_TYPE_WHO (line 61)
SMARTIRC_TYPE_WHO: 32
[ Top ]

SMARTIRC_TYPE_WHOIS (line 80)
SMARTIRC_TYPE_WHOIS: 16777216
[ Top ]

SMARTIRC_TYPE_WHOWAS (line 81)
SMARTIRC_TYPE_WHOWAS: 33554432
[ Top ]

SMARTIRC_UNUSED (line 29)
SMARTIRC_UNUSED: '*'
[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:08 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_SmartIRC_irccommands_php.html0000600000175000017500000005404611461276032030527 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:

Net_SmartIRC_irccommands
$Id: _SmartIRC-0.5.5_SmartIRC_irccommands_php.html 135710 2003-07-23 18:08:55Z meebey $


Page Details:

Tags:
  • Package: - Net_SmartIRC








Documentation generated on Wed, 23 Jul 2003 19:59:09 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_SmartIRC_messagehandler_php.html0000600000175000017500000005405711461276032031214 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:





Classes:

Net_SmartIRC_messagehandler
$Id: _SmartIRC-0.5.5_SmartIRC_messagehandler_php.html 135710 2003-07-23 18:08:55Z meebey $


Page Details:

Tags:
  • Package: - Net_SmartIRC








Documentation generated on Wed, 23 Jul 2003 19:59:10 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/docs/HTML/Net_SmartIRC/_SmartIRC-0.5.5_SmartIRC_php.html0000600000175000017500000005774711461276032026163 0ustar clockwerxclockwerx PEAR API Documentation :: Net_SmartIRC
PEAR   PEAR API Documentation :: Net_SmartIRC Package Homepage |  Download ApiDoc  

Packages:







Page Details:

Tags:
  • Package: - Net_SmartIRC


Includes:

include_once('SmartIRC/irccommands.php') [line 47]
include_once('SmartIRC/messagehandler.php') [line 48]
include_once('SmartIRC/defines.php') [line 46]




Constants:
SMARTIRC_VERSION (line 49)
SMARTIRC_VERSION: '0.5.5 ($Revision: 135710 $)'
[ Top ]

SMARTIRC_VERSIONSTRING (line 50)
SMARTIRC_VERSIONSTRING: 'Net_SmartIRC '.SMARTIRC_VERSION
[ Top ]



Documentation generated on Wed, 23 Jul 2003 19:59:11 +0200 by phpDocumentor 1.2.0beta1c
HTML layout done by Christian Dickmann and originally inspired by PHPEdit
Net_SmartIRC-1.0.2/examples/example.php0000600000175000017500000000430311461276032020504 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how a mini php bot which could be written include_once('Net/SmartIRC.php'); class mybot { function channel_test(&$irc, &$data) { $irc->message(SMARTIRC_TYPE_CHANNEL, $data->channel, $data->nick.': I dont like tests!'); } function query_test(&$irc, &$data) { // result is send to #smartirc-test (we don't want to spam #test) $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', $data->nick.' said "'.$data->message.'" to me!'); $irc->message(SMARTIRC_TYPE_QUERY, $data->nick, 'I told everyone on #smartirc-test what you said!'); } } $bot = &new mybot(); $irc = &new Net_SmartIRC(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); $irc->registerActionhandler(SMARTIRC_TYPE_QUERY|SMARTIRC_TYPE_NOTICE, '^test', $bot, 'query_test'); $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^test', $bot, 'channel_test'); $irc->connect('irc.freenet.de', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example.php)', 0, 'Net_SmartIRC'); $irc->join(array('#smartirc-test','#test')); $irc->listen(); $irc->disconnect(); ?>Net_SmartIRC-1.0.2/examples/example2.php0000600000175000017500000000372711461276032020577 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how you could show on your homepage how many users are in a specific channel include_once('Net/SmartIRC.php'); $irc = &new Net_SmartIRC(); $irc->startBenchmark(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); $irc->setBenchmark(TRUE); //$irc->connect('irc.freenet.de', 6667); $irc->connect('saberhagen.freenode.net', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example2.php)', 0, 'Net_SmartIRC'); //$irc->getList('#php'); $irc->getList('#C#'); $resultar = $irc->listenFor(SMARTIRC_TYPE_LIST); $irc->disconnect(); $irc->stopBenchmark(); if (is_array($resultar)) { $ircdata = $resultar[0]; $count = $ircdata->rawmessageex[4]; ?> On the IRC Channel #php are Users An error occured, please check the specified server and settings Net_SmartIRC-1.0.2/examples/example3.php0000600000175000017500000000460311461276032020572 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how a mini php bot could be written include_once('Net/SmartIRC.php'); class mybot { function op_list(&$irc, &$data) { $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', 'ops on this channel are:'); $oplist = ''; // Here we're going to get the Channel Operators, the voices and users // Method is available too, e.g. $irc->channel['#test']->users will // Return the channel's users. foreach ($irc->channel['#test']->ops as $key => $value) { $oplist .= ' '.$key; } // result is send to #smartirc-test (we don't want to spam #test) $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', $oplist); } } $bot = &new mybot(); $irc = &new Net_SmartIRC(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); // Using Channel Syncing we will track all users on all channels we are joined // (Note. Use setChannelSyncing instead of setChannelSynching) $irc->setChannelSyncing(TRUE); $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!ops', $bot, 'op_list'); $irc->connect('irc.freenet.de', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example3.php)', 8, 'Net_SmartIRC'); $irc->join(array('#smartirc-test','#test')); $irc->listen(); $irc->disconnect(); ?> Net_SmartIRC-1.0.2/examples/example4.php0000600000175000017500000000524311461276032020574 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how a mini php bot could be written include_once('Net/SmartIRC.php'); class mybot { function realname_check(&$irc, &$data) { // lets loop through all user that are on the #test channel // result is send to #smartirc-test (we don't want to spam #test) foreach ($irc->channel['#test']->users as $value) { $nickname = $value->nick; $realname = $value->realname; // lets match against this realname regex, which wants (capital-letter) *(small-letter) (space) (capital-letter) *(small-letter) if(preg_match('/^[A-Z][a-z]+ ([A-Z][a-z]+(\-[A-Z][a-z]+)?)+/', $realname) == 0) $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', $nickname.' has not valid realname! ('.$realname.')'); else $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', $nickname.' approved ('.$realname.')'); } $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', ''); } } $bot = &new mybot(); $irc = &new Net_SmartIRC(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); // activating the channel synching is important, or we won't have $irc->channel[] available $irc->setChannelSynching(TRUE); $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!realnamecheck', $bot, 'realname_check'); $irc->connect('irc.freenet.de', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example4.php)', 8, 'Net_SmartIRC'); $irc->join(array('#smartirc-test','#test')); $irc->listen(); $irc->disconnect(); ?>Net_SmartIRC-1.0.2/examples/example5.php0000600000175000017500000000400611461276032020571 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how a mini php bot could be written include_once('Net/SmartIRC.php'); class mybot { function kick(&$irc, &$data) { // we need the nickname parameter if(isset($data->messageex[1])) { $nickname = $data->messageex[1]; $channel = $data->channel; $irc->kick($channel, $nickname); } else { $irc->message( $data->type, $data->nick, 'wrong parameter count' ); $irc->message( $data->type, $data->nick, 'usage: !kick $nickname' ); } } } $bot = &new mybot(); $irc = &new Net_SmartIRC(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!kick', $bot, 'kick'); $irc->connect('irc.freenet.de', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example5.php)', 8, 'Net_SmartIRC'); $irc->join('#test'); $irc->listen(); $irc->disconnect(); ?>Net_SmartIRC-1.0.2/examples/example6.php0000600000175000017500000000400011461276032020564 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how a mini php bot could be written include_once('Net/SmartIRC.php'); class mybot { function onjoin_greeting(&$irc, &$data) { // if _we_ join, don't greet ourself, just jump out via return if ($data->nick == $irc->_nick) return; // now check if this is the right channel if ($data->channel == '#test') // it is, lets greet the joint user $irc->message(SMARTIRC_TYPE_CHANNEL, '#test', 'hi '.$data->nick); } } $bot = &new mybot(); $irc = &new Net_SmartIRC(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); $irc->registerActionhandler(SMARTIRC_TYPE_JOIN, '.*', $bot, 'onjoin_greeting'); $irc->connect('irc.freenet.de', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example6.php)', 8, 'Net_SmartIRC'); $irc->join(array('#smartirc-test','#test')); $irc->listen(); $irc->disconnect(); ?>Net_SmartIRC-1.0.2/examples/example7.php0000600000175000017500000000462711461276032020604 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // ---EXAMPLE OF HOW TO USE Net_SmartIRC--- // this code shows how a mini php bot could be written include_once('Net/SmartIRC.php'); class mybot { function saytime_once(&$irc) { global $saytime_once_id; $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', '(once) the time is: '.date('H:i:s')); $irc->unregisterTimeid($saytime_once_id); } function saytime(&$irc) { $irc->message(SMARTIRC_TYPE_CHANNEL, '#smartirc-test', 'the time is: '.date('H:i:s')); } function quit(&$irc, &$ircdata) { $irc->quit("time to say goodbye..."); } } $bot = &new mybot(); $irc = &new Net_SmartIRC(); $irc->setDebug(SMARTIRC_DEBUG_ALL); $irc->setUseSockets(TRUE); // register saytime() to be called every 30 sec. (30,000 milliseconds) $irc->registerTimehandler(30000, $bot, 'saytime'); // register saytime_once() to be called in 10 sec. (10,000 milliseconds) and save the assigned id // which is needed for unregistering the timehandler. $saytime_once_id = $irc->registerTimehandler(10000, $bot, 'saytime_once'); $irc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!quit', $bot, 'quit'); $irc->connect('irc.freenet.de', 6667); $irc->login('Net_SmartIRC', 'Net_SmartIRC Client '.SMARTIRC_VERSION.' (example7.php)', 8, 'Net_SmartIRC'); $irc->join(array('#smartirc-test','#test')); $irc->listen(); $irc->disconnect(); ?>Net_SmartIRC-1.0.2/SmartIRC/defines.php0000600000175000017500000002166711461276032020310 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // don't change this! unless you know what you do define('SMARTIRC_CRLF', "\r\n"); define('SMARTIRC_UNUSED', '*'); define('SMARTIRC_STDOUT', 0); define('SMARTIRC_FILE', 1); define('SMARTIRC_SYSLOG', 2); define('SMARTIRC_BROWSEROUT', 3); define('SMARTIRC_NONE', 4); define('SMARTIRC_LOW', 0); define('SMARTIRC_MEDIUM', 1); define('SMARTIRC_HIGH', 2); define('SMARTIRC_CRITICAL', 3); define('SMARTIRC_STATE_DISCONNECTED', 0); define('SMARTIRC_STATE_CONNECTING', 1); define('SMARTIRC_STATE_CONNECTED', 2); define('SMARTIRC_DEBUG_NONE', 0); define('SMARTIRC_DEBUG_NOTICE', 1); define('SMARTIRC_DEBUG_CONNECTION', 2); define('SMARTIRC_DEBUG_SOCKET', 4); define('SMARTIRC_DEBUG_IRCMESSAGES', 8); define('SMARTIRC_DEBUG_MESSAGETYPES', 16); define('SMARTIRC_DEBUG_ACTIONHANDLER', 32); define('SMARTIRC_DEBUG_TIMEHANDLER', 64); define('SMARTIRC_DEBUG_MESSAGEHANDLER', 128); define('SMARTIRC_DEBUG_CHANNELSYNCING', 256); define('SMARTIRC_DEBUG_MODULES', 512); define('SMARTIRC_DEBUG_USERSYNCING', 1024); define('SMARTIRC_DEBUG_MESSAGEPARSER', 2048); define('SMARTIRC_DEBUG_DCC', 4096); define('SMARTIRC_DEBUG_ALL', 8191); define('SMARTIRC_TYPE_UNKNOWN', 1); define('SMARTIRC_TYPE_CHANNEL', 2); define('SMARTIRC_TYPE_QUERY', 4); define('SMARTIRC_TYPE_CTCP', 8); define('SMARTIRC_TYPE_NOTICE', 16); define('SMARTIRC_TYPE_WHO', 32); define('SMARTIRC_TYPE_JOIN', 64); define('SMARTIRC_TYPE_INVITE', 128); define('SMARTIRC_TYPE_ACTION', 256); define('SMARTIRC_TYPE_TOPICCHANGE', 512); define('SMARTIRC_TYPE_NICKCHANGE', 1024); define('SMARTIRC_TYPE_KICK', 2048); define('SMARTIRC_TYPE_QUIT', 4096); define('SMARTIRC_TYPE_LOGIN', 8192); define('SMARTIRC_TYPE_INFO', 16384); define('SMARTIRC_TYPE_LIST', 32768); define('SMARTIRC_TYPE_NAME', 65536); define('SMARTIRC_TYPE_MOTD', 131072); define('SMARTIRC_TYPE_MODECHANGE', 262144); define('SMARTIRC_TYPE_PART', 524288); define('SMARTIRC_TYPE_ERROR', 1048576); define('SMARTIRC_TYPE_BANLIST', 2097152); define('SMARTIRC_TYPE_TOPIC', 4194304); define('SMARTIRC_TYPE_NONRELEVANT', 8388608); define('SMARTIRC_TYPE_WHOIS', 16777216); define('SMARTIRC_TYPE_WHOWAS', 33554432); define('SMARTIRC_TYPE_USERMODE', 67108864); define('SMARTIRC_TYPE_CHANNELMODE', 134217728); define('SMARTIRC_TYPE_CTCP_REQUEST', 268435456); define('SMARTIRC_TYPE_CTCP_REPLY', 536870912); //define('SMARTIRC_TYPE_DCC', 536870912); define('SMARTIRC_TYPE_ALL', 1073741823); $SMARTIRC_replycodes = array( 'RPL_WELCOME' => '001', 'RPL_YOURHOST' => '002', 'RPL_CREATED' => '003', 'RPL_MYINFO' => '004', 'RPL_BOUNCE' => '005', 'RPL_TRACELINK' => '200', 'RPL_TRACECONNECTING' => '201', 'RPL_TRACEHANDSHAKE' => '202', 'RPL_TRACEUNKNOWN' => '203', 'RPL_TRACEOPERATOR' => '204', 'RPL_TRACEUSER' => '205', 'RPL_TRACESERVER' => '206', 'RPL_TRACESERVICE' => '207', 'RPL_TRACENEWTYPE' => '208', 'RPL_TRACECLASS' => '209', 'RPL_TRACERECONNECT' => '210', 'RPL_STATSLINKINFO' => '211', 'RPL_STATSCOMMANDS' => '212', 'RPL_ENDOFSTATS' => '219', 'RPL_UMODEIS' => '221', 'RPL_SERVLIST' => '234', 'RPL_SERVLISTEND' => '235', 'RPL_STATSUPTIME' => '242', 'RPL_STATSOLINE' => '243', 'RPL_LUSERCLIENT' => '251', 'RPL_LUSEROP' => '252', 'RPL_LUSERUNKNOWN' => '253', 'RPL_LUSERCHANNELS' => '254', 'RPL_LUSERME' => '255', 'RPL_ADMINME' => '256', 'RPL_ADMINLOC1' => '257', 'RPL_ADMINLOC2' => '258', 'RPL_ADMINEMAIL' => '259', 'RPL_TRACELOG' => '261', 'RPL_TRACEEND' => '262', 'RPL_TRYAGAIN' => '263', 'RPL_AWAY' => '301', 'RPL_USERHOST' => '302', 'RPL_ISON' => '303', 'RPL_UNAWAY' => '305', 'RPL_NOWAWAY' => '306', 'RPL_WHOISUSER' => '311', 'RPL_WHOISSERVER' => '312', 'RPL_WHOISOPERATOR' => '313', 'RPL_WHOWASUSER' => '314', 'RPL_ENDOFWHO' => '315', 'RPL_WHOISIDLE' => '317', 'RPL_ENDOFWHOIS' => '318', 'RPL_WHOISCHANNELS' => '319', 'RPL_LISTSTART' => '321', 'RPL_LIST' => '322', 'RPL_LISTEND' => '323', 'RPL_CHANNELMODEIS' => '324', 'RPL_UNIQOPIS' => '325', 'RPL_NOTOPIC' => '331', 'RPL_TOPIC' => '332', 'RPL_INVITING' => '341', 'RPL_SUMMONING' => '342', 'RPL_INVITELIST' => '346', 'RPL_ENDOFINVITELIST' => '347', 'RPL_EXCEPTLIST' => '348', 'RPL_ENDOFEXCEPTLIST' => '349', 'RPL_VERSION' => '351', 'RPL_WHOREPLY' => '352', 'RPL_NAMREPLY' => '353', 'RPL_LINKS' => '364', 'RPL_ENDOFLINKS' => '365', 'RPL_ENDOFNAMES' => '366', 'RPL_BANLIST' => '367', 'RPL_ENDOFBANLIST' => '368', 'RPL_ENDOFWHOWAS' => '369', 'RPL_INFO' => '371', 'RPL_MOTD' => '372', 'RPL_ENDOFINFO' => '374', 'RPL_MOTDSTART' => '375', 'RPL_ENDOFMOTD' => '376', 'RPL_YOUREOPER' => '381', 'RPL_REHASHING' => '382', 'RPL_YOURESERVICE' => '383', 'RPL_TIME' => '391', 'RPL_USERSSTART' => '392', 'RPL_USERS' => '393', 'RPL_ENDOFUSERS' => '394', 'RPL_NOUSERS' => '395', 'ERR_NOSUCHNICK' => '401', 'ERR_NOSUCHSERVER' => '402', 'ERR_NOSUCHCHANNEL' => '403', 'ERR_CANNOTSENDTOCHAN' => '404', 'ERR_TOOMANYCHANNELS' => '405', 'ERR_WASNOSUCHNICK' => '406', 'ERR_TOOMANYTARGETS' => '407', 'ERR_NOSUCHSERVICE' => '408', 'ERR_NOORIGIN' => '409', 'ERR_NORECIPIENT' => '411', 'ERR_NOTEXTTOSEND' => '412', 'ERR_NOTOPLEVEL' => '413', 'ERR_WILDTOPLEVEL' => '414', 'ERR_BADMASK' => '415', 'ERR_UNKNOWNCOMMAND' => '421', 'ERR_NOMOTD' => '422', 'ERR_NOADMININFO' => '423', 'ERR_FILEERROR' => '424', 'ERR_NONICKNAMEGIVEN' => '431', 'ERR_ERRONEUSNICKNAME' => '432', 'ERR_NICKNAMEINUSE' => '433', 'ERR_NICKCOLLISION' => '436', 'ERR_UNAVAILRESOURCE' => '437', 'ERR_USERNOTINCHANNEL' => '441', 'ERR_NOTONCHANNEL' => '442', 'ERR_USERONCHANNEL' => '443', 'ERR_NOLOGIN' => '444', 'ERR_SUMMONDISABLED' => '445', 'ERR_USERSDISABLED' => '446', 'ERR_NOTREGISTERED' => '451', 'ERR_NEEDMOREPARAMS' => '461', 'ERR_ALREADYREGISTRED' => '462', 'ERR_NOPERMFORHOST' => '463', 'ERR_PASSWDMISMATCH' => '464', 'ERR_YOUREBANNEDCREEP' => '465', 'ERR_YOUWILLBEBANNED' => '466', 'ERR_KEYSET' => '467', 'ERR_CHANNELISFULL' => '471', 'ERR_UNKNOWNMODE' => '472', 'ERR_INVITEONLYCHAN' => '473', 'ERR_BANNEDFROMCHAN' => '474', 'ERR_BADCHANNELKEY' => '475', 'ERR_BADCHANMASK' => '476', 'ERR_NOCHANMODES' => '477', 'ERR_BANLISTFULL' => '478', 'ERR_NOPRIVILEGES' => '481', 'ERR_CHANOPRIVSNEEDED' => '482', 'ERR_CANTKILLSERVER' => '483', 'ERR_RESTRICTED' => '484', 'ERR_UNIQOPPRIVSNEEDED' => '485', 'ERR_NOOPERHOST' => '491', 'ERR_UMODEUNKNOWNFLAG' => '501', 'ERR_USERSDONTMATCH' => '502', ); $SMARTIRC_nreplycodes = array(); foreach ($SMARTIRC_replycodes as $key => $value) { define('SMARTIRC_'.$key, $value); $SMARTIRC_nreplycodes[$value] = $key; } ?>Net_SmartIRC-1.0.2/SmartIRC/irccommands.php0000600000175000017500000003272111461276032021163 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ class Net_SmartIRC_irccommands extends Net_SmartIRC_base { /** * sends a new message * * Sends a message to a channel or user. * * @see DOCUMENTATION * @param integer $type specifies the type, like QUERY/ACTION or CTCP see 'Message Types' * @param string $destination can be a user or channel * @param mixed $message the message * @return boolean * @access public */ function message($type, $destination, $messagearray, $priority = SMARTIRC_MEDIUM) { if (!is_array($messagearray)) { $messagearray = array($messagearray); } switch ($type) { case SMARTIRC_TYPE_CHANNEL: case SMARTIRC_TYPE_QUERY: foreach ($messagearray as $message) { $this->_send('PRIVMSG '.$destination.' :'.$message, $priority); } break; case SMARTIRC_TYPE_ACTION: foreach ($messagearray as $message) { $this->_send('PRIVMSG '.$destination.' :'.chr(1).'ACTION '.$message.chr(1), $priority); } break; case SMARTIRC_TYPE_NOTICE: foreach ($messagearray as $message) { $this->_send('NOTICE '.$destination.' :'.$message, $priority); } break; case SMARTIRC_TYPE_CTCP: // backwards compatibilty case SMARTIRC_TYPE_CTCP_REPLY: foreach ($messagearray as $message) { $this->_send('NOTICE '.$destination.' :'.chr(1).$message.chr(1), $priority); } break; case SMARTIRC_TYPE_CTCP_REQUEST: foreach ($messagearray as $message) { $this->_send('PRIVMSG '.$destination.' :'.chr(1).$message.chr(1), $priority); } break; default: return false; } return true; } /** * returns an object reference to the specified channel * * If the channel does not exist (because not joint) false will be returned. * * @param string $channelname * @return object reference to the channel object * @access public */ function &channel($channelname) { if (isset($this->_channels[strtolower($channelname)])) { return $this->_channels[strtolower($channelname)]; } else { return false; } } // /** * Joins one or more IRC channels with an optional key. * * @param mixed $channelarray * @param string $key * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function join($channelarray, $key = null, $priority = SMARTIRC_MEDIUM) { if (!is_array($channelarray)) { $channelarray = array($channelarray); } $channellist = implode(',', $channelarray); if ($key !== null) { $this->_send('JOIN '.$channellist.' '.$key, $priority); } else { $this->_send('JOIN '.$channellist, $priority); } } /** * parts from one or more IRC channels with an optional reason * * @param mixed $channelarray * @param string $reason * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function part($channelarray, $reason = null, $priority = SMARTIRC_MEDIUM) { if (!is_array($channelarray)) { $channelarray = array($channelarray); } $channellist = implode(',', $channelarray); if ($reason !== null) { $this->_send('PART '.$channellist.' :'.$reason, $priority); } else { $this->_send('PART '.$channellist, $priority); } } /** * Kicks one or more user from an IRC channel with an optional reason. * * @param string $channel * @param mixed $nicknamearray * @param string $reason * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function kick($channel, $nicknamearray, $reason = null, $priority = SMARTIRC_MEDIUM) { if (!is_array($nicknamearray)) { $nicknamearray = array($nicknamearray); } $nicknamelist = implode(',', $nicknamearray); if ($reason !== null) { $this->_send('KICK '.$channel.' '.$nicknamelist.' :'.$reason, $priority); } else { $this->_send('KICK '.$channel.' '.$nicknamelist, $priority); } } /** * gets a list of one ore more channels * * Requests a full channellist if $channelarray is not given. * (use it with care, usualy its a looooong list) * * @param mixed $channelarray * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function getList($channelarray = null, $priority = SMARTIRC_MEDIUM) { if ($channelarray !== null) { if (!is_array($channelarray)) { $channelarray = array($channelarray); } $channellist = implode(',', $channelarray); $this->_send('LIST '.$channellist, $priority); } else { $this->_send('LIST', $priority); } } /** * requests all nicknames of one or more channels * * The requested nickname list also includes op and voice state * * @param mixed $channelarray * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function names($channelarray = null, $priority = SMARTIRC_MEDIUM) { if ($channelarray !== null) { if (!is_array($channelarray)) { $channelarray = array($channelarray); } $channellist = implode(',', $channelarray); $this->_send('NAMES '.$channellist, $priority); } else { $this->_send('NAMES', $priority); } } /** * sets a new topic of a channel * * @param string $channel * @param string $newtopic * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function setTopic($channel, $newtopic, $priority = SMARTIRC_MEDIUM) { $this->_send('TOPIC '.$channel.' :'.$newtopic, $priority); } /** * gets the topic of a channel * * @param string $channel * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function getTopic($channel, $priority = SMARTIRC_MEDIUM) { $this->_send('TOPIC '.$channel, $priority); } /** * sets or gets the mode of an user or channel * * Changes/requests the mode of the given target. * * @param string $target the target, can be an user (only yourself) or a channel * @param string $newmode the new mode like +mt * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function mode($target, $newmode = null, $priority = SMARTIRC_MEDIUM) { if ($newmode !== null) { $this->_send('MODE '.$target.' '.$newmode, $priority); } else { $this->_send('MODE '.$target, $priority); } } /** * ops an user in the given channel * * @param string $channel * @param string $nickname * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function op($channel, $nickname, $priority = SMARTIRC_MEDIUM) { $this->mode($channel, '+o '.$nickname, $priority); } /** * deops an user in the given channel * * @param string $channel * @param string $nickname * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function deop($channel, $nickname, $priority = SMARTIRC_MEDIUM) { $this->mode($channel, '-o '.$nickname, $priority); } /** * voice a user in the given channel * * @param string $channel * @param string $nickname * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function voice($channel, $nickname, $priority = SMARTIRC_MEDIUM) { $this->mode($channel, '+v '.$nickname, $priority); } /** * devoice a user in the given channel * * @param string $channel * @param string $nickname * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function devoice($channel, $nickname, $priority = SMARTIRC_MEDIUM) { $this->mode($channel, '-v '.$nickname, $priority); } /** * bans a hostmask for the given channel or requests the current banlist * * The banlist will be requested if no hostmask is specified * * @param string $channel * @param string $hostmask * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function ban($channel, $hostmask = null, $priority = SMARTIRC_MEDIUM) { if ($hostmask !== null) { $this->mode($channel, '+b '.$hostmask, $priority); } else { $this->mode($channel, 'b', $priority); } } /** * unbans a hostmask on the given channel * * @param string $channel * @param string $hostmask * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function unban($channel, $hostmask, $priority = SMARTIRC_MEDIUM) { $this->mode($channel, '-b '.$hostmask, $priority); } /** * invites a user to the specified channel * * @param string $nickname * @param string $channel * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function invite($nickname, $channel, $priority = SMARTIRC_MEDIUM) { $this->_send('INVITE '.$nickname.' '.$channel, $priority); } /** * changes the own nickname * * Trys to set a new nickname, nickcollisions are handled. * * @param string $newnick * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function changeNick($newnick, $priority = SMARTIRC_MEDIUM) { $this->_send('NICK '.$newnick, $priority); $this->_nick = $newnick; } /** * requests a 'WHO' from the specified target * * @param string $target * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function who($target, $priority = SMARTIRC_MEDIUM) { $this->_send('WHO '.$target, $priority); } /** * requests a 'WHOIS' from the specified target * * @param string $target * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function whois($target, $priority = SMARTIRC_MEDIUM) { $this->_send('WHOIS '.$target, $priority); } /** * requests a 'WHOWAS' from the specified target * (if he left the IRC network) * * @param string $target * @param integer $priority message priority, default is SMARTIRC_MEDIUM * @return void * @access public */ function whowas($target, $priority = SMARTIRC_MEDIUM) { $this->_send('WHOWAS '.$target, $priority); } /** * sends QUIT to IRC server and disconnects * * @param string $quitmessage optional quitmessage * @param integer $priority message priority, default is SMARTIRC_CRITICAL * @return void * @access public */ function quit($quitmessage = null, $priority = SMARTIRC_CRITICAL) { if ($quitmessage !== null) { $this->_send('QUIT :'.$quitmessage, $priority); } else { $this->_send('QUIT', $priority); } $this->disconnect(true); } } ?> Net_SmartIRC-1.0.2/SmartIRC/messagehandler.php0000600000175000017500000004530411461276032021647 0ustar clockwerxclockwerx * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ class Net_SmartIRC_messagehandler extends Net_SmartIRC_irccommands { /* misc */ function _event_ping(&$ircdata) { $this->_pong(substr($ircdata->rawmessage, 5)); } function _event_error(&$ircdata) { if ($this->_autoretry == true) { $this->_delayReconnect(); $this->reconnect(); } else { $this->disconnect(true); } } function _event_join(&$ircdata) { if ($this->_channelsyncing == true) { if ($this->_nick == $ircdata->nick) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: joining channel: '.$ircdata->channel, __FILE__, __LINE__); $channel = &new Net_SmartIRC_channel(); $channel->name = $ircdata->channel; $microint = $this->_microint(); $channel->synctime_start = $microint; $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: synctime_start for '.$ircdata->channel.' set to: '.$microint, __FILE__, __LINE__); $this->_channels[strtolower($channel->name)] = &$channel; // the class will get his own who data from the whole who channel list $this->mode($channel->name); $this->who($channel->name); $this->ban($channel->name); } else { // the class didn't join but someone else, lets get his who data $this->who($ircdata->nick); } $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: '.$ircdata->nick.' joins channel: '.$ircdata->channel, __FILE__, __LINE__); $channel = &$this->_channels[strtolower($ircdata->channel)]; $user = &new Net_SmartIRC_channeluser(); $user->nick = $ircdata->nick; $user->ident = $ircdata->ident; $user->host = $ircdata->host; $this->_adduser($channel, $user); } } function _event_part(&$ircdata) { if ($this->_channelsyncing == true) { $this->_removeuser($ircdata); } } function _event_kick(&$ircdata) { if ($this->_channelsyncing == true) { $this->_removeuser($ircdata); } } function _event_quit(&$ircdata) { if ($this->_channelsyncing == true) { $this->_removeuser($ircdata); } } function _event_nick(&$ircdata) { if ($this->_channelsyncing == true) { $newnick = substr($ircdata->rawmessageex[2], 1); $lowerednewnick = strtolower($newnick); $lowerednick = strtolower($ircdata->nick); $channelkeys = array_keys($this->_channels); foreach ($channelkeys as $channelkey) { // loop through all channels $channel = &$this->_channels[$channelkey]; foreach ($channel->users as $uservalue) { // loop through all user in this channel if ($ircdata->nick == $uservalue->nick) { // found him // time for updating the object and his nickname $channel->users[$lowerednewnick] = $channel->users[$lowerednick]; $channel->users[$lowerednewnick]->nick = $newnick; if ($lowerednewnick != $lowerednick) { unset($channel->users[$lowerednick]); } // he was maybe op or voice, update comming if (isset($channel->ops[$ircdata->nick])) { $channel->ops[$newnick] = $channel->ops[$ircdata->nick]; unset($channel->ops[$ircdata->nick]); } if (isset($channel->voices[$ircdata->nick])) { $channel->voices[$newnick] = $channel->voices[$ircdata->nick]; unset($channel->voices[$ircdata->nick]); } break; } } } } } function _event_mode(&$ircdata) { // check if its own usermode if ($ircdata->rawmessageex[2] == $this->_nick) { $this->_usermode = substr($ircdata->rawmessageex[3], 1); } else if ($this->_channelsyncing == true) { // it's not, and we do channel syching $channel = &$this->_channels[strtolower($ircdata->channel)]; $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: updating channel mode for: '.$channel->name, __FILE__, __LINE__); $mode = $ircdata->rawmessageex[3]; $parameters = array_slice($ircdata->rawmessageex, 4); $add = false; $remove = false; $modelength = strlen($mode); for ($i = 0; $i < $modelength; $i++) { switch($mode[$i]) { case '-': $remove = true; $add = false; break; case '+': $add = true; $remove = false; break; // user modes case 'o': $nick = array_shift($parameters); $lowerednick = strtolower($nick); if ($add) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: adding op: '.$nick.' to channel: '.$channel->name, __FILE__, __LINE__); $channel->ops[$nick] = true; $channel->users[$lowerednick]->op = true; } if ($remove) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing op: '.$nick.' to channel: '.$channel->name, __FILE__, __LINE__); unset($channel->ops[$nick]); $channel->users[$lowerednick]->op = false; } break; case 'v': $nick = array_shift($parameters); $lowerednick = strtolower($nick); if ($add) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: adding voice: '.$nick.' to channel: '.$channel->name, __FILE__, __LINE__); $channel->voices[$nick] = true; $channel->users[$lowerednick]->voice = true; } if ($remove) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing voice: '.$nick.' to channel: '.$channel->name, __FILE__, __LINE__); unset($channel->voices[$nick]); $channel->users[$lowerednick]->voice = false; } break; case 'k': $key = array_shift($parameters); if ($add) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: stored channel key for: '.$channel->name, __FILE__, __LINE__); $channel->key = $key; } if ($remove) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removed channel key for: '.$channel->name, __FILE__, __LINE__); $channel->key = ''; } break; case 'l': if ($add) { $limit = array_shift($parameters); $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: stored user limit for: '.$channel->name, __FILE__, __LINE__); $channel->user_limit = $limit; } if ($remove) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removed user limit for: '.$channel->name, __FILE__, __LINE__); $channel->user_limit = false; } break; default: // channel modes if ($mode[$i] == 'b') { $hostmask = array_shift($parameters); if ($add) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: adding ban: '.$hostmask.' for: '.$channel->name, __FILE__, __LINE__); $channel->bans[$hostmask] = true; } if ($remove) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing ban: '.$hostmask.' for: '.$channel->name, __FILE__, __LINE__); unset($channel->bans[$hostmask]); } } else { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: storing unknown channelmode ('.$mode.') in channel->mode for: '.$channel->name, __FILE__, __LINE__); if ($add) { $channel->mode .= $mode[$i]; } if ($remove) { $channel->mode = str_replace($mode[$i], '', $channel->mode); } } } } } } function _event_topic(&$ircdata) { if ($this->_channelsyncing == true) { $channel = &$this->_channels[strtolower($ircdata->rawmessageex[2])]; $channel->topic = $ircdata->message; } } function _event_privmsg(&$ircdata) { if ($ircdata->type & SMARTIRC_TYPE_CTCP_REQUEST) { // substr must be 1,4 because of \001 in CTCP messages if (substr($ircdata->message, 1, 4) == 'PING') { $this->message(SMARTIRC_TYPE_CTCP_REPLY, $ircdata->nick, 'PING '.substr($ircdata->message, 5, -1)); } elseif (substr($ircdata->message, 1, 7) == 'VERSION') { if (!empty($this->_ctcpversion)) { $versionstring = $this->_ctcpversion; } else { $versionstring = SMARTIRC_VERSIONSTRING; } $this->message(SMARTIRC_TYPE_CTCP_REPLY, $ircdata->nick, 'VERSION '.$versionstring); } elseif (substr($ircdata->message, 1, 10) == 'CLIENTINFO') { $this->message(SMARTIRC_TYPE_CTCP_REPLY, $ircdata->nick, 'CLIENTINFO PING VERSION CLIENTINFO'); } } } /* rpl_ */ function _event_rpl_welcome(&$ircdata) { $this->_loggedin = true; $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: logged in', __FILE__, __LINE__); // updating our nickname, that we got (maybe cutted...) $this->_nick = $ircdata->rawmessageex[2]; } function _event_rpl_motdstart(&$ircdata) { $this->_motd[] = $ircdata->message; } function _event_rpl_motd(&$ircdata) { $this->_motd[] = $ircdata->message; } function _event_rpl_endofmotd(&$ircdata) { $this->_motd[] = $ircdata->message; } function _event_rpl_umodeis(&$ircdata) { $this->_usermode = $ircdata->message; } function _event_rpl_channelmodeis(&$ircdata) { if ($this->_channelsyncing == true && $this->isJoined($ircdata->channel)) { $mode = $ircdata->rawmessageex[4]; $parameters = array_slice($ircdata->rawmessageex, 5); $ircdata->rawmessageex = array( 0 => '', 1 => '', 2 => '', 3 => $mode); foreach ($parameters as $value) { $ircdata->rawmessageex[] = $value; } // let _mode() handle the received mode $this->_event_mode($ircdata); } } function _event_rpl_whoreply(&$ircdata) { if ($this->_channelsyncing == true) { $nick = $ircdata->rawmessageex[7]; if ($ircdata->channel == '*') { // we got who info without channel info, so we need to search the user // on all channels and update him foreach ($this->_channels as $channel) { if ($this->isJoined($channel->name, $nick)) { $ircdata->channel = $channel->name; $this->_event_rpl_whoreply($ircdata); } } } else { if (!$this->isJoined($ircdata->channel, $nick)) { return; } $channel = &$this->_channels[strtolower($ircdata->channel)]; $user = &new Net_SmartIRC_channeluser(); $user->ident = $ircdata->rawmessageex[4]; $user->host = $ircdata->rawmessageex[5]; $user->server = $ircdata->rawmessageex[6]; $user->nick = $ircdata->rawmessageex[7]; $user->op = false; $user->voice = false; $user->ircop = false; $usermode = $ircdata->rawmessageex[8]; $usermodelength = strlen($usermode); for ($i = 0; $i < $usermodelength; $i++) { switch ($usermode[$i]) { case 'H': $user->away = false; break; case 'G': $user->away = true; break; case '@': $user->op = true; break; case '+': $user->voice = true; break; case '*': $user->ircop = true; break; } } $user->hopcount = substr($ircdata->rawmessageex[9], 1); $user->realname = implode(array_slice($ircdata->rawmessageex, 10), ' '); $this->_adduser($channel, $user); } } } function _event_rpl_namreply(&$ircdata) { if ($this->_channelsyncing == true) { $channel = &$this->_channels[strtolower($ircdata->channel)]; $userarray = explode(' ', rtrim($ircdata->message)); $userarraycount = count($userarray); for ($i = 0; $i < $userarraycount; $i++) { $user = &new Net_SmartIRC_channeluser(); $usermode = substr($userarray[$i], 0, 1); switch ($usermode) { case '@': $user->op = true; $user->nick = substr($userarray[$i], 1); break; case '+': $user->voice = true; $user->nick = substr($userarray[$i], 1); break; // RFC violating IRC servers might break us case '~': case '&': case '%': $user->nick = substr($userarray[$i], 1); break; default: $user->nick = $userarray[$i]; } $this->_adduser($channel, $user); } } } function _event_rpl_banlist(&$ircdata) { if ($this->_channelsyncing == true && $this->isJoined($ircdata->channel)) { $channel = &$this->_channels[strtolower($ircdata->channel)]; $hostmask = $ircdata->rawmessageex[4]; $channel->bans[$hostmask] = true; } } function _event_rpl_endofbanlist(&$ircdata) { if ($this->_channelsyncing == true && $this->isJoined($ircdata->channel)) { $channel = &$this->getChannel($ircdata->channel); if ($channel->synctime_stop == 0) { // we received end of banlist and the stop timestamp is not set yet $microint = $this->_microint(); $channel->synctime_stop = $microint; $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: synctime_stop for '.$ircdata->channel.' set to: '.$microint, __FILE__, __LINE__); $channel->synctime = ((float)$channel->synctime_stop - (float)$channel->synctime_start); $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: synced channel '.$ircdata->channel.' in '.round($channel->synctime, 2).' secs', __FILE__, __LINE__); } } } function _event_rpl_topic(&$ircdata) { if ($this->_channelsyncing == true) { $channel = &$this->_channels[strtolower($ircdata->channel)]; $topic = substr(implode(array_slice($ircdata->rawmessageex, 4), ' '), 1); $channel->topic = $topic; } } /* err_ */ function _event_err_nicknameinuse(&$ircdata) { $this->_nicknameinuse(); } } ?> Net_SmartIRC-1.0.2/CHANGELOG0000600000175000017500000003354511461276032015746 0ustar clockwerxclockwerx/** * $Id: CHANGELOG 189210 2005-06-25 16:55:46Z meebey $ * $Revision: 189210 $ * $Author: meebey $ * $Date: 2005-06-26 02:25:46 +0930 (Sun, 26 Jun 2005) $ */ v1.1.0: ------ fixes: changes: new: - applied reconnect delay patch (sf.net patch #883820) from Ronald Hummelink added setReconnectdelay() method, allows delay between reconnects. This reduces CPU load and prevents DoS. - applied autoretry patch (sf.net patch #883821) from Ronald Hummelink added setAutoRetryMax() method, makes connect retries cleaner. - added send() method, can be used to send raw message to the IRC server. v0.5.6: ------ fixes: - renamed Net_SmartIRC_base::Net_SmartIRC to Net_SmartIRC_base::Net_SmartIRC_base a PHP4 bug made it work, in PHP5 its fixed and doesn't (closes PEAR bug #1466, sf.net patch #967067) - fixed a bug in _rawreceive() the parser checked if he found a colon (messagepart) but +1 was added, the check never worked right (I found this bug while porting SmartIRC to C#) - fixed bug in _gettype() the regexs was too sloppy, sometimes it got confused, this can break easily the ChannelSync code. - fixed bug in _event_rpl_whoreply() on some IRC networks, the channel info in who replies can't be used, they return sometimes random channels, this can break ChannelSync code. - fixed include paths in example scripts (closes PEAR bug #2042) changes: - applied load socket extension patch (sf.net patch #911993) from Anatoly Techtonik if the socket extension is not loaded, it will now try to load it for *nix and windows. new: - added objListenFor() method it works like listenFor() but returns an array of the received ircdata objects (not just ircdata->message like listenFor() does) v0.5.5: ------- fixes: - fixed a bug in _rawreceive() messages were parsed wrong which caused problems with kick reasons. (thx to sniper for reporting this). - fixed bug in message() CTCP ACTION messages had missing \001 at the end. - fixed a bug in quit(), which caused quit messages not to be sent to the server. - fixed reconnect() bug, it sent the channel join requests right after connect(), and tried to join a channel without a name. - fixes in ChannelSync code When a user joins a channel after SmartIRC, no WHO info is updated in the user object. Fixed wrong update of channel mode when rpl_channelmodeis received. Fixed bug in _mode() method, which caused wrong handling of mode changes. Topic updates are now tracked (thanks to sniper). Fixed bug which caused fatal errors with ChannelSync enabled (closes sf.net bug #705269). Fixed bug in _event_mode(), unhandled modes were stored wrong. Fixed bug in _event_rpl_namreply(), which caused that the first char of the first nick of a namreply got cut (closes sf.net bug #747832). - fixed bug in _checktimer() Which caused problems when a timehandler is unregistered. - fixed _gettye() It wasn't recognizing SMARTIRC_TYPE_ACTION. - removed if(!$obj) check for newly created objects (closes PHP bug #24622), required for PHP 4.1.2 compatibility. changes: - removed all irc commands from SmartIRC.php they have now their own file (SmartIRC/irccommands.php). - Net_SmartIRC_messagehandler class now extends Net_SmartIRC_irccommands. - removed the 1. parameter (&$irc) of all message handlers, not needed anymore. - renamed class Net_SmartIRC_user to Net_SmartIRC_channeluser, added class Net_SmartIRC_ircuser. - added prefix _event to all message handlers (needed because of class restructuring). - tweaked filling of the ircdata objects. - log() now checks the passed debug level bitwise. - $data->message will be null instead of random garbage, if the IRC message has no colon (the message part), - All methods that depend on ChannelSync mode, checks if it's enabled. - Optimized the usage of time() for $this->_lastrx. - updated the URL of a SmartIRC based bot (atbs). - _loggedin is now set to false when the socket is dead, required for proper working reconnect(). - on a reconnect(), the logfile won't be overwritten anymore. - updated phpdoc tags. - all access to the channel array now uses strtolower() for the key. - fixed typo in function name setChannelSynching(), now it's called setChannelSyncing() with a BC wrapper. - removed all SMARTIRC_ prefixes for debug output. - changed isJoined($channel) to isJoined($channel, $nickname) for checking if the specified user is joined. - removed "destructors", because they don't free the memory. new: - added isOpped() isVoiced() isBanned(). - added debug output and debug level for the messageparser. - reconnect() uses now the channel key if one exists. - added channel key syncing in _mode(). - when an actionhandler message regex has a leading '/' then the regex is used as it is, this allows complex perl regex's. - added message type SMARTIRC_TYPE_CTCP_REQUEST and SMARTIRC_CTCP_REPLY for more advanced CTCP. - added new log destinations SMARTIRC_NONE and SMARTIRC_BROWSEROUT (for firendly browserouput). When the script is called from a browser, the BROWSEROUT will automatic be used (closed sf.net bug #708155). - added error handling for socket_select() in _rawreceive(). - added getMessage() to Net_SmartIRC_Error class. - added debug level for ChannelSync code (SMARTIRC_DEBUG_CHANNELSYNCING). - added filename and linenumber to debug output. - added key property to channel class. - added to all IRC commands optional $priority parameter with default value SMARTIRC_MEDIUM. - added isError() for more advanced errorhandling, needed for encapsulation. - added _isValidType() method, which checks for valid SMARTIRC_TYPE_* types. v0.5.1 ------ fixes: - major bugs in ChannelSynching fixed. - fsocks support fixed. - setUseSocket() method fixed. If false was passed as parameter, it tried to load the socket extension. Also warnings are now suppressed with @ in front of dl(). - fixed a typo in reconnect(). - missing SMARTIRC_DEBUG_CHANNELSYNCHING constant added. changes: - new design for HTML documentation used (PEAR template). - moved all examples to their own directory (examples/). - moved the documentation to docs/HTML/. - added new file descriptions to README. - removed not needed parts of DOCUMENTATION (most is now in the HTML version). - updated the HTML documentation. new: - example5/6/7.php added. - setAutoRetry() method added. Autoretrying of connecting to the IRC server, is now supported. v0.5.0 ------ fixes: - fixed critical bug in the main _rawreceive() for() loop, messages were lost. changes: - License changed from GPL to LGPL. - updated in all files the copyright year. - changed documentation tags in front of all methods to the phpDocumentator compatible format. - improved connect() errorhandling. - changed login() parameters to $nick, $realname, $usermode = 0, $username = null, $password = null. - changed join() parameters to $channelarray, $key = null. - changed kick() parameters to $channel, $nicknamearray, $reason = null. - changed listenFor() parameters to $messagetype return value is now the result, instead the of a reference to the result parameter. - sendbuffer has now 3 queues: high, medium and low high sends 2 messages, then 1 of medium low is only send if high _and_ medium is empty. - select() call for sockets is strongly optimized new: - phpDocumentator package tags. - include() for messagehandler.php (needed for the new API). - setChannelSynching() method, for enabling the channel synching. - setCtcpVersion() method, for changing the ctcp version reply string. - setReceiveTimeout() method, for changing the receive timeout. - setTransmitTimeout() method, for changing the transmit timeout. - setAutoReconnect() method, for enabling the autoreconnect feature. - channel variable, a reference to _channels because $object->channel("#chan")->topic is not possible in PHP4 (ZE1). - reconnect() method, it will reconnect and also join all channels. - channel() method, getting a reference to the channel, only if channelsynching is on. - added ident, host, messageex and rawmessageex variables to the Net_SmartIRC_data class. - class Net_SmartIRC_user, stores info about one user, only used if channelsynching is on. - class Net_SmartIRC_channel, stores info about one channel, only used if channelsynching is on. v0.4.0 ------ * phpSmartIRCclass.inc.php: - fixed serious socket bug The buffer of the socket got full because only 512 bytes were read at once, which caused losing some IRC messages that are comming fast like the MOTD. Now it will read 10240 bytes at once, and doesn't loose any IRC message. - fixed sendbuffer The sendbuffer will only be sent, when the class is fully connected and registered on the IRC network. Before if a nickname collision happened, all sent IRC commands from the buffer were ignored by the IRC server. - fixed socket status Socket handling is now compatible with PHP 4.3 dev. - fixed $_nick When the nickname got changed because of nickname is already in use, $_nick will be updated. (thanks for the hint to Andreas Streichardt). - fixed actionhandler ids (unregister caused that the other ids were changed). - fixed TYPE_TOPIC to the right bitoperator value. - added a reference to the IRC class in actionhandler callbacks WARNING: all user writtin methods have to be changed!! method( &$data ) _has to be changed_ to method( &$irc, &$data ) If you don't change those, your IRC scripts will _not_ work anymore! - changed internal methodnames to _methodname - changed sendbuffer Now it uses configurable senddelay, instead of static 2 messages per second (send flood protection). - changed TYPEs All TYPE_* are now bitwise constants, register_actionhandler() can now react to more than one message type. - added TYPE_ACTION for those common /me messages. - added timeevents Added method register_timehandler() unregister_timeid() and reordertimehandler(). Those timehandler can be used to call methods in specified intervalls, e.g. for timeevents. Added needed class CphpSmartIRCclass_timehandler. - moved all IRC related defines to defines.inc.php. - changed if() elseif() structures where possible to switch() for clearer/faster code. - added more debug messages for actionhandler. - added unregister_actionhandler() and unregister_actionid() method. Also added needed reorderactionhandler(), which is called after an unregister methods was called. - added $data->channel to actionhandler callback. * defines.inc.php: - initial import. - now all IRC related defines are now in this file instead of phpSmartIRCclass.inc.php. * DOCUMENTATION: - updated/added methods description * example.php: - changed user function parameter to new style ( &$irc and &$data ). - added TYPE_NOTICE to query_test example. v0.3.2 ------ * phpSmartIRCclass.inc.php: - Replaced all quotes by single quote where possible for speedup. - Added _disconnecttime for doing a clean IRC quit. - Added Zend IDE style documentation for parameter variables types and method descriptions. - Spaces in nickname and username will be automaticly removed. - Nicknamecollisions are automaticly detected and nickname will be changed to nickname with 3 random numbers. - New method nicknameuse(). - Fixed a serious fsock bug. - Added new type TYPE_ERROR. - Fixed wrong usage of & when calling methods with params that are called by reference. - Fixed a debug message "DEBUG: disconnected", now it will only occur when debug mode is enabled. - listen_for() will now do a quickdisconnect, for a big speedup. - Changed logging system, now with debug levels, default is DEBUG_NOTICE. - Added benchmark system, now its possible to time things for doing optimizations. - New methods: benchmark(), benchmarktstart(), benchmarkend() and show_benchmark() for the benchmark system - Added microint(), for getting the microtime as float, needed for the benchmarks. - Added a couple of log() calls, for different debug levels. - fsockets now runs in non blocking mode, because of broken? getstatus for fsockets. - Added mode() method, for chaning modes of a user or channel. - Added op() and deop() method. Added ban() and unban() method (thx for diff file to Peter Petermann). * DOCUMENTATION: - added documentation for new logging system - added the whole DEBUG_* list * HOWTO: - changed parameter description for debug() * example.php: - replaced all quotes by singlequotes where possible. - fixed wrong usage of message() * example2.php: - replaced all quotes by singlquotes where possible. - added benchmark test to the example v0.3.0 ----- * phpSmartIRCclass.inc.php: - added "Ping? Pong!" log message for debugging - added real linux/windows syslog logging to setlogdestination(). - new method listen_for() makes it possible to show irc related information on a homepage, like how many users on a channel are. * HOWTO: - added how to run/call the selfwritten bot * DOCUMENTATION: - added (missing) explaination for new methods * example2.php: - new examplefile with the new listen_for() method v0.2.6 ------ * phpSmartIRCclass.inc.php: - phpSmartIRCclass.inc renamed to phpSmartIRCclass.inc.php because of security reasons - changed function_exists() to get_loaded_extensions() for checking if the PHP build has real socket support - log() changed to create Linux style formated logs - new methods for logging (daemon style) log() for add log entries setlogdestination() can be STDOUT or FILE setlogfile() sets the file - changed received data processing in rawreceive() * HOWTO: - added a mini howto for using the class * DOCUMENTATION: - added class documentation of the project * CREDITS: - added credits file v0.2.5 ------ - improved socket handling - bufferedsend fix - new version number system - cpu usage reduced - added changelog file Net_SmartIRC-1.0.2/CREDITS0000600000175000017500000000250711461276032015546 0ustar clockwerxclockwerx/** * $Id: CREDITS 162253 2004-06-28 19:02:26Z meebey $ * $Revision: 162253 $ * $Author: meebey $ * $Date: 2004-06-29 04:32:26 +0930 (Tue, 29 Jun 2004) $ */ This is the creditslist for SmartIRC The fields are: (N) name (E) email (W) web-address (P) PGP key ID and fingerprint (D) description (S) snail-mail address --------------------------- N: Mirco 'meebey' Bauer E: mail@meebey.net E: meebey@php.net W: www.meebey.net P: 5051C9B9 / EF69 07A4 51AD 689E CF0C 767F CD9C 4C1A 5051 C9B9 D: Project Maintainer S: Kroonhorst 42 S: 22549 Hamburg S: Germany N: Peter Petermann E: webmaster@cyberfly.net W: www.cyberfly.net D: ban/unban diffs N: Andreas Streichardt E: mop@spaceregents.de W: www.spaceregents.de D: several hints for bugfixes D: some patchfiles N: Joern Heissler E: joern@heissler.de W: http://wulf.eu.org/ P: 57C76B66 / 6333 346F D7F4 928D 02B0 FDBF B398 EBC6 57C7 6B66 D: Quality Asurance (QA) D: high improved concept for socket_select() handling S: Willinghusener Weg 100 S: 21509 Glinde S: Germany N: Jani Taskinen E: sniper@php.net D: fixed several bugs N: Ronald Hummelink E: ronaldhummelink@users.sourceforge.net D: reconnect delay patch (sf.net patch #883820) D: autoretry patch (sf.net patch #883821) N: Anatoly Techtonik E: techtonik@users.sourceforge.net D: load socket extension patch (sf.net patch #911993) Net_SmartIRC-1.0.2/FEATURES0000600000175000017500000000332211461276032015663 0ustar clockwerxclockwerx/** * $Id: FEATURES 135613 2003-07-22 14:02:16Z meebey $ * $Revision: 135613 $ * $Author: meebey $ * $Date: 2003-07-22 23:32:16 +0930 (Tue, 22 Jul 2003) $ */ Full featurelist of Net_SmartIRC ------------------------------------- - full object oriented programmed - every received IRC message is parsed into an ircdata object (it contains following info: from, nick, ident, host, channel, message, type, rawmessage) - actionhandler for the API on different types of messages (channel/notice/query/kick/join..) callbacks can be registered - messagehandler for the API class based messagehandling, using IRC reply codes - time events callbacks to methods in intervals - send/receive floodprotection - detects and changes nickname on nickname collisions - autoreconnect, if connection is lost - autoretry for connecting to IRC servers - debugging/logging system with log levels (destination can be file, stdout, syslog or browserout) - supports fsocks and PHP socket extension - supports PHP 4.1.x to 4.3.2 (also PHP 5.0.0b1) - sendbuffer with a queue that has 3 priority levels (high, medium, low) plus a bypass level (critical) - channel syncing (tracking of users/modes/topic etc in objects) - user syncing (tracking the user in channels, nick/ident/host/realname/server/hopcount in objects) - when channel syncing is acticated the following functions are available: isJoined isOpped isVoiced isBanned - on reconnect all joined channels will be rejoined, also when keys are used - own CTCP version reply can be set - IRC commands: pass op deop voice devoice ban unban join part action message notice query ctcp mode topic nick invite list names kick who whois whowas quit Net_SmartIRC-1.0.2/LICENSE0000600000175000017500000006372111461276032015540 0ustar clockwerxclockwerx/** * $Id: LICENSE 111849 2003-01-14 22:16:14Z meebey $ * $Revision: 111849 $ * $Author: meebey $ * $Date: 2003-01-15 08:46:14 +1030 (Wed, 15 Jan 2003) $ */ GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! Net_SmartIRC-1.0.2/README0000600000175000017500000000407311461276032015406 0ustar clockwerxclockwerx/** * $Id: README 135643 2003-07-22 17:57:32Z meebey $ * $Revision: 135643 $ * $Author: meebey $ * $Date: 2003-07-23 03:27:32 +0930 (Wed, 23 Jul 2003) $ */ Net_SmartIRC ---------------- What is this? Net_SmartIRC is a PHP class for communication with IRC networks, which conforms to the RFC 2812 (IRC Protocol). It's an API that handles all IRC protocol messages. It is designed for creating IRC bots, chats and show irc related info on webpages. Please report bugs to: http://sourceforge.net/tracker/?group_id=60664&atid=494859 Project Homepage: http://sourceforge.net/projects/phpsmartirc official PEAR package page: http://pear.php.net/package-info.php?package=Net_SmartIRC files included in SmartIRC -------------------------- SmartIRC.php The class itself. FEATURES A full list of features that SmartIRC includes CHANGELOG Listing of changes between all versions. README this file LICENSE The license of Net_SmartIRC. CREDITS Creditlist with people that work/help on Net_SmartIRC. SmartIRC/ defines.php Nessesary IRC related defines (IRC reply codes). messagehandler.php All defined messagehandler that SmartIRC currently uses for channelsynching and some other API handling. irccommands.php All supported IRC commands (like join/part/kick/etc..) docs/ DOCUMENTATION Appendix to the HTML documention for developers. HOWTO Mini howto with detailed information, step by step. HTML/ index.html the full documenation of SmartIRC examples/ example.php An example of how you can use this class for a mini php bot. example2.php This example shows how to display the amount of users in a specific IRC channel on your homepage. example3.php This bot echos the oplist if !ops is said on the channel. example4.php This bot checks all realnames of people that are on the channel and displays the result. example5.php This bot can kicks users when !kick NICKNAME is said on the channel. example6.php This example shows how an onjoin greeting can be done with SmartIRC. example7.php This is an example how timers can be used and how to unregister them. Net_SmartIRC-1.0.2/SmartIRC.php0000600000175000017500000025460211461276032016670 0ustar clockwerxclockwerx and * Latest versions of Net_SmartIRC you will find on the project homepage * or get it through PEAR since SmartIRC is an official PEAR package. * See . * * Official Project Homepage: * * Net_SmartIRC conforms to RFC 2812 (Internet Relay Chat: Client Protocol) * * Copyright (c) 2002-2005 Mirco Bauer * * Full LGPL License: * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ // ------- PHP code ---------- require_once 'SmartIRC/defines.php'; define('SMARTIRC_VERSION', '1.1.0-dev ($Revision: 302734 $)'); define('SMARTIRC_VERSIONSTRING', 'Net_SmartIRC '.SMARTIRC_VERSION); /** * main SmartIRC class * * @package Net_SmartIRC * @version 0.6.0-dev * @author Mirco 'meebey' Bauer * @access public */ class Net_SmartIRC_base { /** * @var resource * @access private */ var $_socket; /** * @var string * @access private */ var $_address; /** * @var integer * @access private */ var $_port; /** * @var string * @access private */ var $_nick; /** * @var string * @access private */ var $_username; /** * @var string * @access private */ var $_realname; /** * @var string * @access private */ var $_usermode; /** * @var string * @access private */ var $_password; /** * @var boolean * @access private */ var $_state = false; /** * @var array * @access private */ var $_actionhandler = array(); /** * @var array * @access private */ var $_timehandler = array(); /** * @var integer * @access private */ var $_debug = SMARTIRC_DEBUG_NOTICE; /** * @var array * @access private */ var $_messagebuffer = array(); /** * @var integer * @access private */ var $_messagebuffersize; /** * @var boolean * @access private */ var $_usesockets = false; /** * @var integer * @access private */ var $_receivedelay = 100; /** * @var integer * @access private */ var $_senddelay = 250; /** * @var integer * @access private */ var $_logdestination = SMARTIRC_STDOUT; /** * @var resource * @access private */ var $_logfilefp = 0; /** * @var string * @access private */ var $_logfile = 'Net_SmartIRC.log'; /** * @var integer * @access private */ var $_disconnecttime = 1000; /** * @var boolean * @access private */ var $_loggedin = false; /** * @var boolean * @access private */ var $_benchmark = false; /** * @var integer * @access private */ var $_benchmark_starttime; /** * @var integer * @access private */ var $_benchmark_stoptime; /** * @var integer * @access private */ var $_actionhandlerid = 0; /** * @var integer * @access private */ var $_timehandlerid = 0; /** * @var array * @access private */ var $_motd = array(); /** * @var array * @access private */ var $_channels = array(); /** * @var boolean * @access private */ var $_channelsyncing = false; /** * @var array * @access private */ var $_users = array(); /** * @var boolean * @access private */ var $_usersyncing = false; /** * Stores the path to the modules that can be loaded. * * @var string * @access privat */ var $_modulepath = ''; /** * Stores all objects of the modules. * * @var string * @access privat */ var $_modules = array(); /** * @var string * @access private */ var $_ctcpversion; /** * @var mixed * @access private */ var $_mintimer = false; /** * @var integer * @access private */ var $_maxtimer = 300000; /** * @var integer * @access private */ var $_txtimeout = 300; /** * @var integer * @access private */ var $_rxtimeout = 300; /** * @var integer * @access private */ var $_selecttimeout; /** * @var integer * @access private */ var $_lastrx; /** * @var integer * @access private */ var $_lasttx; /** * @var boolean * @access private */ var $_autoreconnect = false; /** * @var integer * @access private */ var $_reconnectdelay = 10000; /** * @var boolean * @access private */ var $_autoretry = false; /** * @var integer * @access private */ var $_autoretrymax = 5; /** * @var integer * @access private */ var $_autoretrycount = 0; /** * @var boolean * @access private */ var $_connectionerror = false; /** * @var boolean * @access private */ var $_runasdaemon = false; /** * All IRC replycodes, the index is the replycode name. * * @see $SMARTIRC_replycodes * @var array * @access public */ var $replycodes; /** * All numeric IRC replycodes, the index is the numeric replycode. * * @see $SMARTIRC_nreplycodes * @var array * @access public */ var $nreplycodes; /** * Stores all channels in this array where we are joined, works only if channelsyncing is activated. * Eg. for accessing a user, use it like this: (in this example the SmartIRC object is stored in $irc) * $irc->channel['#test']->users['meebey']->nick; * * @see setChannelSyncing() * @see Net_SmartIRC_channel * @see Net_SmartIRC_channeluser * @var array * @access public */ var $channel; /** * Stores all users that had/have contact with us (channel/query/notice etc.), works only if usersyncing is activated. * Eg. for accessing a user, use it like this: (in this example the SmartIRC object is stored in $irc) * $irc->user['meebey']->host; * * @see setUserSyncing() * @see Net_SmartIRC_ircuser * @var array * @access public */ var $user; /** * Constructor. Initiales the messagebuffer and "links" the replycodes from * global into properties. Also some PHP runtime settings are configured. * * @access public * @return void */ function Net_SmartIRC_base() { // precheck $this->_checkPHPVersion(); ob_implicit_flush(true); @set_time_limit(0); $this->_messagebuffer[SMARTIRC_CRITICAL] = array(); $this->_messagebuffer[SMARTIRC_HIGH] = array(); $this->_messagebuffer[SMARTIRC_MEDIUM] = array(); $this->_messagebuffer[SMARTIRC_LOW] = array(); $this->replycodes = &$GLOBALS['SMARTIRC_replycodes']; $this->nreplycodes = &$GLOBALS['SMARTIRC_nreplycodes']; // hack till PHP allows (PHP5) $object->somemethod($param)->memberofobject $this->channel = &$this->_channels; // another hack $this->user = &$this->_users; if (isset($_SERVER['REQUEST_METHOD'])) { // the script is called from a browser, lets set default log destination // to SMARTIRC_BROWSEROUT (makes browser friendly output) $this->setLogdestination(SMARTIRC_BROWSEROUT); } } /** * Enables/disables the usage of real sockets. * * Enables/disables the usage of real sockets instead of fsocks * (works only if your PHP build has loaded the PHP socket extension) * Default: false * * @param bool $boolean * @return void * @access public */ function setUseSockets($boolean) { if ($boolean === true) { if (@extension_loaded('sockets')) { $this->_usesockets = true; } else { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: socket extension not loaded, trying to load it...', __FILE__, __LINE__); if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) { $load_status = @dl('php_sockets.dll'); } else { $load_status = @dl('sockets.so'); } if ($load_status) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: socket extension succesfully loaded', __FILE__, __LINE__); $this->_usesockets = true; } else { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: couldn\'t load the socket extension', __FILE__, __LINE__); $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: your PHP build doesn\'t support real sockets, will use fsocks instead', __FILE__, __LINE__); $this->_usesockets = false; } } } else { $this->_usesockets = false; } } /** * Sets the level of debug messages. * * Sets the debug level (bitwise), useful for testing/developing your code. * Here the list of all possible debug levels: * SMARTIRC_DEBUG_NONE * SMARTIRC_DEBUG_NOTICE * SMARTIRC_DEBUG_CONNECTION * SMARTIRC_DEBUG_SOCKET * SMARTIRC_DEBUG_IRCMESSAGES * SMARTIRC_DEBUG_MESSAGETYPES * SMARTIRC_DEBUG_ACTIONHANDLER * SMARTIRC_DEBUG_TIMEHANDLER * SMARTIRC_DEBUG_MESSAGEHANDLER * SMARTIRC_DEBUG_CHANNELSYNCING * SMARTIRC_DEBUG_MODULES * SMARTIRC_DEBUG_USERSYNCING * SMARTIRC_DEBUG_ALL * * Default: SMARTIRC_DEBUG_NOTICE * * @see DOCUMENTATION * @see SMARTIRC_DEBUG_NOTICE * @param integer $level * @return void * @access public */ function setDebug($level) { $this->_debug = $level; } /** * Enables/disables the benchmark engine. * * @param boolean $boolean * @return void * @access public */ function setBenchmark($boolean) { if (is_bool($boolean)) { $this->_benchmark = $boolean; } else { $this->_benchmark = false; } } /** * Deprecated, use setChannelSyncing() instead! * * @deprecated * @param boolean $boolean * @return void * @access public */ function setChannelSynching($boolean) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: you are using setChannelSynching() which is a deprecated method, use setChannelSyncing() instead!', __FILE__, __LINE__); $this->setChannelSyncing($boolean); } /** * Enables/disables channel syncing. * * Channel syncing means, all users on all channel we are joined are tracked in the * channel array. This makes it very handy for botcoding. * * @param boolean $boolean * @return void * @access public */ function setChannelSyncing($boolean) { if (is_bool($boolean)) { $this->_channelsyncing = $boolean; } else { $this->_channelsyncing = false; } if ($this->_channelsyncing == true) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: Channel syncing enabled', __FILE__, __LINE__); } else { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: Channel syncing disabled', __FILE__, __LINE__); } } /** * Enables/disables user syncing. * * User syncing means, all users we have or had contact with through channel, query or * notice are tracked in the $irc->user array. This is very handy for botcoding. * * @param boolean $boolean * @return void * @access public */ function setUserSyncing($boolean) { if (is_bool($boolean)) { $this->_usersyncing = $boolean; } else { $this->_usersyncing = false; } if ($this->_usersyncing == true) { $this->log(SMARTIRC_DEBUG_USERSYNCING, 'DEBUG_USERSYNCING: User syncing enabled', __FILE__, __LINE__); } else { $this->log(SMARTIRC_DEBUG_USERSYNCING, 'DEBUG_USERSYNCING: User syncing disabled', __FILE__, __LINE__); } } /** * Sets the CTCP version reply string. * * @param string $versionstring * @return void * @access public */ function setCtcpVersion($versionstring) { $this->_ctcpversion = $versionstring; } /** * Sets the destination of all log messages. * * Sets the destination of log messages. * $type can be: * SMARTIRC_FILE for saving the log into a file * SMARTIRC_STDOUT for echoing the log to stdout * SMARTIRC_SYSLOG for sending the log to the syslog * Default: SMARTIRC_STDOUT * * @see SMARTIRC_STDOUT * @param integer $type must be on of the constants * @return void * @access public */ function setLogdestination($type) { switch ($type) { case SMARTIRC_FILE: case SMARTIRC_STDOUT: case SMARTIRC_SYSLOG: case SMARTIRC_BROWSEROUT: case SMARTIRC_NONE: $this->_logdestination = $type; break; default: $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: unknown logdestination type ('.$type.'), will use STDOUT instead', __FILE__, __LINE__); $this->_logdestination = SMARTIRC_STDOUT; } } /** * Sets the file for the log if the destination is set to file. * * Sets the logfile, if {@link setLogdestination logdestination} is set to SMARTIRC_FILE. * This should be only used with full path! * * @param string $file * @return void * @access public */ function setLogfile($file) { $this->_logfile = $file; } /** * Sets the delaytime before closing the socket when disconnect. * * @param integer $milliseconds * @return void * @access public */ function setDisconnecttime($milliseconds) { if (is_integer($milliseconds) && $milliseconds >= 100) { $this->_disconnecttime = $milliseconds; } else { $this->_disconnecttime = 100; } } /** * Sets the delaytime before attempting reconnect. * Value of 0 disables the delay entirely. * * @param integer $milliseconds * @return void * @access public */ function setReconnectdelay($milliseconds) { if (is_integer($milliseconds)) { $this->_reconnectdelay = $milliseconds; } else { $this->_reconnectdelay = 10000; } } /** * Sets the delay for receiving data from the IRC server. * * Sets the delaytime between messages that are received, this reduces your CPU load. * Don't set this too low (min 100ms). * Default: 100 * * @param integer $milliseconds * @return void * @access public */ function setReceivedelay($milliseconds) { if (is_integer($milliseconds) && $milliseconds >= 100) { $this->_receivedelay = $milliseconds; } else { $this->_receivedelay = 100; } } /** * Sets the delay for sending data to the IRC server. * * Sets the delaytime between messages that are sent, because IRC servers doesn't like floods. * This will avoid sending your messages too fast to the IRC server. * Default: 250 * * @param integer $milliseconds * @return void * @access public */ function setSenddelay($milliseconds) { if (is_integer($milliseconds)) { $this->_senddelay = $milliseconds; } else { $this->_senddelay = 250; } } /** * Enables/disables autoreconnecting. * * @param boolean $boolean * @return void * @access public */ function setAutoReconnect($boolean) { if (is_bool($boolean)) { $this->_autoreconnect = $boolean; } else { $this->_autoreconnect = false; } } /** * Enables/disables autoretry for connecting to a server. * * @param boolean $boolean * @return void * @access public */ function setAutoRetry($boolean) { if (is_bool($boolean)) { $this->_autoretry = $boolean; } else { $this->_autoretry = false; } } /** * Sets the maximum number of attempts to connect to a server * before giving up. * * @param integer $autoretrymax * @return void * @access public */ function setAutoRetryMax($autoretrymax) { if (is_integer($autoretrymax)) { $this->_autoretrymax = $autoretrymax; } else { $this->_autoretrymax = 5; } } /** * Sets the receive timeout. * * If the timeout occurs, the connection will be reinitialized * Default: 300 seconds * * @param integer $seconds * @return void * @access public */ function setReceiveTimeout($seconds) { if (is_integer($seconds)) { $this->_rxtimeout = $seconds; } else { $this->_rxtimeout = 300; } } /** * Sets the transmit timeout. * * If the timeout occurs, the connection will be reinitialized * Default: 300 seconds * * @param integer $seconds * @return void * @access public */ function setTransmitTimeout($seconds) { if (is_integer($seconds)) { $this->_txtimeout = $seconds; } else { $this->_txtimeout = 300; } } /** * Sets the paths for the modules. * * @param integer $path * @return void * @access public */ function setModulepath($path) { $this->_modulepath = $path; } /** * Sets wheter the script should be run as a daemon or not * ( actually disables/enables ignore_user_abort() ) * * @param boolean $boolean * @return void * @access public */ function setRunAsDaemon($boolean) { if ($boolean === true) { $this->_runasdaemon = true; ingore_user_abort(true); } else { $this->_runasdaemon = false; } } /** * Starts the benchmark (sets the counters). * * @return void * @access public */ function startBenchmark() { $this->_benchmark_starttime = $this->_microint(); $this->log(SMARTIRC_DEBUG_NOTICE, 'benchmark started', __FILE__, __LINE__); } /** * Stops the benchmark and displays the result. * * @return void * @access public */ function stopBenchmark() { $this->_benchmark_stoptime = $this->_microint(); $this->log(SMARTIRC_DEBUG_NOTICE, 'benchmark stopped', __FILE__, __LINE__); if ($this->_benchmark) { $this->showBenchmark(); } } /** * Shows the benchmark result. * * @return void * @access public */ function showBenchmark() { $this->log(SMARTIRC_DEBUG_NOTICE, 'benchmark time: '.((float)$this->_benchmark_stoptime-(float)$this->_benchmark_starttime), __FILE__, __LINE__); } /** * Adds an entry to the log. * * Adds an entry to the log with Linux style log format. * Possible $level constants (can also be combined with "|"s) * SMARTIRC_DEBUG_NONE * SMARTIRC_DEBUG_NOTICE * SMARTIRC_DEBUG_CONNECTION * SMARTIRC_DEBUG_SOCKET * SMARTIRC_DEBUG_IRCMESSAGES * SMARTIRC_DEBUG_MESSAGETYPES * SMARTIRC_DEBUG_ACTIONHANDLER * SMARTIRC_DEBUG_TIMEHANDLER * SMARTIRC_DEBUG_MESSAGEHANDLER * SMARTIRC_DEBUG_CHANNELSYNCING * SMARTIRC_DEBUG_MODULES * SMARTIRC_DEBUG_USERSYNCING * SMARTIRC_DEBUG_ALL * * @see SMARTIRC_DEBUG_NOTICE * @param integer $level bit constants (SMARTIRC_DEBUG_*) * @param string $entry the new log entry * @return void * @access public */ function log($level, $entry, $file = null, $line = null) { // prechecks if (!(is_integer($level)) || !($level & SMARTIRC_DEBUG_ALL)) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: invalid log level passed to log() ('.$level.')', __FILE__, __LINE__); return; } if (!($level & $this->_debug) || ($this->_logdestination == SMARTIRC_NONE)) { return; } if (substr($entry, -1) != "\n") { $entry .= "\n"; } if ($file !== null && $line !== null) { $file = basename($file); $entry = $file.'('.$line.') '.$entry; } else { $entry = 'unknown(0) '.$entry; } $formatedentry = date('M d H:i:s ').$entry; switch ($this->_logdestination) { case SMARTIRC_STDOUT: echo $formatedentry; flush(); break; case SMARTIRC_BROWSEROUT: echo '
'.htmlentities($formatedentry).'
'; break; case SMARTIRC_FILE: if (!is_resource($this->_logfilefp)) { if ($this->_logfilefp === null) { // we reconncted and don't want to destroy the old log entries $this->_logfilefp = fopen($this->_logfile,'a'); } else { $this->_logfilefp = fopen($this->_logfile,'w'); } } fwrite($this->_logfilefp, $formatedentry); fflush($this->_logfilefp); break; case SMARTIRC_SYSLOG: define_syslog_variables(); if (!is_int($this->_logfilefp)) { $this->_logfilefp = openlog('Net_SmartIRC', LOG_NDELAY, LOG_DAEMON); } syslog(LOG_INFO, $entry); break; } } /** * Returns the full motd. * * @return array * @access public */ function getMotd() { return $this->_motd; } /** * Returns the usermode. * * @return string * @access public */ function getUsermode() { return $this->_usermode; } /** * Returns a reference to the channel object of the specified channelname. * * @param string $channelname * @return object * @access public */ function &getChannel($channelname) { if ($this->_channelsyncing != true) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: getChannel() is called and the required Channel Syncing is not activated!', __FILE__, __LINE__); return false; } if ($this->isJoined($channelname)) { return $this->_channels[strtolower($channelname)]; } else { return false; } } /** * Returns a reference to the user object for the specified username and channelname. * * @param string $channelname * @param string $username * @return object * @access public */ function &getUser($channelname, $username) { if ($this->_channelsyncing != true) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: getUser() is called and the required Channel Syncing is not activated!', __FILE__, __LINE__); return false; } if ($this->isJoined($channelname, $username)) { return $this->_channels[strtolower($channelname)]->users[strtolower($username)]; } else { return false; } } /** * Creates the sockets and connects to the IRC server on the given port. * * @param string $address * @param integer $port * @return boolean * @access public */ function connect($address, $port) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: connecting', __FILE__, __LINE__); $this->_address = $address; $this->_port = $port; if ($this->_usesockets == true) { $this->log(SMARTIRC_DEBUG_SOCKET, 'DEBUG_SOCKET: using real sockets', __FILE__, __LINE__); $this->_socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); $result = socket_connect($this->_socket, $this->_address, $this->_port); } else { $this->log(SMARTIRC_DEBUG_SOCKET, 'DEBUG_SOCKET: using fsockets', __FILE__, __LINE__); $result = fsockopen($this->_address, $this->_port, $errno, $errstr); } if ($result === false) { if ($this->_usesockets == true) { $error = socket_strerror(socket_last_error($this->_socket)); } else { $error = $errstr.' ('.$errno.')'; } $error_msg = 'couldn\'t connect to "'.$address.'" reason: "'.$error.'"'; $this->log(SMARTIRC_DEBUG_NOTICE, 'DEBUG_NOTICE: '.$error_msg, __FILE__, __LINE__); // TODO! needs to be return value $this->throwError($error_msg); if (($this->_autoretry == true) && ($this->_autoretrycount < $this->_autoretrymax)) { $this->_delayReconnect(); $this->_autoretrycount++; $this->reconnect(); } else { return false; } } else { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: connected', __FILE__, __LINE__); $this->_autoretrycount = 0; $this->_connectionerror = false; if ($this->_usesockets != true) { $this->_socket = $result; $this->log(SMARTIRC_DEBUG_SOCKET, 'DEBUG_SOCKET: activating nonblocking fsocket mode', __FILE__, __LINE__); stream_set_blocking($this->_socket, 0); } } $this->_lastrx = time(); $this->_lasttx = $this->_lastrx; $this->_updatestate(); return $result !== false; } /** * Disconnects from the IRC server nicely with a QUIT or just destroys the socket. * * Disconnects from the IRC server in the given quickness mode. * $quickdisconnect: * true, just close the socket * false, send QUIT and wait {@link $_disconnectime $_disconnectime} before closing the socket * * @param boolean $quickdisconnect default: false * @return boolean * @access public */ function disconnect($quickdisconnect = false) { if ($this->_state() == SMARTIRC_STATE_CONNECTED) { if ($quickdisconnect == false) { $this->_send('QUIT', SMARTIRC_CRITICAL); usleep($this->_disconnecttime*1000); } if ($this->_usesockets == true) { @socket_shutdown($this->_socket); @socket_close($this->_socket); } else { fclose($this->_socket); } $this->_updatestate(); $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: disconnected', __FILE__, __LINE__); } else { return false; } if ($this->_channelsyncing == true) { // let's clean our channel array $this->_channels = array(); $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: cleaned channel array', __FILE__, __LINE__); } if ($this->_usersyncing == true) { // let's clean our user array $this->_users = array(); $this->log(SMARTIRC_DEBUG_USERSYNCING, 'DEBUG_USERSYNCING: cleaned user array', __FILE__, __LINE__); } if ($this->_logdestination == SMARTIRC_FILE) { fclose($this->_logfilefp); $this->_logfilefp = null; } else if ($this->_logdestination == SMARTIRC_SYSLOG) { closelog(); } return true; } /** * Reconnects to the IRC server with the same login info, * it also rejoins the channels * * @return void * @access public */ function reconnect() { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: reconnecting...', __FILE__, __LINE__); // remember in which channels we are joined $channels = array(); foreach ($this->_channels as $value) { if (empty($value->key)) { $channels[] = array('name' => $value->name); } else { $channels[] = array('name' => $value->name, 'key' => $value->key); } } $this->disconnect(true); $this->connect($this->_address, $this->_port); $this->login($this->_nick, $this->_realname, $this->_usermode, $this->_username, $this->_password); // rejoin the channels foreach ($channels as $value) { if (isset($value['key'])) { $this->join($value['name'], $value['key']); } else { $this->join($value['name']); } } } /** * login and register nickname on the IRC network * * Registers the nickname and user information on the IRC network. * * @param string $nick * @param string $realname * @param integer $usermode * @param string $username * @param string $password * @return void * @access public */ function login($nick, $realname, $usermode = 0, $username = null, $password = null) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: logging in', __FILE__, __LINE__); $this->_nick = str_replace(' ', '', $nick); $this->_realname = $realname; if ($username !== null) { $this->_username = str_replace(' ', '', $username); } else { $this->_username = str_replace(' ', '', exec('whoami')); } if ($password !== null) { $this->_password = $password; $this->_send('PASS '.$this->_password, SMARTIRC_CRITICAL); } if (!is_numeric($usermode)) { $this->log(SMARTIRC_DEBUG_NOTICE, 'DEBUG_NOTICE: login() usermode ('.$usermode.') is not valid, will use 0 instead', __FILE__, __LINE__); $usermode = 0; } $this->_send('NICK '.$this->_nick, SMARTIRC_CRITICAL); $this->_send('USER '.$this->_username.' '.$usermode.' '.SMARTIRC_UNUSED.' :'.$this->_realname, SMARTIRC_CRITICAL); } //
/** * checks if the passed nickname is our own nickname * * @param string $nickname * @return boolean * @access public */ function isMe($nickname) { if ($nickname == $this->_nick) { return true; } else { return false; } } /** * checks if we or the given user is joined to the specified channel and returns the result * ChannelSyncing is required for this. * * @see setChannelSyncing * @param string $channel * @param string $nickname * @return boolean * @access public */ function isJoined($channel, $nickname = null) { if ($this->_channelsyncing != true) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isJoined() is called and the required Channel Syncing is not activated!', __FILE__, __LINE__); return false; } if ($nickname === null) { $nickname = $this->_nick; } if (isset($this->_channels[strtolower($channel)]->users[strtolower($nickname)])) { return true; } return false; } /** * Checks if we or the given user is opped on the specified channel and returns the result. * ChannelSyncing is required for this. * * @see setChannelSyncing * @param string $channel * @param string $nickname * @return boolean * @access public */ function isOpped($channel, $nickname = null) { if ($this->_channelsyncing != true) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isOpped() is called and the required Channel Syncing is not activated!', __FILE__, __LINE__); return false; } if ($nickname === null) { $nickname = $this->_nick; } if ($this->isJoined($channel, $nickname)) { if ($this->_channels[strtolower($channel)]->users[strtolower($nickname)]->op) { return true; } } return false; } /** * Checks if we or the given user is voiced on the specified channel and returns the result. * ChannelSyncing is required for this. * * @see setChannelSyncing * @param string $channel * @param string $nickname * @return boolean * @access public */ function isVoiced($channel, $nickname = null) { if ($this->_channelsyncing != true) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isVoiced() is called and the required Channel Syncing is not activated!', __FILE__, __LINE__); return false; } if ($nickname === null) { $nickname = $this->_nick; } if ($this->isJoined($channel, $nickname)) { if ($this->_channels[strtolower($channel)]->users[strtolower($nickname)]->voice) { return true; } } return false; } /** * Checks if the hostmask is on the specified channel banned and returns the result. * ChannelSyncing is required for this. * * @see setChannelSyncing * @param string $channel * @param string $hostmask * @return boolean * @access public */ function isBanned($channel, $hostmask) { if ($this->_channelsyncing != true) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: isBanned() is called and the required Channel Syncing is not activated!', __FILE__, __LINE__); return false; } if ($this->isJoined($channel)) { $result = array_search($hostmask, $this->_channels[strtolower($channel)]->bans); if ($result !== false) { return true; } } return false; } /** * goes into receive mode * * Goes into receive and idle mode. Only call this if you want to "spawn" the bot. * No further lines of PHP code will be processed after this call, only the bot methods! * * @return boolean * @access public */ function listen() { while ($this->_state() == SMARTIRC_STATE_CONNECTED) { $this->listenOnce(); } return false; } /** * goes into receive mode _only_ for one pass * * Goes into receive mode. It will return when one pass is complete. * Use this when you want to connect to multiple IRC servers. * * @return boolean * @access public */ function listenOnce() { if ($this->_state() == SMARTIRC_STATE_CONNECTED) { $this->_rawreceive(); if ($this->_connectionerror) { if ($this->_autoreconnect) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: connection error detected, will reconnect!', __FILE__, __LINE__); $this->reconnect(); } else { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: connection error detected, will disconnect!', __FILE__, __LINE__); $this->disconnect(); } } return true; } else { return false; } } /** * waits for a special message type and puts the answer in $result * * Creates a special actionhandler for that given TYPE and returns the answer. * This will only receive the requested type, immediately quit and disconnect from the IRC server. * Made for showing IRC statistics on your homepage, or other IRC related information. * * @param integer $messagetype see in the documentation 'Message Types' * @return array answer from the IRC server for this $messagetype * @access public */ function listenFor($messagetype) { $listenfor = &new Net_SmartIRC_listenfor(); $this->registerActionhandler($messagetype, '.*', $listenfor, 'handler'); $this->listen(); $result = $listenfor->result; if (isset($listenfor)) { unset($listenfor); } return $result; } /** * registers a new actionhandler and returns the assigned id * * Registers an actionhandler in Net_SmartIRC for calling it later. * The actionhandler id is needed for unregistering the actionhandler. * * @see example.php * @param integer $handlertype bits constants, see in this documentation Message Types * @param string $regexhandler the message that has to be in the IRC message in regex syntax * @param object $object a reference to the objects of the method * @param string $methodname the methodname that will be called when the handler happens * @return integer assigned actionhandler id * @access public */ function registerActionhandler($handlertype, $regexhandler, &$object, $methodname) { // precheck if (!$this->_isValidType($handlertype)) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: passed invalid handlertype to registerActionhandler()', __FILE__, __LINE__); return false; } $id = $this->_actionhandlerid++; $newactionhandler = &new Net_SmartIRC_actionhandler(); $newactionhandler->id = $id; $newactionhandler->type = $handlertype; $newactionhandler->message = $regexhandler; $newactionhandler->object = &$object; $newactionhandler->method = $methodname; $this->_actionhandler[] = &$newactionhandler; $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: actionhandler('.$id.') registered', __FILE__, __LINE__); return $id; } /** * unregisters an existing actionhandler * * @param integer $handlertype * @param string $regexhandler * @param object $object * @param string $methodname * @return boolean * @access public */ function unregisterActionhandler($handlertype, $regexhandler, &$object, $methodname) { // precheck if (!$this->_isValidType($handlertype)) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: passed invalid handlertype to unregisterActionhandler()', __FILE__, __LINE__); return false; } $handler = &$this->_actionhandler; $handlercount = count($handler); for ($i = 0; $i < $handlercount; $i++) { $handlerobject = &$handler[$i]; if ($handlerobject->type == $handlertype && $handlerobject->message == $regexhandler && $handlerobject->method == $methodname) { $id = $handlerobject->id; if (isset($this->_actionhandler[$i])) { unset($this->_actionhandler[$i]); } $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: actionhandler('.$id.') unregistered', __FILE__, __LINE__); $this->_reorderactionhandler(); return true; } } $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: could not find actionhandler type: "'.$handlertype.'" message: "'.$regexhandler.'" method: "'.$methodname.'" from object "'.get_class($object).'" _not_ unregistered', __FILE__, __LINE__); return false; } /** * unregisters an existing actionhandler via the id * * @param integer $id * @return boolean * @access public */ function unregisterActionid($id) { $handler = &$this->_actionhandler; $handlercount = count($handler); for ($i = 0; $i < $handlercount; $i++) { $handlerobject = &$handler[$i]; if ($handlerobject->id == $id) { if (isset($this->_actionhandler[$i])) { unset($this->_actionhandler[$i]); } $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: actionhandler('.$id.') unregistered', __FILE__, __LINE__); $this->_reorderactionhandler(); return true; } } $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: could not find actionhandler id: '.$id.' _not_ unregistered', __FILE__, __LINE__); return false; } /** * registers a timehandler and returns the assigned id * * Registers a timehandler in Net_SmartIRC, which will be called in the specified interval. * The timehandler id is needed for unregistering the timehandler. * * @see example7.php * @param integer $interval interval time in milliseconds * @param object $object a reference to the objects of the method * @param string $methodname the methodname that will be called when the handler happens * @return integer assigned timehandler id * @access public */ function registerTimehandler($interval, &$object, $methodname) { $id = $this->_timehandlerid++; $newtimehandler = &new Net_SmartIRC_timehandler(); $newtimehandler->id = $id; $newtimehandler->interval = $interval; $newtimehandler->object = &$object; $newtimehandler->method = $methodname; $newtimehandler->lastmicrotimestamp = $this->_microint(); $this->_timehandler[] = &$newtimehandler; $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: timehandler('.$id.') registered', __FILE__, __LINE__); if (($interval < $this->_mintimer) || ($this->_mintimer == false)) { $this->_mintimer = $interval; } return $id; } /** * unregisters an existing timehandler via the id * * @see example7.php * @param integer $id * @return boolean * @access public */ function unregisterTimeid($id) { $handler = &$this->_timehandler; $handlercount = count($handler); for ($i = 0; $i < $handlercount; $i++) { $handlerobject = &$handler[$i]; if ($handlerobject->id == $id) { if (isset($this->_timehandler[$i])) { unset($this->_timehandler[$i]); } $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: timehandler('.$id.') unregistered', __FILE__, __LINE__); $this->_reordertimehandler(); $this->_updatemintimer(); return true; } } $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: could not find timehandler id: '.$id.' _not_ unregistered', __FILE__, __LINE__); return false; } function loadModule($name) { // is the module already loaded? if (in_array($name, $this->_modules)) { $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING! module with the name "'.$name.'" already loaded!', __FILE__, __LINE__); return false; } $filename = $this->_modulepath.'/'.$name.'.php'; if (!file_exists($filename)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: couldn\'t load module "'.$filename.'" file doesn\'t exist', __FILE__, __LINE__); return false; } $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: loading module: "'.$name.'"...', __FILE__, __LINE__); // pray that there is no parse error, it will kill us! include_once($filename); $classname = 'Net_SmartIRC_module_'.$name; if (!class_exists($classname)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: class '.$classname.' not found in '.$filename, __FILE__, __LINE__); return false; } $methods = get_class_methods($classname); if (!in_array('module_init', $methods)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: required method'.$classname.'::module_init not found, aborting...', __FILE__, __LINE__); return false; } if (!in_array('module_exit', $methods)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: required method'.$classname.'::module_exit not found, aborting...', __FILE__, __LINE__); return false; } $vars = array_keys(get_class_vars($classname)); if (!in_array('name', $vars)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: required variable '.$classname.'::name not found, aborting...', __FILE__, __LINE__); return false; } if (!in_array('description', $vars)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: required variable '.$classname.'::description not found, aborting...', __FILE__, __LINE__); return false; } if (!in_array('author', $vars)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: required variable '.$classname.'::author not found, aborting...', __FILE__, __LINE__); return false; } if (!in_array('license', $vars)) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: required variable '.$classname.'::license not found, aborting...', __FILE__, __LINE__); return false; } // looks like the module satisfies us $module = &new $classname; $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: successful created instance of: '.$classname, __FILE__, __LINE__); $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: calling '.$classname.'::module_init()', __FILE__, __LINE__); $module->module_init($this); $this->_modules[$name] = &$module; $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: successful loaded module: '.$name, __FILE__, __LINE__); return true; } function unloadModule($name) { $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: unloading module: '.$name.'...', __FILE__, __LINE__); $modules_keys = array_keys($this->_modules); $modulecount = count($modules_keys); for ($i = 0; $i < $modulecount; $i++) { $module = &$this->_modules[$modules_keys[$i]]; $modulename = strtolower(get_class($module)); if ($modulename == 'net_smartirc_module_'.$name) { $module->module_exit($this); unset($this->_modules[$i]); $this->_reordermodules(); $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: successful unloaded module: '.$name, __FILE__, __LINE__); return true; } } $this->log(SMARTIRC_DEBUG_MODULES, 'DEBUG_MODULES: couldn\'t unloaded module: '.$name.' (it\'s not loaded!)', __FILE__, __LINE__); return false; } // /** * changes a already used nickname to a new nickname plus 3 random digits * * @return void * @access private */ function _nicknameinuse() { $newnickname = substr($this->_nick, 0, 5).rand(0, 999); $this->changeNick($newnickname, SMARTIRC_CRITICAL); } /** * sends an IRC message * * Adds a message to the messagequeue, with the optional priority. * $priority: * SMARTIRC_CRITICAL * SMARTIRC_HIGH * SMARTIRC_MEDIUM * SMARTIRC_LOW * * @param string $data * @param integer $priority must be one of the priority constants * @return boolean * @access public */ function send($data, $priority = SMARTIRC_MEDIUM) { return $this->_send($data, $priority); } /** * sends an IRC message * * Adds a message to the messagequeue, with the optional priority. * $priority: * SMARTIRC_CRITICAL * SMARTIRC_HIGH * SMARTIRC_MEDIUM * SMARTIRC_LOW * * @param string $data * @param integer $priority must be one of the priority constants * @return boolean * @access private */ function _send($data, $priority = SMARTIRC_MEDIUM) { switch ($priority) { case SMARTIRC_CRITICAL: $this->_rawsend($data); break; case SMARTIRC_HIGH: case SMARTIRC_MEDIUM: case SMARTIRC_LOW: $this->_messagebuffer[$priority][] = $data; break; default: $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: message ('.$data.') with an invalid priority passed ('.$priority.'), message is ignored!', __FILE__, __LINE__); return false; } return true; } /** * checks the buffer if there are messages to send * * @return void * @access private */ function _checkbuffer() { if (!$this->_loggedin) { return; } static $highsent = 0; static $lastmicrotimestamp = 0; if ($lastmicrotimestamp == 0) { $lastmicrotimestamp = $this->_microint(); } $highcount = count($this->_messagebuffer[SMARTIRC_HIGH]); $mediumcount = count($this->_messagebuffer[SMARTIRC_MEDIUM]); $lowcount = count($this->_messagebuffer[SMARTIRC_LOW]); $this->_messagebuffersize = $highcount+$mediumcount+$lowcount; // don't send them too fast if ($this->_microint() >= ($lastmicrotimestamp+($this->_senddelay/1000))) { $result = null; if ($highcount > 0 && $highsent <= 2) { $this->_rawsend(array_shift($this->_messagebuffer[SMARTIRC_HIGH])); $lastmicrotimestamp = $this->_microint(); $highsent++; } else if ($mediumcount > 0) { $this->_rawsend(array_shift($this->_messagebuffer[SMARTIRC_MEDIUM])); $lastmicrotimestamp = $this->_microint(); $highsent = 0; } else if ($lowcount > 0) { $this->_rawsend(array_shift($this->_messagebuffer[SMARTIRC_LOW])); $lastmicrotimestamp = $this->_microint(); } } } /** * Checks the running timers and calls the registered timehandler, * when the interval is reached. * * @return void * @access private */ function _checktimer() { if (!$this->_loggedin) { return; } // has to be count() because the array may change during the loop! for ($i = 0; $i < count($this->_timehandler); $i++) { $handlerobject = &$this->_timehandler[$i]; $microtimestamp = $this->_microint(); if ($microtimestamp >= ($handlerobject->lastmicrotimestamp+($handlerobject->interval/1000))) { $methodobject = &$handlerobject->object; $method = $handlerobject->method; $handlerobject->lastmicrotimestamp = $microtimestamp; if (@method_exists($methodobject, $method)) { $this->log(SMARTIRC_DEBUG_TIMEHANDLER, 'DEBUG_TIMEHANDLER: calling method "'.get_class($methodobject).'->'.$method.'"', __FILE__, __LINE__); $methodobject->$method($this); } } } } /** * Checks if a receive or transmit timeout occured and reconnects if configured * * @return void * @access private */ function _checktimeout() { if ($this->_autoreconnect == true) { $timestamp = time(); if ($this->_lastrx < ($timestamp - $this->_rxtimeout)) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: receive timeout detected, doing reconnect...', __FILE__, __LINE__); $this->_delayReconnect(); $this->reconnect(); } else if ($this->_lasttx < ($timestamp - $this->_txtimeout)) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: transmit timeout detected, doing reconnect...', __FILE__, __LINE__); $this->_delayReconnect(); $this->reconnect(); } } } /** * sends a raw message to the IRC server (don't use this!!) * * Use message() or send() instead. * * @param string $data * @return boolean * @access private */ function _rawsend($data) { if ($this->_state() == SMARTIRC_STATE_CONNECTED) { $this->log(SMARTIRC_DEBUG_IRCMESSAGES, 'DEBUG_IRCMESSAGES: sent: "'.$data.'"', __FILE__, __LINE__); if ($this->_usesockets == true) { $result = socket_write($this->_socket, $data.SMARTIRC_CRLF); } else { $result = fwrite($this->_socket, $data.SMARTIRC_CRLF); } if ($result === false) { // writing to the socket failed, means the connection is broken $this->_connectionerror = true; return false; } else { $this->_lasttx = time(); return true; } } else { return false; } } /** * goes into main receive mode _once_ per call and waits for messages from the IRC server * * @return void * @access private */ function _rawreceive() { $lastpart = ''; $rawdataar = array(); $this->_checkbuffer(); $timeout = $this->_selecttimeout(); if ($this->_usesockets == true) { $sread = array($this->_socket); $result = socket_select($sread, $w = null, $e = null, 0, $timeout*1000); if ($result == 1) { // the socket got data to read $rawdata = socket_read($this->_socket, 10240); } else if ($result === false) { // panic! panic! something went wrong! $this->log(SMARTIRC_DEBUG_NOTICE, 'WARNING: socket_select() returned false, something went wrong! Reason: '.socket_strerror(socket_last_error()), __FILE__, __LINE__); exit; } else { // no data $rawdata = null; } } else { usleep($this->_receivedelay*1000); $rawdata = fread($this->_socket, 10240); } if ($rawdata === false) { // reading from the socket failed, the connection is broken $this->_connectionerror = true; } $this->_checktimer(); $this->_checktimeout(); if ($rawdata !== null && !empty($rawdata)) { $this->_lastrx = time(); $rawdata = str_replace("\r", '', $rawdata); $rawdata = $lastpart.$rawdata; $lastpart = substr($rawdata, strrpos($rawdata ,"\n")+1); $rawdata = substr($rawdata, 0, strrpos($rawdata ,"\n")); $rawdataar = explode("\n", $rawdata); } // loop through our received messages while (count($rawdataar) > 0) { $rawline = array_shift($rawdataar); $validmessage = false; $this->log(SMARTIRC_DEBUG_IRCMESSAGES, 'DEBUG_IRCMESSAGES: received: "'.$rawline.'"', __FILE__, __LINE__); // building our data packet $ircdata = &new Net_SmartIRC_data(); $ircdata->rawmessage = $rawline; $lineex = explode(' ', $rawline); $ircdata->rawmessageex = $lineex; $messagecode = $lineex[0]; if (substr($rawline, 0, 1) == ':') { $validmessage = true; $line = substr($rawline, 1); $lineex = explode(' ', $line); // conform to RFC 2812 $from = $lineex[0]; $messagecode = $lineex[1]; $exclamationpos = strpos($from, '!'); $atpos = strpos($from, '@'); $colonpos = strpos($line, ' :'); if ($colonpos !== false) { // we want the exact position of ":" not beginning from the space $colonpos += 1; } $ircdata->nick = substr($from, 0, $exclamationpos); $ircdata->ident = substr($from, $exclamationpos+1, ($atpos-$exclamationpos)-1); $ircdata->host = substr($from, $atpos+1); $ircdata->type = $this->_gettype($rawline); $ircdata->from = $from; if ($colonpos !== false) { $ircdata->message = substr($line, $colonpos+1); $ircdata->messageex = explode(' ', $ircdata->message); } if ($ircdata->type & (SMARTIRC_TYPE_CHANNEL| SMARTIRC_TYPE_ACTION| SMARTIRC_TYPE_MODECHANGE| SMARTIRC_TYPE_TOPICCHANGE| SMARTIRC_TYPE_KICK| SMARTIRC_TYPE_PART| SMARTIRC_TYPE_JOIN)) { $ircdata->channel = $lineex[2]; } else if ($ircdata->type & (SMARTIRC_TYPE_WHO| SMARTIRC_TYPE_BANLIST| SMARTIRC_TYPE_TOPIC| SMARTIRC_TYPE_CHANNELMODE)) { $ircdata->channel = $lineex[3]; } else if ($ircdata->type & SMARTIRC_TYPE_NAME) { $ircdata->channel = $lineex[4]; } if ($ircdata->channel !== null) { if (substr($ircdata->channel, 0, 1) == ':') { $ircdata->channel = substr($ircdata->channel, 1); } } $this->log(SMARTIRC_DEBUG_MESSAGEPARSER, 'DEBUG_MESSAGEPARSER: ircdata nick: "'.$ircdata->nick. '" ident: "'.$ircdata->ident. '" host: "'.$ircdata->host. '" type: "'.$ircdata->type. '" from: "'.$ircdata->from. '" channel: "'.$ircdata->channel. '" message: "'.$ircdata->message. '"', __FILE__, __LINE__); } // lets see if we have a messagehandler for it $this->_handlemessage($messagecode, $ircdata); if ($validmessage == true) { // now the actionhandlers are comming $this->_handleactionhandler($ircdata); } if (isset($ircdata)) { unset($ircdata); } } } /** * sends the pong for keeping alive * * Sends the PONG signal as reply of the PING from the IRC server. * * @param string $data * @return void * @access private */ function _pong($data) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: Ping? Pong!', __FILE__, __LINE__); $this->_send('PONG '.$data, SMARTIRC_CRITICAL); } /** * returns the calculated selecttimeout value * * @return integer selecttimeout in microseconds * @access private */ function _selecttimeout() { if ($this->_messagebuffersize == 0) { $this->_selecttimeout = null; if ($this->_mintimer != false) { $this->_calculateselecttimeout($this->_mintimer); } if ($this->_autoreconnect == true) { $this->_calculateselecttimeout($this->_rxtimeout*1000); } $this->_calculateselecttimeout($this->_maxtimer); return $this->_selecttimeout; } else { return $this->_senddelay; } } /** * calculates the selecttimeout value * * @return void * @access private */ function _calculateselecttimeout($microseconds) { if (($this->_selecttimeout > $microseconds) || $this->_selecttimeout === null) { $this->_selecttimeout = $microseconds; } } /** * updates _mintimer to the smallest timer interval * * @return void * @access private */ function _updatemintimer() { $timerarray = array(); foreach ($this->_timehandler as $values) { $timerarray[] = $values->interval; } $result = array_multisort($timerarray, SORT_NUMERIC, SORT_ASC); if ($result == true && isset($timerarray[0])) { $this->_mintimer = $timerarray[0]; } else { $this->_mintimer = false; } } /** * reorders the actionhandler array, needed after removing one * * @return void * @access private */ function _reorderactionhandler() { $orderedactionhandler = array(); foreach ($this->_actionhandler as $value) { $orderedactionhandler[] = $value; } $this->_actionhandler = &$orderedactionhandler; } /** * reorders the timehandler array, needed after removing one * * @return void * @access private */ function _reordertimehandler() { $orderedtimehandler = array(); foreach ($this->_timehandler as $value) { $orderedtimehandler[] = $value; } $this->_timehandler = &$orderedtimehandler; } /** * reorders the modules array, needed after removing one * * @return void * @access private */ function _reordermodules() { $orderedmodules = array(); foreach ($this->_modules as $value) { $orderedmodules[] = $value; } $this->_modules = &$orderedmodules; } /** * determines the messagetype of $line * * Analyses the type of an IRC message and returns the type. * * @param string $line * @return integer SMARTIRC_TYPE_* constant * @access private */ function _gettype($line) { if (preg_match('/^:[^ ]+? [0-9]{3} .+$/', $line) == 1) { $lineex = explode(' ', $line); $code = $lineex[1]; switch ($code) { case SMARTIRC_RPL_WELCOME: case SMARTIRC_RPL_YOURHOST: case SMARTIRC_RPL_CREATED: case SMARTIRC_RPL_MYINFO: case SMARTIRC_RPL_BOUNCE: return SMARTIRC_TYPE_LOGIN; case SMARTIRC_RPL_LUSERCLIENT: case SMARTIRC_RPL_LUSEROP: case SMARTIRC_RPL_LUSERUNKNOWN: case SMARTIRC_RPL_LUSERME: case SMARTIRC_RPL_LUSERCHANNELS: return SMARTIRC_TYPE_INFO; case SMARTIRC_RPL_MOTDSTART: case SMARTIRC_RPL_MOTD: case SMARTIRC_RPL_ENDOFMOTD: return SMARTIRC_TYPE_MOTD; case SMARTIRC_RPL_NAMREPLY: case SMARTIRC_RPL_ENDOFNAMES: return SMARTIRC_TYPE_NAME; case SMARTIRC_RPL_WHOREPLY: case SMARTIRC_RPL_ENDOFWHO: return SMARTIRC_TYPE_WHO; case SMARTIRC_RPL_LISTSTART: return SMARTIRC_TYPE_NONRELEVANT; case SMARTIRC_RPL_LIST: case SMARTIRC_RPL_LISTEND: return SMARTIRC_TYPE_LIST; case SMARTIRC_RPL_BANLIST: case SMARTIRC_RPL_ENDOFBANLIST: return SMARTIRC_TYPE_BANLIST; case SMARTIRC_RPL_TOPIC: return SMARTIRC_TYPE_TOPIC; case SMARTIRC_RPL_WHOISUSER: case SMARTIRC_RPL_WHOISSERVER: case SMARTIRC_RPL_WHOISOPERATOR: case SMARTIRC_RPL_WHOISIDLE: case SMARTIRC_RPL_ENDOFWHOIS: case SMARTIRC_RPL_WHOISCHANNELS: return SMARTIRC_TYPE_WHOIS; case SMARTIRC_RPL_WHOWASUSER: case SMARTIRC_RPL_ENDOFWHOWAS: return SMARTIRC_TYPE_WHOWAS; case SMARTIRC_RPL_UMODEIS: return SMARTIRC_TYPE_USERMODE; case SMARTIRC_RPL_CHANNELMODEIS: return SMARTIRC_TYPE_CHANNELMODE; case SMARTIRC_ERR_NICKNAMEINUSE: case SMARTIRC_ERR_NOTREGISTERED: return SMARTIRC_TYPE_ERROR; default: $this->log(SMARTIRC_DEBUG_IRCMESSAGES, 'DEBUG_IRCMESSAGES: replycode UNKNOWN ('.$code.'): "'.$line.'"', __FILE__, __LINE__); } } if (preg_match('/^:.*? PRIVMSG .* :'.chr(1).'ACTION .*'.chr(1).'$/', $line) == 1) { return SMARTIRC_TYPE_ACTION; } else if (preg_match('/^:.*? PRIVMSG .* :'.chr(1).'.*'.chr(1).'$/', $line) == 1) { return (SMARTIRC_TYPE_CTCP_REQUEST|SMARTIRC_TYPE_CTCP); } else if (preg_match('/^:.*? NOTICE .* :'.chr(1).'.*'.chr(1).'$/', $line) == 1) { return (SMARTIRC_TYPE_CTCP_REPLY|SMARTIRC_TYPE_CTCP); } else if (preg_match('/^:.*? PRIVMSG (\&|\#|\+|\!).* :.*$/', $line) == 1) { return SMARTIRC_TYPE_CHANNEL; } else if (preg_match('/^:.*? PRIVMSG .*:.*$/', $line) == 1) { return SMARTIRC_TYPE_QUERY; } else if (preg_match('/^:.*? NOTICE .* :.*$/', $line) == 1) { return SMARTIRC_TYPE_NOTICE; } else if (preg_match('/^:.*? INVITE .* .*$/', $line) == 1) { return SMARTIRC_TYPE_INVITE; } else if (preg_match('/^:.*? JOIN .*$/', $line) == 1) { return SMARTIRC_TYPE_JOIN; } else if (preg_match('/^:.*? TOPIC .* :.*$/', $line) == 1) { return SMARTIRC_TYPE_TOPICCHANGE; } else if (preg_match('/^:.*? NICK .*$/', $line) == 1) { return SMARTIRC_TYPE_NICKCHANGE; } else if (preg_match('/^:.*? KICK .* .*$/', $line) == 1) { return SMARTIRC_TYPE_KICK; } else if (preg_match('/^:.*? PART .*$/', $line) == 1) { return SMARTIRC_TYPE_PART; } else if (preg_match('/^:.*? MODE .* .*$/', $line) == 1) { return SMARTIRC_TYPE_MODECHANGE; } else if (preg_match('/^:.*? QUIT :.*$/', $line) == 1) { return SMARTIRC_TYPE_QUIT; } else { $this->log(SMARTIRC_DEBUG_MESSAGETYPES, 'DEBUG_MESSAGETYPES: SMARTIRC_TYPE_UNKNOWN!: "'.$line.'"', __FILE__, __LINE__); return SMARTIRC_TYPE_UNKNOWN; } } /** * updates the current connection state * * @return boolean * @access private */ function _updatestate() { if (is_resource($this->_socket)) { $rtype = get_resource_type($this->_socket); if (($this->_socket !== false) && ($rtype == 'socket' || $rtype == 'Socket' || $rtype == 'stream')) { $this->_state = true; return true; } } else { $this->_state = false; $this->_loggedin = false; return false; } } /** * returns the current connection state * * @return integer SMARTIRC_STATE_CONNECTED or SMARTIRC_STATE_DISCONNECTED * @access private */ function _state() { $result = $this->_updatestate(); if ($result == true) { return SMARTIRC_STATE_CONNECTED; } else { return SMARTIRC_STATE_DISCONNECTED; } } /** * tries to find a messagehandler for the received message ($ircdata) and calls it * * @param string $messagecode * @param object $ircdata * @return void * @access private */ function _handlemessage($messagecode, &$ircdata) { $found = false; if (is_numeric($messagecode)) { if (!array_key_exists($messagecode, $this->nreplycodes)) { $this->log(SMARTIRC_DEBUG_MESSAGEHANDLER, 'DEBUG_MESSAGEHANDLER: ignoring unrecognized messagecode! "'.$messagecode.'"', __FILE__, __LINE__); $this->log(SMARTIRC_DEBUG_MESSAGEHANDLER, 'DEBUG_MESSAGEHANDLER: this IRC server ('.$this->_address.') doesn\'t conform to the RFC 2812!', __FILE__, __LINE__); return; } $methodname = 'event_'.strtolower($this->nreplycodes[$messagecode]); $_methodname = '_'.$methodname; $_codetype = 'by numeric'; } else if (is_string($messagecode)) { // its not numericcode so already a name/string $methodname = 'event_'.strtolower($messagecode); $_methodname = '_'.$methodname; $_codetype = 'by string'; } // if exists call internal method for the handling if (@method_exists($this, $_methodname)) { $this->log(SMARTIRC_DEBUG_MESSAGEHANDLER, 'DEBUG_MESSAGEHANDLER: calling internal method "'.get_class($this).'->'.$_methodname.'" ('.$_codetype.')', __FILE__, __LINE__); $this->$_methodname($ircdata); $found = true; } // if exist, call user defined method for the handling if (@method_exists($this, $methodname)) { $this->log(SMARTIRC_DEBUG_MESSAGEHANDLER, 'DEBUG_MESSAGEHANDLER: calling user defined method "'.get_class($this).'->'.$methodname.'" ('.$_codetype.')', __FILE__, __LINE__); $this->$methodname($ircdata); $found = true; } if ($found == false) { $this->log(SMARTIRC_DEBUG_MESSAGEHANDLER, 'DEBUG_MESSAGEHANDLER: no method found for "'.$messagecode.'" ('.$methodname.')', __FILE__, __LINE__); } } /** * tries to find a actionhandler for the received message ($ircdata) and calls it * * @param object $ircdata * @return void * @access private */ function _handleactionhandler(&$ircdata) { $handler = &$this->_actionhandler; $handlercount = count($handler); for ($i = 0; $i < $handlercount; $i++) { $handlerobject = &$handler[$i]; if (substr($handlerobject->message, 0, 1) == '/') { $regex = $handlerobject->message; } else { $regex = '/'.$handlerobject->message.'/'; } if (($handlerobject->type & $ircdata->type) && (preg_match($regex, $ircdata->message) == 1)) { $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: actionhandler match found for id: '.$i.' type: '.$ircdata->type.' message: "'.$ircdata->message.'" regex: "'.$regex.'"', __FILE__, __LINE__); $methodobject = &$handlerobject->object; $method = $handlerobject->method; if (@method_exists($methodobject, $method)) { $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: calling method "'.get_class($methodobject).'->'.$method.'"', __FILE__, __LINE__); $methodobject->$method($this, $ircdata); } else { $this->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: method doesn\'t exist! "'.get_class($methodobject).'->'.$method.'"', __FILE__, __LINE__); } } } } /** * Delay reconnect * * @return void * @access private */ function _delayReconnect() { if ($this->_reconnectdelay > 0) { $this->log(SMARTIRC_DEBUG_CONNECTION, 'DEBUG_CONNECTION: delaying reconnect for '.$this->_reconnectdelay.' ms', __FILE__, __LINE__); usleep($this->_reconnectdelay * 1000); } } /** * getting current microtime, needed for benchmarks * * @return float * @access private */ function _microint() { $tmp = microtime(); $parts = explode(' ', $tmp); $floattime = (float)$parts[0] + (float)$parts[1]; return $floattime; } /** * adds an user to the channelobject or updates his info * * @param object $channel * @param object $newuser * @return void * @access private */ function _adduser(&$channel, &$newuser) { $lowerednick = strtolower($newuser->nick); if ($this->isJoined($channel->name, $newuser->nick)) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: updating user: '.$newuser->nick.' on channel: '.$channel->name, __FILE__, __LINE__); // lets update the existing user $currentuser = &$channel->users[$lowerednick]; if ($newuser->ident !== null) { $currentuser->ident = $newuser->ident; } if ($newuser->host !== null) { $currentuser->host = $newuser->host; } if ($newuser->realname !== null) { $currentuser->realname = $newuser->realname; } if ($newuser->op !== null) { $currentuser->op = $newuser->op; } if ($newuser->voice !== null) { $currentuser->voice = $newuser->voice; } if ($newuser->ircop !== null) { $currentuser->ircop = $newuser->ircop; } if ($newuser->away !== null) { $currentuser->away = $newuser->away; } if ($newuser->server !== null) { $currentuser->server = $newuser->server; } if ($newuser->hopcount !== null) { $currentuser->hopcount = $newuser->hopcount; } } else { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: adding user: '.$newuser->nick.' to channel: '.$channel->name, __FILE__, __LINE__); // he is new just add the reference to him $channel->users[$lowerednick] = &$newuser; } $user = &$channel->users[$lowerednick]; if ($user->op) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: adding op: '.$user->nick.' to channel: '.$channel->name, __FILE__, __LINE__); $channel->ops[$user->nick] = true; } if ($user->voice) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: adding voice: '.$user->nick.' to channel: '.$channel->name, __FILE__, __LINE__); $channel->voices[$user->nick] = true; } } /** * removes an user from one channel or all if he quits * * @param object $ircdata * @return void * @access private */ function _removeuser(&$ircdata) { if ($ircdata->type & (SMARTIRC_TYPE_PART|SMARTIRC_TYPE_QUIT)) { $nick = $ircdata->nick; } else if ($ircdata->type & SMARTIRC_TYPE_KICK) { $nick = $ircdata->rawmessageex[3]; } else { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: unknown TYPE ('.$ircdata->type.') in _removeuser(), trying default', __FILE__, __LINE__); $nick = $ircdata->nick; } $lowerednick = strtolower($nick); if ($this->_nick == $nick) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: we left channel: '.$ircdata->channel.' destroying...', __FILE__, __LINE__); unset($this->_channels[strtolower($ircdata->channel)]); } else { if ($ircdata->type & SMARTIRC_TYPE_QUIT) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: user '.$nick.' quit, removing him from all channels', __FILE__, __LINE__); // remove the user from all channels $channelkeys = array_keys($this->_channels); foreach ($channelkeys as $channelkey) { // loop through all channels $channel = &$this->_channels[$channelkey]; foreach ($channel->users as $uservalue) { // loop through all user in this channel if ($nick == $uservalue->nick) { // found him // kill him $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: found him on channel: '.$channel->name.' destroying...', __FILE__, __LINE__); unset($channel->users[$lowerednick]); if (isset($channel->ops[$nick])) { // die! $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing him from op list', __FILE__, __LINE__); unset($channel->ops[$nick]); } if (isset($channel->voices[$nick])) { // die!! $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing him from voice list', __FILE__, __LINE__); unset($channel->voices[$nick]); } // ups this was not DukeNukem 3D } } } } else { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing user: '.$nick.' from channel: '.$ircdata->channel, __FILE__, __LINE__); $channel = &$this->_channels[strtolower($ircdata->channel)]; unset($channel->users[$lowerednick]); if (isset($channel->ops[$nick])) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing him from op list', __FILE__, __LINE__); unset($channel->ops[$nick]); } if (isset($channel->voices[$nick])) { $this->log(SMARTIRC_DEBUG_CHANNELSYNCING, 'DEBUG_CHANNELSYNCING: removing him from voice list', __FILE__, __LINE__); unset($channel->voices[$nick]); } } } } /** * @return void * @access private */ function _checkPHPVersion() { // doing nothing at the moment } /** * checks if the passed handlertype is valid * * @param integer $handlertype * @return boolean * @access private */ function _isValidType($handlertype) { if ($handlertype & SMARTIRC_TYPE_ALL) { return true; } else { return false; } } function _addIrcUser() { } function _updateIrcUser() { } function _removeIrcUser() { } function _addChannelUser() { } function _updateChannelUser() { } function _removeChannelUser() { } // function isError($object) { return (bool)(is_object($object) && (strtolower(get_class($object)) == 'net_smartirc_error')); } function &throwError($message) { $error = new Net_SmartIRC_Error($message); return $error; } } // includes must be after the base class definition, required for PHP5 require_once 'SmartIRC/irccommands.php'; require_once 'SmartIRC/messagehandler.php'; class Net_SmartIRC extends Net_SmartIRC_messagehandler { // empty } /** * @access public */ class Net_SmartIRC_data { /** * @var string * @access public */ var $from; /** * @var string * @access public */ var $nick; /** * @var string * @access public */ var $ident; /** * @var string * @access public */ var $host; /** * @var string * @access public */ var $channel; /** * @var string * @access public */ var $message; /** * @var array * @access public */ var $messageex = array(); /** * @var integer * @access public */ var $type; /** * @var string * @access public */ var $rawmessage; /** * @var array * @access public */ var $rawmessageex = array(); } /** * @access public */ class Net_SmartIRC_actionhandler { /** * @var integer * @access public */ var $id; /** * @var integer * @access public */ var $type; /** * @var string * @access public */ var $message; /** * @var object * @access public */ var $object; /** * @var string * @access public */ var $method; } /** * @access public */ class Net_SmartIRC_timehandler { /** * @var integer * @access public */ var $id; /** * @var integer * @access public */ var $interval; /** * @var integer * @access public */ var $lastmicrotimestamp; /** * @var object * @access public */ var $object; /** * @var string * @access public */ var $method; } /** * @access public */ class Net_SmartIRC_channel { /** * @var string * @access public */ var $name; /** * @var string * @access public */ var $key; /** * @var array * @access public */ var $users = array(); /** * @var array * @access public */ var $ops = array(); /** * @var array * @access public */ var $voices = array(); /** * @var array * @access public */ var $bans = array(); /** * @var string * @access public */ var $topic; /** * @var string * @access public */ var $user_limit = false; /** * @var string * @access public */ var $mode; /** * @var integer * @access public */ var $synctime_start = 0; /** * @var integer * @access public */ var $synctime_stop = 0; /** * @var integer * @access public */ var $synctime; } /** * @access public */ class Net_SmartIRC_user { /** * @var string * @access public */ var $nick; /** * @var string * @access public */ var $ident; /** * @var string * @access public */ var $host; /** * @var string * @access public */ var $realname; /** * @var boolean * @access public */ var $ircop; /** * @var boolean * @access public */ var $away; /** * @var string * @access public */ var $server; /** * @var integer * @access public */ var $hopcount; } /** * @access public */ class Net_SmartIRC_channeluser extends Net_SmartIRC_user { /** * @var boolean * @access public */ var $op; /** * @var boolean * @access public */ var $voice; } /** * @access public */ class Net_SmartIRC_ircuser extends Net_SmartIRC_user { /** * @var array * @access public */ var $joinedchannels = array(); } /** * @access public */ class Net_SmartIRC_listenfor { /** * @var array * @access public */ var $result = array(); /** * stores the received answer into the result array * * @param object $irc * @param object $ircdata * @return void */ function handler(&$irc, &$ircdata) { $irc->log(SMARTIRC_DEBUG_ACTIONHANDLER, 'DEBUG_ACTIONHANDLER: listenfor handler called', __FILE__, __LINE__); $this->result[] = $ircdata; $irc->disconnect(true); } } class Net_SmartIRC_Error { var $error_msg; function Net_SmartIRC_Error($message) { $this->error_msg = $message; } function getMessage() { return $this->error_msg; } } ?>