<?php
class Conf{

	//全局网站名称
	public static $webname = '企微魔盒';
/////////////////////数据库配置 编码必须为 utf-8
	/**数据库地址~*/
	public static $db_host = "127.0.0.1";
	/**数据库端口~*/
	public static $db_port = "3306";
	/**数据库名~*/
	public static $db_dbname = "123456";
	/**数据库用户名~*/
	public static $db_username = "123456";
	/**数据库密码~*/
	public static $db_password = "123456";

	public static $db_tablePrefix = "qvmh_";

	public static $index_target = "index";
	
	public static $is_developing = true;

	public static $need_db_log = true;
	/**调试日志~是否需要记录系统的各项调试参数默认:false*/
	public static $need_debug_log = false;
	/**自动打印调试日志~开启调试日志记录后是否要在每次请求之后自动打印这些记录默认:false*/
	public static $auto_print_debug = false;

	public static $log_level = 4;
	/**是否压缩~网页内容是否要压缩输出*/
	public static $need_gzip = true;

	public static $cache_time = null;

	public static $jquery_path = "";
	/**Session过期时间~设置访问客户端的Session过期时间(注意：这只是Session的标记删除时间，并不保证这段时间后一定会被回收，单位：分钟)，默认:60*/
	public static $session_time = 60;	

	public static $default_i18n = "zh-cn";
	
	public static $remote_path = "";
	/**视图文件后缀~视图模版的后缀*/
	public static $view_suffix = ".html";
	/**是否开启无控制器时自动寻找对应视图~默认:false*/
	public static $auto_find_view = true;

	public static $view_folder = "new";
	
	/**站点主网址*/
	public static $http_path = "/";
	public static $http_path_O2O = "http://vip.qvmh.cn";
    /**后台图片路径，单独一个域名绑定到static文件夹*/
	public static $http_path_static = "http://vip.qvmh.cn/";
    /**api接口地址，填写主网址*/
	public static $http_path_api = "https://vip.qvmh.cn/";

	
	public static $left_tag = "{";
	/**右标签~视图代码右标签,视图模版中的便签结束。 一般为'}'*/
	public static $right_tag = "}";
	/**静态后缀~控制器请求的页面后缀,如.html,.shtml等 一般为.html就好（注意:.htm默认为不走控制器的所以不要设置）*/
	public static $suffix = ".html";
	/**参数分隔符~替代问号传参的参数分割符号*/
	public static $parameter_separate = "-";
	/**分页参数分隔符~用来分割分页信息的分隔符*/
	public static $paging_separate = "_";
	/**代码块同步时间~单位:秒,供CodeSynchronize类调用。类似java的synchronize。php非线程安全模式下可考虑使用。如果超出此时间持有代码锁的进程将失去对此代码块的独占,即允许另一进程进入此代码块*/
	public static $code_syn_time = 20;
	
	/**DB连接的扩展信息~一般用于大数据量时的 主从数据库和多库数据库*/
	public static $db_boys = array(
	//'db1'=>array('host'=>'localhost','port'=>'3306','dbname'=>'sino','username'=>'root','password'=>'root'),
	//'db2'=>array('host'=>'localhost','port'=>'3306','dbname'=>'sino','username'=>'root','password'=>'root'),
	//'db3'=>array('host'=>'localhost','port'=>'3306','dbname'=>'sino','username'=>'root','password'=>'root'),
	//'db4'=>array('host'=>'localhost','port'=>'3306','dbname'=>'sino','username'=>'root','password'=>'root')
	);
	
	/**MongoDB连接的扩展信息~非关系型数据库专用*/
	public static $mongo = array(
			'default' => array(
					'host'     => '192.168.0.240',
					'port'     => 27017,
					'username' => '',
					'password' => '',
			),	
	);
	/**一般的绝对路由规则*/
	public static $routing = array(
	'reload'=>'reload'
	);
	/**一般的前置路由规则*/
	public static $routing_bef = array(
			//'reload'=>'reload'
	);
	/**正则表达式的路由规则*/
	public static $routing_reg = array(
		//厂商入口

		//标签入口
		'/tag\/\d+\/\S*$/' => 'tag/tagtype',
		//统一文档入口
		'/.*/' => 'home',
			
	);
	/**邮件发送配置规则*/
	public static $email = array(
	'reg'=>array('protocol'=>'smtp','smtp_host'=>'smtp.qq.com','smtp_user'=>'','smtp_pass'=>'','from'=>array('','注册信息')),
	'findpwd'=>array('protocol'=>'smtp','smtp_host'=>'smtp.qq.com','smtp_user'=>'','smtp_pass'=>'','from'=>array('','密码找回'))
	);
	
/////////////////////缓存配置

	/**MemCached连接信息~*/
	public static $memcached = array(
			'cache1'=>array('127.0.0.1','11211'),
			'cache2'=>array('127.0.0.1','11211')
	);
	
	/**全局变量适配器~(可选项:file,memcached)这是多用户共用缓存的好方式，大型系统不推荐file模式，默认:file*/
	public static $cache_adapter = 'file';
	
	/**会话适配器~(可选项:session,cache)session:系统默认的Session机制，cache:运用系统缓存保存session*/
	public static $session_adapter = "session";
	public static $session_prefix = "TVweidogsZZBWX_";
	
}
?>