<?php
/**
 * 默认配置
 * @copyright reginx.com
 * $Id: config.default.php 7 2013-01-24 00:30:29Z reginx $
 */
return array(
    'html_dir'              => './',
    'mkhtml'                => false,
    'default'               => true,
    'charset'               => 'utf-8',
    'block'                 => true,
    'lang'                  => 'zh-cn',
    'default_mod'           => 'index',
    'default_act'           => 'index',
    'mod_msg'               => '@default:inc/msg.tpl.html',
    'mod_404'               => '@default:inc/404.tpl.html',
    'token'                 => true,
    'token_var'             => 'RGXTOKEN',
    'time_offset'           => 8,
    'thumb_width'           => 120,
    'thumb_height'          => 148,
    'tpl'                   => 'default',
    'tpl_ttl'               => 1,           // 0 no , 1 auto
    'tpl_pre'               => '{',
    'tpl_suf'               => '}',
    'url'                   => array(
        'type'              => 1,
        'interval'          => '/',
        'suf'               => '.html',
        'rewrite'           => 0,
    ),
    // 用户自定义配置文件 , 目录为 data
    'config_file'           => 'config.ini.php',
    'cache'                 => array(
        'type'              => 'file',
        'apc'               => array(
            'pre'           => 'mog_'
        ),
        // default file cache
        'file'              => array(
                'pre'       => 'mog_'
        ),
        // mongo
        'mongo'             => array(
            array(
                'host'      => 'localhost',
                'user'      => 'reginx',
                'passwd'    => 'reginx',
                'port'      => '27017',
                'db'        => 'reginx',
                'pre'       => 'mog_'
            )
        ),
        // memcached
        'mem'               => array(
            0               => array(
                'host'      => '127.0.0.1',
                'port'      => '11211',
                'pre'       => 'mog_'
            )
        ),
        // APC
        'apc'               => array(
            0               => array(
                'pre'       => 'mog_'
            )
        ),
        // X cache
        'x'                 => array(
            0               => array(
                'pre'       => 'mog_'
            )
        )
    ),

    'db'                    => array(
        'class'             => 'mysql',
        'mysql'             => array(
            0               => array(
                'host'      => 'localhost:3306',
                'user'      => 'root',
                'passwd'    => '',
                'name'      => 'reginx3',
                'charset'   => 'utf8',
                'pre'       => 'pre_',
            )
        )
    ),

    'upload'                => array(
        'type'              => 'JPG|GIF|JPEG|PNG|BMP|ZIP|RAR' ,
        'max_size'          => '10m',
    ),

    'sess'                  => array(
        'class'             => 'mysql',
        'server'            => array(
            'ttl'           => 1800
        )
    )
);
?>