Buyrun kodlar;
<?php
/****************************************************\
# Kodlayan : Semih @ kicker #
# Msn : semih@kicker.com #
# Blog : kickercs.blogspot.com #
# Rapidshare Link Control Class / PHP -> OOP #
\****************************************************/
echo '<title>Rapidshare Link Control / Semih @ kicker</title>';
echo '<center>';
echo '<table border="0" width="600"><tr><td bgcolor="aqua"><center><font size="5" face="Segoe UI"><b>RAPIDSHARE LINK CONTROL OOP <br>
Semih @ kicker</b></font></center>
<form action="" method="post">
</td></tr><tr><td bgcolor="black" height="30"><center><input type="text" name="site" size="80" value="http://"></center>
</td></tr><br>
<tr><td bgcolor="grey"><center>
<input type="submit" value="Linki Kontrol Et"><input type="reset" value="Baştan Al">
</center></td></tr>
</form></table>';
#Başla;
class kontrol{
function yap(){
if ($_POST){
$site = $_POST["site"];
if (!ereg("rapidshare",$site) || $site==""){
echo "<h3><b>Yanlış site ismi veya metin alanı boş bırakıldı!</b></h3>";
}
else{
$baglan = curl_init();
curl_setopt ($baglan, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt ($baglan, CURLOPT_URL,$site);
$cek = curl_exec($baglan);
curl_close($baglan);
preg_match('#<div class=\"klappbox\">(.*)<!--#si',$cek,$semih);
echo $semih[0];
if (!ereg("http://rapidshare.com/files/",$semih[0])){
die("<b>Link Kırık!</b>");
}
else {
preg_match('#<div class=\"klappbox\">(.*)</table>#si',$cek,$semih);
echo $semih[0];
}
}
}
}
}
$bas = new kontrol();
echo $bas -> yap();
echo '</center>';
?>Geliştirmeye açıktır.Alıntı yaparken kaynak belirtiniz..
Kolay gelsin.
Kolay gelsin.
+rep.