<?php /** * site_map header_php.php * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_SITE_MAP'); /** * load language files */ require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); $breadcrumb->add(NAVBAR_TITLE); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_SEE_ALL, false); /** * load the site map class */ require DIR_WS_CLASSES . 'site_map.php'; $zen_SiteMapTree = new zen_SiteMapTree(); // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_SITE_MAP');
<?php /** * page_not_found header_php.php * * @package page * @copyright Copyright 2003-2007 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 6288 2007-05-09 04:29:00Z drbyte $ */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_PAGE_NOT_FOUND'); // tell the browser that this page is showing as a result of a 404 error: header('HTTP/1.1 404 Not Found'); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template-specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_PAGE_NOT_FOUND, false); $breadcrumb->add(NAVBAR_TITLE); require DIR_WS_CLASSES . 'site_map.php'; $zen_SiteMapTree = new zen_SiteMapTree(); // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_PAGE_NOT_FOUND');
<?php /** * About Us Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_ABOUT_US, false); $breadcrumb->add(NAVBAR_TITLE);
<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | http://www.zen-cart.com/index.php | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.zen-cart.com/license/2_0.txt. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | license@zen-cart.com so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: header_php.php $ // $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . 'require_languages.php'; $define_no_links_allowed = zen_define_page(FILENAME_DEFINE_NO_LINKS_ALLOWED, false); $breadcrumb->add(NAVBAR_TITLE);
<?php /** * Wholesale Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_WHOLESALE, false); $breadcrumb->add(NAVBAR_TITLE);
// | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.zen-cart.com/license/2_0.txt. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | license@zen-cart.com so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // $Id: header_php.php,v 1.1 2006/06/16 01:46:16 Owner Exp $ dmcl1 // $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . 'require_languages.php'; // include template specific file name defines $definedpage = zen_define_page(FILENAME_DEFINE_SUBSCRIBE, false); $subscribe = false; $error = false; $email_address = !empty($_REQUEST['email']) ? $_REQUEST['email'] : ''; $confirm = !empty($_REQUEST['confirm']) ? $_REQUEST['confirm'] : ''; $email_address = zen_db_prepare_input($email_address); $confirm = zen_db_prepare_input($confirm); if (!defined('NEWSONLY_SUBSCRIPTION_ENABLED') || NEWSONLY_SUBSCRIPTION_ENABLED == 'false') { $error = true; $messageStack->add('subscribe', TEXT_NEWSONLY_SUBSCRIPTIONS_DISABLED); } elseif (!$email_address || strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) { $error = true; $messageStack->add('subscribe', ENTRY_EMAIL_ADDRESS_ERROR); } elseif (zen_validate_email($email_address) == false) { $error = true; $messageStack->add('subscribe', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
<?php /** * site_map header_php.php * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ // This should be first line of the script: $zco_notifier->notify('NOTIFY_HEADER_START_SITE_MAP'); /** * load language files */ require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); $breadcrumb->add(NAVBAR_TITLE); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_SITE_MAP, false); /** * load the site map class */ require DIR_WS_CLASSES . 'site_map.php'; $zen_SiteMapTree = new zen_SiteMapTree(); // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_SITE_MAP');
<?php /** * Producttags Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_PRODUCTTAGS, false); if (isset($_GET['letter'])) { $breadcrumb->add($_GET['letter']); } else { $breadcrumb->add(NAVBAR_TITLE); }
if ($get_result->RecordCount() != 1 and $get_result->fields['category_id'] != '-1') { $result = $db->Execute("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.categories_id = cd.categories_id and cd.language_id = '" . (int) $_SESSION['languages_id'] . "' and c.categories_id='" . $get_result->fields['category_id'] . "'"); $cats .= '<br />' . $result->fields["categories_name"] . $restrict; } $get_result->MoveNext(); } if ($skip_cat_restriction == false) { $cats = TEXT_NO_CAT_RESTRICTIONS; } $text_coupon_help .= $cats; $text_coupon_help .= TEXT_COUPON_HELP_PRODUCTS; $get_result = $db->Execute("select * from " . TABLE_COUPON_RESTRICT . " where coupon_id='" . (int) $lookup_coupon_id . "' and product_id !='0'"); while (!$get_result->EOF) { if ($get_result->fields['coupon_restrict'] == 'N') { $restrict = TEXT_PROD_ALLOWED; } else { $restrict = TEXT_PROD_DENIED; } $result = $db->Execute("SELECT * FROM " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id = pd.products_id and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'and p.products_id = '" . $get_result->fields['product_id'] . "'"); $prods .= '<br />' . $result->fields['products_name'] . $restrict; $get_result->MoveNext(); } if ($prods == '') { $prods = TEXT_NO_PROD_RESTRICTIONS; } $text_coupon_help .= $prods . TEXT_COUPON_GV_RESTRICTION; } } // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_DISCOUNT_COUPON, false); $breadcrumb->add(NAVBAR_TITLE);
<?php /** * Privacy Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_PRIVACY, false); $breadcrumb->add(NAVBAR_TITLE);
<?php /** * Conditions Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_CONDITIONS, false); $breadcrumb->add(NAVBAR_TITLE);
// display products } else { $category_parent_query = "SELECT count(*) AS total\n FROM " . TABLE_CATEGORIES . "\n WHERE parent_id = :categoriesID"; $category_parent_query = $db->bindVars($category_parent_query, ':categoriesID', $current_category_id, 'integer'); $category_parent = $db->Execute($category_parent_query); if ($category_parent->fields['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_MAIN_PAGE, false); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // set the product filters according to selected product type $typefilter = 'default'; if (isset($_GET['typefilter'])) { $typefilter = $_GET['typefilter']; } require DIR_WS_INCLUDES . zen_get_index_filters_directory($typefilter . '_filter.php'); // query the database based on the selected filters $listing = $db->Execute($listing_sql); // if only one product in this category, go directly to the product page, instead of displaying a link to just one item: // if filter_id exists the 1 product redirect is ignored if (SKIP_SINGLE_PRODUCT_CATEGORIES == 'True' and (!isset($_GET['filter_id']) and !isset($_GET['alpha_filter']))) { if ($listing->RecordCount() == 1) { zen_redirect(zen_href_link(zen_get_info_page($listing->fields['products_id']), ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing->fields['products_id'])); }
<?php /** * About Us Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_SUPER_SAVINGS, false); $breadcrumb->add(NAVBAR_TITLE);
<?php /** * term_of_use Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_TERM_OF_USE, false); $breadcrumb->add(NAVBAR_TITLE);
<?php /** * wishlist Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_WISHLIST, false); if (isset($_GET['letter'])) { $breadcrumb->add($_GET['letter']); } else { $breadcrumb->add(NAVBAR_TITLE); }
<?php /** * Page 3 * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); $breadcrumb->add(NAVBAR_TITLE); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_PAGE_3, false);
zen_redirect(zen_href_link(FILENAME_ASK_A_QUESTION, 'action=success&products_id=' . $_GET['products_id'])); } else { $error = true; if (empty($name)) { $messageStack->add('contact', ENTRY_EMAIL_NAME_CHECK_ERROR); } if ($zc_validate_email == false) { $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR); } if (empty($enquiry)) { $messageStack->add('contact', ENTRY_EMAIL_CONTENT_CHECK_ERROR); } } } // end action==send // default email and name if customer is logged in if ($_SESSION['customer_id']) { $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id \n FROM " . TABLE_CUSTOMERS . " \n WHERE customers_id = :customersID"; $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); $check_customer = $db->Execute($sql); $email = $check_customer->fields['customers_email_address']; $name = $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname']; } if (CONTACT_US_LIST != '') { foreach (explode(",", CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\\<[^*]*/', '', $v)); } } // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_ASK_A_QUESTION, false); //$breadcrumb->add(NAVBAR_TITLE);
unset($_SESSION['order_number_created']); // prepare list of product-notifications for this customer $global_query = "SELECT global_product_notifications\n FROM " . TABLE_CUSTOMERS_INFO . "\n WHERE customers_info_id = :customersID"; $global_query = $db->bindVars($global_query, ':customersID', $_SESSION['customer_id'], 'integer'); $global = $db->Execute($global_query); $flag_global_notifications = $global->fields['global_product_notifications']; if ($flag_global_notifications != '1') { $products_array = array(); $counter = 0; $products_query = "SELECT products_id, products_name\n FROM " . TABLE_ORDERS_PRODUCTS . "\n WHERE orders_id = :ordersID\n ORDER BY products_name"; $products_query = $db->bindVars($products_query, ':ordersID', $orders_id, 'integer'); $products = $db->Execute($products_query); while (!$products->EOF) { $notificationsArray[] = array('counter' => $counter, 'products_id' => $products->fields['products_id'], 'products_name' => $products->fields['products_name']); $counter++; $products->MoveNext(); } } $flag_show_products_notification = (CUSTOMERS_PRODUCTS_NOTIFICATION_STATUS == '1' and sizeof($notificationsArray) > 0 and $flag_global_notifications != '1') ? true : false; $products_displayed = array(); $gv_query = "SELECT amount\n FROM " . TABLE_COUPON_GV_CUSTOMER . "\n WHERE customer_id = :customersID "; $gv_query = $db->bindVars($gv_query, ':customersID', $_SESSION['customer_id'], 'integer'); $gv_result = $db->Execute($gv_query); if ($gv_result->fields['amount'] > 0) { $customer_has_gv_balance = true; $customer_gv_balance = $currencies->format($gv_result->fields['amount']); } // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_CHECKOUT_SUCCESS, false); // This should be last line of the script: $zco_notifier->notify('NOTIFY_HEADER_END_CHECKOUT_SUCCESS');
<?php /** * supplier Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_SUPPLIER, false); $breadcrumb->add(NAVBAR_TITLE);
// build the message content $name = $links_contact_name; $email_text = sprintf(EMAIL_GREET_NONE, $name); $email_text .= EMAIL_WELCOME; $email_text .= EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; $email_store_text = EMAIL_OWNER_TEXT . $links_title . "\n\n" . $links_url . "\n\n" . $links_description; // Prepare HTML-portion of message $html_msg['EMAIL_GREETING'] = str_replace('\\n', '', $email_text); $html_msg['EMAIL_WELCOME'] = str_replace('\\n', '', EMAIL_WELCOME); $html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\\n', '', EMAIL_TEXT); $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $links_contact_email . ')'; $html_msg['EXTRA_INFO'] = $extra_info['HTML']; zen_mail($name, $links_contact_email, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $html_msg, 'Link Exchange'); zen_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_OWNER_SUBJECT, $email_store_text, $name, $links_contact_email, $html_msg, 'Link Exchange'); zen_redirect(zen_href_link(FILENAME_LINKS_SUBMIT, 'action=success')); } } // links breadcrumb if ($_SESSION['customer_id']) { $check_customer = $db->Execute("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_id = '" . $_SESSION['customer_id'] . "'"); $email = $check_customer->fields['customers_email_address']; $name = $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname']; } // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_LINKS_SUBMIT, false); $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_LINKS, '', 'NONSSL')); if (isset($GET['lPath'])) { $link_categories_value = $db->Execute("select * from " . TABLE_LINK_CATEGORIES_DESCRIPTION . " where link_categories_id = '" . (int) $GET['lPath'] . "' and language_id = '" . (int) $_SESSION['languages_id'] . "' "); $breadcrumb->add($link_categories_value->fields['link_categories_name'], zen_href_link(FILENAME_LINKS, 'lPath=' . $link_categories_value->fields['link_categories_id'], 'NONSSL')); } $breadcrumb->add(NAVBAR_TITLE_2);
} else { $customers_sname = 'Not logged in'; $customers_email_address = 'Not logged in'; } $extra_info = email_collect_extra_info($name, $faqs_contact_mail, $customers_sname, $customers_email_address); $html_msg['EMAIL_MESSAGE_HTML'] = $faqs_name . '<br />' . $faqs_description . '<br />'; $html_msg['CONTACT_US_OFFICE_FROM'] = OFFICE_FROM . ' ' . $name . '<br />' . OFFICE_EMAIL . '(' . $faqs_contact_mail . ')'; $html_msg['EXTRA_INFO'] = $extra_info['HTML']; zen_mail('', SEND_FAQ_SUBMIT_EMAILS_TO_EMAILS_TO, SEND_EXTRA_SUBMIT_FAQ_TO_SUBJECT . ' ' . EMAIL_SUBJECT, $email_text . $extra_info['HTML'], STORE_NAME, EMAIL_FROM, $html_msg, 'contact_us'); } $messageStack->add_session('submit_success', EMAIL_TEXT_APPROVED, 'success'); zen_redirect(zen_href_link(FILENAME_FAQS_SUBMIT, '', 'SSL')); } } // faqs breadcrumb if ($_SESSION['customer_id']) { $check_customer = $db->Execute("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_id = '" . $_SESSION['customer_id'] . "'"); $email = $check_customer->fields['customers_email_address']; $name = $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname']; } $breadcrumb->add(NAVBAR_TITLE_1, zen_href_Link(FILENAME_FAQS, '', 'NONSSL')); if (isset($HTTP_GET_VARS['lPath'])) { $faq_categories_value = $db->Execute("select * from " . TABLE_FAQ_CATEGORIES_DESCRIPTION . " where faq_categories_id = '" . (int) $HTTP_GET_VARS['lPath'] . "' and language_id = '" . (int) $_SESSION['languages_id'] . "' "); $breadcrumb->add($faq_categories_value->fields['faq_categories_name'], zen_href_faq(FILENAME_FAQS_SUBMIT, 'lPath=' . $faq_categories_value->fields['faq_categories_id'], 'NONSSL')); } $breadcrumb->add(NAVBAR_TITLE_2); $_SESSION['navigation']->remove_current_page(); // include template specific file name defines $define_faqs_submit = zen_define_page(FILENAME_DEFINE_FAQS_SUBMIT, false); $flag_disable_header = TRUE; $flag_disable_footer = TRUE;
} if (empty($enquiry)) { $messageStack->add('contact', ENTRY_EMAIL_CONTENT_CHECK_ERROR); } } } else { $error = true; $messageStack->add('contact', 'Code error, please rewrite!'); } } // end action==send // default email and name if customer is logged in if ($_SESSION['customer_id']) { $sql = "SELECT customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id \n FROM " . TABLE_CUSTOMERS . " \n WHERE customers_id = :customersID"; $sql = $db->bindVars($sql, ':customersID', $_SESSION['customer_id'], 'integer'); $check_customer = $db->Execute($sql); $email = $check_customer->fields['customers_email_address']; $name = $check_customer->fields['customers_firstname'] . ' ' . $check_customer->fields['customers_lastname']; } if (CONTACT_US_LIST != '') { foreach (explode(",", CONTACT_US_LIST) as $k => $v) { $send_to_array[] = array('id' => $k, 'text' => preg_replace('/\\<[^*]*/', '', $v)); } } // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_CONTACT_US, false); $breadcrumb->add(NAVBAR_TITLE); if (isset($_GET['c']) && $_GET['c'] != '') { $flag_disable_footer = TRUE; $flag_disable_header = TRUE; }
<?php /** * testimonials Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_TESTIMONIALS, false); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // if review must be approved or is disabled, do not show review $review_status = " AND r.status = 1"; $reviews_query_raw = "SELECT r.reviews_id, left(rd.reviews_text, 100) AS reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, p.products_image, r.customers_name \n FROM " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd \n WHERE p.products_status = '1' \n AND p.products_id = r.products_id \n AND r.reviews_id = rd.reviews_id \n AND p.products_id = pd.products_id \n AND pd.language_id = :languageID AND r.reviews_is_featured = 1\n AND rd.languages_id = :languageID" . $review_status . " \n ORDER BY r.reviews_id DESC"; $reviews_query_raw = $db->bindVars($reviews_query_raw, ':languageID', $_SESSION['languages_id'], 'integer'); $reviews_query_raw = $db->bindVars($reviews_query_raw, ':languageID', $_SESSION['languages_id'], 'integer'); $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS); $breadcrumb->add(NAVBAR_TITLE);
<?php /** * affiliate Page * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 1.3 $ */ $_SESSION['navigation']->remove_current_page(); require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_AFFILIATE, false); $breadcrumb->add(NAVBAR_TITLE); if (isset($_POST['action']) && $_POST['action'] == 'register') { $name = $_POST['userName']; $userEmail = $_POST['userEmail']; $userWeb = $_POST['userWeb']; $userPhone = $_POST['userPhone']; $userComments = $_POST['userComments']; // add in regular email welcome text $email_text .= "\n\n" . $userWeb . '<br/>' . $userPhone . '<br/>' . $userComments; $html_msg['EMAIL_MESSAGE_HTML'] = str_replace('\\n', '', EMAIL_TEXT); $html_msg['EMAIL_CONTACT_OWNER'] = str_replace('\\n', '', EMAIL_CONTACT); $html_msg['EMAIL_CLOSURE'] = nl2br(EMAIL_GV_CLOSURE); // include create-account-specific disclaimer $email_text .= "\n\n" . sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, STORE_OWNER_EMAIL_ADDRESS) . "\n\n"; $html_msg['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">' . STORE_OWNER_EMAIL_ADDRESS . ' </a>'); // send welcome email
<?php /** * shipping info * * @package page * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $ */ require DIR_WS_MODULES . zen_get_module_directory('require_languages.php'); // include template specific file name defines $define_page = zen_define_page(FILENAME_DEFINE_SHIPPINGINFO, false); $breadcrumb->add(NAVBAR_TITLE);