Difference between revisions of "DRAFT1846 Server Side Programs"

From BOARD18 Project WIKI
Jump to navigation Jump to search
(Initial page contents)
 
(→‎sendEmail.php: Spruced it up)
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


==emailConfirmation.php==
==emailConfirmation.php==
This is the server side code for the AJAX emailConfirmation call.
This is the server side code for the AJAX emailConfirmation call.<br>
It creates a confirmation
email for a specific player. It then calls
sendEmail.php and exits. <br>This leaves it to
sendEmail to return the final 'success' status.


==emailDone.php==
==emailDone.php==
This is the server side code for the AJAX emailDone call.
This is the server side code for the AJAX emailDone call.<br>
It creates a draft done
email for a specific player. It then calls
sendEmail.php and exits. <br>This leaves it to
sendEmail to return the final 'success' status.


==emailLast.php==
==emailLast.php==
This is the server side code for the AJAX emailLast call.
This is the server side code for the AJAX emailLast call.<br>
It creates a last player
email for a specific player. It then calls
sendEmail.php and exits. <br>This leaves it to
sendEmail to return the final 'success' status.  


==emailNext.php==
==emailNext.php==
This is the server side code for the AJAX emailNext call.
This is the server side code for the AJAX emailNext call.<br>
It creates a next player
email for a specific player. It then calls
sendEmail.php and exits. <br>This leaves it to
sendEmail to return the final 'success' status.  


==getDraft.php==
==getDraft.php==
This is the server side code for the AJAX getDraft call.
This is the server side code for the AJAX getDraft call.<br>
It returns the specified table
row from the draft_table in the draft1846 database.


==makeDraft.php==
==makeDraft.php==
This is the server side code for the AJAX makeDraft call.
This is the server side code for the AJAX makeDraft call.<br>
It creates a new table row
for the draft_table in the draft1846 database.


==sendEmail.php==
==sendEmail.php==
This is the server side code for the AJAX endEmail call.
The sendEmail() function uses SMTP to send emails.<br>
It uses configMail.php to specify the server and server access
information. <br>
It uses the MAIL_SENDER field for the specification
of reply direction. <br>You should use the SMTP server provided by your
ISP or your hosting service for these Emails.


==updtCfrm.php==
==updtCfrm.php==
This is the server side code for the AJAX updtCfrm call.
This is the server side code for the AJAX updtCfrm call.<br>
It updates the "confirmed"
flag for a player, checks the confirmation status
for the draft and then returns the json draft text
in the table row for the draft being processed.  


==updtDraft.php==
==updtDraft.php==
This is the server side code for the AJAX updtDraft call.
This is the server side code for the AJAX updtDraft call.<br>
It updates the specified table
row in the draft_table in the draft1846 database.<br>
Before doing so, it tests and then increments the
updtCount value in the "draft" json string. <br>It also
increments the curPlayer value.
 
==updtDraftNpi.php==
This is the server side code for the AJAX updtDraft call.<br>
It updates the specified table
row in the draft_table in the draft1846 database.<br>
Before doing so, it tests and then increments the
updtCount value in the "draft" json string. <br>But,
unlike updtDraft, it does not increment the curPlayer value.

Latest revision as of 13:41, 27 May 2020

This page documents the PHP AJAX called programs used by DRAFT1846.

emailConfirmation.php

This is the server side code for the AJAX emailConfirmation call.
It creates a confirmation email for a specific player. It then calls sendEmail.php and exits.
This leaves it to sendEmail to return the final 'success' status.

emailDone.php

This is the server side code for the AJAX emailDone call.
It creates a draft done email for a specific player. It then calls sendEmail.php and exits.
This leaves it to sendEmail to return the final 'success' status.

emailLast.php

This is the server side code for the AJAX emailLast call.
It creates a last player email for a specific player. It then calls sendEmail.php and exits.
This leaves it to sendEmail to return the final 'success' status.

emailNext.php

This is the server side code for the AJAX emailNext call.
It creates a next player email for a specific player. It then calls sendEmail.php and exits.
This leaves it to sendEmail to return the final 'success' status.

getDraft.php

This is the server side code for the AJAX getDraft call.
It returns the specified table row from the draft_table in the draft1846 database.

makeDraft.php

This is the server side code for the AJAX makeDraft call.
It creates a new table row for the draft_table in the draft1846 database.

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.

updtCfrm.php

This is the server side code for the AJAX updtCfrm call.
It updates the "confirmed" flag for a player, checks the confirmation status for the draft and then returns the json draft text in the table row for the draft being processed.

updtDraft.php

This is the server side code for the AJAX updtDraft call.
It updates the specified table row in the draft_table in the draft1846 database.
Before doing so, it tests and then increments the updtCount value in the "draft" json string.
It also increments the curPlayer value.

updtDraftNpi.php

This is the server side code for the AJAX updtDraft call.
It updates the specified table row in the draft_table in the draft1846 database.
Before doing so, it tests and then increments the updtCount value in the "draft" json string.
But, unlike updtDraft, it does not increment the curPlayer value.