share.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?php
  2. include_once "../config.php";
  3. $feed=isset($_GET['feed'])?$_GET['feed']:'512';
  4. $caption=isset($_GET['caption'])?$_GET['caption']:'ไพ่เท็กซัสซูเปอร์';
  5. $name=isset($_GET['name'])?$_GET['name']:'ไพ่เท็กซัสซูเปอร์ คือเกมส์ไพ่เท็กซัสที่หรูหราและสนุกตื่นเต้นที่สุดในโลก';
  6. $conent = $rootPath.'/img/feed/'.$feed.'.jpg';
  7. // 此处需要添加 直接进牌桌的原始网页参数
  8. $url = $rootPath.'/m/share.php?feed='.$feed.'&caption='.$caption.'&name='.$name;
  9. $paramList = $_GET;
  10. $paramStr = '?';
  11. foreach ($paramList as $n => $val) {
  12. $paramStr .= $n.'='.$val.'&';
  13. }
  14. $paramStr = rtrim($paramStr, '&');
  15. ?>
  16. <html>
  17. <head>
  18. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  19. <meta name="viewport" content="width=device-width, initial-scale=0.66"/>
  20. <meta name="apple-mobile-web-app-capable" content="yes">
  21. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  22. <meta name="format-detection" content="telephone=no">
  23. <meta name="Keywords" content="poker,texas,ซูเปอร์,,ไพ่เท็กซัส,ไพ่,เกมไพ่,ไพ่เก้าเก,เกมส์ไพ่,poker,ซุปเปอร์เท็กซัสโป๊กเกอร์" />
  24. <meta name="description" content="ไพ่เท็กซัสซูเปอร์ คือเกมส์ไพ่เท็กซัสที่หรูหราและสนุกตื่นเต้นที่สุดในโลก" />
  25. <meta property="og:type" content="game" />
  26. <meta property="fb:app_id" content="<?php echo $fbId;?>" />
  27. <meta property="og:image" content="<?php echo $conent;?>" />
  28. <meta property="og:url" content="<?php echo $url;?>" />
  29. <meta property="og:title" content="<?php echo $caption;?>" />
  30. <meta property="og:description" content="<?php echo $name;?>" />
  31. <meta property="al:ios:url" content="<?php echo $appleOpenUrl;?>" />
  32. <meta property="al:ios:app_store_id" content="<?php echo $appId;?>" />
  33. <meta property="al:ios:app_name" content="<?php echo $appName;?>" />
  34. <title><?php echo $appName;?></title>
  35. <style>
  36. @charset "UTF-8";
  37. /* CSS Document */
  38. .menu {
  39. margin:0 auto;
  40. border:1pt solid #999999;
  41. border-radius:5px;
  42. -webkit-border-radius: 5px;
  43. -moz-border-radius: 5px;
  44. }
  45. .menu a {
  46. text-decoration:none;
  47. height:100%;
  48. display:block;
  49. border-radius:5px;
  50. -webkit-border-radius: 5px;
  51. -moz-border-radius: 5px; color:#333;
  52. }
  53. .menu a:visited {
  54. text-decoration:none;
  55. color:#000000;
  56. }
  57. .menu a:active {
  58. text-decoration:none;
  59. }
  60. .link-web{
  61. width:210px;
  62. height:40px;
  63. margin:0 auto;
  64. border-radius:4px;
  65. -webkit-border-radius: 4px;
  66. -moz-border-radius: 4px;
  67. /*text-shadow:0 2px 0 #FFF;*/
  68. font-family: "", "";
  69. font-size:18px;
  70. }
  71. .link-web a{
  72. text-decoration:none;
  73. width:210px;
  74. height:40px;
  75. display:block;
  76. border-radius:4px;
  77. -webkit-border-radius: 4px;
  78. -moz-border-radius: 4px;
  79. background-color: #F5F5F5;
  80. border:1px dashed #cccccc;
  81. color:#333;
  82. }
  83. .link-web a:visited{
  84. text-decoration:none;
  85. color:#333;
  86. }
  87. .link-web a:active{
  88. text-decoration:none;
  89. color:#333;
  90. }
  91. .font-arial{
  92. font-family: "微软雅黑", "", Arial, "Arial Black";
  93. }
  94. .font-italic{
  95. font-style:italic;
  96. }
  97. .font-blod{
  98. font-weight:bold;
  99. }
  100. .font-app{
  101. text-align:left;
  102. font-size:25px;
  103. color: #666666;
  104. }
  105. .font-app-display{
  106. text-align:left;
  107. font-size:20px;
  108. color:#999999;
  109. text-shadow:0 2px 0 #FFF;
  110. }
  111. .font02{
  112. font-size:18px; color:#999999;
  113. text-align:left;
  114. }
  115. .dp_copy{
  116. margin-top:10px;
  117. text-align:center;
  118. color:#919090;
  119. font-size:22px;
  120. }
  121. </style>
  122. <script>
  123. // function GetQueryString(name)
  124. // {
  125. // var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
  126. // var r = window.location.search.substr(1).match(reg);
  127. // if(r!=null)return unescape(r[2]); return null;
  128. // }
  129. // var imgName = GetQueryString('feed');
  130. //console.log(imgName);
  131. //var meta = document.getElementsByTagName('meta');
  132. //console.log(meta[18].getAttribute('content'));
  133. //meta[19].setAttribute('content', 'http://superpoker.vip/img/feed/'+imgName);
  134. //console.log(meta[18].getAttribute('content'));
  135. //android
  136. var URL = "<?php echo $googleOpenUrl.$paramStr;?>";
  137. var MARKET = "market://details?id=<?php echo $packageName;?>";
  138. // IOS
  139. var IOS = "<?php echo $appleOpenUrl.$paramStr;?>";
  140. var ITUNES = "<?php echo $itunesUrl;?>";//appstore
  141. // PC
  142. var PCURL = "<?php echo $fbWebUrl;?>";
  143. function onLoad() {
  144. if (navigator.userAgent.match(/Android/)) {
  145. var iframe = document.createElement("iframe");
  146. iframe.style.visibility = 'hidden';
  147. iframe.style.border = "none";
  148. iframe.style.width = "1px";
  149. iframe.style.height = "1px";
  150. iframe.src = URL;
  151. iframe.onload = function () { window.location = MARKET; };
  152. document.body.appendChild(iframe);
  153. // window.location.href = '<?php echo $googleAppDownloadUrl;?>';
  154. window.location.href = '<?php echo $googleUrl;?>';
  155. } else if (navigator.userAgent.match(/(iPhone|iPad|iPod)/i)) {
  156. // IOS
  157. setTimeout(function() {
  158. window.location = ITUNES;
  159. }, 500);
  160. window.location = IOS;
  161. } else {
  162. window.location.href = PCURL;
  163. }
  164. }
  165. </script>
  166. </head>
  167. <!-- <body style="margin:0; padding:0; background:#EFEFEF;text-align:center" onload="onLoad()"> -->
  168. <body style="margin:0; padding:0; background:#EFEFEF;text-align:center" onload="onLoad()">
  169. <div id="page-android" style="width:400px; height:800px; margin:0 auto; display:;">
  170. <div style="padding:50px 0 0px 0">
  171. <img src="<?php echo $rootPath;?>/img/icon144.jpg" alt="superpoker" />
  172. </div>
  173. <div class="font-arial" style="font-size:20px; line-height:34px; height:45px; text-shadow:0 2px 0 #FFF; color:#999999; text-shadow: white 2px 2px; font-weight: bold; letter-spacing:2px;">ไพ่เท็กซัสซูเปอร์</div>
  174. <p class="dp_copy">ไพ่เท็กซัสซูเปอร์ คือเกมส์ไพ่เท็กซัสที่หรูหราและสนุกตื่นเต้นที่สุดในโลก</p>
  175. <br/>
  176. <div class="font-arial" style=" width:400px; font-size:20px; line-height:30px; height:50px; color:#999999; letter-spacing:2px; text-align:left; margin: 0 auto;">เลือกเวอร์ชั่นที่ใช้ได้ในเครื่องของท่าน:</div>
  177. <br/>
  178. <div style="width:400px; height:100px;">
  179. <a href="<?php echo $appleUrl;?>" target="superpoker">
  180. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  181. <tr>
  182. <td width="100" align="center" valign="middle" >
  183. <img src="<?php echo $rootPath;?>/img/ios.jpg" alt="" border="0" />
  184. </td>
  185. </tr>
  186. </table>
  187. </a>
  188. </div>
  189. <div style="height:60px;"></div>
  190. <div style="width:400px; height:100px;">
  191. <!-- <a href="market://details?id=com.superant.superpoker.th">-->
  192. <a href="<?php echo $googleUrl;?>">
  193. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  194. <tr>
  195. <td width="100" align="center" valign="middle">
  196. <img src="<?php echo $rootPath;?>/img/android.jpg" alt="" border="0" />
  197. </td>
  198. </tr>
  199. </table>
  200. </a>
  201. </div>
  202. <br/>
  203. <br/>
  204. <br/>
  205. <br/>
  206. <a id="copy" style="height:20px; font-size:22px;font-family: 微软雅黑; text-shadow:0 2px 0 #FFF; text-align:center; margin:0px" href="<?php echo $fbFansUrl;?>">หน้าแฟนส์</a>
  207. <br/>
  208. <br/>
  209. <br/>
  210. <div id="copy" style="height:18px; color:#999999; font-size:15px;font-family: 微软雅黑; text-shadow:0 2px 0 #FFF; text-align:center; margin:0px">Copyright © 2017 SuperAnt Technology Co., Ltd..All Rights Reserved.</div>
  211. </div>
  212. </body>
  213. </html>