<?php

/**
 * Development configuration
 * Usage:
 * - Local website
 * - Local DB
 * - Show all details on each error.
 * - Gii module enabled
 */
// Set yiiPath (add extra ../../)
$yiiPath = dirname(__FILE__) . '/../../../yii/framework/yii.php';

// Set YII_DEBUG and YII_TRACE_LEVEL flags
$debug = true;
$traceLevel = 3;

// Set specific config
$configSpecific = array(
    // Modules
    'modules' => array(
        'gii' => array(
            'class' => 'system.gii.GiiModule',
            'password' => 'password',
        ),
    ),
    
    // Application components
    'components' => array(
        // Database
        'db' => array(
            'connectionString' => 'mysql:host=localhost;dbname=usuarios_dev',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
            'tablePrefix' => '',
            'emulatePrepare' => true,
            'enableProfiling' => true,
            'enableParamLogging' => true,
        ),
        'mail' => array(
            'class' => 'application.extensions.yii-mail.YiiMail',
            'viewPath' => 'application.views.mail',
            'transportType' => 'smtp',
            'transportOptions' => array(
                'host' => 'mail.rodax-software.com',
                'encryption' => '',
                'username' => 'mantenimiento+rodax-software.com',
                'password' => '34y96w6d',
                'port' => 25,
            ),
            'viewPath' => 'application.views.mails',
            'logging' => true,
            'dryRun' => false            
        ),
        'socialConnect' => array(
            'class' => 'application.extensions.yii-socialconnect.YiiSocialConnect',
            'callbackUrl' => 'site/callback',
            'debug_mode' => false,
            'debug_file' => dirname(__FILE__) . '/../runtime/socialconnect.log',
            'providers' => array(
                'Facebook' => array(
                    'enabled' => true,
                    'keys' => array(
                        'id' => '117346105085321', 
                        'secret' => '900236a3a011c06e43cdceec65acde52'),
                    'scope' => 'email',
                ),
                'Twitter' => array(
                    'enabled' => true,
                    'keys' => array(
                        'key' => '0aBDNeQOFTPMxHb7TMjHlA', 
                        'secret' => 'qjVCKdLjRngBUpGnbPw3NXRiIK1BdJWYCnHhZ4pClXk'
                    )
                ),
                'LinkedIn' => array(
                    'enabled' => true,
                    'keys' => array(
                        'key' => 'zgiloy0zgkcw', 
                        'secret' => 'x0WGj5CvjDlWsLC9'
                    )
                ),
            )
        ),
        
        // Application Log
        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'trace, info, error, warning',
                    'categories' => 'system.db.*',
                    'logFile' => 'sql.log',
                ),
                // Save log messages on file
                array(
                    'class' => 'CFileLogRoute',
                    'levels' => 'trace',
                    'categories' => 'application.*',
                ),
                // Show log messages on web pages
                array(
                    'class' => 'CWebLogRoute',
                    'levels' => 'error, warning',
                    'categories' => 'application.*',
                    'showInFireBug' => true,
                ),
            ),
        ),
    ),
    // application-level parameters that can be accessed
    // using Yii::app()->params['paramName']
    'params' => array(
        'frontpage' => 'http://localhost/index.php',
        'email_remitente' => 'mantenimiento@rodax-software.com',
    ),
);
?>