summaryrefslogtreecommitdiff
path: root/localwebsite/handlers/MiscHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r--localwebsite/handlers/MiscHandler.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php
index 10b4426..4c5a25e 100644
--- a/localwebsite/handlers/MiscHandler.php
+++ b/localwebsite/handlers/MiscHandler.php
@@ -33,6 +33,9 @@ class MiscHandler extends RequestHandler
public function GET_pump_page() {
global $config;
+ if (isset($_GET['alt']) && $_GET['alt'] == 1)
+ $config['pump_host'] = '192.168.5.223';
+
list($set) = $this->input('set');
$client = new GPIORelaydClient($config['pump_host'], $config['pump_port']);
@@ -165,4 +168,4 @@ class MiscHandler extends RequestHandler
phpinfo();
}
-} \ No newline at end of file
+}