HEX
Server: Apache
System: Linux pdx1-shared-a1-06 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: ednermusika (2886498)
PHP: 8.4.2
Disabled: NONE
Upload Files
File: /home/ednermusika/ednergranados.com/admin/galeriavideos_detalle_bajas.php
<?php require_once('../Connections/con_edner.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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;
}
}

if ((isset($_POST['gvd_consecutivo'])) && ($_POST['gvd_consecutivo'] != "")) {
  $deleteSQL = sprintf("DELETE FROM galeria_video_detalle WHERE gav_consecutivo=%s and gvd_consecutivo=%s",
                       GetSQLValueString($_POST['gav_consecutivo'], "int"),
					   GetSQLValueString($_POST['gvd_consecutivo'], "int"));

  mysql_select_db($database_con_edner, $con_edner);
  $Result1 = mysql_query($deleteSQL, $con_edner) or die(mysql_error());

  $deleteGoTo = "galeriavideos_detalle_admin.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $deleteGoTo));
}

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $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;
}
}

$colname_galeria_video = "-1";
if (isset($_GET['gav_consecutivo'])) {
  $colname_galeria_video = $_GET['gav_consecutivo'];
}
mysql_select_db($database_con_edner, $con_edner);
$query_galeria_video = sprintf("SELECT gav_consecutivo, gav_titulo FROM galeria_video WHERE gav_consecutivo = %s", GetSQLValueString($colname_galeria_video, "int"));
$galeria_video = mysql_query($query_galeria_video, $con_edner) or die(mysql_error());
$row_galeria_video = mysql_fetch_assoc($galeria_video);
$totalRows_galeria_video = mysql_num_rows($galeria_video);

$colname_galeria_videos = "-1";
if (isset($_GET['gav_consecutivo'])) {
  $colname_galeria_videos = $_GET['gav_consecutivo'];
}
$colname2_galeria_videos = "-1";
if (isset($_GET['gvd_consecutivo'])) {
  $colname2_galeria_videos = $_GET['gvd_consecutivo'];
}
mysql_select_db($database_con_edner, $con_edner);
$query_galeria_videos = sprintf("SELECT gav_consecutivo, gvd_consecutivo, gvd_titulo, gvd_descripcion, gvd_ruta, gvd_thumbnail, gvd_video,  gvd_activo FROM galeria_video_detalle WHERE gav_consecutivo = %s and gvd_consecutivo = %s", GetSQLValueString($colname_galeria_videos, "int"),GetSQLValueString($colname2_galeria_videos, "int"));
$galeria_videos = mysql_query($query_galeria_videos, $con_edner) or die(mysql_error());
$row_galeria_videos = mysql_fetch_assoc($galeria_videos);
$totalRows_galeria_videos = mysql_num_rows($galeria_videos);
?>
<!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=iso-8859-1" />
<title>Untitled Document</title>
<link href="css/admin.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><h1>Galer&iacute;a de Videos de <?php echo $row_galeria_video['gav_titulo']; ?></h1></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><a href="galeriavideos_detalle_admin.php?gav_consecutivo=<?php echo $row_galeria_video['gav_consecutivo']; ?>" class="ligas_menu_interiores">&laquo; Regresar</a></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><hr class="hr_principal" /></td>
  </tr>
</table>
<blockquote>
  <form method="POST" name="form1" id="form1">
  <table width="742">
    <tr valign="baseline">
      <td colspan="2" nowrap="nowrap"><h3>&iquest;Eliminar video?</h3>        </td>
      </tr>
    <tr valign="baseline">
      <td width="244" nowrap="nowrap" class="texto_14_verdana">&nbsp;</td>
      <td width="486"><input type="hidden" name="gav_consecutivo" value="<?php echo $row_galeria_videos['gav_consecutivo']; ?>" size="32" />
        <input type="hidden" name="gvd_consecutivo" value="<?php echo $row_galeria_videos['gvd_consecutivo']; ?>" size="32" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap"><h4>Encabezado:</h4></td>
      <td><p class="texto_resaltado"><?php echo $row_galeria_videos['gvd_titulo']; ?></p></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap"><h4>Descripci&oacute;n corta:</h4></td>
      <td class="texto_resaltado"><?php echo $row_galeria_videos['gvd_descripcion']; ?></td>
    </tr>
    <tr valign="baseline">
      <td valign="top" nowrap="nowrap">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr valign="baseline">
      <td valign="top" nowrap="nowrap"><h4>Video:</h4></td>
      <td><?php echo $row_galeria_videos['gvd_video']; ?></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" class="texto_14_verdana">&nbsp;</td>
      <td><input name="gvd_autor" type="hidden" value="" />
        <input type="hidden" name="gvd_ruta" value="galeria_videos" size="32" />
        <input name="gvd_thumbnail" type="hidden" value="tn_video.jpg" />
        <input name="accion" type="hidden" id="accion" value="C" /></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" class="texto_14_verdana"><h4>&nbsp;</h4></td>
      <td><input name="eliminar" type="button" id="eliminar" value="Eliminar" onclick="f_enviar();"/>
        <input type="button" name="cancelar" id="cancelar" value="Cancelar" onclick="history.back();" /></td>
    </tr>
  </table>
  </form>
<p>&nbsp;</p>
</blockquote>
</body>
</html>
<?php
mysql_free_result($galeria_video);

mysql_free_result($galeria_videos);
?>
<script type="text/javascript">
function f_validar ( )
{
	var retorno = true;
	
	with ( document.form1 )
	{
		
		return retorno
	}
}
function f_enviar()
{
	with (document.form1)
	{
		if ( f_validar ( ) )
		{
			submit ( );
		}
	}
}
</script>