<?php

/**
 * @version V1.0  2013-6
 * @copyright    www.house365.com
 * @package core
 * 各站配置文件
 */
$conf_city = "xa";
$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 = "xa_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'=>'急推'),
    "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('普通住宅' => '普通住宅', '学区房' => '学区房', '别墅豪宅' => '别墅豪宅', '日租房' => '日租房', '酒店式公寓' => '酒店式公寓', '涉外高端租赁' => '涉外高端租赁', '写字楼' => '写字楼', '商铺' => '商铺', '工业厂房' => '工业厂房'),
);


//全局URI参数映射配置文件
$uri_array = array();
$uri_district = array(1=>'高新',2=>'城南',3=>'长安',4=>'城北',5=>'城西',6=>'城东',7=>'城内', 8=>'西安周边',9=>'临潼',10=>'阎良',11=>'蓝田');
$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/xasell");//外网地址：221.231.141.146
define('NS_RENT',"172.17.1.69/xarent");

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

//添加中介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 = 0; //0代表无效；1代表生效

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

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


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

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

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