* send email to seller - to notify him
* create a "report" to seller depending of what kind auction is
*/
$atype = intval($Auction["auction_type"]);
if ($atype == 1) {
$WINNING_BID = $Auction[current_bid];
/**
* Standard auction
*/
if ($winner_present) {
$report_text = $Winner["nick"] . " (<a href='mailto:".$Winner["email"]."'>". $Winner["email"] . "</a>)\n";
if($SETTINGS['winner_address'] == 'y'){
$report_text .= $MSG_30_0086.$Winner['address']." ".$Winner['city']." ".$Winner['zip']." "." ".$Winner['prov'].", ".$Winner['country'];
}
// // Add winner's data to "winners" table
$query = "INSERT INTO PHPAUCTIONXL_winners VALUES (NULL,'" . $Auction['id'] . "','" . $Seller['id'] . "','" . $Winner['id'] . "'," . $Auction['current_bid'] . ",'$NOW',0)";
$res = @mysql_query($query);
/**
* Update column bid in table PHPAUCTIONXL_counters
*/
$counterbid = mysql_query("UPDATE PHPAUCTIONXL_counters SET bids=(bids-$decrem)");
} else {
$report_text = $MSG_429;
}
} else {