# ----------------------------------------------------------------------- # CurzTech Football Frontend # (c) 2002 Insane Software # Originaly created 05/29/2002 by # z@ph0d, CurzTech International # # Last modified 08/14/2004 # ----------------------------------------------------------------------- # ----------------------------------------------------------------------- # Changes for v4.0: # # 1) complete rewrite of all scripts to take advantage of servin's new # database scripting knowledge and to update the following functions: # - football.pl # - moved to "make_picks.pl" # - blew away tedious if/then checks to determine if a game has # already started or not. database pulls all games with a "gametime" # flag which is compared to the current time flag. the script # still decides to show the game or not, but without the previuos # mess of code. # - picks are now recorded to the database instantaneously, without # any "are you sure" screens. because the script pulls the users # picks on refresh, the "make_picks" page always shows what's # currently in the database. this does NOT necessarily reflect # what's gonna show up on the front page though. # - all subroutines moved to "config.pl" to allow all scripts to # pull from the "library". # - fbconfig.pl # - renamed "config.pl" # - commented out section lists each subroutine, what it does, what # variables (if any) it requires to run, and what variables (if # any) it returns. makes it much easier to find a needed sub. # - all subroutines used in any script should be placed here to make # sure there's no duplication of work. # - all static variables are put here to ensure they're pulled from # one source and that they'll all match. # ----------------------------------------------------------------------- # Changes for v3.0: # # 1) all scripts (there's more then one now) check for the presence of a # session cookie. this cookie's contents are then checked against a # list of users who are logged in. if the user isn't logged in (no # cookie or bad cookie) they have to login. if they exist in the file # they are passed on to the main page. if the users name exists but # the cookie is different, their current login is erased and they are # re-validated. this eliminates multiple concurrent sessions. # 2) football.pl now checks the latest picks for a particular week and # fills them in for the current user. a user can then instantly see # if the picks they made went through or not. this includes the # "hidden" option too. # 3) added fbmail.pl which sends an email to fbadmin from a user. the # user's comments are also written to a file whose URL is included in # the email to the admin. the filename uses the timesstamp of when # the email was sent, not started, and should provide some proof of # when it was sent. # 4) 09/03/2003 - Users can now make picks for future weeks # 5) 09/03/2003 - Fixed bug allowing users to *attempt* to make picks for # weeks later then what existed, i.e. week 99999 # 6) 09/05/2003 - Fixed bug restricting picks by day of week/day of game # only, i.e. script now takes into account which week the # pick is being made for. # 7) 09/08/2003 - Users can now make a pick for any game as long as it # hasn't started yet. # 8) 09/13/2003 - Fixed bug requiring user to fill in their password each # time they wanted to make a change using your_info.pl # - Added option to have a reminder email sent to them on a # particular day, changed in your_info.pl # - Created script to use with cronjob that checks each # users info and mails them a reminder on the proper day. # - added "Reply-to" header to fbmail.pl for easier replying. # # ----------------------------------------------------------------------- # Changes for v2.1: # # 1) added footer, header, and config file for all football related scripts # 2) moved changelof to config file for easier updating # 3) changed times on schedule.txt to reflect CST instead of EST, noted it # on the generating page for clarification. # 4) added version numbering as a variable for easier tracking # 5) added signup script. users who are new can signup, but an admin must # manually add them in to the "database" of users # 6) minor verbage change to footer # # ----------------------------------------------------------------------- # Changes for v2.0: # # 1) Added quick and insecure password protection # 2) changed the way playoff week was determined, cutting the code a bit # 3) added flag to give option to have picks visible before sunday's games # 4) moved header to bottom as a sub, added footer sub, header now has # dynamic year # 5) toward the end of the season last year date was added, this release # firmed that up and added a time of the game also # 6) picks are no longer mailed to the football admin. instead, the picks # are written to a text file which is then read by another cron'd script # on the admin site. that script reads in the picks and adds them to # the database automatically instead of waiting for an admin to do it # additionally, this script then mails the football admin to announce # that the user has made picks (although they are not shown), so # confirmations can be sent out also. # 7) added open dates to bottom of this week's list of teams # 8) formatted login page a little better # # ----------------------------------------------------------------------- # Changes for v1.2: # 1) redid stupid counter mistake, last game of last week is now actually # displayed on all pages and in all emails. # 2) added post season stuff, including labels for which post season week # it is, i.e. wild card, divisional, etc. # 3) added variable for superbowl number for the season '$superbowl' # 4) changed time output on pages to show 12:xx am not 0:xx am. # 5) added new copyright year, now has "2001-currentyear" # 6) added game date for each game # # ----------------------------------------------------------------------- # Changes for v1.1: # 1) added option to send copy of email to user # 2) minor verbage changes # 3) added autocomplete=off # 4) changed schedule location # 5) fixed schedule due to tragedy and NFL changes # # -----------------------------------------------------------------------