add login check
This commit is contained in:
parent
231fc0a1e9
commit
4e74f5e9a2
|
@ -1,16 +1,21 @@
|
|||
<?php
|
||||
|
||||
if($_REQUEST['MASTERKEY'] != $RUNTIME['SYSTEMKEY'])
|
||||
die("ACCESS DENIED!");
|
||||
|
||||
$dockerClient = new Docker();
|
||||
$allContainers = $dockerClient->getAllContainers();
|
||||
|
||||
foreach($allContainers as $thisContainer)
|
||||
if($_REQUEST['MASTERKEY'] == $RUNTIME['SYSTEMKEY'])
|
||||
{
|
||||
$apiKey = calcAPIKey($thisContainer);
|
||||
|
||||
echo $thisContainer['Name']." == ".$apiKey."<br>\n";
|
||||
$dockerClient = new Docker();
|
||||
$allContainers = $dockerClient->getAllContainers();
|
||||
|
||||
foreach($allContainers as $thisContainer)
|
||||
{
|
||||
$apiKey = calcAPIKey($thisContainer);
|
||||
|
||||
echo $thisContainer['Name']." == ".$apiKey."<br>\n";
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
die("ACCESS DENIED!");
|
||||
|
||||
|
||||
|
||||
?>
|
Loading…
Reference in New Issue