small cleanup of ignore files etc

This commit is contained in:
2017-07-08 15:09:05 +02:00
parent fd5c8f3a6b
commit c39391f4a0
7 changed files with 162 additions and 16 deletions
+1
View File
@@ -0,0 +1 @@
_test_env.php
+3
View File
@@ -0,0 +1,3 @@
<?php
define("ESP_IP", "192.168.0.19");
+4 -2
View File
@@ -1,8 +1,10 @@
<?php
require '_test_env.php';
$f = file_get_contents('term.html');
$f = str_replace('%screenData%',
$f = str_replace('%screenData%',
'{
"w": 26, "h": 10,
"x": 0, "y": 0,
@@ -10,6 +12,6 @@ $f = str_replace('%screenData%',
"screen": "70 t259"
}', $f);
$f = str_replace('window.location.host', '"192.168.0.18"', $f);
$f = str_replace('window.location.host', json_encode(ESP_IP), $f);
echo $f;
+4 -2
View File
@@ -1,13 +1,15 @@
<?php
require '_test_env.php';
$f = file_get_contents('wifi.html');
$f = str_replace('%StaSSID%', 'Chlivek', $f);
$f = str_replace('%StaIP%', '192.168.0.15', $f);
$f = str_replace('%StaIP%', json_encode(ESP_IP), $f);
$f = str_replace('%WiFiModeNum%', '1', $f);
$f = str_replace('%WiFiMode%', 'Client', $f);
$f = str_replace('%WiFiChannel%', '1', $f);
$f = str_replace('window.location.host', '"192.168.0.15"', $f);
$f = str_replace('window.location.host', json_encode(ESP_IP), $f);
echo $f;