Affiliate Clicks.php:
<?php
/*
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
OSC-Affiliate
Contribution based on:
Enterprise Shopping Cart
http://www.enterprisecart.com
Copyright (c) 2004 Enterprise Shopping Cart Software. Portions Copyright (c) 2001-2004 osCommerce: http://www.oscommerce.com
Released under the GNU General Public License
*/
require('includes/application_top.php');
if (!escs_session_is_registered('affiliate_id')) {
$navigation->set_snapshot();
escs_redirect(escs_href_link(FILENAME_AFFILIATE, '', 'SSL'));
}
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_AFFILIATE_CLICKS);
$breadcrumb->add(NAVBAR_TITLE, escs_href_link(FILENAME_AFFILIATE_CLICKS, '', 'SSL'));
$affiliate_clickthroughs_raw = "
select a.*, pd.products_name from " . TABLE_AFFILIATE_CLICKTHROUGHS . " a
left join " . TABLE_PRODUCTS . " p on (p.products_id = a.affiliate_products_id)
left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "')
where a.affiliate_id = '" . $affiliate_id . "' ORDER BY a.affiliate_clientdate desc
";
$affiliate_clickthroughs_split = new splitPageResults($affiliate_clickthroughs_raw, MAX_DISPLAY_SEARCH_RESULTS);
$content = affiliate_clicks;
require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>
Other E Commerce Scripts: