yukiboard

rep2(exじゃない)向けBe2.0 Patch

Mar 14th, 2015
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.72 KB | None | 0 0
  1. --- lib/P2Util.php  Mon Nov 24 14:14:52 2014
  2. +++ lib/P2Util.php  Sat Feb 28 11:20:49 2015
  3. @@ -94 +94 @@
  4. -        $req = new HTTP_Request('http://be.2ch.net/test/login.php?guid=ON', $params);
  5. +        $req = new HTTP_Request('http://be.2ch.net/index.php', $params);
  6. @@ -97,5 +97,5 @@
  7. -        $req->addPostData('m', $mail);
  8. -        $be2chEncoding = 'eucJP-win';
  9. -        $req->addPostData('p', mb_convert_encoding($pass, $be2chEncoding, mb_internal_encoding()));
  10. -        $req->addPostData('submit', mb_convert_encoding('登録', $be2chEncoding, mb_internal_encoding()));
  11. -        
  12. +        $req->addPostData('mail', $mail);
  13. +        $req->addPostData('pass', $pass);
  14. +        $req->addPostData('login', 'ログインする');
  15. +  
  16. +  
  17. @@ -112,23 +111,0 @@
  18. -        
  19. -        // 2011/01/11 正否はSet-Cookieで判別すればいい
  20. -        // 駄目なときは「不正なリクエスト」とか「パスワードかメールアドレスが正しくないようです。」が返る
  21. -        // 成功時
  22. -        /*
  23. -<html><head>
  24. -<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" />
  25. -<title>Beログイン</title>
  26. -<script type="text/javascript"><!--
  27. -
  28. -var exp = new Date();
  29. -exp.setTime(exp.getTime() + 5 * 365 * 86400 * 1000);
  30. -exp = exp.toUTCString();
  31. -
  32. -document.cookie = "DMDM=1127232; expires=" + exp + "; path=/; domain=.2ch.net";
  33. -document.cookie = "MDMD=jy7MPa%2Bu0r7mScKRop3YBoPZ0HH6Is00; expires=" + exp + "; path=/; domain=.2ch.net";
  34. -
  35. -//--></script>
  36. -</head><body>
  37. -ログイン完了
  38. -<hr />こちらから<a href="/">掲示板</a>に入ってください。
  39. -</body></html>
  40. -*/
  41. @@ -147 +124 @@
  42. -            if ($code == 200 || $code == 206) {
  43. +            if ($code == 302) {
Advertisement
Add Comment
Please, Sign In to add comment