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.

110 lines
2.6 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. <form action="/changeKCPWaction.php" method="post" enctype="multipart/form-data">
  53. <center>
  54. <img style="width:50vw;"src="css/password_graffiti_digitalized.png">
  55. <img style="width:50vw;"src="css/kaoscube_graffiti_digitalized.png">
  56. <input type="text" id="rootPW" name="rootPW" placeholder="root PW"><br><br>
  57. <input type="text" id="pwNewKc" name="pwNewKc" placeholder="NEW"><br><br>
  58. <input type="submit" value="Change PW">
  59. </center>
  60. </form>
  61. </br></br></br></br>
  62. <footer>
  63. <center>
  64. <a href="mailto:contact@cannabinieri.de"><p id="linktext"><?php echo _($localeYaml['contact'][$loc1])?></p></a>
  65. <p>© 2022 by Cannabinieri </p>
  66. <address>
  67. https://www.cannabinieri.de<br>
  68. E-Mail: contact@cannabinieri.de<br><br>
  69. </address>
  70. </center>
  71. </footer>
  72. </center>
  73. <center>
  74. <div id="containerdiv2">
  75. <a href="?color=deeppink"><p id="linktext"><b>pink</b></p></a>
  76. <a href="?color=lightblue"><p id="linktext">azurro</p></a>
  77. </div>
  78. </center>
  79. </body>
  80. </html>