/* Author: Ram Samudrala (me@ram.org) * Version: O1.0 * Detail: * November 30, 1996. * * See the URL above for more information. */ #ifndef __SC_DEFINES__ #define __SC_DEFINES__ /******************************************************************/ /* Defines you probably need to change */ /* File name that contains the item list (along with prices, etc.) */ #define DEFAULT_ITEMS_FILE "/home/ram/www/th/misc/thitems" /* Name of the order processing script to call in the output form. */ #define ORDER_PROCESSING_SCRIPT "/cgi-bin/thorder" /* Name of the cookie processing script based on forms */ #define FORM_COOKIE_PROCESSING_SCRIPT "/cgi-bin/form_cookie" /* Name of the shopper processing script */ #define SHOPPER_PROCESSING_SCRIPT "/cgi-bin/thshopper" /* Name of the organisation. */ #define ORGANISATION "TWISTED HELICES" /******************************************************************/ /* You may or may not have to change these. */ /* Default expires - generally not reliable given Netscape and * official specification. Assume it lasts until the user agent * exits. You can modify the source so Max-Age=0 is written out, but * you can also resort to a kludge if you don't want to do that by * changing the current expires string so it looks like this: * "09-Nov-99 23:12:40 GMT; Max-Age=2600" */ /* #define DEFAULT_EXPIRES "09-Nov-99 23:12:40 GMT" */ #define DEFAULT_EXPIRES "" /* Size of the input field in the order form for the quantities. */ #define DEFAULT_INPUT_FIELD_SIZE "1" /* Path only under which the scripts apply */ #define DEFAULT_PATH "/" /* Default quantity to use (in search results, for example) */ #define DEFAULT_QUANTITY "1" /* Additional shipping charge for international orders. * If you don't use the International order flag, it won't affect * anything you do. */ #define INTERNATIONAL_SHIPPING_ADDON 2.00 /* Length of the string used to describe each item */ #define ITEM_DESCRIPTION_STRING_LENGTH 80 /* Maximum number of items in the order form */ #define MAX_ITEMS 1000 /* The maximum quantity of items - for best results, this should be equal to * to the maximum number specified in the items file. */ #define MAX_QUANTITY_PER_ITEM 10000 /* Search command to use for searching the catalog */ #define SEARCH_COMMAND "fgrep -i " /******************************************************************/ /* Other defines that shouldn't generally be edited. */ /* Name of the cookie */ #define ORDER_COOKIE_NAME "order" /* String length of a cookie (default max is 4096 characters) */ #define COOKIE_STRING_LENGTH 4096 /* String length of the order cookie */ #define ORDER_COOKIE_STRING_LENGTH COOKIE_STRING_LENGTH /* Character separator to separate item name from quantity in the cookie */ #define SEPARATOR '+' /******************************************************************/ #endif /* __SC_DEFINES__ */