<?php
/*
 * config.php
 *
 * update:
 */
$config = array(
    // site
    'url' => '',

    // debug
    // (to enable ethna_info and ethna_unittest, turn this true)
    'debug' => false,

    // db
    // sample-1: single db
    // 'dsn' => 'mysql://user:password@server/database',
    //
    // sample-2: single db w/ multiple users
    // 'dsn'   => 'mysql://rw_user:password@server/database', // read-write
    // 'dsn_r' => 'mysql://ro_user:password@server/database', // read-only
    //
    // sample-3: multiple db (slaves)
    // 'dsn'   => 'mysql://rw_user:password@master/database', // read-write(master)
    // 'dsn_r' => array(
    //     'mysql://ro_user:password@slave1/database',         // read-only(slave)
    //     'mysql://ro_user:password@slave2/database',         // read-only(slave)
    // ),
    'dsn_kyuyo' => "pgsql:host=127.0.0.1;port=5433;dbname=kyuyo;user=apache;password=apache;client_encoding=utf-8",
    'dsn_wiz' => "pgsql:host=127.0.0.1;port=5433;dbname=masters;user=apache;password=apache;client_encoding=utf-8",

    // log
    // sample-1: sigile facility
    'log_facility'          => 'echo',
    'log_level'             => 'warning',
    'log_option'            => 'pid,function,pos',
    'log_filter_do'         => '',
    'log_filter_ignore'     => 'Undefined index.*%%.*tpl',

    // sample-2: mulitple facility
    //'log' => array(
    //    'echo'  => array(
    //        'level'         => 'warning',
    //    ),
    //    'file'  => array(
    //        'level'         => 'notice',
    //        'file'          => '/var/log/ethnam.log',
    //        'mode'          => 0666,
    //    ),
    //    'alertmail'  => array(
    //        'level'         => 'err',
    //        'mailaddress'   => 'alert@ml.example.jp',
    //    ),
    //),
    //'log_option'            => 'pid,function,pos',
    //'log_filter_do'         => '',
    //'log_filter_ignore'     => 'Undefined index.*%%.*tpl',

    'session' => array(
        'handler'   => 'files',
        'path'      => 'tmp',
        //'cache_limiter' => 'private_no_expire',
        //'cache_expire'  => '180',
    ),

    // i18n
    //'use_gettext' => false,

    // mail
    //'mail_func_workaround' => false,

    // Smarty
    //'renderer' => array(
    //    // if smarty:
    //    'smarty' => array(
    //        'left_delimiter' => '{{',
    //        'right_delimiter' => '}}',
    //    ),
    //),

    // csrf
    // 'csrf' => 'Session',
);

$config['plugin'] = array(
    // plugin config
    //'type' => array(
    //    'name' => array(
    //    ),
    //),

    // memcache
    // sample-1: single (or default) memcache
    'cachemanager' => array(
        //'memcache' => array(
        //     'host' => 'localhost',
        //     'port' => 11211,
        //     'use_pconnect' => false,
        //     'retry' => 3,
        //     'timeout' => 3,

        //    // sample-2: multiple memcache servers (distributing w/ namespace and ids)
        //    //'info' => array(
        //    //   'namespace1' => array(
        //    //       0 => array(
        //    //           'host' => 'cache1.example.com',
        //    //           'port' => 11211,
        //    //       ),
        //    //       1 => array(
        //    //           'host' => 'cache2.example.com',
        //    //           'port' => 11211,
        //    //       ),
        //    //   ),
        //    //),
        //),
    ),
);

//
$config['accept_users'] = array(
     'admin' => true,
     '00902' => true,  
     '0376' => true,
     '01094' => true,
     '01095' => true,
     '001047' => true,
     '01129' => true,
     '00952' => true,
     '01205' => true,
     '01126' => true,
     '01261' => true,
     '01352' => true,
     '01406' => true,
     '01419' => true,
     '00154' => true,
     '01416' => true,
     '01418' => true,
     '01620' => true
     );

$config['pl_path'] = '/home/nts_kimura/projects/kyuyo_mail/bin/kyuyosend.pl';
