<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

/**
 * UCenter客户端配置文件
 * 注意：该配置文件请使用常量方式定义
 */
if (is_file('./Conf/common.php')) {
    if(is_m()) {
        return array_merge(require_once('./Conf/common.php'), array(
            'LANG_SWITCH_ON' => true,
            'LANG_AUTO_DETECT' => false, // 自动侦测语言 开启多语言功能后有效
            'LANG_LIST' => 'zh-cn,en-us,ja-jp,ko-kr', // 允许切换的语言列表 用逗号分隔
            'VAR_LANGUAGE' => 'l', // 默认语言切换变量
            'DEFAULT_LANG' => 'zh-cn',

            'URL_ROUTER_ON' => true,
            'URL_ROUTE_RULES' => array_merge(array(
                'link/:url' => 'Core/Public/url',
            ),
//                merge_route_rule('Weibo'),
                merge_route_rule('Home'),
                merge_route_rule('People'),
//                merge_route_rule('Event'),
                merge_route_rule('Group'),
                merge_route_rule('Issue'),
//                merge_route_rule('Forum'),
                merge_route_rule('Ucenter')
            ),


        ));
    } else {
        return array_merge(require_once('./Conf/common.php'), array(
            'LANG_SWITCH_ON' => true,
            'LANG_AUTO_DETECT' => false, // 自动侦测语言 开启多语言功能后有效
            'LANG_LIST' => 'zh-cn,en-us,ja-jp,ko-kr', // 允许切换的语言列表 用逗号分隔
            'VAR_LANGUAGE' => 'l', // 默认语言切换变量
            'DEFAULT_LANG' => 'zh-cn',

            'URL_ROUTER_ON' => true,
            'URL_ROUTE_RULES' => array_merge(array(
                'link/:url' => 'Core/Public/url',
            ),
                merge_route_rule('Weibo'),
                merge_route_rule('Home'),
                merge_route_rule('People'),
                merge_route_rule('Event'),
                merge_route_rule('Group'),
                merge_route_rule('Issue'),
                merge_route_rule('Forum')
                ,merge_route_rule('Ucenter')
            ),


        ));
    }
}

    