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.

120 lines
2.5 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 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. $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. ?>
  24. <head>
  25. <meta charset="utf-8"/>
  26. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  27. <title><?php echo $localeYaml['title'][$loc1]?></title>
  28. <link rel="stylesheet" href="css/index.css">
  29. </head>
  30. <style>
  31. body {
  32. background: <?php echo $color?>;
  33. }
  34. input[type="text"] {
  35. background: <?php echo $color?>;
  36. }
  37. input[type="text"]:focus {
  38. background: <?php echo $color?>;
  39. }
  40. </style>
  41. <body>
  42. <center>
  43. <div id="containerdiv">
  44. <a href="/"><p id="linktext"><b><?php echo $localeYaml['connect'][$loc1]?></b></p></a>
  45. <a href="changeKCPW.php"><p id="linktext"><?php echo $localeYaml['changePassword'][$loc1]?></p></a>
  46. <a href="info.php"><p id="linktext"><?php echo $localeYaml['info'][$loc1]?></p></a>
  47. <a href="onion.php"><p id="linktext"><?php echo $localeYaml['onionFeatures'][$loc1]?></p></a>
  48. <a href="freedom.php"><p id="linktext"><?php echo $localeYaml['freedom'][$loc1]?></p></a>
  49. </div>
  50. </center>
  51. <br><br><br>
  52. <center>
  53. <img src="images/freedom_graffiti_digitalized.png">
  54. <br><br>
  55. The address of your hidden service is
  56. <br><br>
  57. <?php
  58. $stream = fopen("hshostname.txt", "r");
  59. while (($row = fgets($stream)) !== false) {
  60. echo $row;
  61. }
  62. fclose($stream);
  63. ?>
  64. <br><br><br><br>
  65. <center>
  66. <?php echo $localeYaml['freedom_p1'][$loc1]?>
  67. <?php echo $localeYaml['freedom_p2'][$loc1]?>
  68. </center>
  69. </form>
  70. </br></br></br></br></br>
  71. <footer>
  72. <center>
  73. <a href="mailto:contact@cannabinieri.de"><p id="linktext"><?php echo $localeYaml['contact'][$loc1]?></p></a>
  74. <p>© 2022 by Cannabinieri </p>
  75. <address>
  76. https://www.cannabinieri.de<br>
  77. E-Mail: contact@cannabinieri.de<br><br>
  78. </address>
  79. </center>
  80. </footer>
  81. </center>
  82. <center>
  83. <div id="containerdiv2">
  84. <a href="?color=deeppink"><p id="linktext"><b>pink</b></p></a>
  85. <a href="?color=lightblue"><p id="linktext">azurro</p></a>
  86. </div>
  87. </center>
  88. </body>
  89. </html>