GIF89a;
Direktori : /home/serb/www/admin/ |
Current File : /home/serb/www/admin/delete_featuredad.php |
<? include("sessionout.php"); include("../lib/globals.php"); include("../lib/common.php"); include("../lib/functions.php"); $id=$_GET["id"]; $type=$_GET["type"]; $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']); $from="admin@escortseries.com"; mail($to, $subject, $body, $from); $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); } */ $del_sq="delete from escort_details where id='$id'"; execute_query($del_sq); header("location:list_featured.php?page=$page"); ?>