################################# # # Define Variables # The first thing you need to do is define the variables to make this # script work for you. There are A LOT of variables, but don't worry, # it's not that bad. You only NEED to set a few of them. The rest are to # customize the look and language of the script. # # A couple guidelines, if you use a quotation mark (") at symbol (@) # or dollar sign ($) in any of these variables, you MUST but a # backslash (\) immediatley before that character. # ################## # Required Changes # # These are variables you must set for the script to run on your server. $base_url = "http://mnstats.morris.umn.edu/courses/math1601/cgi-bin/chat"; #the base url to the chat directory $base_path = "/www/documents/courses/math1601/cgi-bin/chat"; #the base path to the chat directory $valid_referer = "mnstats.morris.umn.edu"; # This is the domain from which the script will run. # The part immediately following http:// and before any slashes (/) # This insures the script will only accept forms sent from this # domain. It fills a big security hole pointed out by Matt Wright. $java = "yes"; # This determines wheather or not java should be enabled. The monitor # feature uses java to return the audio alert. $admin_name = "admin"; $admin_passwd = "vumm"; # These allow admin privalages (Monitor and Chat Records). $require_pass = "no"; # If you want the require a valid username and password, this must be set # to "yes". $name1 = "ethan"; $pass1 = "paul"; $name2 = "student"; $pass2 = "vumm"; # This is the list of username and password which will be able to access # the script. You may include up to 100 users. If more users are needed, # the script itself will need to be modified. These only matter if #$require_pass is set to "yes". #You must also make some additional changes: #1. chat directory: # chmod 755 *.cgi # chmod 755 *.sol #2. visitors directory: # chmod 777 # delete all contents #3. files directory: # chmod 777 # delete all contents #4. records directory # chmod 777 # chmod 755 clear.cgi # delete records.inc # archive directory: # chmod 777 # delete all contents #5. monitor directory # chmod 755 monitor.cgi # That is all you NEED to change for the script to run on your server. ############## # The Look # # These are variables to control the look of the script. You'll # want to change some of them, but many are fine as they are. $page_title = "Math 1601 Chat"; # This is the title of the chat page $message_area_color = "99CCFF"; $background = ""; # This is the url of a background texture for all the pages this script # produces. Leave it blank if you don't want a background texture. $bgcolor = "F5F5DC"; # This is the background color for most of the pages this script produces. # Remember to use hex numbers (ffffff is white). Some browsers will # accept literal color names such as "red". $popup_bgcolor = "CDCDCD"; # This is the background color for the popup pages (admin functions). $text_color = "000000"; $link_color = "800000"; $vlink_color = "808000"; # This is the text color, the link color and the viewed link color for # all the pages this script produces. $oldcolor = "444444"; # This is the color of the text for messages a person has already read $newcolor = "red"; # This is the color of the text for messages a person has not read # This is also the color of the large message on the registration page # telling people to reload $one_color = "green"; # This is the color of the text for one on one messages. $mon_beep = "alert.au"; # This is the audio file to be used as an alert by the monitor feature. # The audio file should be placed in the monitor directory. # ################## # The Feel # # These are variables to control the feel of the script. You'll # want to change some of them, but many are fine as they are. $schedule_file = ""; # If you have a file detailing scheduled chats put the url of the schedule # file between the quotes. Otherwise leave them empty. If you put something # in here a link will be added to this file from the registration page. $help_file = ""; # This is the name of the help file for the script. You can leave it set # to my help page, or change it to one of your own, or delete the variable # and a link won't show up at all. $public_rooms = "