Improve way PHP connects to FTL

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-04-15 10:56:52 +02:00
parent c414a4aba1
commit a1824a45d4
3 changed files with 318 additions and 434 deletions

13
api.php
View File

@@ -75,20 +75,13 @@ elseif (isset($_GET['disable']) && $auth)
}
// Other API functions
if(!testFTL($FTL_IP) && !isset($_GET["PHP"]))
if(!isset($_GET["PHP"]))
{
$data = array_merge($data, array("FTLnotrunning" => true));
require("api_FTL.php");
}
else
{
if(!isset($_GET["PHP"]))
{
require("api_FTL.php");
}
else
{
require("api_PHP.php");
}
require("api_PHP.php");
}
if(isset($_GET["jsonForceObject"]))