Merhaba Arkadaşlar
sizlerden bir kaç konuda yardım talep edecektim
mp3 scriptini kurdum
mp3 botum sorunsuz çalışıyor
yanlış yere linki kaydediyor

muzik.php
1 soru: bot yanlış yere kaydediyor
2. soru: youtube kodları ile degilde direk download linkleri ile çalışmasını nasıl sağlayabilirim
bu konuda yardımcı olursanız sevinirim
istendigi taktirde anasayfada ücretsiz reklamını yayınlayabilirim
sizlerden bir kaç konuda yardım talep edecektim
mp3 scriptini kurdum
mp3 botum sorunsuz çalışıyor
yanlış yere linki kaydediyor

muzik.php
<?php require_once('ayarsite.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$currentPage = $_SERVER["PHP_SELF"];
mysql_select_db($database_geceninrengi, $geceninrengi);
$query_sonyazilar = sprintf("SELECT * FROM yazilar WHERE id = %s ORDER BY id DESC", GetSQLValueString($_GET['id'], "int"));
$sonyazilar = mysql_query($query_sonyazilar, $geceninrengi) or die(mysql_error());
$row_sonyazilar = mysql_fetch_assoc($sonyazilar);
$totalRows_sonyazilar = mysql_num_rows($sonyazilar);
mysql_select_db($database_geceninrengi, $geceninrengi);
$query_kategoriadial = sprintf("SELECT * FROM kategoriler WHERE kategoriadi=%s", GetSQLValueString($row_sonyazilar['kategori'], "text"));
$kategoriadial = mysql_query($query_kategoriadial, $geceninrengi) or die(mysql_error());
$row_kategoriadial = mysql_fetch_assoc($kategoriadial);
$totalRows_kategoriadial = mysql_num_rows($kategoriadial);
$hjg4789 = $row_sonyazilar['id'];
mysql_select_db($database_geceninrengi, $geceninrengi);
$query_yorumlar = sprintf("SELECT * FROM yorumlar WHERE yaziid = '%s' AND onay='1' ORDER BY id DESC LIMIT 5", $hjg4789);
$yorumlar = mysql_query($query_yorumlar, $geceninrengi) or die(mysql_error());
$row_yorumlar = mysql_fetch_assoc($yorumlar);
$totalRows_yorumlar = mysql_num_rows($yorumlar);
$yaziokunma = sprintf("geceninrengi%s", $row_sonyazilar['id']);
if($_COOKIE[$yaziokunma] == '1'){
} else {
mysql_select_db($database_geceninrengi, $geceninrengi);
mysql_query("UPDATE yazilar SET okunma = okunma+1 WHERE id='$row_sonyazilar[id]'", $geceninrengi);
$cook = $_COOKIE[$yaziokunma] + 1;
setcookie("$yaziokunma", "$cook", time()+86400);
}
?>
<base href="<? echo $site; ?>/">
<html><head>
<meta http-equiv="Content-Language" content="tr">
<title><?php echo $row_sonyazilar['baslik']; ?>, <?php echo $row_sonyazilar['yazigirisi']; ?></title>
<meta name="description" content="<?php echo $row_sonyazilar['baslik']; ?>, <?php echo $row_sonyazilar['yazigirisi']; ?>">
<meta name="keywords" content="<?php echo $row_sonyazilar['baslik']; ?>, <?php echo $row_sonyazilar['yazigirisi']; ?>">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1254">
<meta name="robots" content="INDEX,FOLLOW">
<link href="images/style.css" type="text/css" rel="stylesheet">
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" text="#000000">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="875">
<tbody>
<tr align="left" valign="top">
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="891">
<tbody>
<tr align="left" valign="top">
<td align="left" width="392">
<img border="0" src="images/logo%20copy.gif" width="392" height="127"></td>
<td background="images/logo_bg.gif" valign="middle" width="493">
<img src="images/e.gif" height="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="huvudRubrik" valign="top">
<p align="center"><?php include "reklamyerleri/ustreklam.php"?></td>
</tr>
</tbody></table>
<img src="images/e.gif" height="5"></td>
<td bgcolor="#ffffff" valign="middle" width="6">
<img src="images/e.gif" border="0" width="5"></td>
</tr></tbody></table></td></tr>
<tr align="left" valign="top">
<td background="images/m_bg.gif" bgcolor="#ffffff" width="148">
<table border="0" cellpadding="0" cellspacing="0" width="148">
<tbody>
<tr align="left" valign="top">
<td width="5"><img src="images/e.gif" height="18" width="5"></td>
<td width="143">
<table border="0" cellpadding="0" cellspacing="0" width="137">
<tbody>
<tr>
</tr>
</tbody><?php include "solmenu.php"?></table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</tbody></table></td>
<td bgcolor="#ffffff" width="741">
<table border="0" cellpadding="0" cellspacing="0" width="697">
<tbody><tr><td valign="top">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="99%">
<tbody><tr>
<td class="huvudRubrik" background="images/m_ora.gif" colspan="2">
<img src="images/m_logo.gif" align="absmiddle" border="0" height="26" width="40">Sporsor
Bağlantılar</td>
</tr>
<tr>
<td><img src="images/e.gif" height="3" width="5"></td>
<td><img src="images/e.gif" height="3" width="5"></td>
</tr>
<tr>
<td colspan="2"><center><?php include "reklamyerleri/72890ads.php"?></center></td>
</tr>
</tbody></table>
<img src="images/e.gif" border="0" height="8">
<div align="center">
</div>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="99%">
<tbody><tr>
<td class="huvudRubrik" background="images/m_blu.gif" valign="middle" width="99%">
<img src="images/m_logo.gif" align="absmiddle" height="26" width="40"><?php echo $row_sonyazilar['baslik']; ?></td>
</tr>
<tr>
<td><img src="images/e.gif" height="3" width="5"></td>
</tr>
<tr>
<td bgcolor="#ceecff">
<table border="0" cellpadding="0" cellspacing="0" width="93%">
<tbody><tr>
<td class="content" bgcolor="#FFFFFF" align="center">
<script type="text/javascript">
AC_FL_RunContent( 'id','obj1','codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0','border','0','width','730','height','115','src','images/muzik','pluginspage','http://www.macromedia.com/go/getflashplayer','name','obj1','movie','images/muzik','quality','High' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="730" height="115">
<param name="movie" value="images/muzik.swf">
<param name="quality" value="High">
<embed src="images/muzik.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="730" height="115"></object></noscript>
</td>
</tr><tr>
<td class="content" bgcolor="#FFFFFF" align="center"><iframe frameborder="0" scrolling="no" name="I1" src="http://www.anindamuzik.com/dinle.php?id=<?php echo $row_sonyazilar['id']; ?>&url=/<?php echo str_replace($find, $replace, $row_sonyazilar['baslik']); ?>" width="731" height="18"></iframe></td>
</tr><tr>
<td class="content">
<table cellspacing=0 cellpadding=0 width="733" height="45">
<tr>
<td class=ch1 width="719" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="731" height="28">
<tr>
<td height="28" width="731">
<table border="0" cellpadding="0" cellspacing="0" width="742" height="44">
<tr>
<td height="44" width="147" rowspan="2" bgcolor="#E7F9FF">
</td>
<td height="22" width="479" bgcolor="#E7F9FF">
<p align="center"><b><font size="3" face="Verdana"> Dinlenen Şarkı</font></b></td>
<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank"><img src="http://www.muzikdinle1.net/images/face.gif" alt="" /></a>
<td height="44" width="116" rowspan="2" bgcolor="#E7F9FF"> </td>
</tr>
<tr>
<td height="22" width="479" bgcolor="#E7F9FF">
<p align="center">
<img border="0" src="images/calanmuzik.gif" width="20" height="16"><b><font color="#4791B0" face="Tahoma" size="3"> <?php echo $row_sonyazilar['baslik']; ?>
</font></b><img border="0" src="images/calanmuzik.gif" width="20" height="16"></td>
</tr>
</table>
<br>
</td>
</tr>
</table>
<tr>
<td class=ch1 bgcolor="#E7F9FF" width="665">
<p align="center"><b><font size="3" color="#666666">Müziğin
Yüklenmesi 1 ve 3 Dakika arası sürebilir lütfen Bekleyiniz.</font></b><td class=ch1 bgcolor="#8CFB61" width="77">
<p align="center"><b><font color="#666666"> </font><font face="Tahoma" size="2"><a style="color: #666666; text-decoration: none" href="<? echo $site; ?>/">Müzik
Anasayfa</a></font></b></table>
</td>
</tr>
<tr>
<td class=ch1 height="4" bgcolor="#FFFFFF" width="93%" background="images/m_blu.gif">
<font size="4" color="#FFFFFF"><?php echo $row_sonyazilar['baslik']; ?> Şarkı Sözü</font></tr>
</tr>
<tr>
<td class=ch1 height="4" bgcolor="#FFFFFF" width="93%">
<?php echo $row_sonyazilar['yazidevami']; ?></tr>
</tr>
<tr>
<td class=ch1 height="4" bgcolor="#FFFFFF" width="93%" background="images/m_blu.gif">
<font size="4" color="#FFFFFF"><b> </b>Müzik Dinleme Linki</font></tr>
</tr>
<tr>
<td class=ch1 height="4" bgcolor="#FFFFFF" width="93%">
</b></font><font size="2">
<input type="text" style="width: 739; border: 1px solid #8781A3; background:#E7E6E6; height:19; font-family:Tahoma; font-size:10px" value="<? echo $site; ?>/<?php echo $row_sonyazilar['id']; ?>/<?php echo str_replace($find, $replace, $row_sonyazilar['baslik']); ?>"Kayahan" onClick='this.select();' size="1" name="link"></font></tr>
<tr>
<td class=ch1 bgcolor="#FFFFFF" width="93%">
<img border="0" src="images/yorumyap1.gif" width="742" height="28"></tr>
<tr>
<td class=ch1 height="8" bgcolor="#FFFFFF"><?php if ($totalRows_yorumlar > 0) { // Show if recordset not empty ?>
<font size="2" face="Verdana">
<?php do { ?><img border="0" src="images/yorumuser.png" width="16" height="16">
</font>
<b><font color="#D61010" face="Verdana" size="2"> <?php echo $row_yorumlar['yazan']; ?></font></b><br>
<?php
$hedehode = $row_yorumlar['yorum'];
str_replace("<", "<", $hedehode);
str_replace(">", ">", $hedehode);
echo $hedehode; ?><br><font face="Tahoma" style="font-size: 9pt">
<img border="0" src="images/yorumcizgi.jpg" width="741" height="9"><br>
<?php } while ($row_yorumlar = mysql_fetch_assoc($yorumlar)); ?>
<?php } // Show if recordset not empty ?>
<?php if ($totalRows_yorumlar == 0) { // Show if recordset empty ?>
<img border="0" src="images/yorumyok.gif" width="417" height="24"><?php } // Show if recordset empty ?></td>
</tr>
<tr>
<td class=ch1 height="8" bgcolor="#FFFFFF" background="images/tophdgraygradient.gif"> </td>
</tr>
<tr>
<td class=ch1 bgcolor="#FFFFFF" width="93%" background="images/m_blu.gif" height="18">
<font color="#FFFFFF" size="3"><b>
Müzik Hakkında Yorum Yap</b></font></tr>
</tbody></table>
<table border="0" cellpadding="0" cellspacing="0" width="741" height="71">
<tr>
<td height="6" width="354" rowspan="2" bgcolor="#FFFFFF"> <font face="Tahoma" style="font-size: 9pt">
<a href="<? echo $site; ?>/yorumyap.php?id=<?php echo $row_sonyazilar['id']; ?>pop_up" onClick="window.name='<? echo $site; ?>/yorumyap.php?id=<?php echo $row_sonyazilar['id']; ?>'; window.open('<? echo $site; ?>/yorumyap.php?id=<?php echo $row_sonyazilar['id']; ?>','pop_up', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=505,height=330'); return false;">
<img border="0" src="http://sevdaruzgari.net/sarkidinle/images/yorumed32a.gif" width="333" height="209"></a></td>
<td height="6" width="14" rowspan="2" bgcolor="#FFFFFF"></td>
<td height="20" width="373" bgcolor="#8CFB61" background="images/m_ora.gif">
<p align="center"><a href="<? echo $site; ?>/v<?php echo $row_kategoriadial['id']; ?>-<? echo str_replace($find, $replace, $row_kategoriadial['kategoriadi']); ?>.html">
<b><font style="font-size: 11pt">
<?php echo $row_kategoriadial['kategoriadi']; ?> Ait Diğer Müzikler</font></b></a></td>
</tr>
<tr>
<td height="189" width="373" bgcolor="#FFFFFF">
<p align="left"><?php include "kategorisoneklenenler.php"; ?><p> </td>
</tr>
</table>
</td>
</tr>
</tbody></table></center>
<img src="images/e.gif" height="8"><table align="center" border="0" cellpadding="0" cellspacing="0" width="99%">
<tbody><tr>
<td class="huvudRubrik" width="1%"> </td>
<td class="huvudRubrik" background="images/m_blu.gif" valign="middle" width="31%">
<img src="images/m_logo.gif" align="absmiddle" height="26" width="40">Son Eklenen Müzikler</td>
<td class="huvudRubrik" width="0%"> </td>
<td class="huvudRubrik" background="images/m_blu.gif" valign="middle" width="34%">
<img src="images/m_logo.gif" align="absmiddle" height="26" width="40">Rastgele Müzikler</td>
<td class="huvudRubrik" width="7"> </td>
<td class="huvudRubrik" background="images/m_blu.gif" valign="middle" width="33%">
<img src="images/m_logo.gif" align="absmiddle" height="26" width="40">En Çok Dinlenen Müzikler</td>
</tr>
<tr>
<td><img src="images/e.gif" height="3" width="5"></td>
</tr>
<tr>
<td bgcolor="#ffffff"> </td>
<td bgcolor="#ceecff"><table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content">
<?php include "eklenenler.php"?></td>
</tr></tbody></table> </td>
<td bgcolor="#ffffff"> </td>
<td bgcolor="#ceecff"><table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content">
<?php include "rastgele.php"?></td>
</tr></tbody></table> </td>
<td bgcolor="#ffffff" width="7"> </td>
<td bgcolor="#ceecff"><table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content">
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tbody><tr>
<td class="content">
<?php include "populer.php"?></td>
</tr></tbody></table> </td>
</tr></tbody></table> </td></tr>
</tbody></table>
</td>
</tr><tr><td valign="top">
<p align="center">
<img border="0" src="images/yasakmp31db1e10os8.png" width="727" height="84"></td>
</tr></tbody></table></td></tr>
<tr align="left" bgcolor="#ffffff" valign="top">
<td colspan="2">
<img src="images/m_bot.gif" height="14" width="149"></td>
</tr>
<tr align="left" bgcolor="#ffffff" valign="top">
<td colspan="2">
<p align="center"><span lang="tr"><?php include "copright.php"; ?></td>
</tr>
<tr align="center">
<td colspan="2"></td>
</tr></tbody></table>
</center>
</body>
</html>
<?php
mysql_free_result($sonyazilar);
mysql_free_result($kategoriadial);
mysql_free_result($yorumlar);
mysql_close();
?>dinle.php <?php require_once('ayarsite.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$currentPage = $_SERVER["PHP_SELF"];
mysql_select_db($database_geceninrengi, $geceninrengi);
$query_sonyazilar = sprintf("SELECT * FROM yazilar WHERE id = %s ORDER BY id DESC", GetSQLValueString($_GET['id'], "int"));
$sonyazilar = mysql_query($query_sonyazilar, $geceninrengi) or die(mysql_error());
$row_sonyazilar = mysql_fetch_assoc($sonyazilar);
$totalRows_sonyazilar = mysql_num_rows($sonyazilar);
$hjg4789 = $row_sonyazilar['id'];
mysql_select_db($database_geceninrengi, $geceninrengi);
$query_yorumlar = sprintf("SELECT * FROM yorumlar WHERE yaziid = '%s' AND onay='1' ORDER BY id DESC LIMIT 5", $hjg4789);
$yorumlar = mysql_query($query_yorumlar, $geceninrengi) or die(mysql_error());
$row_yorumlar = mysql_fetch_assoc($yorumlar);
$totalRows_yorumlar = mysql_num_rows($yorumlar);
$colname_yorumlar = "-1";
if (isset($_GET['id'])) {
$colname_yorumlar = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
}
mysql_select_db($database_geceninrengi, $geceninrengi);
$query_yorumlar = sprintf("SELECT url FROM yazilar WHERE id = %s", $colname_yorumlar);
$yorumlar = mysql_query($query_yorumlar, $geceninrengi) or die(mysql_error());
$row_yorumlar = mysql_fetch_assoc($yorumlar);
$totalRows_yorumlar = mysql_num_rows($yorumlar);
$yaziokunma = sprintf("geceninrengi%s", $row_sonyazilar['id']);
if($_COOKIE[$yaziokunma] == '1'){
} else {
mysql_select_db($database_geceninrengi, $geceninrengi);
mysql_query("UPDATE yazilar SET okunma = okunma+1 WHERE id='$row_sonyazilar[id]'", $geceninrengi);
$cook = $_COOKIE[$yaziokunma] + 1;
setcookie("$yaziokunma", "$cook", time()+86400);
}
$url = "http://www.youtube.com/watch?v=$row_sonyazilar[url]" ;//
$data = implode("", file($url));
if (preg_match_all("/&t=[^&]*/", $data, $matches))
{
$t = $matches[0][0];
$t = preg_split("/=/", $t);
$t = $t[1];
$v = $url;
$v = preg_split ("/\?v=/", $v);
//$v = preg_split ("/=/", $v);
$v = $v[1];
//echo '&status=ok';
//echo "me=".$youtubeVideoPath;
//header ("Location: $youtubeVideoPath");
}
else
{
echo "null";
}
?><body topmargin="0" leftmargin="0">
<script type="text/javascript" src="sw.js"></script>
<div id="flashplayer"><a href="http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player.exe">Video izlemek için programı indirin Flash Player</a> to see this player.</div>
<script type="text/javascript">
<!--
var object = new SWFObject("mediaplayer.swf", "mediaplayer", "731", "20", "7");
object.addParam("allowfullscreen", "true");
object.addVariable("width", "731");
object.addVariable("height", "20");
object.addVariable("autostart", "true");
object.addVariable("file", encodeURIComponent("<?php echo "http://www.******.org/proxy.php?v=".$v . "&t=".$t . "&.flv";?>"));
object.addVariable("type", "flv");
object.addVariable('backcolor','0x000000');
object.addVariable('frontcolor','0x808080');
object.addVariable('lightcolor','0xCCCCCC');
object.write("flashplayer");
-->
</script>
<?php
mysql_free_result($sonyazilar);
mysql_free_result($yorumlar);
mysql_close();?>resimdede gözüktügü gibi 1 soru: bot yanlış yere kaydediyor
2. soru: youtube kodları ile degilde direk download linkleri ile çalışmasını nasıl sağlayabilirim
bu konuda yardımcı olursanız sevinirim
istendigi taktirde anasayfada ücretsiz reklamını yayınlayabilirim