| Previous | Next | Main Index: Frames | No Frames |
| Document: Frames | No Frames | |
| Script Name | Setup File | Variable Document | ||
|---|---|---|---|---|
| ws400CS.cgi | /Databases/outlet.setup | /Docs/outlet.setup.html | ||
| ws_banner.cgi | /Databases/ws_banner.setup | /Docs/ws_banner.setup.html | ||
| ws_editor.cgi | /Databases/outlet_editor.setup | /Docs/outlet_editor.setup.html | ||
| ws_mail.cgi | /Databases/ws_mail.setup | /Docs/ws_mail.setup.html |
use lib = '/Path/To/Perl/Modules';
Package/File Download URL for latest version
------------ -------------------------------
Digest::MD5 http://www.perl.com/cgi-bin/cpan_mod?module=Digest::MD5
Net::SSLeay http://www.perl.com/cgi-bin/cpan_mod?module=Net::SSLeay
OpenSSL http://www.openssl.org/source
$nslookup = '/usr/bin/nslookup';
$sendmail = '/usr/bin/sendmail';
$pgp = '/usr/local/bin/pgp';
$whois = '/usr/bin/whois';
$basedir = '/Path/To/Web_store';
$use_ssl = '1';
| 0 | SSL is disabled. WebStore uses $main_script_url for all clients going to the order form. | |
|---|---|---|
| 1 | Clients are taken directly to the order form with SSL enabled. If using frames, WebStore remains in frames. WebStore will switch the value of $use_ssl from 1 to 2 for those browsers which may not be capable of SSL transmissions. | |
| 2 | Clients are given a form to select the use of SSL. If using frames, WebStore remains in frames. | |
| 3 | Clients are given a form to select the use of SSL. Buttons in this form TARGET="_top" and exit frames. Leaving the insecure frameset document permits MSIE and Netscape to close their padlock. | |
| Secure Frame |
| Secure Frame |
$main_script_url = 'http://www.YourDomain.xxx/Web_store';
Each script adds /script_name.cgi to $main_script_url.
$ssl_url = 'https://www.YourDomain.xxx/Web_store';
Each script adds /script_name.cgi to $ssl_url.
$graphics_url = 'http://www.YourDomain.xxx/Web_store/Graphics';
$ssl_graphics_url = 'https://www.YourDomain.xxx/Web_store/Graphics';
$timezone = '-5:CST';
-5:CST
GMT offset:Timezone description
Wednesday, 08 April 1998 at 04:22:43 AM, CST
Your time zone offset value will equal the number of hours your time zone differs,
plus or minus, from GMT. Greenwich, England is defined as 0 and is the center of GMT.
Time zone values:
US Eastern Standard (EST) -5 hours (Local summer -4 hours)
US Central (CST) -6 hours (Local summer -5 hours)
US Mountain (MST) -7 hours (Local summer -6 hours)
US Pacific (PST) -8 hours (Local summer -7 hours)
Greenwich, England (GMT) 0 hours (Local summer +1 hours)
$timezone settings:
$timezone = '-5:EST';
$timezone = '-6:CST';
$timezone = '-7:MST';
$timezone = '-8:PST';
$timezone = '0:GMT';
$timezone = '-5:US Eastern Standard Time';
$timezone = '-6:US Central Time';
$timezone = '-7:US Mountain Time';
$timezone = '-8:US Pacific Time';
$timezone = '0:Greenwich Mean Time';
$timezone = '-5:(GMT -05:00) Eastern Time (US & Canada)';
$timezone = '-6:(GMT -06:00) Central Time (US & Canada)';
$timezone = '-7:(GMT -07:00) Mountain Time (US & Canada)';
$timezone = '-8:(GMT -06:00) Pacific Time (US & Canada)';
$timezone = '0:(GMT) Greenwich Mean Time';
Time zone value syntax:
+xx.xx, +x.xx, +x.x, +x, 0
-xx.xx, -x.xx, -x.x, -x
x equals a numeric value (0-9)
Time zone value range:
-13.75 to +13.75
The script will default to the server's local time for the following
mis-configurations of $timezone:
1. Alpha or special characters present in the time zone value
2. Time zone value greater than +13.75 or less than -13.75
3. No colon present
Refer to
timezones.html
for a listing of GMT time zone offset values.
Positive values: subtract one hour 5 becomes 4
Negative values: subtract one hour -5 becomes -6
Setting $timezone = '-5:CST' enables GMT time zone calculation .
Wednesday, 08 April 1998 at 04:22:43 AM, CST
Setting $timezone = '-5:' enables GMT time zone calculation .
Wednesday, 08 April 1998 at 04:22:43 AM
Setting $timezone = ':CST' disables GMT time zone calculation.
Wednesday, 08 April 1998 at 05:22:43 AM, CST
Setting $timezone = ''; disables GMT time zone calculation.
Wednesday, 08 April 1998 at 05:22:43 AM
$delete_age = '6';
$delete_age = '3' 3 hours $delete_age = '5.5' 5 1/2 hours $delete_age = '6' 6 hours $delete_age = '12' 12 hours
$dns_lookup = '1';
| 0 | DNS lookup is disabled. Submitted e-mail addresses are checked for minimal syntax only. | |
|---|---|---|
| 1 | Perform DNS lookup of the e-mail address entered on forms in all scripts. The e-mail address must pass nslookup or form submission will not be accepted. | |
| 2 | Perform DNS lookup for e-mail addresses entered on
all forms in all scripts. Allow nslookup failures to proceed, posting
the appropriate error message.
WebStore attempts to deliver the confirmation of order e-mail to the client. An additional message is printed at the top of the confirmation page informing the client that their e-mail address failed NS Lookup and the confirmation of order e-mail may not be deliverable to their submitted e-mail address. For ws_editor.cgi and ws_mail.cgi, an e-mail address which fails nslookup during user registration to the administrative interface generates an error message only and will not prevent a new user from registering. The confirmation of registration e-mail may not be delivered to the new user's e-mail address. E-mail addresses submitted on the WS Mail registration form are checked for minimal syntax only. | |
$company_email = "Electronic Outlet Demo <WebStore\@YourDomain.xxx>";
$admin_email = "Administrator <admin\@YourDomain.xxx>";
$pgp_user_id = "Your Name <username\@YourDomain.xxx>";
$save_orders = 'days96';
Time Span Filename Examples (using PGP file extension) y - year 2000.asc m - month 2000-01.asc or 2000-January.asc d - day 2000-01-21.asc or 2000-January-21.asc h - hour 2000-01-21.AM-10.asc or 2000-January-21.AM-10.asc
a - Alpha months in filenames (numeric months if 'a' is omitted)
s - Delete short term files (hour and day) at 48 hour intervals
sXX - Delete short term files (hour and day) at XX hour intervals,
where X = 0-9 and XX must be greater than 24 hours.
Deletion interval defaults to 48 hours when XX is less than
or equal to 24 hours or XX is omitted.
's' has no effect when 'h' and 'd' switches do not exist.
Short term file checks occur during the submission of orders.
'm' - Month files with numeric months
'may' - Year and month files with alpha months
'days' - Year and day files with alpha months
Delete day files older than 48 hours at 48 hour intervals
'has96' - Hour files with alpha months
Delete hour files older than 96 hours at 96 hour intervals
-----ORDER: Reference # Order Total Date Client E-mail
$background = 'image.jpg'; $bgcolor = '#FFFFFF'; # White $text_color = '#000000'; # Black $link_color = '#0000FF'; # Blue $vlink_color = '#0000A0'; # Dark Blue $alink_color = '#FF0000'; # Red
$graphics_url/$background OR $ssl_graphics_url/$background
| Font Examples | ||
|---|---|---|
| Algerian | Arial | Book Antiqua |
| BrushStroke | Comic Sans MS | Courier |
| Courier New | First Grader | Futura |
| Gallery | Helvetica | Keystrokes MT |
| Marquee | Mead Bold | Modern |
| MS Sans Serif | MS Serif | MS-DOS CP 932 |
| Old English Gothic | Penyae | Roman |
| Sans Serif | Script | Small Fonts |
| Stencil | Times Roman | Times New Roman |
| University | Verdana | WingDings 3 |
$data_font = '2'; $data_face = 'Arial,Helvetica';
$header_font = '2'; $header_face = $data_face;
$header_face = 'Verdana,Helvetica';
$demo = '';
ws400CS.cgi?demo=Y
$libr_directory - if using real-time processing $pgp_directory - if using PGP encryption $sale_directory - if storing orders
$cart_directory - if using restricted access $data_directory $libr_directory - if using real-time processing $sale_directory - if storing orders $stat_directory $user_directory
Placing $data_directory under HTACCESS will provide protection for the following sub-directories under $data_directory:$clnt_directory $mail_directory $rstr_directory $sale_directory
$data_directory = $basedir.'/'.'Databases'; # Setup files, databases $grph_directory = $basedir.'/'.'Graphics'; # Image files $html_directory = $basedir.'/'.'Html'; # HTML files $libr_directory = $basedir.'/'.'Library'; # Program libraries $logs_directory = $basedir.'/'.'Logs'; # Real-time logs $stat_directory = $basedir.'/'.'Statistics'; # Statistical files $cart_directory = $basedir.'/'.'User_carts'; # Shopping carts $user_directory = $basedir.'/'.'Users'; # User access files $banr_directory = $grph_directory.'/'.'Banners'; # Banner image files $clnt_directory = $data_directory.'/'.'Clients'; # Client form files $mail_directory = $data_directory.'/'.'Mail'; # Mailing lists $rcrt_directory = $cart_directory.'/'.'Restricted'; # Shopping carts $rstr_directory = $clnt_directory.'/'.'Restricted'; # Client files
$pgp_directory = $basedir.'/'.'Pgp';
$pgp_directory = 'Path/To/.pgp';
$sale_directory = $data_directory.'/'.'Sales';
1; # DO NOT REMOVE IN ws_global.setup # End of file