BayTeam:CPE online entry programming checklist

From BayTeam

Jump to: navigation, search

This provides an overview and checklist for Administrators to update the CPE Online Entry system for a new trial.

Contents

Warning

This process should only be executed by those who are comfortable in the world of HTML/PHP. One simple mis-step with the delete key can break the whole system and result in hours of troubleshooting to correct.

Preparation

Before starting, you'll need the following:

  • All trial-specific information from the Trial Committee, including:
    • Slate of classes, as well as the order they will appear on the Premium
    • Cost per run (and package price if applicable)
    • Camping details - cost, important site-specific information
  • An FTP program and HTML/PHP editor - my preferences are as follows:
  • SuperAdmin rights on the Bay Team web server

Checklist

Having been given fair warning, here goes:

  • FTP the /forms/cpeentry folder to your local workstation
  • Make a backup copy of the /forms/cpeentry folder so you can recover when you break the PHP code
  • Make all required changes in the trial-data.inc.php file:
variables, classes array
email for testing (entry, rv, worker)
  • Edit/reorder the classes arrays in the following files:
entry-action.inc.php
entry-validate.inc.php
  • Edit/verify details in the text of the rv-form.inc.php file, e.g. cost and site-specific rules
  • FTP the /forms/cpeentry folder back to the server
  • Test all forms and logic
  • Send e-mail with a link to the Entry form (index.php) to the Trial Committee for review and approval
  • Change the email addresses from testing to live in the trial-data.inc.php file
  • Add links to Entry (index.php), RV (rv.php), and Worker (worker.php) forms to the appropriate Main Trial page

Follow-up

At midnight on the closing date (or as close after as you are awake), substitute the index files:

  • Rename the index.php file to index-live.php
  • Copy the index-closed.php file and rename it to index.php
  • Connect to the Entry form to confirm it has been replaced
Personal tools