MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/eoffice/application/document/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/eoffice/application/document/user_profile.php
<?
session_start();
header("Last-Modified: ".gmdate( "D, d M Y H:i:s")."GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
header("content-type: application/x-javascript; charset=TIS-620");

include("../../config/config.inc.php");
include("../../common/function.php");
include("../../common/eoffice.inc.php");

$prename 			= post_decode($_POST['prename']);
$staffname 		= post_decode($_POST['staffname']);
$staffsurname		= post_decode($_POST['staffsurname']);
$engprename		= post_decode($_POST['engprename']);
$engname			= post_decode($_POST['engname']);
$engsurname		= post_decode($_POST['engsurname']);
$email				= post_decode($_POST['email']);
$sex					= post_decode($_POST['sex']);
$title					= post_decode($_POST['title']);
$telno				= post_decode($_POST['telno']);
//$address			= post_decode($_POST['address']);
$comment 			= post_decode($_POST['comment']);
$refid_info 			= post_decode($_POST['refid_info']);
$org_id 				= intval($_SESSION['session_dev_id']);
$id 					= $_SESSION['session_staffid'];
//print_r($_POST);
$sql = " update epm_staff set prename='$prename',staffname='$staffname',staffsurname='$staffsurname',  ";
$sql = $sql." engprename='$engprename',engname='$engname',engsurname='$engsurname', email='$email', comment='$comment', ";
$sql = $sql." sex='$sex',title='$title', telno='$telno', refid_info='$refid_info'  where staffid = '$id'; ";

$result		= mysql_query($sql)or die("Query line " . __LINE__ . "<hr>".mysql_error());
echo "<div align=\"center\"><img src=\"../../images/approve.gif\" width=\"18\" height=\"18\" align=\"absmiddle\" />&nbsp;";
echo "<font color='blue'>ข้อมูลของท่านได้รับการปรับปรุงแล้ว</font></div>";	
?>

Anon7 - 2021