forked from La_Bureautique/zeg1jeux
Fix | fonction donneMoiSaPutaindeG1Pub() sur passerelle Libra
This commit is contained in:
parent
30a80cda2c
commit
1205ecf37b
10
home.php
10
home.php
|
@ -2,11 +2,9 @@
|
||||||
|
|
||||||
require_once('config.php');
|
require_once('config.php');
|
||||||
|
|
||||||
die($_SESSION['player_pubkey']);
|
|
||||||
$bodyIds = 'home';
|
$bodyIds = 'home';
|
||||||
include_once('header.php');
|
include_once('header.php');
|
||||||
|
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -33,6 +31,14 @@ echo '
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li id="dashboard-minelife">
|
||||||
|
<a href="minelife.html">
|
||||||
|
<span>
|
||||||
|
Manuel
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,7 @@ class Fred {
|
||||||
return json_decode($json);
|
return json_decode($json);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function donneMoiSaPutaindeG1Pub ($prenomNom, $nomDuChienSuivieDeLaDateDeNaissanceDeJohnnyHallyday) {
|
public function donneMoiSaPutaindeG1Pub ($prenomNom, $nomDuChienSuivieDeLaDateDeNaissanceDeJohnnyHallyday) {
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,11 +91,20 @@ class Fred {
|
||||||
|
|
||||||
// echo '<pre>'; var_dump(htmlspecialchars($url)); echo '</pre>';
|
// echo '<pre>'; var_dump(htmlspecialchars($url)); echo '</pre>';
|
||||||
|
|
||||||
$page1 = file_get_contents($url)
|
$opts = array(
|
||||||
or die('<p>On a fait du sale.</p>');
|
'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>');
|
// die('<pre>' . htmlspecialchars($page1) . '</pre>');
|
||||||
|
|
||||||
preg_match("`url='([^']+)'`isU", $page1, $matches);
|
preg_match("`url='([^']+)'`isU", $page1, $matches);
|
||||||
|
|
||||||
// die(
|
// die(
|
||||||
|
@ -108,11 +118,23 @@ class Fred {
|
||||||
|
|
||||||
$page2 = '';
|
$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)) {
|
while (empty($page2)) {
|
||||||
|
|
||||||
sleep($this->gatewayDelay);
|
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);
|
preg_match("`url='.*/user/([^']+)/'`isU", $page2, $matches);
|
||||||
|
|
|
@ -13,7 +13,7 @@ if (isset($_POST['salt'], $_POST['pepper'])) {
|
||||||
|
|
||||||
$toto = 'QP1VkfaFUMdHZmHgPMi7q5wJJHaQhZcEqs5A86NigKr';
|
$toto = 'QP1VkfaFUMdHZmHgPMi7q5wJJHaQhZcEqs5A86NigKr';
|
||||||
$boris = '25zB1gSC7Qhwnx463cuDLDCKLRVieLAgFiPbYq6jVHG9';
|
$boris = '25zB1gSC7Qhwnx463cuDLDCKLRVieLAgFiPbYq6jVHG9';
|
||||||
$playerG1Id = $toto;
|
// $playerG1Id = $toto;
|
||||||
|
|
||||||
$_SESSION['player_pubkey'] = $playerG1Id;
|
$_SESSION['player_pubkey'] = $playerG1Id;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue