The website of the KaosCube
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
  1. <!doctype html>
  2. <?php
  3. $lang=$_GET['lang'];
  4. if ( in_array ($lang, array('en-US'))){
  5. $loc = "$lang".".utf8";
  6. $loc1 = $lang;
  7. }
  8. else {
  9. $loc = "de-DE";
  10. $loc1 = "de-DE";
  11. }
  12. include "Spyc.php";
  13. $localeYaml = Spyc::YAMLLoad('locale.yaml');
  14. $domain = "messages";
  15. setlocale(LC_MESSAGES, $loc);
  16. setlocale(LC_ALL, $loc);
  17. $results = putenv("LC_ALL=$loc");
  18. $results = putenv("LC_MESSAGES=$loc");
  19. ?>
  20. <head>
  21. <meta charset="utf-8"/>
  22. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  23. <title><?php echo $localeYaml['title'][$loc1]?></title>
  24. <link rel="stylesheet" href="index.css">
  25. <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
  26. </head>
  27. <body>
  28. <center>
  29. <header style="height: 10 vh;">
  30. <img style="float: right; height: 15vh;" src="static/KaosCubeLogo.png" alt="logo">
  31. <div class="linkContainer">
  32. <a href="/" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['indexLink'][$loc1]?></p></a>
  33. <a href="diy.php" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['diyLink'][$loc1]?></p></a>
  34. <a href="buy.php" style="text-decoration:none; color:black;"><p class="pLink"><b><?php echo $localeYaml['buyLink'][$loc1]?></b></p></a>
  35. <a href="3d.php" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['3d'][$loc1]?></p></a>
  36. </div>
  37. </header>
  38. </br></br></br></br></br>
  39. <h1 style="color:deeppink; font-size: 5vw;"> Get your own <a href="https://shop.kaoscube.org"><p class="pLink" style="color: deeppink; font-size: 6vw;"> HERE </p> </a>
  40. </br></br></br></br></br>
  41. <footer>
  42. <a href="mailto:info@cannabinieri.de"><p class="pLink" style="color: deeppink;"><?php echo $localeYaml['contact'][$loc1]?></p></a>
  43. <p>© Cannabinieri 2022-CC BY-NC 4.0</p>
  44. <a href="https://www.cannabinieri.de"><p class="pLink" style="color: deeppink;"> <?php echo $localeYaml['contactWebsite'][$loc1]?> </p> </a> <br>
  45. </footer>
  46. </center>
  47. </body>
  48. </html>