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.

79 lines
2.3 KiB

1 year ago
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. <script src='https://git.io/zengine.js'></script>
  27. <script src='script.js'></script>
  28. </head>
  29. <body>
  30. <center>
  31. <header style="height: 10 vh;">
  32. <img style="float: right; height: 15vh;" src="static/KaosCubeLogo.png" alt="logo">
  33. <div class="linkContainer">
  34. <a href="/" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['indexLink'][$loc1]?></p></a>
  35. <a href="diy.php" style="text-decoration:none; color:black;"><p class="pLink"><b><?php echo $localeYaml['diyLink'][$loc1]?></b></p></a>
  36. <a href="buy.php" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['buyLink'][$loc1]?></p></a>
  37. <a href="3d.php" style="text-decoration:none; color:black;"><p class="pLink"><?php echo $localeYaml['3d'][$loc1]?></p></a>
  38. </div>
  39. </header>
  40. </br></br></br></br></br>
  41. <h1 style="color:deeppink;">Here you get to the documentation on how to set up the KaosCube yourself <a href="https://code.basabuuka.org/alpcentaur/kc-interface#diy-setting-up-the-kaoscube"><p class="pLink" style="color: deeppink;"> a gitea instance </p> </a>
  42. </br></br></br></br></br>
  43. </br></br></br></br></br>
  44. <footer>
  45. <a href="mailto:info@cannabinieri.de"><p class="pLink" style="color: deeppink;"><?php echo $localeYaml['contact'][$loc1]?></p></a>
  46. <p>© Cannabinieri 2022-CC BY-NC 4.0</p>
  47. <a href="https://www.cannabinieri.de"><p class="pLink" style="color: deeppink;"> <?php echo $localeYaml['contactWebsite'][$loc1]?> </p> </a> <br>
  48. </footer>
  49. </center>
  50. </body>
  51. </html>