BID18xx Server Side Programs
This page documents the PHP AJAX called programs used by BID18xx.
emailBidRequest.php
emailBidRequest.php is the server side code for the
AJAX emailBidRequest call. It creates a bid request
email for a specific player. It then calls
sendEmail.php and exits.
This leaves it to
sendEmail to return the final 'success' status.
emailBidResult.php
emailBidResult.php is the server side code for the
AJAX emailBidResult call. It creates a bid result
email for a specific player. It then calls
sendEmail.php and exits.
This leaves it to
sendEmail to return the final 'success' status.
getBid.php
getBid.php is the server side code for the AJAX getBid call. It returns the specified table row from the bid_table in the bid18xx database.
Input consists the "bidid" for the table row to
be returned.
Output is a json encoded array. The "return" value in
the array will be either "success" or "fail". If it
is "fail" then it will be the only item in the array.
If the "return" value is "success", then the rest of the
array will be the json string from the updated table row.
makeBidRow.php
The makeBidRow.php is the server side code for the AJAX makeBidRow call. It creates a new table row for the bid_table in the bid1846 database.
Input consists the "bid" json string to be stored.
Output is the bid_id of the new table row
or "0" if a failure occured.
sendEmail.php
The sendEmail() function uses SMTP to send emails.
It uses configMail.php to specify the server and server access
information.
It uses the MAIL_SENDER field for the specification
of reply direction.
You should use the SMTP server provided by your
ISP or your hosting service for these Emails.
updtBid.php
The updtBid.php is the server side code for the
AJAX updtBid call. It updates the specified table
row in the bid_table in the bid18xx database.
Before doing so, it tests and then increments the
updtCount value in the "bid" json string.
Input consists the "bidid" and the new value
of "bid" for the table row.
Output is an echo return status of
"success", "collision" or "fail".