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 |
Dir : /home/trave494/thefreetrips.com/adminbackend/editcar.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 tblContent SET txtContent=%s WHERE CID=%s", GetSQLValueString($_POST['txtContent'], "text"), GetSQLValueString($_POST['CID'], "text")); mysql_select_db($database_connTravel, $connTravel); $Result1 = mysql_query($updateSQL, $connTravel) or die(mysql_error()); $updateGoTo = "index.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)); } mysql_select_db($database_connTravel, $connTravel); $query_rsUpdate = "SELECT * FROM tblContent WHERE CID = 'Cars'"; $rsUpdate = mysql_query($query_rsUpdate, $connTravel) or die(mysql_error()); $row_rsUpdate = mysql_fetch_assoc($rsUpdate); $totalRows_rsUpdate = mysql_num_rows($rsUpdate); ?> <!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> > Edit Car Rental Text</h1> <div class="larger"> <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1"> <table> <tr valign="baseline"> <td><textarea name="txtContent" cols="60" rows="20"><?php echo htmlentities($row_rsUpdate['txtContent'], ENT_COMPAT, 'UTF-8'); ?></textarea></td> </tr> <tr valign="baseline"> <td><input type="submit" value="Update" /></td> </tr> </table> <input type="hidden" name="MM_update" value="form1" /> <input type="hidden" name="CID" value="<?php echo $row_rsUpdate['CID']; ?>" /> </form> </div> <div class="clear"></div> </div> <div id="Bottom"> Copyright © <?php require('../website_name.php'); ?> 2014</div> </body> </html> <?php mysql_free_result($rsUpdate); ?>