config.php 844 B

1234567891011121314151617181920212223
  1. <?php
  2. $commit = trim(file_get_contents("../.git/refs/heads/main"));
  3. $text = substr($commit, 0, 7);
  4. $link = "https://forgejo.sny.sh/sun/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. " .
  10. "Not affiliated with <a href=\"https://bandcamp.com/\">Bandcamp</a>. " .
  11. "Running commit <a href=\"" . $link . "\">" . $text . "</a>.",
  12. // Contents of the identity cookie when logged in to Bandcamp. Allows access to higher quality audio files and purchased tracks. No default.
  13. "identity" => null
  14. ];
  15. unset($commit);
  16. unset($text);
  17. unset($link);
  18. ?>