Advertisement
tobitaz

mhome.php

Sep 10th, 2013 (edited)
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.53 KB | None | 0 0
  1. HOME.PHP
  2.  
  3.                        
  4.  
  5. <?php
  6.  
  7. include("config.php");
  8. include("proxy.php");
  9.  
  10.  
  11.  
  12. //cegah pencuri
  13.  
  14. $cekown = strripos($_SERVER["HTTP_REFERER"], $urlown);
  15. if($cekown < 1)
  16. {
  17. if(isset($_SERVER["HTTP_REFERER"])){
  18. $curi = fopen($pencuri, "a");
  19. fwrite($curi, $_SERVER["HTTP_REFERER"].PHP_EOL);
  20. fclose($curi);
  21. }
  22. die("Error Alien request...click here <a href='http://".$autolikeweb."'>".$autolikeweb."</a> to use autolike");
  23. }
  24.  
  25. //tamat cegahpencuri
  26.  
  27.  
  28.  
  29. //check token ada
  30. if($token === null)
  31. {
  32. die("Please submit access token");
  33. }
  34. //tamat cek token ada
  35.  
  36. //cek token invalid
  37. $userinfo = tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus);
  38. $check = strripos($userinfo, "OAuthException");
  39. if($check > 1)
  40. {
  41. die("Access token invalid");
  42. }
  43. //tamat cek token invalid
  44.  
  45. //apps blocker
  46. $check = tobitaz("graph.facebook.com/app?access_token=".$token, $proxystatus);
  47. $cek = strripos($check, $appid);
  48. if($token != null)
  49. {
  50. if($cek === false)
  51. {
  52. die("Please use accesstokens from apps that we provide");
  53. }
  54. }
  55. //tamat app blocker
  56.  
  57. //check permision
  58. $per1 = "user_likes";
  59. $per2 = "publish_stream";
  60. $taf = tobitaz("graph.facebook.com/me/permissions?access_token=".$token, $proxystatus);
  61. $ga = strripos($taf, $per1);
  62. $gu = strripos($taf, $per2);
  63. if($ga < 1 or $gu < 1)
  64. {
  65. die("Please allow ".$per1." And ".$per2." Permission!");
  66. }
  67. //tamat chek permision
  68.  
  69. //save token ok
  70. $idusers = json_decode($userinfo)->id;
  71.    $cre = fopen($tokenko, "a");
  72.    $f = file_get_contents($tokenko);
  73.    $cf = strripos($f, $token);
  74.    $cf2 = strripos($f, $idusers);
  75.         if($cf === false && $cf2 === false)
  76.            {
  77.          
  78.             fwrite($cre, $token."&nama=".$idusers.PHP_EOL);
  79.            
  80.            }
  81. fclose($cre);
  82. //tamat save token ok            
  83.  
  84.  
  85. //feed id and message
  86. $staid = tobitaz("graph.facebook.com/me/feed?fields=id,message&access_token=".$token, $proxystatus);
  87. $taz = json_decode($staid)->data;
  88. //tamat feed id and message
  89.  
  90.  
  91.  
  92.  
  93.  
  94. //start otolke
  95. $statusid = $_POST["statusid"];
  96. if($statusid != null)
  97. {
  98. if($limit == "on")
  99. {
  100. $geto = explode(PHP_EOL, $f, $limitlikes);
  101.       foreach($geto as $phhc)
  102.    {
  103. $phc = trim($phhc);
  104. tobitaz("graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc, $proxystatus);
  105.    }
  106. }
  107. else
  108. {
  109. $geto = explode(PHP_EOL, $f);
  110.       foreach($geto as $phhc)
  111.    {
  112. $phc = trim($phhc);
  113. tobitaz("graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc, $proxystatus);
  114.    }
  115. }
  116.  
  117. //vip 1 autolike
  118.  
  119. if($vipautolike == "on")
  120. {
  121.   foreach($listadmin as $admin)
  122. {
  123. $jsta = json_decode(tobitaz("graph.facebook.com/".$admin."/feed?fields=id&access_token=".$token, $proxystatus))->data;
  124.  
  125. tobitaz("graph.facebook.com/".$jsta[0]->id."/likes?method=post&access_token=".$token, $proxystatus);
  126. }
  127. }
  128.  
  129.  
  130.  
  131. //chek id
  132.  
  133. if($komenadmin == "on")
  134. {
  135. $jagu = json_decode(tobitaz("graph.facebook.com/".$komendi."/feed?fields=id&access_token=".$token, $proxystatus))->data;
  136.  
  137. if($komenxdouble == "on")
  138. {
  139. $fnod = file_get_contents("id.txt");
  140. //cek id strripos
  141. $nos = strripos($fnod, json_decode($userinfo)->id.$jagu[0]->id);
  142. if($nos === false)
  143. {
  144. if($girlonly == "on")
  145. {
  146. if($userinfo->gender == "female")
  147. {
  148. $koawe = $kokop[array_rand($kokop)];
  149. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  150. }
  151. }
  152. elseif($guyonly == "on")
  153. {
  154. if($userinfo->gender == "male")
  155. {
  156. $koawe = $kokop[array_rand($kokop)];
  157. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  158. }
  159. }
  160. else
  161. {
  162. $koawe = $kokop[array_rand($kokop)];
  163. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  164. }
  165. }
  166. //no double comment
  167. $nodc = fopen("id.txt", "a+");
  168.               fwrite($nodc, $nod->id.$jagu[0]->id.PHP_EOL);
  169.               fclose($nodc);
  170. //no double comment
  171. }
  172. else
  173. {
  174. if($girlonly == "on")
  175. {
  176. if($userinfo->gender == "female")
  177. {
  178. $koawe = $kokop[array_rand($kokop)];
  179. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  180. }
  181. }
  182. elseif($guyonly == "on")
  183. {
  184. if($userinfo->gender == "male")
  185. {
  186. $koawe = $kokop[array_rand($kokop)];
  187. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  188. }
  189. }
  190. else
  191. {
  192. $koawe = $kokop[array_rand($kokop)];
  193. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  194. }
  195. }
  196. }
  197.  
  198.  
  199. echo "<script>window.location = '".$remover."'</script>";
  200.  
  201.  
  202. }
  203.  
  204. chmod($tokenko, 0600);
  205.  
  206. ?>    
  207.   <body style="background-color:black; width:100%;">
  208.         <center>
  209. <img src="https://graph.facebook.com/me/picture?type=large&access_token=<?php echo $token; ?>" /><br />
  210. <font color="white"><?php echo json_decode($userinfo)->name; ?></font><br />
  211.         <div style="border:3px grey outset; background-color:grey; width:60%;">
  212.         <form action="" method="post">
  213.         <font color="red">STATUS:</font><br /><font color="white"><?php echo $taz[0]->message; ?></font>
  214.        
  215.         <input type="hidden" name="token" value="'.$token.'"><br />
  216.         <font color="white" style="float:left;">statusid:</font><br /><input name="statusid" value="<?php echo $taz[0]->id; ?>" style="float:left;">
  217.        
  218.       <br /> <button type="submit" style="float:right; border:3px red outset; color:white; background-color:red;">AUTOLIKE</button>
  219.         </form><br /></div><br />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement