{"id":9213,"date":"2015-10-07T09:33:18","date_gmt":"2015-10-07T00:33:18","guid":{"rendered":"http:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/?page_id=9213"},"modified":"2017-02-08T11:24:44","modified_gmt":"2017-02-08T02:24:44","slug":"page-9213","status":"publish","type":"page","link":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/?page_id=9213","title":{"rendered":"\u30c1\u30fc\u30e0\u5225\u66f4\u65b0\u5c65\u6b74"},"content":{"rendered":"<p><?php\n\nglobal $post;\n$tmp_post = $post;\n\n\/\/DB\u63a5\u7d9a\u60c5\u5831 \n$url = \"mysql108.phy.lolipop.lan\";\n$user = \"LAA0392337\";\n$pass = \"P77KGGyn\";\n$db = \"LAA0392337-pokopoko\";\n\n  $pokota_color=\"#E9AFAF\";\n  $kirikirin_color=\"#E6E5A4\";\n  $berun_color=\"#A6CDE2\";\n  $kumagorou_color=\"#DCC2B5\";\n\n\n  \/\/DB\u63a5\u7d9a\n  $link = mysql_connect($url,$user,$pass) or die(\"MySQL\u3078\u306e\u63a5\u7d9a\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\");\n  $sdb = mysql_select_db($db,$link) or die(\"\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9078\u629e\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002\");\n  mysql_set_charset('utf8');\n  $upd_flg = false;\n\n\/\/\u30c1\u30fc\u30e0\u540d\u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\nif(!empty($_GET['group_name'])){\n      $group_name_str = $_GET['group_name'];\n      \n      echo '\n\n<div class=\"list-box\">&#8216;;<br \/>\n      echo &#8216;<\/p>\n<div class=\"list-img\"><img class=\"alignnone size-full wp-image-2504\" src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/' . $group_name_str . '132.png\" \/><\/div>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<div class=\"list-text\"><font size=5>&#8216; . $_GET[&#8216;group_japanese_name&#8217;] . &#8216;<\/font><\/div>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p><\/div>\n<p>&#8216;;<\/p>\n<p>     \/\/\u30e1\u30f3\u30d0\u30fc\u4e00\u89a7\u3092\u8868\u793a<br \/>\n     $sql = &#8220;SELECT username, japanese_name, sum(point) as point_sum,team,count(*) as touroku_count from pokopoko_ranking where yougan_flag=false and update_date > &#8216;2015-10-07 19:00:00&#8217; and update_date < '2015-12-27 21:00:00' group by username,team order by sum(point) desc\";\n     $result = mysql_query($sql, $link) or die(\"\u30af\u30a8\u30ea\u306e\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002<br \/>SQL:&#8221;.$sql);<br \/>\n     $count = 1;<\/p>\n<p>     echo &#8216;<\/p>\n<p class=\"m20-t m0-b\"><font size=5>\u30e1\u30f3\u30d0\u30fc\u4e00\u89a7<\/font>&#8216;;<\/p>\n<p>      if (is_mymobile()) {<br \/>\n          echo &#8216;<\/p>\n<table style=\"border-top:none;\">&#8216;;<br \/>\n      } else {<br \/>\n          echo &#8216;<\/p>\n<table class=\"pctable\" style=\"border-top:none;\">&#8216;;<br \/>\n      }<br \/>\n      echo &#8216;<\/p>\n<tr bgcolor=\"#A38255\" align=\"center\">&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\" width=\"23%\"><font color=\"white\">\u30dd\u30a4\u30f3\u30c8<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\" width=\"12%\"><font color=\"white\">\u56de\u6570<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\"><font color=\"white\">\u30d7\u30ec\u30a4\u30e4\u30fc&#038;\u7372\u5f97\u30a2\u30a4\u30c6\u30e0<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/tr>\n<p>&#8216;;<\/p>\n<p>      $total_update_count = 0;<br \/>\n      while ($row = mysql_fetch_assoc($result)) {<br \/>\n          if($row[&#8216;team&#8217;] == $group_name_str) {<\/p>\n<p>              \/\/\u80cc\u666f\u8272\u8a2d\u5b9a<br \/>\n              if($row[&#8216;team&#8217;] == &#8220;pokota&#8221;) {<br \/>\n                  $group_color = $pokota_color;<br \/>\n              } else if($row[&#8216;team&#8217;] == &#8220;kirikirin&#8221;) {<br \/>\n                  $group_color = $kirikirin_color;<br \/>\n              } else if($row[&#8216;team&#8217;] == &#8220;berun&#8221;) {<br \/>\n                  $group_color = $berun_color;<br \/>\n              } else if($row[&#8216;team&#8217;] == &#8220;kumagorou&#8221;) {<br \/>\n                  $group_color = $kumagorou_color;<br \/>\n              }<\/p>\n<p>              $td_str = &#8220;<\/p>\n<td valign='top' bgcolor='\" . $group_color . \"'>&#8220;;<br \/>\n              $num_str = &#8216;<\/p>\n<td  align=\"center\"  bgcolor=\"' . $group_color . '\">&#8216;. $count . &#8216;<\/td>\n<p>&#8216;;<\/p>\n<p>\t\t\t  \/\/<img class=\"alignnone size-full wp-image-2504\" src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/' . $row['team'] . '35.png\" \/><br \/>\n\t\t\t  $name_str = &#8216;<img class=\"alignnone size-full wp-image-2504 m5-r\" src=\"prof_files\/' . $row['username'] . '35.png\" \/>&#8216;;<br \/>\n\t\t\t  $name_str = $name_str .  &#8216;<a href=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/?page_id=4466&#038;username=' . $row['username'] . '\"><font size=3><u>&#8216; . $row[&#8216;japanese_name&#8217;] . &#8216;<\/u><\/font><\/a>&#8216;;<\/p>\n<p>              \/\/\u7206\u5f3e\u4e00\u89a7\u3092\u8868\u793a<br \/>\n              $bakudan_sql = &#8220;SELECT * from pokopoko_ranking where username='&#8221; . $row[&#8216;username&#8217;] . &#8220;&#8216; and (bonus = &#8216;rainbow_bakudan&#8217; or bonus =&#8217;yazirushi_bakudan&#8217;) order by update_date asc&#8221;;<br \/>\n              $bakudan_result = mysql_query($bakudan_sql, $link) or die(&#8220;\u30af\u30a8\u30ea\u306e\u9001\u4fe1\u306b\u5931\u6557\u3057\u307e\u3057\u305f\u3002<br \/>SQL:&#8221;.$bakudan_sql);<br \/>\n              while ($bakudan_row = mysql_fetch_assoc($bakudan_result)) {<br \/>\n                  if($bakudan_row[&#8216;bakudan_flag&#8217;] == false and date(&#8220;Y-m-d H:i:s&#8221;, strtotime($bakudan_row[&#8216;expiration_date&#8217;])) != &#8216;0000-00-00 00:00:00&#8217; and strtotime($bakudan_row[&#8216;expiration_date&#8217;]) < strtotime(date(\"Y\/m\/d H:i:s\", strtotime(\"+ 9 hour\")))) {\n                      $name_str = $name_str . '<br \/><img src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/defalt_sp.png\" \/><img class=\"alignnone size-full wp-image-2504\" src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/' . $bakudan_row['team'] . '_' . $bakudan_row['bonus'] . '_gray35.png\" \/> \u8150\u308b &#8216; . date(&#8216;n\u6708j\u65e5 H:i&#8217;, strtotime($bakudan_row[&#8216;expiration_date&#8217;]));<br \/>\n                  } else if ($bakudan_row[&#8216;bakudan_flag&#8217;] == false) {<br \/>\n                      $name_str = $name_str . &#8216;<br \/><img src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/defalt_sp.png\" \/><img class=\"alignnone size-full wp-image-2504\" src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/' . $bakudan_row['team'] . '_' . $bakudan_row['bonus'] . '35.png\" \/> \u4f7f\u7528\u671f\u9650 &#8216; . date(&#8216;n\u6708j\u65e5 H:i&#8217;, strtotime($bakudan_row[&#8216;expiration_date&#8217;]));<br \/>\n                  } else {<br \/>\n                      $name_str = $name_str . &#8216;<br \/><img src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/defalt_sp.png\" \/><img class=\"alignnone size-full wp-image-2504\" src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/uploads\/2015\/10\/' . $bakudan_row['team'] . '_' . $bakudan_row['bonus'] . '_gray35.png\" \/> \u4f7f\u7528\u6e08 &#8216; . date(&#8216;n\u6708j\u65e5 H:i&#8217;, strtotime($bakudan_row[&#8216;bakudan_use_date&#8217;]));<br \/>\n                  }<\/p>\n<p>              }<\/p>\n<p>\t\t      echo &#8216;<\/p>\n<tr valign=\"top\">&#8216;;<br \/>\n\t\t      echo ereg_replace(&#8220;rank&#8221;,&#8221;rank4&#8243;, ereg_replace(&#8220;valign=&#8221;,&#8221; align=&#8217;right&#8217; valign=&#8221;,$td_str)) . &#8220;<font size=3>&#8221; . $row[&#8216;point_sum&#8217;] . &#8216;<\/font><\/td>\n<p>&#8216;;<br \/>\n\t\t      echo ereg_replace(&#8220;rank&#8221;,&#8221;rank4&#8243;, ereg_replace(&#8220;valign=&#8221;,&#8221; align=&#8217;right&#8217; valign=&#8221;,$td_str)) . &#8220;<font size=3>&#8221; . $row[&#8216;touroku_count&#8217;] . &#8216;<\/font><\/td>\n<p>&#8216;;<br \/>\n\t\t      echo ereg_replace(&#8220;rank&#8221;,&#8221;rank2&#8243;,$td_str) . $name_str . &#8216;<\/td>\n<p>&#8216;;<\/p>\n<p>\t\t      echo &#8216;<\/tr>\n<p>&#8216;;<br \/>\n          }<br \/>\n\t      $count = $count + 1;<br \/>\n\t  }<\/p>\n<p>\t  echo &#8216;<\/table>\n<p>&#8216;;<\/p>\n<p>      \/\/\u5bfe\u8c61\u30c7\u30fc\u30bf\u3092\u53d6\u5f97<\/p>\n<p>      \/\/\u7dcf\u5408\u30dd\u30a4\u30f3\u30c8<br \/>\n      $total_rank_point = 0;<br \/>\n      $total_bonus_point = 0;<\/p>\n<p>     echo &#8216;<\/p>\n<p class=\"m50-t m0-b\"><font size=5>\u30e1\u30f3\u30d0\u30fc\u66f4\u65b0\u5c65\u6b74<\/font>&#8216;;<br \/>\n      if (is_mymobile()) {<br \/>\n          echo &#8216;<\/p>\n<table style=\"border-top:none;\" id=\"team_seiseki\">&#8216;;<br \/>\n      } else {<br \/>\n          echo &#8216;<\/p>\n<table class=\"pctable\" style=\"border-top:none;\" id=\"team_seiseki\">&#8216;;<br \/>\n      }<br \/>\n      echo &#8216;<\/p>\n<tr bgcolor=\"#A38255\" align=\"center\">&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\"><font color=\"white\">\u767b\u9332\u65e5<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\"><font color=\"white\">\u9806\u4f4d<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\"><font color=\"white\">\u30d7\u30ec\u30a4\u30e4\u30fc<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\"><font color=\"white\">\u767b\u9332\u30dd\u30a4\u30f3\u30c8<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/p>\n<td  class=\"onlytop\"><font color=\"white\">\u30dc\u30fc\u30ca\u30b9<\/font><\/td>\n<p>&#8216;;<br \/>\n      echo &#8216;<\/tr>\n<p>&#8216;;<\/p>\n<p>\t echo &#8216;<\/table>\n<p>&#8216;;<\/p>\n<p>     echo &#8216;<script type=\"text\/javascript\" src=\"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/wp-content\/themes\/keni62_wp_money_140903\/js\/team_seiseki.js\"><\/script>&#8216;;<\/p>\n<p>     echo &#8216;<\/p>\n<form id=\"team-form\"method=\"POST\">&#8216;;<br \/>\n     echo &#8216;<input type=\"hidden\" name=\"team\" value=\"' . $_GET['group_name'] . '\" \/>&#8216;;<br \/>\n     echo &#8216;<\/form>\n<p>&#8216;;<\/p>\n<p>}<\/p>\n<p>?><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=\/wp\/v2\/pages\/9213"}],"collection":[{"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9213"}],"version-history":[{"count":3,"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=\/wp\/v2\/pages\/9213\/revisions"}],"predecessor-version":[{"id":19864,"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=\/wp\/v2\/pages\/9213\/revisions\/19864"}],"wp:attachment":[{"href":"https:\/\/pokopan.hajihaji-lemon.com\/pokopoko\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}