herseysizinicin adlı üyeden alıntı: mesajı görüntüle
ozaman yapacak bişe yok dostum. ayar.php nin icindeki bilgileri doğru girdiğinden eminsin değilmi.
Hocam Sizin böyle mi ?
Birde sizin yaptığınız '' Sitemizde Su An Adet Video Bulunuyor ''
O boş alanda artık sayı yazmıyor ne yapabilirim ?


Facebook botu;

<?php
session_start();

if(!isset($_SESSION["login"])){

echo "Bu sayfayı görüntüleme yetkiniz yoktur.";

}else{

include("../ayar.php");
$vcek=$_GET['vcek'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Video script - Admin Paneli</title>
<link rel="stylesheet" type="text/css" href="admin.css" />
</head>

<body>
<div id="logo">
<img src="<?=$domain?>/<?=$yonetim?>/panel.png" />
</div>

<div id="govde">
<?php
include("menu.php");
?>
</div>
<div id="temizle"></div>
<div id="orta">
<H2>facebook botu</H2>
<?php 
if($_GET["vcek"]){
$url   = $vcek;	
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://login.facebook.com/login.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($mail).'&pass='.urlencode($sifre).'&login=Login');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR,dirname(__FILE__)."/cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE,dirname(__FILE__)."/cookie.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com");
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)");
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_REFERER, "http://www.facebook.com");
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)");
$data = curl_exec($ch);
curl_close($ch);

$site   = urldecode($data);
$adi = f('<h3 class="video_title datawrap">','</h3>',$site);
$adi = $adi[0];
$link = f('video_src", "','"',$site);
$link = $link[0];
$resim = f('"thumb_url", "','"',$site);
$resim = $resim[0];
$sure = f('<strong class="video_length">','</strong>',$site);
$sure = $sure[0];
$sonraki = f('class="pager_link pager_next" href="','"',$site);
$sonraki = $sonraki[0];
$kategori=$_GET["kategori"];






if($sonraki){
$sonuc = mysql_query("SELECT id FROM videolar WHERE link='$link' LIMIT 0, 1");
if( mysql_num_rows($sonuc) ){
echo $adi.' daha önceden kayıt edilmiş.<br>';
} else {
$ekle = mysql_query("Insert Into videolar (id,adi,kategori,link,resim,sure,hit,x) values ('','$adi','$kategori','$link','$resim','$sure','0','')");
if($ekle){
echo("<font color=red>$adi videosu eklendi !!!</font><br>");
}
}

echo '<script>location.href="facebook-botu.php?vcek='. $sonraki .'&kategori='.$_GET["kategori"].'";</script>';
}else{
echo '<br><br>Bitti';
}

}else{
echo '
<form id="form1" name="form1" method="get" action="facebook-botu.php">
<table width="739" border="0" align="center" style="margin-top:5px;">
<tr>
<td width="289"><div align="right">video linki:</div></td>
<td width="480"><label>
<input name="vcek" type="text" id="kactan" size="100" value="facebook video linki"/>
</label></td>
 </tr>
 <tr>
<td width="289"><div align="right">Kategori:</div></td>
<td width="480"><label>
        <select name="kategori" id="kategori">'; ?>
		<?
					$data = mysql_query("select * from kategoriler group by id");
					while($sonuc = mysql_fetch_array($data))
					{
					$id=$sonuc["id"];
					$kategori=$sonuc["kategori"];
					?>
					<option value="<?php echo $kategori; ?>"><?php echo $kategori; ?></option>
					<?
					}
					?>       
<?php        
	   echo '</select>
      </label></td>
 </tr>
';
echo '
    <tr>
      <td>&nbsp;</td>
      <td><label>
        <input type="submit" name="Ekle" id="Ekle" value="Video(ları) ekle" />
      </label></td>
    </tr>
  </table>
</form>
';


}

?>
</div>

</body>
</html>
<?php
}

?>


Ayar.php;


<?
$domain="http://www.facebookvideolari.net"; // kurduğuz domain linki
$yonetim='yonetim'; //yonetim paneli klasörü

// admin kullanıcı adı ve şifresi
$user = "admin"; // kullanıcı adı
$pass = "admin"; // şifre

$title='Facebook Videoları - En Son Eklenen Videolar - Komik Videolar - En Popüler Videolar - Sizin Sectikleriniz'; // adı üstünde title 

// link değişimi kodları buraya ---------
$linkdegisimi='<script type="text/javascript" src="http://widgets.amung.us/small.js"></script><script type="text/javascript">WAU_small(\'9mop4loe486g\')</script>';
//---------------------------------------

// veritabanı ayarları -------------------
mysql_connect("localhost", "faceboo1_video", "q1}HaBy8GBy^") or die ("Hata, Bağlantı Sağlanamadı...");
mysql_select_db("faceboo1_video") or die ("Hata, Database Seçilemedi...");
//----------------------------------------

// buradan aşşayı elleme -----------------------------------------------------------------------------------------------------------------------------------//
mysql_query("SET NAMES 'utf8'");   																	                                                        //
mysql_query("SET CHARACTER SET 'utf8'");   															                                                        //
mysql_query("SET COLLATION_CONNECTION = 'utf8_turkish_ci'"); 										                                                        //
																									                                                        //
function sef($text) {																				                                                        //
$text = trim($text);																				                                                        //
$search = array(''','&amp;',' /','/',' ?','?',' =D','=D',' !',' :D',':D',' :)',':)','Ç','ç','Ğ','ğ','ı','İ','Ö','ö','Ş','ş','Ü','ü',' ','---','--','(',')','&','.','=',',',':','!','_-_');//
$replace = array('','','','','','','','','','','','','','C','c','G','g','i','i','O','o','S','s','U','u','_','-','-','','','ve','','','','','','_');							//
$new_text = str_replace($search,$replace,$text);												                                                        	//
return $new_text;																					                                                        //
}																									                                                        //
//----------------------------------------------------------------------------------------------------------------------------------------------------------//
?>
<?
$mail =  'manyaksx@gmail.com'; //- facebook mail adresiniz
$sifre = 	'123456';	//- facebook şifreniz
function faceal($url)		{	
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://login.facebook.com/login.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,'email='.urlencode($mail).'&pass='.urlencode($sifre).'&login=Login');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_COOKIEJAR,dirname(__FILE__)."/cookie.txt");
curl_setopt($ch, CURLOPT_COOKIEFILE,dirname(__FILE__)."/cookie.txt");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows; U; Windows NT 5.1; tr; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)");
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, 0);
$data = curl_exec($ch);
curl_close($ch);
	return $data;
}

function f($bas, $son, $yazi)	{ 
	@preg_match_all('/' . preg_quote($bas, '/') . '(.*?)'. preg_quote($son, '/').'/i', $yazi, $m);
	return @$m[1];
	}
?>

Buda error.log ;

[08-Aug-2010 18:04:07] PHP Warning:  mysql_connect(): Access denied for user 'faceboo1_video'@'localhost' (using password: YES) in /home/faceboo1/public_html/index.php on line 220
[08-Aug-2010 18:04:07] PHP Warning:  mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/faceboo1/public_html/index.php on line 221
[08-Aug-2010 18:04:07] PHP Warning:  mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/faceboo1/public_html/index.php on line 223
[08-Aug-2010 18:04:07] PHP Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/faceboo1/public_html/index.php on line 224