<?php
include("src/Dealhot.php");
include("config.php");
$deleted = false;
$Dealhot = new Dealhot("","","");
$id = @$_REQUEST["id"];
if(@$_POST["submit"]=="Delete"){
  $action = 'deal_delete';
	$id = $_POST['id'];
	$rest_data = array(
	 'productID' => $id
	); 
	$Dealhot = new Dealhot($auth_arr,$action,$rest_data);
	$result_arr = $Dealhot->go();
	$deleted = true;
	if($result_arr["result"]=="success")
	 $msg = 'You have delete the deal successfully';
	else if($result_arr["result"]=="fail")
	 $msg = 'You have failed to deleted the deal. Reason: '.$result_arr["error"];
}
?>