diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-09-27 00:54:34 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-09-27 00:54:34 +0300 |
commit | b7cbc2571c1870b4582ead45277d0aa7f961bec8 (patch) | |
tree | 2e90c5bb00284d603ca73bc4a2253ff0e5ee51f4 /localwebsite/handlers/MiscHandler.php | |
parent | 3e3753d726f8a02d98368f20f77dd9fa739e3d80 (diff) |
lws: routing updates
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r-- | localwebsite/handlers/MiscHandler.php | 5 |
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 +} |