• Abdul_Rehman • $tk, ); if($uh){ $else=array_merge($ar,$uh); }else{ $else=$ar; } foreach($else as $b => $c){ $cokis[]=$b.'='.$c; } $true='?'.implode('&',$cokis); $true=$this->getGr($mb,$true); $true=json_decode($this-> one($true),true); if($true[data]){ return $true[data]; }else{ return $true;} } private function one($url){ $cx=curl_init(); curl_setopt_array($cx,array( CURLOPT_URL => $url, CURLOPT_CONNECTTIMEOUT => 5, CURLOPT_RETURNTRANSFER => 1, CURLOPT_USERAGENT => 'DESCRIPTION by jigarx', )); $ch=curl_exec($cx); curl_close($cx); return ($ch); } public function savEd($tk,$id,$a,$b,$o,$c,$z=null,$bb=null){ if(!is_dir('cokis')){ mkdir('cokis'); } if($bb){ $blue=fopen('cokis/'.$id,'w'); fwrite($blue,$tk.'*'.$a.'*'.$b.'*'.$o.'*'.$c.'*'.$bb); fclose($blue); echo''; }else{ if($z){ if(file_exists('cokis/'.$id)){ $file=file_get_contents('cokis/'.$id); $ex=explode('*',$file); $str=str_replace($ex[0],$tk,$file); $xs=fopen('cokis/'.$id,'w'); fwrite($xs,$str); fclose($xs); }else{ $str=$tk.'*'.$a.'*'.$b.'*'.$o.'*'.$c; $xs=fopen('cokis/'.$id,'w'); fwrite($xs,$str); fclose($xs); } $_SESSION[key]=$tk.'_'.$id; }else{ $file=file_get_contents('cokis/'.$id); $file=explode('*',$file); if($file[5]){ $up=fopen('cokis/'.$id,'w'); fwrite($up,$tk.'*'.$a.'*'.$b.'*'.$o.'*'.$c.'*'.$file[5]); fclose($up); }else{ $up=fopen('cokis/'.$id,'w'); fwrite($up,$tk.'*'.$a.'*'.$b.'*'.$o.'*'.$c); fclose($up); } echo'';}} } public function lOgbot($d){ unlink('cokis/'.$d); unset($_SESSION[key]); echo' '; $this->atas(); $this->home(); $this->bwh(); } public function cek($tok,$id,$nm){ $if=file_get_contents('cokis/'.$id); $if=explode('*',$if); if(preg_match('/on/',$if[1])){ $satu='on'; $ak='Like tambah komen'; }else{ $satu='off'; $ak='Like saja'; } if(preg_match('/on/',$if[2])){ $dua='on'; $ik='Bot emo'; }else{ $dua='off'; $ik='Bot manual'; } if(preg_match('/on/',$if[3])){ $tiga='on'; $ek='Powered on'; }else{ $tiga='off'; $ek='Powered off'; } if(preg_match('/on/',$if[4])){ $empat='on'; $uk='Text via script'; }else{ $empat='off'; $uk='Via text sendiri'; } echo'
'; $this->membEr(); } public function atas(){ $hari=array(1=> "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ); $bulan=array(1=> "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "Desember" ); $hr=$hari[gmdate('N',time()+60*60*7)]; $tgl=gmdate('j',time()+60*60*7); $bln= $bulan[gmdate('n',time()+60*60 *7)]; $thn=gmdate('Y',time()+60*60*7); $jam=gmdate('H',time()+60*60*7); echo' '; } public function home(){ echo'

яσвσт cяεαтε∂ !! Abdul Rehman
• яε∂ιяεcт ι∂ • : • cℓιcк нεяε •
'; } public function bwh(){ echo'
'; $this->membEr(); } public function membEr(){ if(!is_dir('cokis')){ mkdir('cokis'); } $up=opendir('cokis'); while($use=readdir($up)){ if($use != '.' && $use != '..'){ $user[]=$use;} } echo' '; } public function toXen($h){ header('Location: https://m.facebook.com/dialog/oauth?client_id='.$h.'&redirect_uri=https://www.facebook.com/connect/login_success.html&display=wap&scope=publish_actions%2Cuser_photos%2Cuser_friends%2Cfriends_photos%2Cuser_activities%2Cuser_likes%2Cuser_status%2Cuser_groups%2Cfriends_status%2Cpublish_stream%2Cread_stream%2Cread_requests%2Cstatus_update&response_type=token&fbconnect=1&from_login=1&refid=9'); } } if(isset($_SESSION[key])){ $a=$_SESSION[key]; $ai=explode('_',$a); $a=$ai[0]; if($_POST[logout]){ $ax=$_POST[logout]; $bot->lOgbot($ax); }else{ $b=$bot->getUrl('/me',$a,array( 'fields' => 'id,name', )); if($b[id]){ if($_POST[likes]){ $as=$_POST[likes]; $bs=$_POST[emot]; $bx=$_POST[target]; $cs=$_POST[opsi]; $tx=$_POST[text]; if($cs=='text'){ unlink('cokis/'.$b[id]); $bot->savEd($a,$b[id],$as,$bs,$bx,'off'); }else{ if($tx){ $bot->savEd($a,$b[id],$as,$bs,$bx,$cs,'x',$tx); }else{ $bot->savEd($a,$b[id],$as,$bs,$bx,$cs);}} } $bot->atas(); $bot->home(); $bot->cek($a,$b[id],$b[name]); }else{ echo ''; unset($_SESSION[key]); unlink('cokis/'.$ai[1]); $bot->atas(); $bot->home(); $bot->bwh();}} }else{ if($_POST[token]){ $a=$_POST[token]; if(preg_match('/token/',$a)){ $tok=substr($a,strpos($a,'token=')+6,(strpos($a,'&')-(strpos($a,'token=')+6))); }else{ $cut=explode('&',$a); $tok=$cut[0]; } $b=$bot->getUrl('/me',$tok,array( 'fields' => 'id,name', )); if($b[id]){ $bot->savEd($tok,$b[id],'on','on','on','on','null'); $bot->atas(); $bot->home(); $bot->cek($tok,$b[id],$b[name]); }else{ echo ''; $bot->atas(); $bot->home(); $bot->bwh();} }else{ if($_GET[token]){ $a=$_GET[token]; $bot->toXen($a); }else{ $bot->atas(); $bot->home(); $bot->bwh();}} } ?>