<?php
require('path.inc.php');

$houserent = new HouseRent($query);
if($page->action == "delpic"){
	$picid = intval($_GET['id']);
	if($houserent->delHousePic($picid)){
		echo 1;
	}else{
		echo 0;
	}
}elseif($page->action == "deldraw"){
	$dataid = intval($_GET['id']);
	if($houserent->delHouseDraw($dataid)){
		echo 1;
	}else{
		echo 0;
	}
}else{
	echo 0;
}
?>