From: pk910 Date: Thu, 28 Jul 2011 11:24:08 +0000 (+0200) Subject: changed file headers & added AUTHORS file X-Git-Url: http://git.pk910.de/?p=PHP-P10.git;a=commitdiff_plain;h=0f30e96ae37491aee19e72b89cc54a6798d1f254;ds=sidebyside changed file headers & added AUTHORS file --- diff --git a/AUTHORS b/AUTHORS new file mode 100644 index 0000000..640b50b --- /dev/null +++ b/AUTHORS @@ -0,0 +1,13 @@ + PHP-P10 Development Team + +Project Admin: +pk910 + +Coders: +pk910 + +Documentation: +- no documentation, yet - + +You can find the team on irc.webgamesnet.net, in #php. Bug reports, +feature requests, criticism or praise are welcome. We love feedback. diff --git a/BotLoader/Bot.class.php b/BotLoader/Bot.class.php index 1fdbc41..b617193 100644 --- a/BotLoader/Bot.class.php +++ b/BotLoader/Bot.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/BotLoader/BotLoader.class.php b/BotLoader/BotLoader.class.php index 9fd0f70..b13be36 100644 --- a/BotLoader/BotLoader.class.php +++ b/BotLoader/BotLoader.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/BotLoader/saxdb.class.php b/BotLoader/saxdb.class.php index e3e5413..1c43168 100644 --- a/BotLoader/saxdb.class.php +++ b/BotLoader/saxdb.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Bots/ExampleBot.class.php b/Bots/ExampleBot.class.php index 299f151..d01e5ca 100644 --- a/Bots/ExampleBot.class.php +++ b/Bots/ExampleBot.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Bots/IPv6.class.php b/Bots/IPv6.class.php index 2d5bdb5..034b72d 100644 --- a/Bots/IPv6.class.php +++ b/Bots/IPv6.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Bots/ModManager.class.php b/Bots/ModManager.class.php index a83e0a8..29f3302 100644 --- a/Bots/ModManager.class.php +++ b/Bots/ModManager.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Bots/PHPGod.class.php b/Bots/PHPGod.class.php index d95ae9b..e0ffd72 100644 --- a/Bots/PHPGod.class.php +++ b/Bots/PHPGod.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Bots/Stats.class.php b/Bots/Stats.class.php index 33e8e5f..cacdc2b 100644 --- a/Bots/Stats.class.php +++ b/Bots/Stats.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/ModCMD/Binding.class.php b/ModCMD/Binding.class.php index 143b35e..7dc0d79 100644 --- a/ModCMD/Binding.class.php +++ b/ModCMD/Binding.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,9 +21,6 @@ * * a single Binding... * - ************************************************************************ - * - * */ class Binding { diff --git a/ModCMD/ModCMD.class.php b/ModCMD/ModCMD.class.php index e1b81cd..82ee956 100644 --- a/ModCMD/ModCMD.class.php +++ b/ModCMD/ModCMD.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,9 +21,6 @@ * * shares the incoming events to all bot's that request them. * - ************************************************************************ - * - * */ require_once("Binding.class.php"); diff --git a/Tools/timer.inc.php b/Tools/timer.inc.php index 57c6318..9b87c4d 100644 --- a/Tools/timer.inc.php +++ b/Tools/timer.inc.php @@ -1,4 +1,26 @@ . * + * * + ************************************************************************ + * + * Tools/timer.inc.php + * + * timer functions + */ $timers['id']=0; function timer_loop() { diff --git a/Uplink/Client.class.php b/Uplink/Client.class.php index af666ce..aceefe8 100644 --- a/Uplink/Client.class.php +++ b/Uplink/Client.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,29 +21,6 @@ * * This file contains the basic Client Socket. * - ************************************************************************ - * accessable methods: - * - * bool connect(String $host, int $port, String $bind = null, bool $ssl = false, int $blocking = 0) - * connects the socket to $host:$port with the provided options - * - * void disconnect() - * disconnects the socket - * - * bool connected() - * returns the state of the socket (true if the socket is connected with the server) - * - * String[] recv() - * tries to receive datas from the socket. Returns null or a array containing the lines received. - * this method BLOCKS THE SCRIPT EXECUTION for the defined time if $blocking is set on connect(). - * - * void send(String $line, String $newline = "\r\n") - * tries to send datas through the socket. - * - * Array[] getTraffic() - * returns an array containing the traffic the socket has received and sent. - * index in = incoming (received) traffic count - index out = outgoing (sent) traffic count */ class Client { diff --git a/Uplink/EventHandler.interface.php b/Uplink/EventHandler.interface.php index d4dc99c..e0b20e2 100644 --- a/Uplink/EventHandler.interface.php +++ b/Uplink/EventHandler.interface.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Uplink/IPAddr.class.php b/Uplink/IPAddr.class.php index 661a8e2..737cb9a 100644 --- a/Uplink/IPAddr.class.php +++ b/Uplink/IPAddr.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Uplink/Numerics.class.php b/Uplink/Numerics.class.php index 943fc15..7cb4fb5 100644 --- a/Uplink/Numerics.class.php +++ b/Uplink/Numerics.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,20 +21,6 @@ * * P10 numeric functions * - ************************************************************************ - * accessable functions - * - * static String intToNum(int $int, int $length) - * returns the numeric representing $int - * - * static int numToInt(String $numeric) - * returns the integer value, the numeric represents - * - * static String parseIP(String $numeric) - * parses an IP Address in numeric format - * - * static String numericFromIP(String $ip) - * builds a numeric representing the IP */ class Numerics { diff --git a/Uplink/P10Formatter.class.php b/Uplink/P10Formatter.class.php index 05cb8e3..4d27a38 100644 --- a/Uplink/P10Formatter.class.php +++ b/Uplink/P10Formatter.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,12 +21,6 @@ * * This file contains the command formatter. * - ************************************************************************ - * accessable methods: - * - * static String formatCMD(String $numeric, String $command, String[] $args) - * builds the command with the given arguments - * */ class P10Formatter { diff --git a/Uplink/P10_Channel.class.php b/Uplink/P10_Channel.class.php index a0d9fb8..4fe3a20 100644 --- a/Uplink/P10_Channel.class.php +++ b/Uplink/P10_Channel.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,15 +21,6 @@ * * This class represents a IRC Channel * - ************************************************************************ - * accessable methods: - * - * static P10_User getChannelByName(String $name) - * searches and returns the Channel with the provided name - * - * __construct(String $name) - * *** nothing to say here *** - * */ class P10_Channel { diff --git a/Uplink/P10_ModeSets.class.php b/Uplink/P10_ModeSets.class.php index 612ee65..9eb36ea 100644 --- a/Uplink/P10_ModeSets.class.php +++ b/Uplink/P10_ModeSets.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * diff --git a/Uplink/P10_Server.class.php b/Uplink/P10_Server.class.php index ba9200e..183fb6e 100644 --- a/Uplink/P10_Server.class.php +++ b/Uplink/P10_Server.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,47 +21,6 @@ * * This class represents a IRC Server * - ************************************************************************ - * accessable methods: - * - * static P10_Server getServerByNum(String $numeric) - * searches and returns the Server with the provided Numeric - * - * __construct(String $name, String $numeric, P10_Server $parent_server, int $start_time, $link_time, $description) - * *** nothing to say here *** - * - * void disconnectServer(bool $linked_only = false) - * DISCONNECT EVENT (if $linked_only is true, only the Servers connected to the actual Server get disconnected.) - * - * String getNumeric() - * returns the Numeric of the Server - * - * String getName() - * returns the Name of the Server - * - * String getStartTime() - * returns the startup time of the Server - * - * String getLinkTime() - * returns the link time of the Server - * - * String getDescription() - * returns the Description of the Server - * - * void addServer(P10_Server $server) - * adds a Server to the server's "slave" list - * - * void delServer(P10_Server $server) - * removes a Server from the server's "slave" list - * - * void addUser(P10_User $user) - * adds a User to the server's userlist - * - * void delUser(P10_User $user) - * removes a User from the server's userlist - * - * P10_User[] getUsers() - * returns the server's userlist */ class P10_Server { diff --git a/Uplink/P10_User.class.php b/Uplink/P10_User.class.php index 552c3e4..7a6bd0e 100644 --- a/Uplink/P10_User.class.php +++ b/Uplink/P10_User.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,15 +21,6 @@ * * This class represents a IRC User * - ************************************************************************ - * accessable methods: - * - * static P10_User getUserByNum(String $numeric) - * searches and returns the User with the provided Numeric - * - * __construct(String $nick, String $numeric, P10_Server $server, int $connect_time, String $ident, String $realname, P10_ModeSet $modes) - * *** nothing to say here *** - * */ class P10_User { diff --git a/Uplink/Uplink.class.php b/Uplink/Uplink.class.php index 85adeae..9d88ae5 100644 --- a/Uplink/Uplink.class.php +++ b/Uplink/Uplink.class.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ * @@ -24,34 +21,6 @@ * * This file contains the basic P10 Protocol handler. * - ************************************************************************ - * accessable methods: - * - * void initialize() - * has to be called after the settings have been set. - * - * void loop() - * loop function that should be calles as many times as possible. - * It reads from the socket and BLOCKS the script execution for a - * specific time if nothing is received. - * - * void setUplinkHost(String $host, int $port, bool $ssl = false, String $bind = null) - * sets the Uplink connection information. - * - * void setLoopTimeout(int $timeout) - * sets the maximum time loop() is blocking the script execution. - * - * void setUplinkServer(int $numeric, String $name, String $password, String $description) - * sets the own P10 Server information. - * - * void setValidateServer(String $name, String $password) - * sets additional security relevant information about the remote server. - * - * void setHISOptions(String $serverName, String $serverDescription String $usermask) - * sets the default Account fakehost - * - * void setEventHandler(EventHandler $event_handler) - * sets the EventHandlder */ require_once("Client.class.php"); require_once("Numerics.class.php"); diff --git a/main.php b/main.php index 827a259..2df531e 100644 --- a/main.php +++ b/main.php @@ -1,22 +1,19 @@ . * * * ************************************************************************ *