* @package config * @file sample.constants.inc.php * @version $Id: sample.constants.inc.php,v 1.23.4.10 2006/01/21 02:51:28 blind Exp $ */ /** * The normal define for include files. * * @ignore */ define('INCLUDED_'.strtoupper(preg_replace('/[^a-zA-Z]/', '_', preg_replace('/^.*[\/]([^\/]*)$/', '\1', __FILE__))), 1); /** * The site name used in each of the page titles. */ define("SITE_NAME", "Under The Sea Photos"); /** * Must match $_SERVER['SCRIPT_FILENAME'] */ define('CODE_ROOT', '/var/www-gillis/bill/undertheseaphoto.com/DFPClient'); /** * Used to set the cache folder */ define('PHPTAL_PHP_CODE_DESTINATION', '/var/www-gillis/bill/undertheseaphoto.com/DFPClient/cache/'); /** * Change if your PEAR.php file is not in the PHP path. */ define("PEAR_INCLUDE", "PEAR.php"); /** * The number of tabs to display. */ define("TAB_CATEGORY_COUNT", 5); /** * The depth of categories to check. */ define("TAB_CATEGORY_DEPTH", 1); /** * The number of categories wide to display on the index page */ define("INDEX_PAGE_CAT_WIDTH", 2); /** * This determines how the array gets sent to the template. * The variable that gets sent to the template is an array of arrays of category objects. * Possible values currently are 0 or 1: * 0 - The original way of passing the array to the template where the length of the outer array * is unknown and each inner array will be INDEX_PAGE_CAT_WIDTH items long. * 1 - This will force the outer array sent to the template to contain INDEX_PAGE_CAT_WIDTH arrays. Each * inner array will be an unknown size. */ define("INDEX_PAGE_USE_KNOWN_LENGTH", 0); /** * This reverses the order of the category ordering on the index page. * Possible values are 0 or 1. Changing this value will cause the index page ordering to * move from top-to-bottom, left-to-right, to left-to-right, top-to-bottom. The orientation * will depend on the INDEX_PAGE_USE_KNOWN_LENGTH constant. */ define("INDEX_PAGE_REVERSE_ORDER", 0); /** * The number of sub categories for each category */ define("INDEX_PAGE_SUB_CAT", 3); /** * The name to give to the "Root" category */ define("ROOT_CATEGORY_NAME", "All Categories"); /** * The root category ID. */ define("ROOT_CATEGORY_ID", 1); /** * The number of columns to display. */ define("PAGE_COL", 3); /** * The number of items per page. */ define("PAGE_COUNT", 9); /** * The number of "recent" items to display. */ define("RECENT_COUNT", 3); /** * Used to determine the number of sub categories wide to display on the category page. */ define("CATEGORY_WIDTH",0); /** * The Image width for product listings. */ define("PRODUCT_MEDIUM_IMAGE_WIDTH", 75); /** * The Image height for product listings. */ define("PRODUCT_MEDIUM_IMAGE_HEIGHT", 75); /** * Number of top brands to show on the left. */ define("BRAND_COUNT", 10); /** * Number of top merchants to show on the left. */ define("MERCHANT_COUNT", 10); /** * The number of categories deep to go for the sitemap. */ define("SITEMAP_DEPTH", 2); /** * The subfolder inside the templates/ folder to use for the front end of things. */ define("TEMPLATE_ROOT", "mat3"); /** * The number of pages to show a direct link to at the bottom of each page. * For instance, if this is 2 and the current page was 6 then * 'Previous 4 5 6 7 8 Next' * would be shown instead of every page index. */ define("PAGE_COUNT_SPAN", 5); /** * URL Builder stuff. * The SEF_EXT constant is used to determine what URLBuilder is used to create and * parse URLs. The two currently supported options are "Get" and "SEF". */ define("SEF_EXT", "SEF"); /** * These constants are set to the page locations. * This is used to possibly alter the names of some pages and still have links * from other pages follow correctly. */ define("PAGE_CATEGORY", "/category"); define("PAGE_BRAND", "/brands"); define("PAGE_MERCHANT", "/merchants"); define("PAGE_PRODUCT", "/product"); define("PAGE_SEARCH", "/search"); define("PAGE_GOBUY", "/gobuy"); define("PAGE_ERROR", "/error.php"); define("PAGE_LOGIN", "/login.php"); define("PAGE_LOGOUT", "/logout.php"); define("PAGE_CREATE", "/create.php"); define("PAGE_VERIFYCREATE", "/verify_c.php"); define("PAGE_LOGINVERIFY", "/login2.php"); define("PAGE_FORGOTPASS", "/forgotpass.php"); define("PAGE_VERIFYNEWUSER", "/verify_new_user.php"); define("PAGE_MERGEVERIFY", "/merge_verify.php"); define("PAGE_PRODUCTEDIT", "/product_edit.php"); define("PAGE_ADDBRAND", "/add_brand.php"); define("PAGE_SITEMAP", "/sitemap"); define("PAGE_INDEX", "/"); /** * This defines the various php parameter names that are used. * This helps standardize parameter names between pages. */ define("PARAM_CATEGORYID", "categoryid"); define("PARAM_BRANDID", "brandid"); define("PARAM_PRODUCTID", "pid"); define("PARAM_PAGE", "page"); define("PARAM_SALE", "saleid"); define("PARAM_SEARCHSTR", "searchstr"); define("PARAM_MERCHANTID", "merchantid"); define("PARAM_ERRORID", "err"); define("PARAM_UID", "uid"); define("PARAM_RANDOMID", "vs"); define("PARAM_SORT", "sort"); define("PARAM_SUBTYPE", "type"); define("PARAM_PRODUCTSORT", "sort"); define("PARAM_EXT", "ext"); define("PARAM_SUBEXT", "subext"); /** * This is the temporary table to use to display the products. * Used if your temp table takes a long time to create. */ define("TABLE_CATEGORIES_MERCHANTS_TEMP_MAP", "categories_merchants_temp_map"); define("TABLE_PRODUCTS", "products"); define("TABLE_WRITE_ACTIVITY", "write_activity"); define("TABLE_COUNTS_TABLE_TEMP", "counts_table_temp"); /** * Number of categories to return from a search. */ define("SEARCH_CATEGORY_RET_COUNT", 5); /** * The columns of the brands page. */ define("BRAND_COLUMN_COUNT", 3); /** * The rows of the brands page. * This determines how the array gets sent to the template. * The variable that gets sent to the template is an array of arrays of category objects. * Possible values currently are 0 or 1: * 0 - The original way of passing the array to the template where the length of the outer array * is unknown and each inner array will be BRAND_PAGE_CAT_WIDTH items long. * 1 - This will force the outer array sent to the template to contain BRAND_PAGE_CAT_WIDTH arrays. Each * inner array will be an unknown size. */ define("BRAND_PAGE_USE_KNOWN_LENGTH", 1); /** * This reverses the order of the category ordering on the index page. * Possible values are 0 or 1. Changing this value will cause the index page ordering to * move from top-to-bottom, left-to-right, to left-to-right, top-to-bottom. The orientation * will depend on the BRAND_PAGE_USE_KNOWN_LENGTH constant. */ define("BRAND_PAGE_REVERSE_ORDER", 0); /** * The rows of the brands page. */ define("BRAND_ROW_COUNT", 100); /** * The columns of the merchants page. */ define("MERCHANT_COLUMN_COUNT", 3); /** * The rows of the merchants page. * This determines how the array gets sent to the template. * The variable that gets sent to the template is an array of arrays of category objects. * Possible values currently are 0 or 1: * 0 - The original way of passing the array to the template where the length of the outer array * is unknown and each inner array will be INDEX_PAGE_CAT_WIDTH items long. * 1 - This will force the outer array sent to the template to contain INDEX_PAGE_CAT_WIDTH arrays. Each * inner array will be an unknown size. */ define("MERCHANT_PAGE_USE_KNOWN_LENGTH", 1); /** * This reverses the order of the category ordering on the index page. * Possible values are 0 or 1. Changing this value will cause the index page ordering to * move from top-to-bottom, left-to-right, to left-to-right, top-to-bottom. The orientation * will depend on the INDEX_PAGE_USE_KNOWN_LENGTH constant. */ define("MERCHANT_PAGE_REVERSE_ORDER", 0); /** */ define("MERCHANT_ROW_COUNT", 100); /** * The email address that member emails are sent from. */ define("EMAIL_FROM", "memberships@undertheseaphoto.com"); /** * The name of the person that emails should be from. */ define("EMAIL_PERSON", "Bill Matuszek"); /** * The phone number used on the site. */ define("PHONE_NUMBER", "(518) 439-9574"); define("COMPANY_NAME", "Under The Sea Photographs and More!"); define("ADDRESS_1", "214 Orchard St."); define("ADDRESS_2", "Delmar, New York 12054"); /** * This holds the analytics code to print on each page. */ define("TRACKING_CODE", "\n" . ""); /** * This is the fully qualified URL of the project. * If the project is located in a sub folder, include that in this constant. There * should not be a trailing slash. */ define("HOME_PAGE", "http://www.undertheseaphoto.com/shop"); /** * This is the "sub folder" of the project. * It's the difference between HOME_PAGE_ROOT and HOME_PAGE. This also should * not contain a trailing slash. */ define("HOME_PREFIX", "/shop"); /** * Domain root. * This is needed if the HOME_PAGE contains a subfolder such as www.mydomain.com/dfpc which * will make the REQUEST_URI parameter difficult to interperet since the subfolder could * get included twice. This is the same as the above constant without any sub folders. * This will not include any sub folders and can most likely remain this way. If you need * to, change this as in the above case. */ define("HOME_PAGE_ROOT", "http://www.undertheseaphoto.com"); //define("HOME_PAGE", "http://".$_SERVER['HTTP_HOST']); /** * Used to determine what page was last visited where the user was doing normal * browsing. */ define("LAST_NORMAL", 0); /** * Index of the page where the user needed to enter information and the information * failed. */ define("LAST_FAIL", 1); /** * The last LAST_* constant. */ define("LAST_COUNT", 1); /** * Specifies that we want version mapping between version 4 and 5. */ define('VERSION_FOLDER_MAP', 'version_map_45'); /** * This is the runtime search engine choice. */ define('SEARCH_STRATEGY', 'BasicSearch'); /** * Enable the ajax subsystem. */ define('ENABLE_AJAX', true); /** * The strategy class to use for ajax calls. */ define('AJAX_STRATEGY', 'NAJAXStrategy'); /** * The path used for uploading images to. */ define('TEMP_IMAGE_FOLDER', '/var/www-gillis/bill/undertheseaphoto.com/DFPClient/media/images/upload'); /** * This is the relative URL of the project of the above folder. */ define('TEMP_IMAGE_URL', '/media/images/upload'); /** * The path used for large images. */ define('LARGE_IMAGE_FOLDER', '/var/www-gillis/bill/undertheseaphoto.com/DFPClient/media/images/protected'); /** * The path used for thumbnail and medium images. */ define('THUMB_IMAGE_FOLDER', '/var/www-gillis/bill/undertheseaphoto.com/DFPClient/media/images/pub'); /** * This is the relative URL of the project of the above folder. */ define('THUMB_IMAGE_URL', '/media/images/pub'); /** * This is the overlay image. */ define('OVERLAY_IMAGE', '/var/www-gillis/bill/undertheseaphoto.com/DFPClient/media/overlay1.gif'); /** * The medium image dimension. */ define('MED_DIMENSION', '450x450'); /** * The small image dimension. */ define('SMALL_DIMENSION', '150x150'); /** * The convert program for image magik */ define('CONVERT_BIN', "/usr/bin/convert"); /** * The composite program for image magik */ define('COMPOSITE_BIN', "/usr/bin/composite"); /** * The following is the extension constants */ define('EXT_FOLDER', 'ext'); function get_ext_list() { $retVal = array(); # Make sure any page you want to have an extension listed for matches this format $retVal[PAGE_CATEGORY]['folder'] = "category"; $retVal[PAGE_CATEGORY]['list'] = array("create_product", "create_category"); $retVal[PAGE_PRODUCT]['folder'] = "product"; $retVal[PAGE_PRODUCT]['list'] = array("edit_product", "move", "change_image"); return $retVal; } ?>