added bind and unbind functions & added the simple ExampleBot. (doesn't run right...
[PHP-P10.git] / main.php
index 954aa6b07f549813fcb5511f8a29925ef35dd132..95e82b258bbb20ac4b9a9e7601976955737c814e 100644 (file)
--- a/main.php
+++ b/main.php
@@ -29,8 +29,13 @@ require_once("Uplink/Uplink.class.php");
 
 //basicly here is nothing, yet :D
 $uplink = new Uplink();
-$uplink->setUplinkHost("localhost", 4402);
-$uplink->setUplinkServer(5, "php.local.TestNet", "very_weak_password");
+$uplink->setUplinkHost("192.168.2.103", 4401);
+$uplink->setUplinkServer(5, "PHP.TestNet", "very_weak_password", "Test Server");
+$uplink->setValidateServer("test.localhost", "very_weak_password");
+
+$uplink->setEventHandler(ModCMD::getEventHandler());
+
+$uplink->initialize();
 
 while(true) {
        $uplink->loop();