mirror of https://github.com/IoTcat/wIoT.git
parent
be4eb7e9b9
commit
05254249a3
5 changed files with 51 additions and 8 deletions
@ -1,9 +1,6 @@ |
||||
<?php |
||||
$myfile = fopen("is_add_water.txt", "w") or die("Unable to open file!"); |
||||
$txt = "1"; |
||||
fwrite($myfile, $txt); |
||||
fclose($myfile); |
||||
$myfile = fopen("topW_end.txt", "w") or die("Unable to open file!"); |
||||
$txt = file_get_contents("./waterFlow2.txt"); |
||||
if($_REQUEST['key'] != '15') die(); |
||||
$myfile = fopen("./node/ctl.txt", "w") or die("Unable to open file!"); |
||||
$txt = $_REQUEST['cmd']; |
||||
fwrite($myfile, $txt); |
||||
fclose($myfile); |
||||
|
@ -0,0 +1,6 @@ |
||||
<?php |
||||
if($_REQUEST['key'] != '15') die(); |
||||
$myfile = fopen("./node/config/auto.txt", "w") or die("Unable to open file!"); |
||||
$txt = $_REQUEST['cmd']; |
||||
fwrite($myfile, $txt); |
||||
fclose($myfile); |
@ -0,0 +1,7 @@ |
||||
<?php |
||||
|
||||
if($_REQUEST['key'] != '15') die(); |
||||
$myfile = fopen("./node/config/reset.txt", "w") or die("Unable to open file!"); |
||||
$txt = '1' |
||||
fwrite($myfile, $txt); |
||||
fclose($myfile); |
Loading…
Reference in new issue