| | All rights reserved. | +-----------------------------------------------------------------------------+ | PLEASE READ THE FULL TEXT OF SOFTWARE LICENSE AGREEMENT IN THE "COPYRIGHT" | | FILE PROVIDED WITH THIS DISTRIBUTION. THE AGREEMENT TEXT IS ALSO AVAILABLE | | AT THE FOLLOWING URL: http://www.x-cart.com/license.php | | | | THIS AGREEMENT EXPRESSES THE TERMS AND CONDITIONS ON WHICH YOU MAY USE | | THIS SOFTWARE PROGRAM AND ASSOCIATED DOCUMENTATION THAT RUSLAN R. | | FAZLIEV (hereinafter referred to as "THE AUTHOR") IS FURNISHING OR MAKING | | AVAILABLE TO YOU WITH THIS AGREEMENT (COLLECTIVELY, THE "SOFTWARE"). | | PLEASE REVIEW THE TERMS AND CONDITIONS OF THIS LICENSE AGREEMENT | | CAREFULLY BEFORE INSTALLING OR USING THE SOFTWARE. BY INSTALLING, | | COPYING OR OTHERWISE USING THE SOFTWARE, YOU AND YOUR COMPANY | | (COLLECTIVELY, "YOU") ARE ACCEPTING AND AGREEING TO THE TERMS OF THIS | | LICENSE AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY THIS | | AGREEMENT, DO NOT INSTALL OR USE THE SOFTWARE. VARIOUS COPYRIGHTS AND | | OTHER INTELLECTUAL PROPERTY RIGHTS PROTECT THE SOFTWARE. THIS | | AGREEMENT IS A LICENSE AGREEMENT THAT GIVES YOU LIMITED RIGHTS TO USE | | THE SOFTWARE AND NOT AN AGREEMENT FOR SALE OR FOR TRANSFER OF TITLE.| | THE AUTHOR RETAINS ALL RIGHTS NOT EXPRESSLY GRANTED BY THIS AGREEMENT. | | | | The Initial Developer of the Original Code is Ruslan R. Fazliev | | Portions created by Ruslan R. Fazliev are Copyright (C) 2001-2003 | | Ruslan R. Fazliev. All Rights Reserved. | +-----------------------------------------------------------------------------+ \*****************************************************************************/ # # $Id: home.php,v 2003/06/02 11:57:43 svowl Exp $ # require "../smarty.php"; require "../config.php"; @include "./https.php"; require "./auth.php"; if ( !empty($partner) and $partner != $HTTP_COOKIE_VARS["partner"]) { setcookie ("partner", "", time()-3600*24); setcookie ("partner", $partner, time()+3600*24); func_header_location("home.php"); } if ( !empty($HTTP_COOKIE_VARS["partner"])) { $partner=$HTTP_COOKIE_VARS["partner"]; $partner_width=array_pop(func_query_first("select width from xcart_partner_logo where partner='$partner'")); $partner_height=array_pop(func_query_first(" select height from xcart_partner_logo where partner='$partner'")); $partner_mime_type=array_pop(func_query_first(" select mime_type from xcart_partner_logo where partner='$partner'")); $smarty->assign("partner_width",$partner_width); $smarty->assign("partner_height",$partner_height); $smarty->assign("partner_mime_type",$partner_mime_type); } require "../include/categories.php"; if (!empty($cat)) require "./products.php"; require "./featured_products.php"; if($active_modules["Bestsellers"]) include "../modules/Bestsellers/bestsellers.php"; if(!empty($current_category)) $location = $category_location; # # Assign Smarty variables and show template # $smarty->assign("main","catalog"); $smarty->assign("location",$location); $smarty->display("customer/home.tpl"); ?>