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.

166 lines
4.7 KiB

1 year ago
1 year ago
1 year ago
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. </head>
  27. <body>
  28. <center>
  29. <header>
  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. <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. <div class="banner">
  39. <div class="withinBanner">
  40. <h1 class="bannerHeader glow"><?php echo $localeYaml['inputSite_header'][$loc1]?></h1><br/>
  41. <p class="bannerSubtext glow"><?php echo $localeYaml['inputSite_title_subtext_1'][$loc1]?></p>
  42. </div>
  43. </div>
  44. </br></br>
  45. </br></br>
  46. <center>
  47. <div class="infoContainer">
  48. <div class="infoImgDiv">
  49. <img class="infoImg" src="static/icons/freedom.png" alt="logo">
  50. </div>
  51. <div class="infoDiv">
  52. <h2 class="infoHeader"><?php echo $localeYaml['info1Header'][$loc1]?></h2>
  53. <p class="info"><?php echo $localeYaml['info1'][$loc1]?></p>
  54. </div>
  55. </div>
  56. </center>
  57. </br></br>
  58. </br></br>
  59. <center>
  60. <div class="infoContainer">
  61. <div class="infoDiv">
  62. <h2 class="infoHeader"><?php echo $localeYaml['info2Header'][$loc1]?></h2>
  63. <p class="info"><?php echo $localeYaml['info2'][$loc1]?></p>
  64. </div>
  65. <div class="infoImgDiv">
  66. <img class="infoImg" src="static/icons/sustainability.png" alt="logo">
  67. </div>
  68. </div>
  69. </center>
  70. </br></br>
  71. </br></br>
  72. <center>
  73. <div class="infoContainer">
  74. <div class="infoImgDiv">
  75. <img class="infoImg" src="static/icons/opensource.png" alt="logo">
  76. </div>
  77. <div class="infoDiv">
  78. <h2 class="infoHeader"><?php echo $localeYaml['info3Header'][$loc1]?></h2>
  79. <p class="info"><?php echo $localeYaml['info3'][$loc1]?></p>
  80. </div>
  81. </div>
  82. </center>
  83. </br></br>
  84. </br></br>
  85. <center>
  86. <div class="infoContainer">
  87. <div class="infoDiv">
  88. <h2 class="infoHeader"><?php echo $localeYaml['info4Header'][$loc1]?></h2>
  89. <p class="info"><?php echo $localeYaml['info4'][$loc1]?></p>
  90. </div>
  91. <div class="infoImgDiv">
  92. <img class="infoImg" src="static/icons/simplicity.png" alt="logo">
  93. </div>
  94. </div>
  95. </center>
  96. </br></br>
  97. </br></br>
  98. <center>
  99. <div class="infoContainer">
  100. <div class="infoImgDiv">
  101. <img class="infoImg" src="static/icons/onion_icon.png" alt="logo">
  102. </div>
  103. <div class="infoDiv">
  104. <h2 class="infoHeader"><?php echo $localeYaml['info5Header'][$loc1]?></h2>
  105. <p class="info"><?php echo $localeYaml['info5'][$loc1]?></p>
  106. </div>
  107. </div>
  108. </center>
  109. </br></br></br></br></br>
  110. <footer>
  111. <a href="mailto:info@cannabinieri.de"><p class="pLink" style="color: deeppink;"><?php echo $localeYaml['contact'][$loc1]?></p></a>
  112. <p>© Cannabinieri 2022-CC BY-NC 4.0</p>
  113. <a href="https://www.cannabinieri.de"><p class="pLink" style="color: deeppink;"> <?php echo $localeYaml['contactWebsite'][$loc1]?> </p> </a> <br>
  114. <p>free open source Icons were taken from</p> <a href="https://thenounproject.com"><p class="pLink" style="color: deeppink;">the noun project </p> </a>
  115. </footer>
  116. </center>
  117. </body>
  118. </html>