PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home/trave494/thefreetrips.com/adminbackend/
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
IP: 209.182.202.254
Choose File :

Url:
Dir : //home/trave494/thefreetrips.com/adminbackend/editvideo.php

<?php //include("/home/uebookst/public_html/globalhotelsmotels.com/Backend/password_protect.php"); ?>
<?php require_once('../Connections/connTravel.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;
}
}

$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
  $updateSQL = sprintf("UPDATE tblVideos SET txtTitle=%s, txtDesc=%s, txtVideo=%s WHERE VID=%s",
                       GetSQLValueString($_POST['txtTitle'], "text"),
                       GetSQLValueString($_POST['txtDesc'], "text"),
                       GetSQLValueString($_POST['txtVideo'], "text"),
                       GetSQLValueString($_POST['VID'], "int"));

  mysql_select_db($database_connTravel, $connTravel);
  $Result1 = mysql_query($updateSQL, $connTravel) or die(mysql_error());

  $updateGoTo = "allvideos.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
    $updateGoTo .= $_SERVER['QUERY_STRING'];
  }
  ?>
	<script type="text/javascript">
<!--
window.location = "<?php echo $updateGoTo ?>"
//-->
</script>
<?php
 // header(sprintf("Location: %s", $updateGoTo));
}

$colname_rsVideo = "-1";
if (isset($_GET['ID'])) {
  $colname_rsVideo = $_GET['ID'];
}
mysql_select_db($database_connTravel, $connTravel);
$query_rsVideo = sprintf("SELECT * FROM tblVideos WHERE VID = %s", GetSQLValueString($colname_rsVideo, "int"));
$rsVideo = mysql_query($query_rsVideo, $connTravel) or die(mysql_error());
$row_rsVideo = mysql_fetch_assoc($rsVideo);
$totalRows_rsVideo = mysql_num_rows($rsVideo);
?>
<!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>
<?php require('../website_name.php'); ?> - Admin</title>
<style type="text/css">
body {
	padding: 0px;
	margin-top: 80px;
	margin-right: 0px;
	margin-bottom: 0px;
	margin-left: 0px;
	
}
</style>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'>
<link href="../styles.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="../images/favicon.ico" />

</head>

<body>
<div id="Top">
  <div id="InTop">
    <div class="topnavi"><a href="/guides" title="Guides">GUIDES</a></div>
    <div class="topnavi"><a href="/videos" title="Videos">VIDEOS</a></div>
    <div class="topnavi"><a href="/contact" title="Contact Us">CONTACT US</a></div>
<div class="topnavi"><a href="/destinations" title="Destination">DESTINATION</a></div>
<div class="topnavi"><a href="/hotels" title="Hotels">HOTELS</a></div>
<div class="topnaviC"><a href="../" title="Hotels">HOME</a></div>
<a href="../"><img src="../images/logo.png" alt="<?php require('../website_name.php'); ?>" width="300" height="75" border="0" /></a></div>
</div>
<div id="Main">
  <h1><a href="./">Admin Area</a> &gt; Edit Video</h1>
    <div class="larger">
      <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
        <table>
          <tr valign="baseline">
            <td align="right" valign="middle" nowrap="nowrap">Video Title:</td>
            <td><input type="text" name="txtTitle" value="<?php echo htmlentities($row_rsVideo['txtTitle'], ENT_COMPAT, 'UTF-8'); ?>" size="60" /></td>
          </tr>
          <tr valign="baseline">
            <td align="right" valign="middle" nowrap="nowrap">Video Description:</td>
            <td><textarea name="txtDesc" cols="60" rows="5"><?php echo htmlentities($row_rsVideo['txtDesc'], ENT_COMPAT, 'UTF-8'); ?></textarea></td>
          </tr>
          <tr valign="baseline">
            <td align="right" valign="middle" nowrap="nowrap">YouTube Video Link:</td>
            <td><input type="text" name="txtVideo" value="<?php echo htmlentities($row_rsVideo['txtVideo'], ENT_COMPAT, 'UTF-8'); ?>" size="60" /></td>
          </tr>
          <tr valign="baseline">
            <td nowrap="nowrap" align="right">&nbsp;</td>
            <td><input type="submit" value="Update Video" /></td>
          </tr>
        </table>
        <input type="hidden" name="MM_update" value="form1" />
        <input type="hidden" name="VID" value="<?php echo $row_rsVideo['VID']; ?>" />
      </form>
    </div>
  <div class="clear"></div>
</div>
<div id="Bottom">
  
  Copyright © 
  <?php require('../website_name.php'); ?> 2014</div>
</body>
</html>
<?php
mysql_free_result($rsVideo);

//mysql_free_result($rsVideos);
?>