config.php 814 B

123456789101112131415161718192021
  1. <?php
  2. $commit = trim(file_get_contents("../.git/refs/heads/main"));
  3. $text = substr($commit, 0, 7);
  4. $link = "https://git.qunn.eu/poesty/Tent/commit/" . $commit;
  5. $config = [
  6. // The title of this instance, displayed throughout the front-end. Default: Tent.
  7. "title" => "Tent",
  8. // A line of text displayed in the footer. May contain HTML. No default.
  9. "text" => "Tent © <a href=\"https://sny.sh/\">Sunny</a> and contributors, Tent's logo © SecularSteve. Not affiliated with <a href=\"https://bandcamp.com/\">Bandcamp</a>. Running commit <a href=\"" . $link . "\">" . $text . "</a>.",
  10. // Contents of the identity cookie when logged in to Bandcamp. Allows access to higher quality audio files. No default.
  11. "identity" => null
  12. ];
  13. unset($commit);
  14. unset($text);
  15. unset($link);
  16. ?>