print to web with masterkey

This commit is contained in:
Christopher 2020-10-23 23:37:56 +02:00
parent 8a05cde88d
commit 231fc0a1e9
1 changed files with 4 additions and 5 deletions

View File

@ -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."
?>