<?php /** * 店铺的控制器文件 * ============================================================================ * * 版权所有 2005-2012 广州热风科技有限公司二次开发,并保留所有权利。 * 演示地址: http://www.sojieke.cn 开发QQ:120029121 309485552 * ---------------------------------------------------------------------------- * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和 * 使用;不允许对程序代码以任何形式任何目的的再发布。 * ============================================================================ * $Author: liubo $ * $Id: index.php 17217 2011-01-19 06:29:08Z liubo $ */ define('IN_ECS', true); require(dirname(__FILE__) . '/includes/init_supplier.php'); $_GET['suppId'] = intval($_GET['suppId']); if($_GET['suppId']<=0){ ecs_header("Location: index.php"); exit; } $sql="SELECT s.*,sr.rank_name FROM ". $ecs->table("supplier") . " as s left join ". $ecs->table("supplier_rank") ." as sr ON s.rank_id=sr.rank_id WHERE s.supplier_id=".$_GET['suppId']." AND s.status=1"; $suppinfo=$db->getRow($sql); if(empty($suppinfo['supplier_id']) || $_GET['suppId'] != $suppinfo['supplier_id']) { ecs_header("Location: index.php"); exit; } if($_CFG['shop_closed'] == '1'){ echo "对不起!,此店铺因为".$_CFG['close_comment']."临时关闭!"; exit; } if ((DEBUG_MODE & 2) != 2) { $smarty->caching = true; } $typeinfo = array('index','category','search','article','other'); $go = (isset($_GET['go']) && !empty($_GET['go'])) ? $_GET['go'] : 'index'; if(!in_array($go,$typeinfo)){ ecs_header("Location: index.php"); exit; }else{ $index_price = ''; if(!empty($GLOBALS['_CFG']['shop_search_price'])){ $index_price = array_values(array_filter(explode("\r\n",$GLOBALS['_CFG']['shop_search_price']))); } require(dirname(__FILE__) . '/supplier_'.$go.'.php'); } ?>