if (!empty($newwarning)) { $ConfirmationWarning .= "<strong>WARNING:</strong> The seller account named is this transaction (Account #{$SellerID}) is currently under suspension.<strong> Future sales to this account will not be permitted until such time as the suspension is lifted.</strong><p>"; $newwarning = ""; } } break; case 'seller': $SellerStatus = AccountStatus($SellerID); if ($SellerStatus == 'Suspended' || $SellerStatus == 'Suspended from Sale') { $title = 'Account Restricted'; include "header.php"; print "<h1>Account #{$SellerID} is {$SellerStatus}</h1>\n\n\t\t \tThe account you have attempted to register a sale for is currently under suspension.\n\t\t <strong>This trade is not permitted</strong>.<p>\n\t\t For information about this suspension please contact the <a href=\"mailto:{$SystemEmail}\">{$Systemname} Administrator</a>"; include "footer.php"; exit; } $BuyerStatus = AccountStatus($BuyerID); if ($BuyerStatus == 'Suspended' || $BuyerStatus == 'Suspended from Sale') { if (WasWarned($SellerID, $BuyerID, 'Suspension')) { $title = 'Trade not authorized'; include "header.php"; print "<h1>Trade not authorized</h1>\n\t\t Account #{$BuyerID} is {$BuyerStatus}. Database records show that <em>your account (#{$BuyerID}) received a warning to this effect on <strong>{$WarningDate}.</strong></em><p>\n\t\t As you have received a previous warning about the current status of this account, entry of this trade is forbidden.<p>\n\t\t If you have cause to believe that this information is incorrect or invalid, please contact the <a href=\"mailto:{$SystemEmail}\">{$Systemname} Administrator</a>."; include "footer.php"; exit; } if (!empty($newwarning)) { $ConfirmationWarning .= "<strong>WARNING:</strong> The buyer account named in this transaction (Account #{$BuyertID}) is currently under suspension.<strong> Future sales to this account will not be permitted until such time as the suspension is lifted.</strong><p>"; $newwarning = ""; } } } /* Check that the accounts are not over their limits. If the entering account is
Set the Result[] variable to contain a response to the user, as appropriate */ if (empty($SellerID["{$trade}"]) && empty($BuyerID["{$trade}"]) && empty($Description["{$trade}"]) && empty($Amount["{$trade}"])) { $Result["{$trade}"] = "No trade data entered."; } elseif (empty($SellerID["{$trade}"]) || empty($BuyerID["{$trade}"]) || empty($Description["{$trade}"]) || empty($Amount["{$trade}"])) { $Result["{$trade}"] = "Not processed. <em>Submitted Trade Data incomplete or contains invalid AccountID</em>."; } else { /* Check for expired accounts */ if (IsExpired($SellerID["{$trade}"])) { $Result["{$trade}"] = "Not Processed. <em>The Seller account has expired</em>."; } elseif (IsExpired($BuyerID["{$trade}"])) { $Result["{$trade}"] = "Not Processed. <em>The Buyer account has expired</em>."; } elseif (AccountStatus($BuyerID["{$trade}"]) == 'Suspended' || AccountStatus($BuyerID["{$trade}"]) == 'Suspended from Buy') { if (WasWarned($SellerID["{$trade}"], $BuyerID["{$trade}"], 'Suspension')) { $Result["{$trade}"] = "Not Processed. <em>Buyer Account is under suspension and Seller has received a previous warning</em>."; } } elseif (AccountStatus($SellerID["{$trade}"]) == 'Suspended' || AccountStatus($SellerID["{$trade}"]) == 'Suspended from Sale') { if (WasWarned($BuyerID["{$trade}"], $SellerID["{$trade}"], 'Suspension')) { $Result["{$trade}"] = "Not Processed. <em>Seller Account is under suspension and Buyer has received a previous warning</em>."; } } elseif (BuyerOverLimit($BuyerID["{$trade}"], $Amount["{$trade}"])) { if (WasWarned($SellerID["{$trade}"], $BuyerID["{$trade}"], 'Over Limit')) { $Result["{$trade}"] = "Not Processed. <em>Buyer Account is over limit and Seller has received a previous warning</em>."; } } elseif (SellerOverLimit($SellerID["{$trade}"], $Amount["{$trade}"])) { if (WasWarned($BuyerID["{$trade}"], $SellerID["{$trade}"], 'Over Limit')) { $Result["{$trade}"] = "Not Processed. <em>Seller Account is over limit and Buyer has received a previous warning</em>"; } } else { /* Get a transactionID */ $transidtime = time(); if (!mysql_query("INSERT INTO transidlookup\n VALUES('','{$transidtime}','{$MemberID}')")) {