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:32:08
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/information4_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_editin4 = "-1"; if (isset($_GET['num_in4'])) { $colname_editin4 = $_GET['num_in4']; } mysql_select_db($database_Myconnection, $Myconnection); $query_editin4 = sprintf("SELECT * FROM information4 WHERE num_in4 = %s", GetSQLValueString($colname_editin4, "int")); $editin4 = mysql_query($query_editin4, $Myconnection) or die(mysql_error()); $row_editin4 = mysql_fetch_assoc($editin4); $totalRows_editin4 = mysql_num_rows($editin4); ?> <!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_in4 = $_GET['num_in4']; $sql="SELECT * FROM information4 WHERE num_in4 = '$num_in4'"; $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="informaition4_edit.php"method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="num_in4" type="hidden" id="num_in4" value="<?php echo $row_editin4['num_in4']; ?>" /> <div class="row"> <div class="col-25"> <label for="fname">หัวเรื่อง</label> </div> <div class="col-75"> <input name="name_in4" type="text" id="name_in4" value="<?php echo $row_editin4['name_in4']; ?>"> </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