#!/usr/local/bin/perl -w use lib "/home/heineman/public_html/cgi-bin/meeting/2.0/"; use CGI ":standard"; use DBI; use private::config; use private::system; use private::security::htaccess; # The main task of this script is to allow users to set up appointments # based upon a given calendar file. The format of the input files are: # # Day Start End Person Attributes Entry # # for example: # # Apr 15|9:00|9:20|conf=983 email=heineman@cs.wpi.edu|George Heineman # # stands for a meeting at 9:00 lasting until 9:20 that George Heineman has # placed on the schedule. Some other entity is responsible for known that # this is Matt Ward's schedule. # # attribute for a meeting can be: # free (0 for free, 1 for not free) # conf (confirmation number) # email (email of person with appointment) # # Users can 1) query for free slots (by day, by time) # 2) make an appointment (day/time) # 3) remove an appointment (if they know the confirmation #) # 4) Ask sysadmin to clear an appointment # # Sysadmins can 1) generate schedule for day or week # 2) remove an appointment (day/time); this will send email # to the participant # 3) #===========REQUIRED FILES============== use private::globals; use private::scheduleD; use private::unschedule; use private::template; use private::meeting; use private::show; use private::close; use private::sysadmin; use private::search; use db::mysql; #=========== SECURITY CHECK ================================ ## security_require(); #=========== REQUIRED VARIABLES ============================ $CGI::POST_MAX=100000; # limit upload size #=========== DATABASE CONNECT ============================== database_connect () or die ('Error: Could not connect to the database.'); #=========== LOAD DATA ===================================== my $action = param('action'); # Everything must start with this # ------------------------------- mimeHeader(); standardHeader(); # connect to database ##database_connect(); # DETERMINE if active software (i.e., are we being patched/repaired?) # print "action:$action\n"; if (!&isActiveSoftware()) { print "
";
print "Deactivation Message:$msg ($ts) "; print " |
Current time:"; $t = localtime; print "$t"; print " |