diff -r 83502d2099eb -r 0d86f3c0a07b www-thermferm/index.php --- a/www-thermferm/index.php Wed Jul 30 19:39:50 2014 +0200 +++ b/www-thermferm/index.php Wed Jul 30 22:57:48 2014 +0200 @@ -26,9 +26,21 @@ */ $my_style = 'ui-redmond'; +require_once('utilities.php'); require_once('liveview.php'); + +/* + * Handle the post events + */ +if (isset($_POST['mode']) && isset($_POST['UUID'])) { + send_cmd('UNIT '.$_POST['UUID']); + send_cmd('MODE '.$_POST['mode']); +} + + + $outstr = ''.PHP_EOL; $outstr .= ''.PHP_EOL; $outstr .= ' '.PHP_EOL; @@ -66,3 +78,8 @@ echo $outstr; +echo "_GET "; +print_r ($_GET); +echo "
_POST "; +print_r ($_POST); +