2022-12-20 14:30:30 +01:00
|
|
|
<!doctype html>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$lang=$_GET['lang'];
|
|
|
|
if ( in_array ($lang, array('en-US'))){
|
|
|
|
$loc = "$lang".".utf8";
|
|
|
|
$loc1 = $lang;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$loc = "de-DE";
|
|
|
|
$loc1 = "de-DE";
|
|
|
|
}
|
|
|
|
|
|
|
|
$color=$_GET['color'];
|
|
|
|
|
|
|
|
if (strlen($color) <= 1){
|
|
|
|
$color = "deeppink";
|
|
|
|
}
|
|
|
|
|
|
|
|
include "Spyc.php";
|
|
|
|
$localeYaml = Spyc::YAMLLoad('locale.yaml');
|
|
|
|
$domain = "messages";
|
|
|
|
|
|
|
|
setlocale(LC_MESSAGES, $loc);
|
|
|
|
setlocale(LC_ALL, $loc);
|
|
|
|
|
|
|
|
$results = putenv("LC_ALL=$loc");
|
|
|
|
$results = putenv("LC_MESSAGES=$loc");
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
2023-01-09 23:10:53 +01:00
|
|
|
<title><?php echo $localeYaml['title'][$loc1]?></title>
|
2022-12-20 14:30:30 +01:00
|
|
|
<link rel="stylesheet" href="css/index.css">
|
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
body {
|
2023-01-09 23:10:53 +01:00
|
|
|
background: <?php echo $color?>;
|
2022-12-20 14:30:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"] {
|
2023-01-09 23:10:53 +01:00
|
|
|
background: <?php echo $color?>;
|
2022-12-20 14:30:30 +01:00
|
|
|
}
|
|
|
|
input[type="text"]:focus {
|
2023-01-09 23:10:53 +01:00
|
|
|
background: <?php echo $color?>;
|
2022-12-20 14:30:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<center>
|
|
|
|
<div id="containerdiv">
|
2023-01-09 23:10:53 +01:00
|
|
|
<a href="/"><p id="linktext"><b><?php echo $localeYaml['connect'][$loc1]?></b></p></a>
|
|
|
|
<a href="changeKCPW.php"><p id="linktext"><?php echo $localeYaml['changePassword'][$loc1]?></p></a>
|
|
|
|
<a href="info.php"><p id="linktext"><?php echo $localeYaml['info'][$loc1]?></p></a>
|
|
|
|
<a href="onion.php"><p id="linktext"><?php echo $localeYaml['onionFeatures'][$loc1]?></p></a>
|
|
|
|
<a href="freedom.php"><p id="linktext"><?php echo $localeYaml['freedom'][$loc1]?></p></a>
|
2022-12-20 14:30:30 +01:00
|
|
|
</div>
|
|
|
|
</center>
|
|
|
|
<?php
|
|
|
|
$state = "";
|
|
|
|
$txt_file = fopen('torState.csv','r');
|
|
|
|
while ($line = fgets($txt_file)) {
|
|
|
|
$state = $line;
|
|
|
|
$state = str_replace(array("\r", "\n"), '',$state);
|
|
|
|
}
|
|
|
|
fclose($txt_file);
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if(strcmp($state,'new')==0){
|
|
|
|
echo <<<GFG
|
|
|
|
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<center>
|
|
|
|
<p> get your first hidden service running </p>
|
|
|
|
</center>
|
|
|
|
|
|
|
|
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<form action="/createNodeAService.php" method="post" enctype="multipart/form-data">
|
|
|
|
<center>
|
|
|
|
<p> Insert the name of your hiddenservice Project (internal name) </p>
|
|
|
|
<input style="width:80vw;" type="text" id="hsname" name="hsname" placeholder="name"><br><br>
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<p> Insert the name of your node publicly visible on the tor network </p>
|
|
|
|
<input style="width:80vw;" type="text" id="nodename" name="nodename" placeholder="name"><br><br>
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<p> Insert your root password </p>
|
|
|
|
<input style="width:80vw;" type="text" id="rootPW" name="rootPW" placeholder="root pw"><br><br>
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<input type="submit" value="create">
|
|
|
|
</center>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</br></br></br></br></br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GFG;
|
|
|
|
}elseif(strcmp($state,'node')==0){
|
|
|
|
echo <<<GFG
|
|
|
|
|
|
|
|
<p> you have a node running</p>
|
|
|
|
|
|
|
|
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<form action="/change2bridge.php" method="post" enctype="multipart/form-data">
|
|
|
|
<center>
|
|
|
|
<p> give your bridge a name </p>
|
|
|
|
<input style="width:80vw;" type="text" id="password" name="password" placeholder="nickname"><br><br>
|
|
|
|
<br><br>
|
|
|
|
<input style="width:80vw;" type="text" id="rootPW" name="rootPW" placeholder="root passwort"><br><br>
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<input type="submit" value="become bridge">
|
|
|
|
</center>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</br></br></br></br></br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GFG;
|
|
|
|
|
|
|
|
}elseif(strcmp($state,'bridge')==0){
|
|
|
|
echo <<<GFG
|
|
|
|
|
|
|
|
|
|
|
|
<center>
|
|
|
|
<p> you have a Bridge running </p><br>
|
|
|
|
</center>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<form action="/change2node.php" method="post" enctype="multipart/form-data">
|
|
|
|
<center>
|
|
|
|
<p> type in the nickname of your middle node </p>
|
|
|
|
<input style="width:80vw;" type="text" id="password" name="password" placeholder="name middle node"><br><br>
|
|
|
|
<br><br>
|
|
|
|
<input style="width:80vw;" type="text" id="rootPW" name="rootPW" placeholder="root passwort"><br><br>
|
|
|
|
<br><br><br><br><br><br>
|
|
|
|
<input type="submit" value="become node">
|
|
|
|
</center>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</br></br></br></br></br>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GFG;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
<center>
|
2023-01-09 23:10:53 +01:00
|
|
|
<a href="mailto:contact@cannabinieri.de"><p id="linktext"><?php echo $localeYaml['contact'][$loc1]?></p></a>
|
2022-12-20 14:30:30 +01:00
|
|
|
<p>© 2022 by Cannabinieri </p>
|
|
|
|
<address>
|
|
|
|
https://www.cannabinieri.de<br>
|
|
|
|
E-Mail: contact@cannabinieri.de<br><br>
|
|
|
|
</address>
|
|
|
|
</center>
|
|
|
|
</footer>
|
|
|
|
</center>
|
|
|
|
<center>
|
|
|
|
<div id="containerdiv2">
|
|
|
|
<a href="?color=deeppink"><p id="linktext"><b>pink</b></p></a>
|
|
|
|
<a href="?color=lightblue"><p id="linktext">azurro</p></a>
|
|
|
|
</div>
|
|
|
|
</center>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|