--- /dev/null
+<?php
+/********************************* PHP-P10 ******************************
+ * P10 uplink class by pk910 (c)2011 pk910 *
+ ************************************************************************
+ * Version 2 (OOP) *
+ * *
+ * PHP-P10 is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program 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 General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with PHP-P10; if not, write to the Free Software Foundation, *
+ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
+ * *
+ ************************************************************************
+ *
+ * BotLoader/Bot.class.php
+ *
+ * bots' parent class.
+ *
+ */
+
+class Bot {
+
+ public function load($uplink, $oldDatas = null) {
+
+ }
+
+ public function unload() {
+
+ }
+
+ public function loop() {
+
+ }
+
+}
+
+?>
\ No newline at end of file
$this->server->addServer($new_server);
$this->flags |= self::FLAG_P10SESSION | self::FLAG_BURST_PENDING;
if($this->eventHandler)
- $this->eventHandler->event_server($new_server, !($this->flags & self::FLAG_CONNECTED));
+ $this->eventHandler->event_newserver($new_server, !($this->flags & self::FLAG_CONNECTED));
} else {
//another server got a new slave server ^^
$server = P10_Server::getServerByNum($from);
$new_server = new P10_Server($args[0], substr($args[5],0,2), $server, $args[2], $args[3], $args[7]);
$server->addServer($new_server);
if($this->eventHandler)
- $this->eventHandler->event_server($new_server, !($this->flags & self::FLAG_CONNECTED));
+ $this->eventHandler->event_newserver($new_server, !($this->flags & self::FLAG_CONNECTED));
}
}