OSDN Git Service

ログインに関する修正。
authorKana Koda <kodakana@users.sourceforge.jp>
Mon, 27 Mar 2017 16:21:27 +0000 (01:21 +0900)
committerKana Koda <kodakana@users.sourceforge.jp>
Mon, 27 Mar 2017 16:21:27 +0000 (01:21 +0900)
login.php
login_processor.php
product_definitions.php

index 0e58046..b681117 100644 (file)
--- a/login.php
+++ b/login.php
@@ -112,8 +112,9 @@ if (isset($_SESSION['auth']) && $_SESSION['auth'] === TRUE){
        $echo = $echo . '<p>もし間違っている場合は、一旦<a href="./login.php?log=out" class="navigation-link">ログアウト</a>してください。</p>';
 } elseif (isset($_SESSION['auth']) && $_SESSION['auth'] == 'wait'){
   $echo = $echo . "<p>ログインできませんか? <a href=\"./login.php?log=out\">もう一度試してみてください。</a></p>\n";
+//  var_dump($_SESSION);
   if (isset($_SESSION['reqtoken']) && $_SESSION['reqtoken'] != ''){
-       $authorize = 'http://www.hatena.ne.jp/mobile/oauth/authorize';
+       $authorize = 'https://www.hatena.ne.jp/mobile/oauth/authorize';
        $redirect = $authorize.'?oauth_token='.rawurlencode($_SESSION['reqtoken']);
 //     $echo = $echo . "<p><a href=\"{$redirect}\">リダイレクトなんて(´・ω・`)知らんがな。</a></p>";
   }
index d978976..c626368 100644 (file)
@@ -10,7 +10,7 @@ if (isset($_GET['with'])){
   $error = '';
   if ($_GET['with'] == 'twitter'){
   } elseif ($_GET['with'] == 'haiku') {
-       $authorize = 'http://www.hatena.ne.jp/mobile/oauth/authorize';
+       $authorize = 'https://www.hatena.ne.jp/mobile/oauth/authorize';
        // $myjson = 'http://n.hatena.com/applications/my.json';
        $reqtoken = getRequest('https://www.hatena.com/oauth/initiate', $callback, 'read_public,write_public', $conkey, $conkey_sec);
   //   var_dump($reqtoken);
index 1112d6d..5f26f5f 100644 (file)
@@ -7,7 +7,7 @@
 <?php
 $product_name_abbr = "YANMAH2";
 $product_name_full = "Yet ANother Mobile Accelerated Hatena-Haiku";
-$product_version = "season2 2.01";
+$product_version = "season2 2.02";
 $project_name = "YANMAH2 project";
 $project_url = "http://yanmah2.sourceforge.jp/";
 $user_agent = $product_name_abbr . '/' . $product_version . ' ' . $_SERVER['SERVER_NAME'];