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