• 20-11-2009, 17:34:46
    #1
    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

    <?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>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</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">
            &nbsp;</td>
            <td height="22" width="479" bgcolor="#E7F9FF">
            <p align="center"><b><font size="3" face="Verdana">&nbsp;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">&nbsp;</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">&nbsp;  <?php echo $row_sonyazilar['baslik']; ?>  
            &nbsp;</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">&nbsp;</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>&nbsp;</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("<", "&lt;", $hedehode);
    str_replace(">", "&gt;", $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">&nbsp;</td>
                </tr>
        <tr>
                <td class=ch1 bgcolor="#FFFFFF" width="93%" background="images/m_blu.gif" height="18">
            
                                    <font color="#FFFFFF" size="3"><b>&nbsp;&nbsp; 
                                    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>&nbsp;</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%">&nbsp;</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%">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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


  • 20-11-2009, 18:31:39
    #2
    Merhaba, Ekran görüntüsündeki alanlar vermiş olduğun kodlarda bulunmamakta. doğru kodları verirsen yardımcı oluruz.
  • 20-11-2009, 18:51:53
    #3
    muzikekle php dosyası bu


    <?php require_once('../ayarsite.php'); ?><?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    }
    
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    }
    
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
        
      $logoutGoTo = "../index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
      }
    }
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    }
    $MM_authorizedUsers = "admin";
    $MM_donotCheckaccess = "false";
    
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
      // For security, start by assuming the visitor is NOT authorized. 
      $isValid = False; 
    
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
      // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
      if (!empty($UserName)) { 
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
        // Parse the strings into arrays. 
        $arrUsers = Explode(",", $strUsers); 
        $arrGroups = Explode(",", $strGroups); 
        if (in_array($UserName, $arrUsers)) { 
          $isValid = true; 
        } 
        // Or, you may restrict access to only certain users based on their username. 
        if (in_array($UserGroup, $arrGroups)) { 
          $isValid = true; 
        } 
        if (($strUsers == "") && false) { 
          $isValid = true; 
        } 
      } 
      return $isValid; 
    }
    
    $MM_restrictGoTo = "login.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo); 
      exit;
    }
    ?>
    <?php
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $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;
    }
    
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }
    
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "yaziekle")) {
      $insertSQL = sprintf("INSERT INTO yazilar (baslik, yazigirisi, yazidevami, kategori, url) VALUES (%s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['baslik'], "text"),
                           GetSQLValueString($_POST['yazigirisi'], "text"),
                           GetSQLValueString($_POST['yazidevami'], "text"),
                           GetSQLValueString($_POST['kategori'], "text"),
                           GetSQLValueString($_POST['url'], "text"));
    
      mysql_select_db($database_geceninrengi, $geceninrengi);
      $Result1 = mysql_query($insertSQL, $geceninrengi) or die("Gerekli alanlar doldurulmadı!<br><a href=\"javascript:history.go(-1);\">geri</a>");
    
      $insertGoTo = "ok.php?islem=yazieklendi";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $insertGoTo));
    }
    
    mysql_select_db($database_geceninrengi, $geceninrengi);
    $query_kategorilistesi = "SELECT kategoriadi FROM kategoriler ORDER BY kategoriadi ASC";
    $kategorilistesi = mysql_query($query_kategorilistesi, $geceninrengi) or die(mysql_error());
    $row_kategorilistesi = mysql_fetch_assoc($kategorilistesi);
    $totalRows_kategorilistesi = mysql_num_rows($kategorilistesi);
    ?>
    <HTML><HEAD><TITLE>Müzik Ekle</TITLE>
    <LINK href="images/style.css" type=text/css rel=Stylesheet>
    <META http-equiv=Content-Type content="text/html; charset=ISO-8859-9">
    
    <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
    <BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 marginwidth="0" 
    marginheight="0">
    <TABLE class="background2 border1"  cellSpacing=0 cellPadding=0 
    width=760 align=center border=0>
      <TBODY>
      <TR vAlign=top>
        <TD>
          <TABLE height="90%" cellSpacing=0 cellPadding=0 width="100%" align=center 
          border=0>
            <TBODY>
            <TR height=24>
              <TD colSpan=2 height="23">
                <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class=top-bar width="317"><a href="../index.php">
                    <font color="#FFFFFF">Site AnaSayfa</font></a> -
                    <a href="index.php"><font color="#FFFFFF">Editör AnaSayfa</font></a></TD>
                    <TD class=top-bar width="180"><center><b>Müzik Ekle</b></center></TD>
                    <TD class=top-bar>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
          
            <TR vAlign=top height="100%">
              <TD class=left-column width=186 height="92%">
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class=vertival-nav align=left>
            <p class="b01"></p>
    <p></p>
    <p class="b01">
    <p class="b01">
    <p class="b01">
    <p class="b01">
    </TD></TR></TBODY></TABLE>
        
    
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class=vertival-nav align=left>
                    <B></p></a></TD></TR></TBODY></TABLE>
    
              
    
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  
                  <TR>
                    <TD class=vertival-nav align=left>
    
              
    
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="101%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class="table-header ucwords"><b>Düzenlemeler</b></TD></TR>
                  <TR>
                    <TD class=vertival-nav align=left<p class="b01"><a href="yaziekle.php">
    <font color="#FF0000">
                    &nbsp;&nbsp;</font><b><font color="#DA0008">Müzik Ekle</font></b></a></p>
    
    <p></p>
    <p class="b01"><?php if($totalRows_yorumsayisi != '0') { ?><a href="yorumlar.php"><?php } ?>
    &nbsp;&nbsp;<b>Yorum Onaylama (<?php echo $totalRows_yorumsayisi ?>)</b><?php if($totalRows_yorumsayisi != '0') { ?></a><?php } ?></p>
    <p class="b01"><a href="yaziduzenle.php">
    &nbsp;&nbsp;<b>Müzik Düzenleme/Silme</b></a></p>
    <p class="b01"><a href="kategoriekle.php">
    &nbsp;&nbsp;<b>Müzik Kategori Ekle</b></a></p>
    <p class="b01"><a href="kategoriduzenle.php">
    &nbsp;&nbsp;<b>Kategori Düzenleme/Silme</b></a></p>
    <p></p>
    <p class="b01"><a href="sifredegistirme.php">
    &nbsp;&nbsp;<b>Şifre Değiştirme</b></a></p>
    <p class="b01">
    &nbsp;&nbsp;<b><a href="<?php echo $logoutAction ?>">Çıkış</a></TD></TR></TBODY></TABLE>
    
               
                    </TD></TR></TBODY></TABLE>
                <p>&nbsp;</TD>
              <TD class=left-column width=570 height="92%">
           <p align="left">
                            <p>
      <?php if ($totalRows_kategorilistesi > 0) { // Show if recordset not empty ?>
    <form method="POST" action="<?php echo $editFormAction; ?>" name="yaziekle">
      <b>Kategori:</b><br>
      <select name="kategori"><?php do { ?><option value="<?php echo $row_kategorilistesi['kategoriadi']; ?>"><?php echo $row_kategorilistesi['kategoriadi']; ?></option><?php } while ($row_kategorilistesi = mysql_fetch_assoc($kategorilistesi)); ?></select><br><br>
      <b>Url ismi</b><br>
      <input type="text" name="baslik"><br><br>
      <b>Url Title</b><br>
      <textarea name="yazigirisi" id="yazigirisi" cols="56" rows="2"></textarea><br><br>
      <b>Youtube Video id:</b><br>
      <input type="text" name="url" size="80"><br>
      <b>Şarkı Sözü içeriği </b><br><script src="rich-textarea-53.js"></script>
      <textarea name="yazidevami" id="yazidevami" cols="56" rows="16"></textarea><script>replaceTextarea('yazidevami', '90%', '200px','','/main.css')</script><br><br>
      <input type="submit" value="gönder!">
      <input type="hidden" name="MM_insert" value="yaziekle">
    </form>
    <?php } // Show if recordset not empty ?>
    <?php if ($totalRows_kategorilistesi == 0) { // Show if recordset empty ?>
      Yazı yazmadan önce Video Kategori Eklemelisiniz!
      <?php } // Show if recordset empty ?>
    </p>
    </div><p align="center"></p>
    </div><p align="center"></TD>
    <?php
    mysql_free_result($kategorilistesi);
    ?>
    muzikdüzenle php

    <?php require_once('../ayarsite.php'); ?><?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    }
    
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    }
    
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
        
      $logoutGoTo = "../index.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
      }
    }
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    }
    $MM_authorizedUsers = "admin";
    $MM_donotCheckaccess = "false";
    
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
      // For security, start by assuming the visitor is NOT authorized. 
      $isValid = False; 
    
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
      // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
      if (!empty($UserName)) { 
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
        // Parse the strings into arrays. 
        $arrUsers = Explode(",", $strUsers); 
        $arrGroups = Explode(",", $strGroups); 
        if (in_array($UserName, $arrUsers)) { 
          $isValid = true; 
        } 
        // Or, you may restrict access to only certain users based on their username. 
        if (in_array($UserGroup, $arrGroups)) { 
          $isValid = true; 
        } 
        if (($strUsers == "") && false) { 
          $isValid = true; 
        } 
      } 
      return $isValid; 
    }
    
    $MM_restrictGoTo = "login.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo); 
      exit;
    }
    ?>
    <?php
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) : $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;
    }
    
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    }
    
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "yaziduzenle")) {
      $updateSQL = sprintf("UPDATE yazilar SET baslik=%s, yazigirisi=%s, url=%s, yazidevami=%s, kategori=%s WHERE id=%s",
                           GetSQLValueString($_POST['baslik'], "text"),
                           GetSQLValueString($_POST['yazigirisi'], "text"),
                           GetSQLValueString($_POST['url'], "text"),
                           GetSQLValueString($_POST['yazidevami'], "text"),
                           GetSQLValueString($_POST['kategori'], "text"),
                           GetSQLValueString($_POST['id'], "int"));
    
      mysql_select_db($database_geceninrengi, $geceninrengi);
      $Result1 = mysql_query($updateSQL, $geceninrengi) or die("Gerekli alanlar doldurulmadı!<br><a href=\"javascript:history.go(-1);\">geri</a>");
    
      $updateGoTo = "ok.php?islem=yaziduzenlendi";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      }
      header(sprintf("Location: %s", $updateGoTo));
    }
    
    mysql_select_db($database_geceninrengi, $geceninrengi);
    $query_kategorilistesi = "SELECT kategoriadi FROM kategoriler ORDER BY kategoriadi ASC";
    $kategorilistesi = mysql_query($query_kategorilistesi, $geceninrengi) or die(mysql_error());
    $row_kategorilistesi = mysql_fetch_assoc($kategorilistesi);
    $totalRows_kategorilistesi = mysql_num_rows($kategorilistesi);
    
    $colname_yaziyial = "-1";
    if (isset($_GET['id'])) {
      $colname_yaziyial = (get_magic_quotes_gpc()) ? $_GET['id'] : addslashes($_GET['id']);
    }
    mysql_select_db($database_geceninrengi, $geceninrengi);
    $query_yaziyial = sprintf("SELECT id, baslik, yazigirisi,url, yazidevami, kategori FROM yazilar WHERE id = %s", $colname_yaziyial);
    $yaziyial = mysql_query($query_yaziyial, $geceninrengi) or die(mysql_error());
    $row_yaziyial = mysql_fetch_assoc($yaziyial);
    $totalRows_yaziyial = mysql_num_rows($yaziyial);
    ?>
    
    <HTML><HEAD><TITLE>Müzik Düzenleme</TITLE>
    <LINK href="images/style.css" type=text/css rel=Stylesheet>
    <META http-equiv=Content-Type content="text/html; charset=ISO-8859-9">
    <META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
    <BODY bottomMargin=0 leftMargin=0 topMargin=0 rightMargin=0 marginwidth="0" 
    marginheight="0">
    <TABLE class="background2 border1"  cellSpacing=0 cellPadding=0 
    width=760 align=center border=0>
      <TBODY>
      <TR vAlign=top>
        <TD>
          <TABLE height="90%" cellSpacing=0 cellPadding=0 width="100%" align=center 
          border=0>
            <TBODY>
            <TR height=24>
              <TD colSpan=2 height="23">
                <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class=top-bar width="317"><a href="../index.php">
                    <font color="#FFFFFF">Site AnaSayfa</font></a> -
                    <a href="index.php"><font color="#FFFFFF">Admin Sayfa</font></a></TD>
                    <TD class=top-bar width="180"><center><b>Müzik Düzenleme</b></center></TD>
                    <TD class=top-bar>&nbsp;</TD></TR></TBODY></TABLE></TD></TR>
          
            <TR vAlign=top height="100%">
              <TD class=left-column width=186 height="92%">
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class=vertival-nav align=left>
            <p class="b01"></p>
    <p></p>
    <p class="b01">
    <p class="b01">
    <p class="b01">
    <p class="b01">
    </TD></TR></TBODY></TABLE>
        
    
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class=vertival-nav align=left>
                    <B></p></a></TD></TR></TBODY></TABLE>
    
              
    
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="100%" 
                align=center border=0>
                  <TBODY>
                  
                  <TR>
                    <TD class=vertival-nav align=left>
    
              
    
                <TABLE class=table-left cellSpacing=0 cellPadding=0 width="101%" 
                align=center border=0>
                  <TBODY>
                  <TR>
                    <TD class="table-header ucwords"><b>Düzenlemeler</b></TD></TR>
                  <TR>
                    <TD class=vertival-nav align=left<p class="b01"><a href="yaziekle.php">
    <font color="#FF0000">
                    &nbsp;&nbsp;</font><b><font color="#DA0008">Müzik Ekle</font></b></a></p>
    <p></p>
    <p class="b01"><?php if($totalRows_yorumsayisi != '0') { ?><a href="yorumlar.php"><?php } ?>
    &nbsp;&nbsp;<b>Yorum Onaylama (<?php echo $totalRows_yorumsayisi ?>)</b><?php if($totalRows_yorumsayisi != '0') { ?></a><?php } ?></p>
    <p class="b01"><a href="yaziduzenle.php">
    &nbsp;&nbsp;<b>Müzik Düzenleme/Silme</b></a></p>
    <p class="b01"><a href="kategoriekle.php">
    &nbsp;&nbsp;<b>Müzik Kategori Ekle</b></a></p>
    <p class="b01"><a href="kategoriduzenle.php">
    &nbsp;&nbsp;<b>Kategori Düzenleme/Silme</b></a></p>
    <p></p>
    <p class="b01"><a href="sifredegistirme.php">
    &nbsp;&nbsp;<b>Şifre Değiştirme</b></a></p>
    <p class="b01">
    &nbsp;&nbsp;<b><a href="<?php echo $logoutAction ?>">Çıkış</a></TD></TR></TBODY></TABLE>
    
               
                    </TD></TR></TBODY></TABLE>
                <p>&nbsp;</TD>
              <TD class=left-column width=570 height="92%">
               <p align="left">
                        <p>
    <form method="POST" action="<?php echo $editFormAction; ?>" name="yaziduzenle">
      <p align="center">
      <b><font size="3">Kategori:</font></b><font size="3"><br>
        </font>
        <select name="kategori">
            <option value="<?php echo $row_yaziyial['kategori']; ?>"><?php echo $row_yaziyial['kategori']; ?></option><?php do { ?><option value="<?php echo $row_kategorilistesi['kategoriadi']; ?>"><?php echo $row_kategorilistesi['kategoriadi']; ?></option><?php } while ($row_kategorilistesi = mysql_fetch_assoc($kategorilistesi)); ?>
        </select><br><br>
      <b>Url ismi :</b><br>
      <input type="text" name="baslik" value="<?php echo $row_yaziyial['baslik']; ?>" size="50"><br><br>
      <b><font size="3">URL TİTLE</font></b><font size="3"><br>
      </font>
      <textarea name="yazigirisi" id="yazigirisi" cols="45" rows="1"><?php echo $row_yaziyial['yazigirisi']; ?></textarea><script>replaceTextarea('yazigirisi', '90%', '200px','','/main.css')</script><br><br>
      </font>
    <br>
      <b>   <font size="4">Youtube video id: </font><font size="2">  <br>
        <input type="text" name="url" value="<?php echo $row_yaziyial['url']; ?>" size="71"><br><br>
      <font size="4">Müzik  Şarkı Sözü:<br>
      </font>
      <textarea name="yazidevami" id="yazidevami" cols="63" rows="8"><?php echo $row_yaziyial['yazidevami']; ?></textarea><script>replaceTextarea('yazidevami', '90%', '200px','','/main.css')</script><br><br>
      <input type="submit" value="güncelle!"><input type="hidden" name="id" value="<?php echo $row_yaziyial['id']; ?>">
      <input type="hidden" name="MM_update" value="yaziduzenle">
        </p>
    </form>
                            <p align="center"></TD>
                                  <?php
    mysql_free_result($kategorilistesi);
    
    mysql_free_result($yaziyial);
    ?>
    kodlar bunlar

    direk mp3 lerin çalmasını istiyorum
    birde botun dogru yere lınkı kaydetmesini
    şimdiden teşekkürler
  • 20-11-2009, 19:03:44
    #4
    muzikduzenle.php varsa onuda yaz lütfen.
  • 20-11-2009, 19:17:37
    #5
    bir üst mesaja eklenmiştir