www-thermferm/index.php

changeset 570
1e0192b295b9
parent 517
5fd12d9f3f84
child 578
d694abd9d809
equal deleted inserted replaced
569:9c69d43bfb06 570:1e0192b295b9
1 <?php 1 <?php
2 /***************************************************************************** 2 /*****************************************************************************
3 * Copyright (C) 2014-2017 3 * Copyright (C) 2014-2019
4 * 4 *
5 * Michiel Broek <mbroek at mbse dot eu> 5 * Michiel Broek <mbroek at mbse dot eu>
6 * 6 *
7 * This file is part of ThermFerm 7 * This file is part of ThermFerm
8 * 8 *
85 85
86 86
87 if (isset($_POST['SetProfile']) && isset($_POST['key']) && isset($_POST['UUID'])) { 87 if (isset($_POST['SetProfile']) && isset($_POST['key']) && isset($_POST['UUID'])) {
88 88
89 $cmd = array('UNIT PUT '.$_POST['UUID']); 89 $cmd = array('UNIT PUT '.$_POST['UUID']);
90 if ($_POST['key'] == "Set") 90 if ($_POST['key'] == "Start")
91 $cmd[] = 'PROFILE,'.$_POST['SetProfile'];
92 else if ($_POST['key'] == "Start")
93 $cmd[] = 'PROF_STATE,RUN'; 91 $cmd[] = 'PROF_STATE,RUN';
94 else if (($_POST['key'] == "Pause") || ($_POST['key'] == "Resume")) 92 else if (($_POST['key'] == "Pause") || ($_POST['key'] == "Resume"))
95 $cmd[] = 'PROF_STATE,PAUSE'; 93 $cmd[] = 'PROF_STATE,PAUSE';
96 else if ($_POST['key'] == "Abort") 94 else if ($_POST['key'] == "Abort")
97 $cmd[] = 'PROF_STATE,ABORT'; 95 $cmd[] = 'PROF_STATE,ABORT';

mercurial