bullen

Untitled

Dec 7th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.90 KB | None | 0 0
  1. <?
  2. include "dbcon/config.php";
  3. if(isset($_COOKIE['ref_link'])){
  4. $ref = $_COOKIE['ref_link'];
  5. }else{
  6. $ref = rand(1,9).date('Y').date('m').date('d').date('h').date('i').date('s');
  7. $ref = rand_uniqid($ref);
  8. setcookie("ref_link",$ref, 9999999999);
  9.  
  10. $insert = "insert into cookie_ref(REF_val) values('".$ref."');";
  11. @mysql_query($insert);
  12.  
  13. }
  14. $error = ''; //used for checking if ip has been re used
  15. if(isset($_GET['ref'])){
  16. $getip = "select * from cookie_ref_ips where IP_address = '".getRealIpAddr()."' and REF_val = '".$_GET['ref']."'";
  17. $getip_query = @mysql_query($getip);
  18. if(@mysql_num_rows($getip_query) < 1){
  19. $update = "update cookie_ref set REF_hits = REF_hits + 1 where REF_val = '".$_GET['ref']."'";
  20. @mysql_query($update);
  21.  
  22. $insertip = "insert into cookie_ref_ips(IP_address,REF_val) values('".getRealIpAddr()."','".$_GET['ref']."')";
  23. @mysql_query($insertip);
  24. }else{
  25. $error = "<h1>Već ste posjetili ovaj link sa svoje IP Adrese!</h1>";
  26. }
  27. }
  28. ?>
  29.  
  30. <!DOCTYPE html>
  31. <html>
  32. <head profile="http://www.w3.org/2005/10/profile">
  33. <title>Besplatni Premium Minecraft Accounti sa SQ!</title>
  34. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  35.  
  36. <!-- SEO OPTIMISATION -->
  37. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  38. <meta name="keywords" content="minecraft,premium,accounti,akaunti,free,besplatno,giveaway,nagrada,premium akaunt,akaunti sa sq,minecraft akaunti">
  39. <meta name="description" content="Besplatni Premium Accounti sa SQ.Napravite vas vlastiti account u roku od par minuta!">
  40.  
  41. <!-- EXTRA SEO -->
  42. <meta property="og:title" content="Besplatni Premium Minecraft Accounti sa SQ!"/>
  43. <meta property="og:description" content="Nasa webstranica sluzi za pravljenje Minecraft accounta sa SQ besplatno. Ako zelite premium account, Posjetite nas website!"/>
  44.  
  45. <!-- OG Seo -->
  46. <meta name="author" content="Mojang AB Original">
  47. <meta property="og:image" content="wwww.minecraft-balkan.com/img/thumb.jpg" />
  48. <meta property="og:url" content="Minecraft.net" />
  49.  
  50. <!-- CSS Fajlovi -->
  51. <link href="css/style.css" rel="stylesheet">
  52.  
  53. </head>
  54. <body>
  55. <center>
  56. <a href="http://www.minecraft-balkan.com"><img src="img/logo.png" alt="Besplatni Premium Accounti!"/></a>
  57. </center>
  58.  
  59. <div class="container">
  60. <ol class="progress-meter">
  61. <li class="progress-point done">Kreiranje Racuna</li><li class="progress-point todo">05:10 mins</li><li class="progress-point todo">Link</li><li class="progress-point todo">Connect</li>
  62. </ol>
  63. </div>
  64.  
  65. <div class="box">
  66. <center>
  67.  
  68. <h2>
  69. <?
  70. echo $error;
  71. $select = "select * from cookie_ref where REF_val = '".$ref."';";
  72. $selectQuery = @mysql_query($select);
  73. $selectArray = @mysql_fetch_array($selectQuery);
  74. $hits = $selectArray['REF_hits'];
  75. echo "Ukupan broj Klikova: ".$hits;
  76. ?>
  77. </h2>
  78. <?
  79. if($hits > 4){
  80. ?>
  81. <div id="winner">
  82. <h3>Uspjesno! Doveli ste 5 Prijatelja, sada mozemo nastaviti!</h3>
  83.  
  84. <a href="potvrda.html" class="myButton">Nastavi</a>
  85.  
  86. </div>
  87. <?
  88. }
  89. ?>
  90. <br />
  91. <div style="width:100%;" id="inner-content">
  92. <p> Vas link</p>
  93.  
  94. <p></p>
  95. <input type="text" name="FirstName" value="http://minecraft-balkan.com/?ref=<? echo $ref; ?>"><br>
  96. <p>Da bi ste otkljucali sljedecu stranicu morate dovesti 5 Vasih prijatelja na ovaj link</p>
  97.  
  98. <h6> Copyright© 2015 - Minecraft-Balkan.com </h6>
  99. </center>
  100. </div>
  101. </body>
  102. </html>
  103.  
  104. <?
  105. function rand_uniqid($in, $to_num = false, $pad_up = false, $passKey = null)
  106. {
  107. $index = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
  108. if ($passKey !== null) {
  109. // Although this function's purpose is to just make the
  110. // ID short - and not so much secure,
  111. // you can optionally supply a password to make it harder
  112. // to calculate the corresponding numeric ID
  113.  
  114. for ($n = 0; $n<strlen($index); $n++) {
  115. $i[] = substr( $index,$n ,1);
  116. }
  117.  
  118. $passhash = hash('sha256',$passKey);
  119. $passhash = (strlen($passhash) < strlen($index))
  120. ? hash('sha512',$passKey)
  121. : $passhash;
  122.  
  123. for ($n=0; $n < strlen($index); $n++) {
  124. $p[] = substr($passhash, $n ,1);
  125. }
  126.  
  127. array_multisort($p, SORT_DESC, $i);
  128. $index = implode($i);
  129. }
  130.  
  131. $base = strlen($index);
  132.  
  133. if ($to_num) {
  134. // Digital number <<-- alphabet letter code
  135. $in = strrev($in);
  136. $out = 0;
  137. $len = strlen($in) - 1;
  138. for ($t = 0; $t <= $len; $t++) {
  139. $bcpow = bcpow($base, $len - $t);
  140. $out = $out + strpos($index, substr($in, $t, 1)) * $bcpow;
  141. }
  142.  
  143. if (is_numeric($pad_up)) {
  144. $pad_up--;
  145. if ($pad_up > 0) {
  146. $out -= pow($base, $pad_up);
  147. }
  148. }
  149. $out = sprintf('%F', $out);
  150. $out = substr($out, 0, strpos($out, '.'));
  151. } else {
  152. // Digital number -->> alphabet letter code
  153. if (is_numeric($pad_up)) {
  154. $pad_up--;
  155. if ($pad_up > 0) {
  156. $in += pow($base, $pad_up);
  157. }
  158. }
  159.  
  160. $out = "";
  161. for ($t = floor(log($in, $base)); $t >= 0; $t--) {
  162. $bcp = bcpow($base, $t);
  163. $a = floor($in / $bcp) % $base;
  164. $out = $out . substr($index, $a, 1);
  165. $in = $in - ($a * $bcp);
  166. }
  167. $out = strrev($out); // reverse
  168. }
  169.  
  170. return $out;
  171. }
  172. function getRealIpAddr()
  173. {
  174. if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
  175. {
  176. $ip=$_SERVER['HTTP_CLIENT_IP'];
  177. }
  178. elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
  179. {
  180. $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
  181. }
  182. else
  183. {
  184. $ip=$_SERVER['REMOTE_ADDR'];
  185. }
  186. return $ip;
  187. }
  188. ?>
Add Comment
Please, Sign In to add comment