diff --git a/lib/Fred.class.php b/lib/Fred.class.php index 56ce98c..1325252 100644 --- a/lib/Fred.class.php +++ b/lib/Fred.class.php @@ -46,8 +46,8 @@ class Fred { throw new Exception("J'ai pas pû récupérer la putain de deuxième page."); } - - preg_match("`url='.*/ipns/([^']+)'`isU", $page2, $matches); + error_log () + preg_match("`url='.*\/ipns\/([^']+)'`isU", $page2, $matches); $ipnsKey = $matches[1]; @@ -150,7 +150,7 @@ class Fred { } - preg_match("`url='.*/user/([^']+)/'`isU", $page2, $matches); + preg_match("`url='.*\/user\/([^']+)/'`isU", $page2, $matches); $gchangeId = $matches[1]; diff --git a/login.php b/login.php index 6250bee..9d20f46 100644 --- a/login.php +++ b/login.php @@ -18,7 +18,7 @@ if (isset($_POST['salt'], $_POST['pepper'])) { try { $playerG1Id = $fred->donneMoiSaPutaindeG1Pub($_POST['salt'], $_POST['pepper']); - sleep(7); + sleep(3); $playerIPNS = $fred->donneMoiLaPutainDeClefIPNS($_POST['salt'], $_POST['pepper']); $keygen->generatePubsec($_POST['salt'], $_POST['pepper']);