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.

72 lines
1.8 KiB

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"><b><?php echo $localeYaml['indexLink'][$loc1]?></b></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"><?php echo $localeYaml['buyLink'][$loc1]?></p></a>
  35. </div>
  36. </header>
  37. </br></br></br></br></br>
  38. <h1 style="color:deeppink;">Soon to come<h1>
  39. </br></br></br></br></br>
  40. <footer>
  41. <a href="mailto:info@cannabinieri.de"><p class="pLink" style="color: deeppink;"><?php echo $localeYaml['contact'][$loc1]?></p></a>
  42. <p>© Cannabinieri 2022-CC BY-NC 4.0</p>
  43. <a href="https://www.cannabinieri.de"><p class="pLink" style="color: deeppink;"> <?php echo $localeYaml['contactWebsite'][$loc1]?> </p> </a> <br>
  44. </footer>
  45. </center>
  46. </body>
  47. </html>