untuk koment distatusnya!!!",
"Mampir di statusmu boleh kan .? Mampir juga distatus aku ya, hehe",
"Maaf saya robot koment. hadir hanya untuk koment di status .. :D mampir juga ya",
"@[100000421661758:Erfan] lagi mandi jadi bot ditugaskan untuk koment di statusmu :D mampir juga ya ,hehe",
"Orang cakep lewat distatus minggirrrrrrrr.. :P hahaha",
"Bingung mo koment apa :Dwkwk",
"absen koment aja deh biar trkenal wkaka",
"Ampek jempol kriting tetep stia saya coment di status yang cakep :D ",
"Numpang ngisi koment distatusmu biar terkenal..:D ",
"ga kan ngecewain deh, like this dan komen hadir selalu ",
" statusmu sip banget. pokoknya JEMPOL trus dah buat kamu..:D jangan lupa mampir juga distatus aku yo",
"apapun statusnya? jempol @[100000421661758:Erfan] slalu mampir di status ",
"status emang tempat nongkrong komentarku. hihi",
"mau komen apa ya... bingung?? nambah like this, biar tambah eksis. hehehe :D ",
"Di tungguin dari tadi,, akhirnya update status juga,, oklah tanpa basa-basi lagi ane kasi jempol dah,, Like This d[*_*]]b mampir juga ya distatusku hehe",
"dah dikasih tempat komen ama . gak mungkin klo saya gak koment.. :D",
"lupa? bru koment. biar koment paling akhir, yg penting hadir!!",
"Pokoknya saya jadi penggemar setia postingan . Jadi slalu setia hadir. :D",
" update status. Saya koment dulu ah, biar di bilang WOW",
);
##########kondisi
$comment = array(
array(
array("sepi",
"pada kemana",
"pada kmn",
"kdd org",
),
array("Nih dah aku ramein biar ga sepi ae. hhe",
"Meski sepi JEMPOL @[100000421661758:Erfan] masih setia di status .hhe",
"He'eh ni penghuni FB pada tidur kali. tapi JEMPOL @[100000421661758:Erfan] slalu hadir buat status ",
)
),
array(
array("semoga",
"moga",
"amin",
),
array("Amin semoga tercapai.hehe. Skalian like this juga ah. biar tambah exsis. Wkaka",
"Mang knape .? Wkaka",
"He'eh ni amin amin. Dan JEMPOL @[100000421661758:Erfan] slalu hadir buat status ;) ",
)
),
array(
array("jancok",
" asu ",
" raimu ",
" matamu ",
" bangsat ",
),
array("Wew. lagi marah tapi tetep Q kasi LIKE dah. hhe ",
"ada apa dengan mu kok marah amat..? hahaha pentung",
"Robot versi gaul buat ademin kamu . hahaha",
"Meski marah. tetep hadir aja dah & like this. :D ",
)
),
array(
array("lapar",
" ewul ",
" luwe ",
"laper",
" krucuk",
),
array("Ni makanan buanyak disini. mau a ..? hhe ",
"sama klaparan nih. kunjungannya ",
)
),
array(
array("askum",
"asalam",
"assalam",
"assalam",
"mekum",
"laikum",
),
array("Waalaikumsalam warahmatullahi wabarakatuh. :D",
"Waskum dangsanak sodagar .",
)
),
array(
array("pamid",
"off dulu",
"ngantuk",
"bobok",
"tidur",
),
array("lho kok aq ditinggal -_- .",
"wew. masi jam sgini mo kmana? Hayo bobok ya -_- wkaka ",
"Walah kmana ..? Tidur yak? ",
"waduh Ditinggal dah (-_-) wkaka",
)
),
);
$komentar = '';
$cr_kondisi=false;
foreach($comment as $cx){
foreach($cx[0] as $ct){
if(ereg($ct,$text)){
$cr_kondisi=true;
$komentar = $cx[1][rand(0,count($cx[1]) - 1)];
}
}
}
if($cr_kondisi==true && $ck==true){
return $komentar;
}else{
if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; }
}
}
#######################################
function com_like($cl,$ck,$cu,$tm,$access_token){
$beranda = json_decode(httphit("https://graph.facebook.com/me/home?fields=id,from,type,message&limit=100&access_token=".$access_token))->data;
$saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token));
if($beranda){
foreach($beranda as $cr_post){
if(!ereg($saya_cr->id,$cr_post->id)){
$log_cr = simlog($cr_post->id);
if($log_cr==true){
if($ck==true){
$url_ck = cmn($cr_post->message,$ck,$cu);
$url_ck = str_replace("",$cr_post->from->name,$url_ck);
if($tm==true){ $url_ck = $url_ck.wkthit(); }
$url_ck = urlencode($url_ck);
if($ck==true OR $cu==true){
httphit("https://api.facebook.com/method/stream.addComment?post_id=".$cr_post->id."&comment=".$url_ck."&access_token=".$access_token);
}
if($cl==true){
httphit("https://api.facebook.com/method/stream.addLike?post_id=".$cr_post->id."&access_token=".$access_token);
}
}
}
}
}
}
}
#######################################
function httphit($url){
return file_get_contents($url);
}
function wkthit(){
$ent="
";
$hari=gmdate("D", time()+60*60*7);
if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; }
if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; }
if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; }
if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; }
if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kamis"; }
if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; }
if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; }
$jam="Jam : ".gmdate("g:i a", time()+60*60*7);
return $ent.$ent."[ ".$jam." ][ ".$hari." ][ Tgl : ".gmdate("j/m/Y", time()+60*60*7)." ]";
}
function simlog($cr_id) {
$fname = "cr_log.txt";
$lihatiplist=fopen ($fname, "rb");
$text='';
if($lihatiplist){
$spasipol = "";
do {
$barislistip = fread($lihatiplist, 512);
if(strlen($barislistip) == 0){ break; }
$spasipol .= $barislistip;
} while(true);
fclose ($lihatiplist);
for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);}
$text=$text.$spasipol;
}else{$text="";}
if(ereg($cr_id,$text)){
return false;
}else{
$text = $text.$cr_id;
$w_file=@fopen($fname,"w") or bberr();
if($w_file) {
@fputs($w_file,$text);
@fclose($w_file);
}
return true;
}
}
?>