Browse Source

Display canaries

canary_page_update
parent
commit
6e956b07a6
No known key found for this signature in database GPG Key ID: 630A04EE35E56530
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      canary/redesign.php

+ 11
- 4
canary/redesign.php View File

@ -52,13 +52,20 @@ foreach (new DirectoryIterator('./dl') as $canaryInfo) {
}
// Sort the canaries from newest to oldest
arsort($canaries);
// Render the canaries
?>
<div>
<?php
foreach ($canaries as $canary) {
$canaryContent = file_get_contents("./dl/" . $canary . "/Canary.txt");
echo("<section><pre><code>$canaryContent</code></pre></section>");
if (file_exists("./dl/" . $canary . "/Canary.txt")) {
echo("<div><h1>Canary $canary</h1>");
$canaryContent = file_get_contents("./dl/" . $canary . "/Canary.txt");
echo("<section><pre><code>$canaryContent</code></pre></section></div>");
}
}
?>
</div>
<?php include("../res/php/bottom.php") ?>
</body>
</html>

Loading…
Cancel
Save