From 74fd8bf404fb160e2a86df7f38597c4681c42b04 Mon Sep 17 00:00:00 2001 From: pk910 Date: Thu, 28 Jul 2011 03:07:35 +0200 Subject: [PATCH] added config file --- .gitignore | 2 ++ config.example.php | 14 ++++++++++++++ main.php | 4 +--- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 config.example.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cad9910 --- /dev/null +++ b/.gitignore @@ -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 index 0000000..df69915 --- /dev/null +++ b/config.example.php @@ -0,0 +1,14 @@ +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 diff --git a/main.php b/main.php index af8810c..827a259 100644 --- 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()); -- 2.20.1