gift.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?php
  2. include_once '../config.php';
  3. error_reporting(0);
  4. $feed=isset($_GET['feed'])?$_GET['feed']:'gift';
  5. $caption=isset($_GET['caption'])?$_GET['caption']:'Please enter the invitation code to get a big gift!';
  6. $name = 'CODE:'.$_GET['code'] ?? 15859392;
  7. $conent = $rootPath . '/img/feed/'.$feed.'.jpg';
  8. $code = $_GET['code'] ?? 15859392;
  9. $url = $rootPath . '/m/gift.php?feed='.$feed.'&caption='.$caption.'&name='.$name.'&type=2&code='.$code;
  10. $paramList = $_GET;
  11. $paramStr = '?';
  12. foreach ($paramList as $n => $val) {
  13. $paramStr .= $n.'='.$val.'&';
  14. }
  15. $paramStr = rtrim($paramStr, '&');
  16. ?>
  17. <html>
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  20. <meta name="viewport" content="width=device-width, initial-scale=0.66"/>
  21. <meta name="apple-mobile-web-app-capable" content="yes">
  22. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  23. <meta name="format-detection" content="telephone=no">
  24. <meta name="Keywords" content="super Texas Hold'em, poker,Omaha Poker,Baccarat,slot,casino,solitire,card, Texas Hold'Em Poker" />
  25. <meta name="description" content="join and enjoy Super Texas Hold'em poker game.Play Texas Hold'em,Omaha Poker and Baccarat in one app." />
  26. <meta property="og:type" content="game" />
  27. <meta property="fb:app_id" content="<?php echo $fbId;?>" />
  28. <meta property="og:image" content="<?php echo $conent;?>" />
  29. <meta property="og:url" content="<?php echo $url;?>" />
  30. <meta property="og:title" content="<?php echo $caption;?>" />
  31. <meta property="og:description" content="<?php echo $name;?>" />
  32. <meta property="al:ios:url" content="<?php echo $appleOpenUrl;?>" />
  33. <meta property="al:ios:app_store_id" content="<?php echo $appId;?>" />
  34. <meta property="al:ios:app_name" content="<?php echo $appName;?>" />
  35. <title><?php echo $appName;?></title>
  36. <style>
  37. /*@charset "UTF-8";*/
  38. /* CSS Document */
  39. .menu {
  40. margin:0 auto;
  41. border:1pt solid #999999;
  42. border-radius:5px;
  43. -webkit-border-radius: 5px;
  44. -moz-border-radius: 5px;
  45. }
  46. .menu a {
  47. text-decoration:none;
  48. height:100%;
  49. display:block;
  50. border-radius:5px;
  51. -webkit-border-radius: 5px;
  52. -moz-border-radius: 5px; color:#333;
  53. }
  54. .menu a:visited {
  55. text-decoration:none;
  56. color:#000000;
  57. }
  58. .menu a:active {
  59. text-decoration:none;
  60. }
  61. .link-web{
  62. width:210px;
  63. height:40px;
  64. margin:0 auto;
  65. border-radius:4px;
  66. -webkit-border-radius: 4px;
  67. -moz-border-radius: 4px;
  68. /*text-shadow:0 2px 0 #FFF;*/
  69. font-family: "", "";
  70. font-size:18px;
  71. }
  72. .link-web a{
  73. text-decoration:none;
  74. width:210px;
  75. height:40px;
  76. display:block;
  77. border-radius:4px;
  78. -webkit-border-radius: 4px;
  79. -moz-border-radius: 4px;
  80. background-color: #F5F5F5;
  81. border:1px dashed #cccccc;
  82. color:#333;
  83. }
  84. .link-web a:visited{
  85. text-decoration:none;
  86. color:#333;
  87. }
  88. .link-web a:active{
  89. text-decoration:none;
  90. color:#333;
  91. }
  92. .font-arial{
  93. font-family: "微软雅黑", "", Arial, "Arial Black";
  94. }
  95. .font-italic{
  96. font-style:italic;
  97. }
  98. .font-blod{
  99. font-weight:bold;
  100. }
  101. .font-app{
  102. text-align:left;
  103. font-size:25px;
  104. color: #666666;
  105. }
  106. .font-app-display{
  107. text-align:left;
  108. font-size:20px;
  109. color:#999999;
  110. text-shadow:0 2px 0 #FFF;
  111. }
  112. .font02{
  113. font-size:18px; color:#999999;
  114. text-align:left;
  115. }
  116. .dp_copy{
  117. margin-top:40px;
  118. text-align:left;
  119. color:#919090;
  120. font-size:22px;
  121. }
  122. </style>
  123. <script>
  124. // function GetQueryString(name)
  125. // {
  126. // var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
  127. // var r = window.location.search.substr(1).match(reg);
  128. // if(r!=null)return unescape(r[2]); return null;
  129. // }
  130. // var imgName = GetQueryString('feed');
  131. //console.log(imgName);
  132. //var meta = document.getElementsByTagName('meta');
  133. //console.log(meta[18].getAttribute('content'));
  134. //meta[19].setAttribute('content', '<?php echo $rootPath;?>/img/feed/'+imgName);
  135. //console.log(meta[18].getAttribute('content'));
  136. // Android
  137. var URL = "<?php echo $googleOpenUrl.$paramStr;?>";
  138. var MARKET = "market://details?id=<?php echo $packageName;?>";
  139. // IOS
  140. var IOS = "<?php echo $appleOpenUrl.$paramStr;?>";
  141. var ITUNES = "<?php echo $appleUrl;?>";//appstore
  142. // PC
  143. var PCURL = "<?php echo $fbWebUrl;?>";
  144. function onLoad() {
  145. if (navigator.userAgent.match(/Android/)) {
  146. var iframe = document.createElement("iframe");
  147. iframe.style.visibility = 'hidden';
  148. iframe.style.border = "none";
  149. iframe.style.width = "1px";
  150. iframe.style.height = "1px";
  151. iframe.src = URL;
  152. iframe.onload = function () { window.location = MARKET; };
  153. document.body.appendChild(iframe);
  154. // window.location.href = '<?php echo $googleAppDownloadUrl;?>';
  155. window.location.href = '<?php echo $googleUrl;?>';
  156. } else if (navigator.userAgent.match(/(iPhone|iPad|iPod)/i)) {
  157. // IOS
  158. setTimeout(function() {
  159. window.location = ITUNES;
  160. }, 500);
  161. window.location = IOS;
  162. } else {
  163. window.location.href = PCURL;
  164. }
  165. }
  166. </script>
  167. </head>
  168. <!-- <body style="margin:0; padding:0; background:#EFEFEF;text-align:center" onload="onLoad()"> -->
  169. <body style="margin:0; padding:0; background:#EFEFEF;text-align:center" onload="onLoad()">
  170. <div id="page-android" style="width:400px; height:800px; margin:0 auto; display:;">
  171. <div style="padding:40px 0 10px 0">
  172. <img src="<?php echo $rootPath;?>/img/icon144.jpg" alt="superpoker" />
  173. </div>
  174. <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;">Super Poker-Best Free Texas Holdem poker</div>
  175. <p class="dp_copy">Texas Hold’em is popular game in the world,fun and exciting, millions of people are play online, happy all the time</p>
  176. <br/>
  177. <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;">Select the applicable version in your machine:</div>
  178. <br/>
  179. <div style="width:400px; height:100px;">
  180. <a href="<?php echo $appleUrl;?>" target="superpoker">
  181. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  182. <tr>
  183. <td width="100" align="center" valign="middle" >
  184. <img src="<?php echo $rootPath;?>/img/ios.jpg" alt="" border="0" />
  185. </td>
  186. </tr>
  187. </table>
  188. </a>
  189. </div>
  190. <div style="height:60px;"></div>
  191. <div style="width:400px; height:100px;">
  192. <?php if($flag === 'offline'){ ?>
  193. <a href="<?php echo $googleAppDownloadUrl;?>">
  194. <?php }else{ ?>
  195. <a href="market://details?id=<?php echo $packageName;?>">
  196. <?php }?>
  197. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  198. <tr>
  199. <td width="100" align="center" valign="middle">
  200. <img src="<?php echo $rootPath;?>/img/android.jpg" alt="" border="0" />
  201. </td>
  202. </tr>
  203. </table>
  204. </a>
  205. </div>
  206. <br/>
  207. <br/>
  208. <br/>
  209. <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;?>">Fan page</a>
  210. <br/>
  211. <br/>
  212. <br/>
  213. <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>
  214. </div>
  215. </body>
  216. </html>