Installation Instructions:

1. Open all files with the extention .cgi and change the path to perl to reflect the
   path on your server.  It is currently /usr/bin/perl but with some servers you may
   need to change this to /usr/local/bin/perl.
   If you are unsure where perl is installed on your system:
   - Telnet into your server and issue the command which perl from the command prompt.
   - If that didn't make any sense to you ask your server administrator where perl is
     located on your system.
2. Open exchange.cgi and edit the $default_banner_url and $default_link_url variables.
   - This is the banner that will show if any sort of error occurs.
3. Open configure.pl and edit the $admin_password variable.  What you put here will be
   your administration password.
4. Set your ftp client to upload all files in ASCII mode.
5. FTP into your server and change directory to your cgi-bin or where you plan to install
   the script.
   - Create directory exchange_data and chmod to world writable 0666
   - Create directory backup and chmod to world writable 0666
6. Upload all files in ASCII mode!
   - Upload exchange.cgi to installation directory and chmod 0755
   - Upload banner_click.cgi to installation directory and chmod 0755
   - Upload configure.pl to installation directory and chmod 0666
   - Upload admin.cgi to installation directory and chmod 0755
   - Upload join.cgi to installation directory and chmod 0755
   - Upload lost_password.cgi to installation directory and chmod 0755
   - Upload members.cgi to installation directory and chmod 0755
7. If you are planning on hosting member's banners and allowing banner upload:
   - Upload upload.cgi to installation directory and chmod 0755
8. Change directory to exchange_data.
9. The exchange_data directory is where all of the exchange database files will be stored.
   - Upload exchange.dat to exchange_data directory and chmod 0666
   - Upload exchange_stats.dat to exchange_data directory and chmod 0666
   - Upload blocked_ip.dat to exchange_data directory and chmod 0666
   - Upload rotation.dat to exchange_data directory and chmod 0666
   - Upload header.txt to exchange_data directory and chmod 0666
   - Upload footer.txt to exchange_data directory and chmod 0666
10.  Type in the url to admin.cgi in your browser, hold your breath and press enter.
     If all went well you should see the admin login page requesting the password you
     set in step 3.
     If you see a 500 internal server error:
     - Did you upload in ASCII mode?
     - Check your path to perl and make sure it is correct in the script.
11. Enter your admin password and log in.
12. Push the Set Exchange Options button and set system variables:
    - Exchange Name:      Enter the name of your exchange.
    - Exchange URL:       The URL to your exchange front page.
    - Exchange Text:      This text will be displayed below member's banners and linked
                          to the exchange url above.
    - Banner Style:       This is the style of displayed member banners.
                          0 = No button.
		          1 = A small 60x60 button displayed to the left of the banner.
    - Join Credits:       Number of additional credits new members receive at joining
                          the exchange.
    - Email Admin:        Set this to 1 if you would like to receive an email notification
                          when a new member joins.  Otherwise, set this to 0.
    - Admin Email:        Administrator's email address.  This is the address where new member
                          notification emails are sent.
    - Number To Show:     The number of approved and onhold members to show at one time in the
                          admin screen.
    - Button URL:         If banner style is set to 1 enter the URL to the button here.
    - Exchange Email:     Email address of the exchange.  This is the reply to address sent
                          with exchange member emails.
    - Path to Sendmail:   Your path to sendmail.  Usually /usr/sbin/sendmail but it may be
                          but it may be different on your system.  Not setting this location
		          correctly will cause the mail functions to not work correctly.  Check
		          with your server administrator is you are unsure of it's location.
    - Admin Password:     If you did not change this already MAKE SURE TO CHANGE IT NOW!
    - URL To Scripts:     URL to the script installation directory without trailing slash.
    - Background Color:   Script background color.
    - Text Color:         Script text color.
    - Link Color:         Script link color.
    - Visted Link Color:  Script visited link color.
    - Active Link Color:  Script active link color.
    - Table Header Color: Script table header color.
    - Table Row Color:    Script table row color.
    - Exchange Ratio:     This is what a member earns per display.  A member's banner will be displayed
                          on the network once for every credit they have earned.  Setting this to .5
			  means a member earns .5 credits for every display on his/her site or a 2 to 1
			  ratio. Setting this to .66 is 2 to 3 and .9 is 9 to 10.
    - Upload Banners:     If you wish to host member's banners set this to 1 otherwise set this to 0
                          and new members will need to supply a url to their banner.
    - Max Banner Size:    If you are hosting the banners, set this to the maximum banner size you wish
                          to allow on the exchange.
    - Path to Banners:    If you are hosting the banners this is the path to the banner directory.
                          example: /home/you/public_html/exchange/banners
    - Categories:         You may have as many different categories as you wish.  Type them out in this field
                          separated by a space.

Push Save Exchange Options and you are done with setting the system variables.

13.  From the admin screen push the Exchange Ad Manager button and add your sponsor code to each category.
     example http://www.yourserver.com/exchange/sponsor_banner.jpg|http://www.some_sponsor_url.com?your_id
14.  The rest of the exchange functions should be very obvious so I won't go into them.
15.  Do a few test signups to make sure everything is working.  You are going to see the default banner displayed
     until you have at least two members.
16.  That's it your ready to start getting new member's.  Good Luck!

















