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.

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