Fix | fonction donneMoiSaPutaindeG1Pub() sur passerelle Libra

This commit is contained in:
Boris 2022-11-07 01:20:25 +01:00
parent 30a80cda2c
commit 1205ecf37b
3 changed files with 35 additions and 7 deletions

View File

@ -2,11 +2,9 @@
require_once('config.php');
die($_SESSION['player_pubkey']);
$bodyIds = 'home';
include_once('header.php');
echo '
<nav>
<ul>
@ -33,6 +31,14 @@ echo '
</span>
</a>
</li>
<li id="dashboard-minelife">
<a href="minelife.html">
<span>
Manuel
</span>
</a>
</li>
</ul>

View File

@ -78,6 +78,7 @@ class Fred {
return json_decode($json);
}
public function donneMoiSaPutaindeG1Pub ($prenomNom, $nomDuChienSuivieDeLaDateDeNaissanceDeJohnnyHallyday) {
@ -90,11 +91,20 @@ class Fred {
// echo '<pre>'; var_dump(htmlspecialchars($url)); echo '</pre>';
$page1 = file_get_contents($url)
or die('<p>On a fait du sale.</p>');
$opts = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: fr\r\n",
'follow_location' => 0
)
);
$context = stream_context_create($opts);
$page1 = file_get_contents($url, false, $context)
or die('<p>On a fait du sale.</p>');
// die('<pre>' . htmlspecialchars($page1) . '</pre>');
preg_match("`url='([^']+)'`isU", $page1, $matches);
// die(
@ -108,11 +118,23 @@ class Fred {
$page2 = '';
$opts2 = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: fr\r\n",
'follow_location' => 0
)
);
$context2 = stream_context_create($opts2);
sleep(3);
while (empty($page2)) {
sleep($this->gatewayDelay);
$page2 = @file_get_contents($url);
$page2 = file_get_contents($url, false, $context2) or die('<pre>'. var_dump($page2, true) . '</pre>');
}
preg_match("`url='.*/user/([^']+)/'`isU", $page2, $matches);

View File

@ -13,7 +13,7 @@ if (isset($_POST['salt'], $_POST['pepper'])) {
$toto = 'QP1VkfaFUMdHZmHgPMi7q5wJJHaQhZcEqs5A86NigKr';
$boris = '25zB1gSC7Qhwnx463cuDLDCKLRVieLAgFiPbYq6jVHG9';
$playerG1Id = $toto;
// $playerG1Id = $toto;
$_SESSION['player_pubkey'] = $playerG1Id;