the interface 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.

103 lines
2.3 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. $color=$_GET['color'];
  13. if (strlen($color) <= 1){
  14. $color = "deeppink";
  15. }
  16. include "Spyc.php";
  17. $localeYaml = Spyc::YAMLLoad('locale.yaml');
  18. $domain = "messages";
  19. setlocale(LC_MESSAGES, $loc);
  20. setlocale(LC_ALL, $loc);
  21. $results = putenv("LC_ALL=$loc");
  22. $results = putenv("LC_MESSAGES=$loc");
  23. $results = bindtextdomain($domain,"./locale");
  24. ?>
  25. <head>
  26. <meta charset="utf-8"/>
  27. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  28. <title><?php echo _($localeYaml['title'][$loc1])?></title>
  29. <link rel="stylesheet" href="css/index.css">
  30. </head>
  31. <style>
  32. body {
  33. background: <?php echo _($color)?>;
  34. }
  35. input[type="text"] {
  36. background: <?php echo _($color)?>;
  37. }
  38. input[type="text"]:focus {
  39. background: <?php echo _($color)?>;
  40. }
  41. </style>
  42. <body>
  43. <center>
  44. <div id="containerdiv">
  45. <a href="/"><p id="linktext"><b><?php echo _($localeYaml['connect'][$loc1])?></b></p></a>
  46. <a href="changeKCPW.php"><p id="linktext"><?php echo _($localeYaml['changePassword'][$loc1])?></p></a>
  47. <a href="info.php"><p id="linktext"><?php echo _($localeYaml['info'][$loc1])?></p></a>
  48. <a href="onion.php"><p id="linktext"><?php echo _($localeYaml['onionFeatures'][$loc1])?></p></a>
  49. <a href="freedom.php"><p id="linktext"><?php echo _($localeYaml['freedom'][$loc1])?></p></a>
  50. </div>
  51. </center>
  52. <br><br><br><br><br><br>
  53. <center>
  54. <?php echo _($localeYaml['freedom_p1'][$loc1])?>">
  55. <?php echo _($localeYaml['freedom_p2'][$loc1])?>">
  56. </center>
  57. </form>
  58. </br></br></br></br></br>
  59. <footer>
  60. <center>
  61. <a href="mailto:contact@cannabinieri.de"><p id="linktext"><?php echo _($localeYaml['contact'][$loc1])?></p></a>
  62. <p>© 2022 by Cannabinieri </p>
  63. <address>
  64. https://www.cannabinieri.de<br>
  65. E-Mail: contact@cannabinieri.de<br><br>
  66. </address>
  67. </center>
  68. </footer>
  69. </center>
  70. <center>
  71. <div id="containerdiv2">
  72. <a href="?color=deeppink"><p id="linktext"><b>pink</b></p></a>
  73. <a href="?color=lightblue"><p id="linktext">azurro</p></a>
  74. </div>
  75. </center>
  76. </body>
  77. </html>