2022-10-26 13:03:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once('config.php');
|
2022-11-14 15:45:55 +01:00
|
|
|
require_once('lib/Gchange.class.php');
|
2022-11-17 17:47:12 +01:00
|
|
|
require_once('lib/Keygen.class.php');
|
2022-11-18 01:42:39 +01:00
|
|
|
require_once('lib/Fred.class.php');
|
2022-10-26 13:03:52 +02:00
|
|
|
|
|
|
|
$bodyIds = 'home';
|
|
|
|
include_once('header.php');
|
|
|
|
|
2022-11-14 15:45:55 +01:00
|
|
|
$gchange = new Gchange();
|
|
|
|
|
2022-11-17 17:47:12 +01:00
|
|
|
$keygen = new Keygen();
|
|
|
|
|
2022-11-18 01:42:39 +01:00
|
|
|
// $ipfsHost = 'http://astroport.localhost:8080';
|
|
|
|
$ipfsHost = 'http://libra.copylaradio.com:8080';
|
|
|
|
|
2022-11-17 17:47:12 +01:00
|
|
|
|
2022-11-14 15:45:55 +01:00
|
|
|
try {
|
|
|
|
|
2022-11-18 01:42:39 +01:00
|
|
|
$player = $gchange->getUser($_SESSION['player_pubkey']);
|
2022-11-14 15:45:55 +01:00
|
|
|
|
2022-11-17 17:47:12 +01:00
|
|
|
|
2022-11-14 15:45:55 +01:00
|
|
|
} catch (Exception $errMsg) {
|
|
|
|
|
2022-11-18 01:42:39 +01:00
|
|
|
ErrorsHandler::kaput($errMsg);
|
|
|
|
}
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
$twLink = $ipfsHost . '/ipns/' . $keygen->getIPNSPub($_SESSION['salt'], $_SESSION['pepper']);
|
|
|
|
|
|
|
|
} catch (Exception $errMsg) {
|
|
|
|
|
|
|
|
$twLink = '#';
|
|
|
|
$fred = new Fred();
|
|
|
|
$twLink = $ipfsHost . '/ipns/' . $fred->donneMoiLaPutainDeClefIPNS($_SESSION['salt'], $_SESSION['pepper']);
|
|
|
|
|
2022-11-14 15:45:55 +01:00
|
|
|
}
|
|
|
|
|
2022-11-17 17:47:12 +01:00
|
|
|
|
2022-10-26 13:03:52 +02:00
|
|
|
echo '
|
2022-11-14 15:45:55 +01:00
|
|
|
<header>
|
|
|
|
Bienvenue '. $player->getUserName() . ' !
|
|
|
|
<!-- ('. substr($player->getUserGchangeId(), 0, 8) . ') -->
|
|
|
|
</header>
|
|
|
|
|
2022-10-26 13:03:52 +02:00
|
|
|
<nav>
|
|
|
|
<ul>
|
2022-10-30 19:56:28 +01:00
|
|
|
<li id="dashboard-map">
|
2022-10-26 13:03:52 +02:00
|
|
|
<a href="map.php">
|
2022-10-30 19:56:28 +01:00
|
|
|
<span>
|
|
|
|
Carte
|
|
|
|
</span>
|
2022-10-26 13:03:52 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2022-10-30 19:56:28 +01:00
|
|
|
<li id="dashboard-messenger">
|
2022-10-26 13:03:52 +02:00
|
|
|
<a href="messenger.php">
|
2022-10-30 19:56:28 +01:00
|
|
|
<span>
|
|
|
|
Messagerie
|
|
|
|
</span>
|
2022-10-26 13:03:52 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
2022-10-31 20:12:51 +01:00
|
|
|
|
|
|
|
<li id="dashboard-farfetched">
|
|
|
|
<a href="farfetched.php">
|
|
|
|
<span>
|
|
|
|
À distance ou en livraison
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-11-07 01:20:25 +01:00
|
|
|
|
|
|
|
<li id="dashboard-minelife">
|
2022-11-17 17:04:49 +01:00
|
|
|
<a href="minelife/index.html">
|
2022-11-07 01:20:25 +01:00
|
|
|
<span>
|
|
|
|
Manuel
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-11-17 17:47:12 +01:00
|
|
|
|
|
|
|
<li id="dashboard-tiddlywiki">
|
|
|
|
<a href="'. $twLink .'">
|
|
|
|
<span>
|
|
|
|
'. ('Mon TiddlyWiki') .'
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</li>
|
2022-10-26 13:03:52 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</nav>
|
|
|
|
';
|
|
|
|
|
|
|
|
include_once('footer.php');
|
|
|
|
|