print to web with masterkey
This commit is contained in:
parent
8a05cde88d
commit
231fc0a1e9
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
echo "Print all login data to STDOUT... ";
|
||||
|
||||
|
||||
if($_REQUEST['MASTERKEY'] != $RUNTIME['SYSTEMKEY'])
|
||||
die("ACCESS DENIED!");
|
||||
|
||||
$dockerClient = new Docker();
|
||||
$allContainers = $dockerClient->getAllContainers();
|
||||
|
||||
|
@ -10,8 +10,7 @@ foreach($allContainers as $thisContainer)
|
|||
{
|
||||
$apiKey = calcAPIKey($thisContainer);
|
||||
|
||||
fwrite(STDOUT, $thisContainer['Name']." == ".$apiKey);
|
||||
echo $thisContainer['Name']." == ".$apiKey."<br>\n";
|
||||
}
|
||||
|
||||
echo "done."
|
||||
?>
|
Loading…
Reference in New Issue