<?php

/**
 * @version V1.0  2013-6
 * @copyright    www.house365.com
 * @package core
 * 各站配置文件
 */
$conf_city = "hz";
$conf_tplpath = "";
$conf_cityname = "杭州";


/****数据库配置开始****/
$conf_db_type = "mysql";
$conf_db_host = "172.17.1.51";
$conf_db_user = "root";
$conf_db_password = "idontcare";
$conf_db_name = "hz_house";
$conf_db_debug = false;
$conf_db_charset = "gbk";
$conf_db_connect = "0";
$conf_default_tplpath = "./template" . $conf_tplpath; //模板路径

$conf_dbback_host = "172.17.1.31";
/****数据库配置结束****/

//房源信息数组
$conf_house = array(
    "infofrom"  => array ('1'=>'个人', '2'=>'中介门店','5'=>'经纪人'),
   "infotype"	=> array ('1'=>'住宅', '2'=>'别墅','3'=>'写字楼','4'=>'商铺','5'=>'厂房仓库车库'),
    "district" => array('上城区' => '上城区', '下城区' => '下城区', '江干区' => '江干区', '拱墅区' => '拱墅区', '西湖区' => '西湖区', '滨江区' => '滨江区', '余杭区' => '余杭区', '萧山区' => '萧山区', '富阳市' => '富阳市', '临安市' => '临安市', '建德市' => '建德市', '桐庐县' => '桐庐县', '淳安县' => '淳安县', '其他' => '其他'),
   "mright"		=> array ('产权房'=>'产权房','使用权房'=>'使用权房'),
   "fitment" => array('毛坯' => '毛坯', '简装' => '简装', '中装' => '中装', '精装' => '精装', '豪华装' => '豪华装'),
   "renttype" => array('整租' => '整租', '转租' => '转租', '合租' => '合租', '日租' => '日租,短租'),
   "rentday" => array('一年' => '一年', '半年' => '半年', '一季' => '一季', '一月' => '一月','5天'=>'5天'),
   "priceunit" => array('1' => '元/月', '2' => '元/天*平方米', '3' => '元/月*平方米'),
   "payment"	=> array ('月付'=>'月付', '季付'=>'季付','半年付'=>'半年付', '年付'=>'年付','面议'=>'面议'),
   "priceterm"	=> array ('1'=>'双方各自付税','2'=>'房主净得价'),
   "priceterm_r"	=> array ('2'=>'房主净得价','1'=>'含租赁税'),
   "pricetype"	=> array ('2'=>'有营业税','1'=>'无营业税'),
   "pic_sort"	=>array ('2'=>'室内图', '1'=>'外景图', '0'=>'户型图'),
   "price_rent" => array('1'=>'500元以下','2'=>'500-800元','3'=>'800-1200元','4'=>'1200-1500元','5'=>'1500-2000元','6'=>'2000元以上'),
   "price_sell" => array('1'=>'40万以下','2'=>'40-60万','3'=>'60-90万','4'=>'90-120万','5'=>'120-150万','6'=>'150-200万','7'=>'200-300万','8'=>'300-500万','9'=>'500万以上'),
    "buildarea" => array('1'=>'40平米以下','2'=>'40-60平米','3'=>'60-80平米','4'=>'80-100平米','5'=>'100-120平米','6'=>'120-144平米','7'=>'144-200平米','8'=>'200-400平米','9'=>'400平米以上'),
    "roomtype"=>array('1'=>'一室','2'=>'二室','3'=>'三室','4'=>'四室','5'=>'五室及以上'),
    "roomcategory"=>array('1'=>'非多图','2'=>'多图','3'=>'急推','4'=>'新房直售'),
    "roomrentcategory"=>array('1'=>'非多图','2'=>'多图','3'=>'急推'),
    "roomorder"=>array('1'=>'更新时间从近到远','2'=>'更新时间从远到近','3'=>'发布时间从近到远','4'=>'发布时间从远到近','5'=>'总价从低到高','6'=>'总价从高到低','7'=>'面积从小到大','8'=>'面积从大到小'),
    "roomrentorder"=>array('1'=>'更新时间从近到远','2'=>'更新时间从远到近','3'=>'发布时间从近到远','4'=>'发布时间从远到近','5'=>'租金从低到高','6'=>'租金从高到低','7'=>'面积从小到大','8'=>'面积从大到小'),
	"skill" => array('普通住宅' => '普通住宅', '学区房' => '学区房', '别墅豪宅' => '别墅豪宅', '日租房' => '日租房', '酒店式公寓' => '酒店式公寓', '涉外高端租赁' => '涉外高端租赁', '写字楼' => '写字楼', '商铺' => '商铺', '工业厂房' => '工业厂房'),
	'category_sh' => array('2' => '小学', '3' => '初中', '4' => '九年一贯制(小学+初中)','5' => '完中(初中+高中)'),//学区类型参数
	'rank' => array('0' => '请选择','9' => '省重点', '3' => '市重点','14' => '区重点','1' => '普通'),//学区等级参数
	'features' => array(1 => '寄宿制' , 2 => '名校附属', 3 => '双语', 4 => '小班教学',5 => '体育特长',6 => '艺术特长',7 => '奥数特长'),//学区特色参数
);

//全局URI参数映射配置文件
$uri_array = array();
$uri_district = array(1 => '上城区', 2 => '下城区', 3 => '江干区', 4 => '拱墅区', 5 => '西湖区', 6 => '滨江区', 7 => '余杭区', 8 => '萧山区', 9 => '富阳市', 10 => '临安市', 11 => '建德市', 12 => '桐庐县', 13 => '淳安县', 14 => '其他');
$uri_district_asc = array_flip($uri_district);
$uri_fitment  = array ( 1 => '毛坯', 2=> '简装', 3 => '中装' , 4 => '精装' , 5 => '豪华装');
$uri_fitment_asc = array_flip($uri_fitment);
$uri_renttype  = array (1 => '整租', 2 => '转租', 3 => '合租', 4 => '日租,短租');
$uri_renttype_asc = array_flip($uri_renttype);
$uri_forward  =  array (1 => '南', 2 => '西南',3 =>'东', 4 => '东南', 5 => '北', 6 => '东北', 7 => '西',8 => '西北',9 => '南北',10 => '东西');
$uri_forward_asc = array_flip($uri_forward);

$config_hitch = 1;//配置急推

/****在线评估配置开始****/
/*$conf_online_db_host = "172.17.1.187";
$conf_online_db_user = "root";
$conf_online_db_password = "idontcare";
$conf_online_db_name = "online";*/
/****在线评估配置结束****/

//中间件
define('NS_SELL',"172.17.1.69/hzsell");//外网地址：221.231.141.146
define('NS_RENT',"172.17.1.69/hzrent");

//单条刷新接口
$midwork_refreshurl = "http://172.17.1.76:100/Housenew/API?city=HZ";

//添加中介IP库
$sub_agent_ip = 'on';

//配置积分模块是否生效
$config_BrokerCredit = 1; //可选 0代表失效；1代表生效
//积分模块的规则.(各站的积分规则不一定相同，需要根据各站情况配置)
$credit_arr = array(
			'plus_open'		  => array('title'=>'开通账号加分',	'sign'=>'+', 'credit'=>0),
			'plus_identity'	  => array('title'=>'身份认证',			'sign'=>'+', 'credit'=>300),
			'plus_card' 	  => array('title'=>'名片认证',			'sign'=>'+', 'credit'=>200),
			'plus_smallphoto' => array('title'=>'工作照',			'sign'=>'+', 'credit'=>200),
			'plus_locCertificate' => array('title'=>'杭州房产经纪人证书','sign'=>'+', 'credit'=>200),
			'plus_pubCertificate' => array('title'=>'全国房产经纪人证书','sign'=>'+', 'credit'=>200),
			'plus_login' 	  => array('title'=>'登录',				'sign'=>'+', 'credit'=>50),
			'plus_isstar'	  => array('title'=>'发布多图房源',		'sign'=>'+', 'credit'=>100),
			'plus_blockimg'	  => array('title'=>'小区图库收录',		'sign'=>'+', 'credit'=>200),
			'plus_windowback' => array('title'=>'橱窗积分返还',		'sign'=>'+', 'credit'=>0),
			'plus_operate'	  => array('title'=>'系统变更加分',		'sign'=>'+', 'credit'=>0),
			'plus_block'	  => array('title'=>'返还申请小区专家',	'sign'=>'+', 'credit'=>500),
			'minus_block'	  => array('title'=>'成功申请小区专家',	'sign'=>'-', 'credit'=>500),
			'minus_frozen'	  => array('title'=>'冻结房源',			'sign'=>'-', 'credit'=>100),
			'minus_window'	  => array('title'=>'橱窗展示投入',		'sign'=>'-', 'credit'=>0, 'viewcredit'=>-5),
			'minus_operate'	  => array('title'=>'系统变更扣分',		'sign'=>'-', 'credit'=>0)
);

//权限配置
$config_windows = 0;//配置橱窗
$config_hitch = 1;//配置急推
$config_faq = 1;//配置FAQ

//配置新房免佣模块是否生效
$conf_nofee = 1; //0代表无效；1代表生效

//配置预约看房后台是否开放,1开放，0不开放
$config_order = 1;

//开启小区专家
$config_xqzj = 1;

//积分详细说明
$GB_JFSM = "http://zsb.house365.com/help/?p=250";

//积分规则说明
$GB_JFGZ = "http://zsb.house365.com/help/?p=312";

$sell_url = "http://hz.sell.house365.com";
$rent_url = "http://hz.rent.house365.com";
?>