• R/O
  • HTTP
  • SSH
  • HTTPS

YANMAH2-season2-: Commit


Commit MetaInfo

Revisionee30d6e21f4e5f590395ba75c9598cad932db56a (tree)
Time2017-03-28 01:21:27
AuthorKana Koda <kodakana@user...>
CommiterKana Koda

Log Message

ログインに関する修正。

Change Summary

Incremental Difference

--- a/login.php
+++ b/login.php
@@ -112,8 +112,9 @@ if (isset($_SESSION['auth']) && $_SESSION['auth'] === TRUE){
112112 $echo = $echo . '<p>もし間違っている場合は、一旦<a href="./login.php?log=out" class="navigation-link">ログアウト</a>してください。</p>';
113113 } elseif (isset($_SESSION['auth']) && $_SESSION['auth'] == 'wait'){
114114 $echo = $echo . "<p>ログインできませんか? <a href=\"./login.php?log=out\">もう一度試してみてください。</a></p>\n";
115+// var_dump($_SESSION);
115116 if (isset($_SESSION['reqtoken']) && $_SESSION['reqtoken'] != ''){
116- $authorize = 'http://www.hatena.ne.jp/mobile/oauth/authorize';
117+ $authorize = 'https://www.hatena.ne.jp/mobile/oauth/authorize';
117118 $redirect = $authorize.'?oauth_token='.rawurlencode($_SESSION['reqtoken']);
118119 // $echo = $echo . "<p><a href=\"{$redirect}\">リダイレクトなんて(´・ω・`)知らんがな。</a></p>";
119120 }
--- a/login_processor.php
+++ b/login_processor.php
@@ -10,7 +10,7 @@ if (isset($_GET['with'])){
1010 $error = '';
1111 if ($_GET['with'] == 'twitter'){
1212 } elseif ($_GET['with'] == 'haiku') {
13- $authorize = 'http://www.hatena.ne.jp/mobile/oauth/authorize';
13+ $authorize = 'https://www.hatena.ne.jp/mobile/oauth/authorize';
1414 // $myjson = 'http://n.hatena.com/applications/my.json';
1515 $reqtoken = getRequest('https://www.hatena.com/oauth/initiate', $callback, 'read_public,write_public', $conkey, $conkey_sec);
1616 // var_dump($reqtoken);
--- a/product_definitions.php
+++ b/product_definitions.php
@@ -7,7 +7,7 @@
77 <?php
88 $product_name_abbr = "YANMAH2";
99 $product_name_full = "Yet ANother Mobile Accelerated Hatena-Haiku";
10-$product_version = "season2 2.01";
10+$product_version = "season2 2.02";
1111 $project_name = "YANMAH2 project";
1212 $project_url = "http://yanmah2.sourceforge.jp/";
1313 $user_agent = $product_name_abbr . '/' . $product_version . ' ' . $_SERVER['SERVER_NAME'];
Show on old repository browser