added config file
authorpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 01:07:35 +0000 (03:07 +0200)
committerpk910 <philipp@zoelle1.de>
Thu, 28 Jul 2011 01:07:35 +0000 (03:07 +0200)
.gitignore [new file with mode: 0644]
config.example.php [new file with mode: 0644]
main.php

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..cad9910
--- /dev/null
@@ -0,0 +1,2 @@
+config.inc.php
+php_p10.db
\ No newline at end of file
diff --git a/config.example.php b/config.example.php
new file mode 100644 (file)
index 0000000..df69915
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+//example configuration
+
+//                         HOST     PORT
+$uplink->setUplinkHost("127.0.0.1", 4401);
+
+//                       NUMERIC    SERVER NAME           SERVER PASSWORD       SERVER DESCRIPTION
+$uplink->setUplinkServer(5,         "PHP.TestNet", "very_weak_password", "Test Server");
+
+//    (optional)           REMOTE SERVER     REMOTE SERVER PASSWORT (the same password like above)
+$uplink->setValidateServer("test.localhost", "very_weak_password");
+
+?>
\ No newline at end of file
index af8810c05517d0b4a212a6785a0bc972e893819d..827a259db4d3c4990ac589166582229792a21248 100644 (file)
--- a/main.php
+++ b/main.php
@@ -40,9 +40,7 @@ if(function_exists("pcntl_signal")) {
 
 //basicly here is nothing, yet :D
 $uplink = new Uplink();
-$uplink->setUplinkHost("192.168.2.103", 4401);
-$uplink->setUplinkServer(5, "PHP.TestNet", "very_weak_password", "Test Server");
-$uplink->setValidateServer("test.localhost", "very_weak_password");
+require_once("config.inc.php");
 
 $uplink->setEventHandler(ModCMD::getEventHandler());