STEP FIVE: Configuring the commissions_admin.cgi program This step goes over the configuration and options for the commissions_admin.cgi program, which is used by admin to view all resellers commissions.
ABOUT THE SCRIPT NAME Each of the scripts within Affiliate Master are NOT limited to the given file name. In this example, we use commissions_admin.cgi as the name of the script. You name rename this file to anything you desire, except it must end with .cgi or .pl (example: payout_admin.cgi, sales_admin.pl). If you change the name, just ensure you use the new name anywhere commissions_admin.cgi is stated below.
WHERE TO PLACE COMMISSIONS_ADMIN.CGI The best place to setup the commissions_admin.cgi script is in a directory off the root directory of your server, as this ensures others will not gain unauthorized access to the admin area (example: http://www.yourserver.com/secure/commissions_admin.cgi). If you are not able to run cgi scripts from your root directory, you will need to install the program in your cgi-bin directory (sometimes called cgibin or just cgi). The website URL would then be: http://www.yourserver.com/cgi-bin/commissions_admin.cgi NOTE: The commissions_admin.cgi script does have a built security system, which requires you to enter a password to view the resellers commissions.
CONFIGURING COMMISSIONS_ADMIN.CGI Pull up the commissions_admin.cgi file in your favorite text editor. The first key item to review (and this holds true for all the cgi programs) is the very first line of the program. This is the path to Perl5, which we looked up in STEP ONE.
Be sure this path is pointed to Perl5 on your server. The path should look like: There are 3 settings in this file.
Scroll down to line 11 in the program, to the line that is: This setting should point to the full URL to the commissions_admin.cgi file.
Scroll down to line 14 in the program, to the line that is: This setting is used to define the name of the reseller database file, which stores all the resellers information. You may configure this setting to point to a Virtual Server Path, as discussed in STEP ONE. This will add a little more security if you are able to place the file below the website root directory.
Example: NOTE: This file name should be the same in the placeorder.cgi, commissions.cgi and commissions_admin.cgi files.
Scroll down to line 17 in the program, to the line that is: This file holds the encrypted password used to get into the commissions_admin.cgi program. If you ever forget your password, simply delete this file and the next time you run commissions_admin.cgi, it will ask you for the new password. Those are the 3 main settings for commissions_admin.cgi that need to be configured.
|