php yi iyi bilen var ?.

MaqaMehemmed , Mehdiyev

arkadaslar asagda gorduynuz mesaj gonderen spam bunun karsini nasil ala bilirim ben wap site isledirem

//////////////

<?php


set_time_limit(0);
ob_implicit_flush();

$kks=70; //nece nefere mesaj gonderek? 1 yazanda 10 nefere gedir

function connect($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER[HTTP_USER_AGENT]);
$result = curl_exec($ch);
curl_close($ch);

return $result;
}

function post($url, $post_data){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}

header("Content-type: text/html; charset=utf-8");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-cache, must-relative");

if($_POST['submit']){



for($j = 1; $j <= $kks; $j++){

$online .= connect(''.$_POST['unvan'].'/on.php?id='.$_POST['id'].'&ps='.base64_encode($_POST['pass']).'&ref=395142&s='.$j.'');

}

preg_match_all('#nk=([0-9]*)#i', $online, $nick);



#print_r($nick[2]);
//count($nick[2])-1

foreach($nick[1] as $nnk){


post(''.$_POST['unvan'].'/on.php?id='.$_POST['id'].'&ps='.base64_encode($_POST['pass']), 'nk='.strip_tags($nnk).'&message='.$_POST['text']." [".mt_rand(00000, 99999)."]");

echo strip_tags($nick[2][$i]).'<br />';
sleep(10);
}
exit;
}



echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
echo "<html><center><head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n";
echo "<title>Wap.YaTaQ.NeT</title>\n";
echo "<style type=\"text/css\">
body {
Font-Family: san-serif;
Font-weight: bold; Font-size: 18;
Text-align: left;
color: #CC0000; Border-color: BLACK;
Border-style: dotted;
Border-width: 1px;
BackGround-color: #CCFF99;
MAX-WIDTH:400PX;
MARGIN:AUTO;
PADDING:0PX;

}
.un {
Font-variant: normal;
Text-align: center;
color: BLACK; Border-color: BLACK;
Border-style: solid;
Border-width: 1px;
BackGround-color: #66CC00;
}
.kontakts {
Text-align: center;
Border-style: dotted;
Border-width: 1px;
BackGround-color: #CCFF33;
}
.imag {
Text-align: center;
Border-width: 1px;
}
</style></head><body>";



echo"
<form action='".$_SERVER['PHP_SELF']."' method='post'>

Chatin unvani meselen http://sayt.ru/chat ve ya: http://chat.sayt.ru<br />

<input type='text' name='unvan' value='http://'/><br />

Chatdaki id nomreniz:<br />
<input type='text' name='id' value='id nomreniz'/><br />
Chatdaki parolunuz:<br />
<input type='text' name='pass' value='parolunuz'/><br />
Mesajiniz:<br />
<input type='text' name='text' value='Sozunuz '/><br />
<input type='submit' name='submit' value='Gonder'/>
</form>";
?>

////////////

bu php azerbaycanda demey olar ki butun sitelerde isleyir bunu nasil cozmek olar .. my sql teleb etmir kim daha iyi anliyorsa yardim etsin

2013-03-16 10:25:16

phpkodlari.com © 2009 Herkes Php öğrenecek
Eglence ve Oyun: Gamikro