index.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php include "../elements/header.php" ?>
  2. <?php
  3. $scheme = $_SERVER["REQUEST_SCHEME"];
  4. $host = $_SERVER["HTTP_HOST"];
  5. $uri = $_SERVER["REQUEST_URI"];
  6. $url = $scheme . "://" . $host . str_replace("/index.php", "/", $uri);
  7. ?>
  8. <h1><?= $config["title"] ?></h1>
  9. <p>
  10. Tent is a simple alternative front-end for Bandcamp.
  11. <br>
  12. It was inspired by Nitter and the like.
  13. </p>
  14. <h2>How do I get started?</h2>
  15. <p>Use the search bar at the top to find what you're looking for.</p>
  16. <h2>Why would I use this?</h2>
  17. <p>You might prefer Tent over the official Bandcamp website if you want to</p>
  18. <ul>
  19. <li>browse Bandcamp without enabling JavaScript,</li>
  20. <li>escape Bandcamp's analytics or</li>
  21. <li>use a more lightweight website.</li>
  22. </ul>
  23. <h2>Why would I not use this?</h2>
  24. <p>The official website may be preferable if you want to</p>
  25. <ul>
  26. <li>support the artists you listen to,</li>
  27. <li>purchase releases or merchandise or</li>
  28. <li>manage your account or collection.</li>
  29. </ul>
  30. <h2>How do I set up Redirector?</h2>
  31. <p>To set up a redirection extension, create the following rules:</p>
  32. <ul>
  33. <li><code>https://bandcamp.com/search?q=$1</code> → <code><?= $url ?>search.php?query=$1</code></li>
  34. <li><code>https://$1.bandcamp.com/</code> → <code><?= $url ?>artist.php?name=$1</code></li>
  35. <li><code>https://f4.bcbits.com/img/$1</code> → <code><?= $url ?>image.php?file=$1</code></li>
  36. </ul>
  37. <h2>Is Tent open-source?</h2>
  38. <p>
  39. Tent is still in early development.
  40. <br>
  41. Once it is relatively mature, its source code will be released on Codeberg.
  42. <br>
  43. You will be able to run it using PHP and its cURL and XML extensions.
  44. </p>
  45. <?php include "../elements/footer.php" ?>