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/addarticle.php

<?php //include("/home/uebookst/public_html/globalhotelsmotels.com/Backend/password_protect.php"); ?>
<?php //include("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_insert"])) && ($_POST["MM_insert"] == "form1")) {
  $insertSQL = sprintf("INSERT INTO tblGuides (txtTitle, txtContent) VALUES (%s, %s)",
                       GetSQLValueString($_POST['txtTitle'], "text"),
                       GetSQLValueString($_POST['txtContent'], "text"));

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

  $insertGoTo = "allarticles.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
?>
<script type="text/javascript">
<!--
window.location = "<?php echo $insertGoTo ?>"
//-->
</script>
<?php

  //header(sprintf("Location: %s", $insertGoTo));
}
?>
<!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; Add An Article</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">Title:</td>
          <td><input type="text" name="txtTitle" value="" size="80" /></td>
        </tr>
        <tr valign="baseline">
          <td align="right" valign="middle" nowrap="nowrap">Content:</td>
          <td><textarea name="txtContent" cols="80" rows="20"></textarea></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">&nbsp;</td>
          <td><input type="submit" value="Add Article" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
    </form>
  </div>
  <div class="clear"></div>
</div>
<div id="Bottom">
  
  Copyright © 
  <?php require('../website_name.php'); ?> 2014</div>
</body>
</html>