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.

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