invite.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?php
  2. function check_wap(){
  3. if(stristr($_SERVER['HTTP_VIA'],"wap")){
  4. return true;
  5. }elseif(strpos(strtoupper($_SERVER['HTTP_ACCEPT']),"VND.WAP.WML") > 0){
  6. return true;
  7. }elseif(preg_match('/(blackberry|configuration\/cldc|hp |hp-|htc |htc_|htc-|iemobile|kindle|midp|mmp|motorola|mobile|nokia|opera mini|opera |Googlebot-Mobile|YahooSeeker\/M1A1-R2D2|android|iphone|ipod|mobi|palm|palmos|pocket|portalmmm|ppc;|smartphone|sonyericsson|sqh|spv|symbian|treo|up.browser|up.link|vodafone|windows ce|xda |xda_)/i', $_SERVER['HTTP_USER_AGENT'])){
  8. return true;
  9. }else{
  10. return false;
  11. }
  12. }
  13. if(isset($_GET['share'])){
  14. $str = $_GET['code'];;
  15. $appLink = 'crazycoin://?code='.$str;
  16. $appLink2 = 'superant://crazygod?code='.$str;
  17. }else{
  18. $appLink = 'crazycoin://';
  19. $appLink2 = 'superant://crazygod';
  20. }
  21. ?>
  22. <html>
  23. <head>
  24. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  25. <meta name="viewport" content="width=device-width, initial-scale=0.66"/>
  26. <meta name="apple-mobile-web-app-capable" content="yes">
  27. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  28. <meta name="format-detection" content="telephone=no">
  29. <meta name="Keywords" content="coin,coinmaster,coins,crazygod,crazycoin" />
  30. <meta name="description" content="Your friend is bullied,come and join me for revenge!" />
  31. <meta property="og:url" content="https://crazycoin.superant.cc/m/invite.php?image=8&title=Invite+friends&content=Your+friend+is+bullied,+come+and+join+me+for+revenge!" />
  32. <meta property="og:type" content="game" />
  33. <meta property="og:title" content="Invite friends"/>
  34. <meta property="og:image" content="https://god.superant.cc/img/feed/8.jpg"/>
  35. <meta property="og:description" content="Your friend is bullied,come and join me for revenge!"/>
  36. <meta property="fb:app_id" content="2017964004965884" />
  37. <meta property="al:ios:url" content="crazycoin://" />
  38. <meta property="al:ios:app_store_id" content="1505268807" />
  39. <meta property="al:ios:app_name" content="Crazy Coin" />
  40. <meta property="al:android:url" content="superant://crazygod" />
  41. <meta property="al:android:package" content="com.superant.crazygod" />
  42. <meta property="al:android:app_name" content="Crazy Coin" />
  43. <title>Crazy Coin</title>
  44. <style>
  45. /* CSS Document */
  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 a{
  62. text-decoration:none;
  63. width:210px;
  64. height:40px;
  65. display:block;
  66. border-radius:4px;
  67. -webkit-border-radius: 4px;
  68. -moz-border-radius: 4px;
  69. background-color: #F5F5F5;
  70. border:1px dashed #cccccc;
  71. color:#333;
  72. }
  73. .link-web a:visited{
  74. text-decoration:none;
  75. color:#333;
  76. }
  77. .link-web a:active{
  78. text-decoration:none;
  79. color:#333;
  80. }
  81. .font-arial{
  82. font-family: "微软雅黑", "", Arial, "Arial Black";
  83. }
  84. .dp_copy{
  85. margin-top:10px;
  86. text-align:center;
  87. color:#919090;
  88. font-size:22px;
  89. }
  90. </style>
  91. </head>
  92. <body style="margin:0;padding:0;background:#EFEFEF;text-align:center;" onload="onLoad()">
  93. <?php if(check_wap()){ ?>
  94. <div>
  95. <div style="display: none">
  96. <img src="/img/icon152.png"/>
  97. </div>
  98. <div>
  99. <img src="/m/link/bg.jpg" style="width: 100%;height: 100%;">
  100. <a id="aLink" href="<?php echo $appLink2;?>">
  101. <img src="/m/link/btn.png" style="z-index: 999;position: absolute;bottom: 22%;left: 27%;">
  102. </a>
  103. </div>
  104. </div>
  105. <?php }else{?>
  106. <div id="page-android" style="width:400px; height:800px; margin:0 auto; display:;">
  107. <div style="display: none">
  108. <img src="/img/icon152.png"/>
  109. </div>
  110. <div style="padding:50px 0 0px 0">
  111. <img src="/img/r1.png"/>
  112. </div>
  113. <div style="padding:50px 0 0px 0">
  114. <a id="aLink" href="<?php echo $appLink2;?>">
  115. <img src="/img/icon152.png" alt="Crazy Coin"/>
  116. </a>
  117. </div>
  118. <div class="font-arial" style="font-size:32px; line-height:34px; height:45px; text-shadow:0 2px 0 #FFF; color:#999999; text-shadow: white 2px 2px; font-weight: bold; letter-spacing:2px;">Crazy Coin</div>
  119. <p class="dp_copy">The most exciting and fun social game in the world</p>
  120. <br/>
  121. <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;">Choose the version available :</div>
  122. <br/>
  123. <div style="width:400px; height:100px;">
  124. <a href="itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1505268807" target="Crazy Coin">
  125. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  126. <tr>
  127. <td width="100" align="center" valign="middle" >
  128. <img src="/img/ios.jpg" alt="" border="0" />
  129. </td>
  130. </tr>
  131. </table>
  132. </a>
  133. </div>
  134. <div style="height:60px;"></div>
  135. <div style="width:400px; height:100px;">
  136. <a href="market://details?id=com.superant.crazygod">
  137. <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" height="100px">
  138. <tr>
  139. <td width="100" align="center" valign="middle">
  140. <img src="/img/android.jpg" alt="" border="0" />
  141. </td>
  142. </tr>
  143. </table>
  144. </a>
  145. </div>
  146. <br/>
  147. <br/>
  148. <br/>
  149. <br/>
  150. <a id="copy" style="height:20px; font-size:22px;font-family: 微软雅黑; text-shadow:0 2px 0 #FFF; text-align:center; margin:0px" href="https://fb.me/crazycoin.global">Fans Page</a>
  151. <br/>
  152. <br/>
  153. <br/>
  154. <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 © 2019 SuperAnt Technology Co., Ltd..All Rights Reserved.</div>
  155. </div>
  156. <?php } ?>
  157. <script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1279082262'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1279082262%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
  158. <script>
  159. var aLink = document.getElementById("aLink");
  160. document.getElementById("cnzz_stat_icon_1279082262").style.display = 'none';
  161. var timeOutId = 0;
  162. // IOS
  163. var IOS ="<?php echo $appLink;?>";
  164. var ITUNES = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1505268807";
  165. // Android
  166. var ANDROID = "<?php echo $appLink2;?>";
  167. var MARKET = "market://details?id=com.superant.crazygod";
  168. // PC
  169. var PCURL = "https://fb.me/crazycoin.global";
  170. function onLoad() {
  171. if (navigator.userAgent.match(/Android/)) {
  172. var iframe = document.createElement("iframe");
  173. iframe.style.visibility = 'hidden';
  174. iframe.style.border = "none";
  175. iframe.style.width = "1px";
  176. iframe.style.height = "1px";
  177. iframe.src = ANDROID;
  178. iframe.onload = function () { window.location = MARKET; };
  179. document.body.appendChild(iframe);
  180. }
  181. else if (navigator.userAgent.match(/(iPhone|iPad|iPod)/i)) {
  182. aLink.setAttribute("href",IOS);
  183. // IOS
  184. window.location = IOS;
  185. timeOutId = setTimeout(function() {
  186. window.location = ITUNES;
  187. }, 2000);
  188. } else {
  189. window.location.href = PCURL;
  190. }
  191. }
  192. window.onbeforeunload=function(){
  193. clearTimeout(timeOutId);
  194. }
  195. </script>
  196. </body>
  197. </html>