small cleanup of ignore files etc
This commit is contained in:
@@ -0,0 +1 @@
|
||||
_test_env.php
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
define("ESP_IP", "192.168.0.19");
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user