gatewayProtocol . '://'. $this->gatewayDomain .':' . $this->gatewayPort . '/?' . $query) or die('

On a fait du sale.

'); preg_match("`url='([^']+)'`isU", $page1, $matches); $url = $matches[1]; sleep($this->gatewayDelay); $page2 = @file_get_contents($url) or die('

On a chiƩ dans la colle.

'); preg_match("`url='.*/ipns/([^']+)'`isU", $page2, $matches); $ipnsKey = $matches[1]; return $ipnsKey; } public function donneMoiSesPutainDeMessagesGchange ($prenomNom, $nomDuChienSuivieDeLaDateDeNaissanceDeJohnnyHallyday, $gchangeId) { $salt = $prenomNom; $pepper = $nomDuChienSuivieDeLaDateDeNaissanceDeJohnnyHallyday; $query = 'salt='. $salt .'&pepper='. $pepper . '&messaging=' . $gchangeId; $url = $this->gatewayProtocol . '://'. $this->gatewayDomain .':' . $this->gatewayPort . '/?' . $query; echo '
'; var_dump(htmlspecialchars($url)); echo '
'; $page1 = file_get_contents($url) or die('

On a fait du sale.

'); echo '
'; var_dump(htmlspecialchars($page1)); echo '
'; preg_match("`url='([^']+)'`isU", $page1, $matches); $url = $matches[0]; echo '
'; var_dump($url); echo '
'; $page2 = ''; while (empty($page2)) { sleep($this->gatewayDelay); $page2 = @file_get_contents($url); } echo '
'; var_dump($page2); echo '
'; die(); $json = $page2; return $page1; } }