diff --git a/www/protected/config/main.php b/www/protected/config/main.php index bb80e56..efc76b6 100644 --- a/www/protected/config/main.php +++ b/www/protected/config/main.php @@ -49,18 +49,6 @@ $config = array( // use 'site/error' action to display errors 'errorAction'=>'site/error', ), - 'mail' => array( - 'class' => 'application.extensions.yii-mail.YiiMail', - 'transportType' => 'smtp', - 'transportOptions' => array( - 'host' => 'smtp.selforsistemas.com', - 'encryption' => '', - 'username' => 'admin@selforsistemas.com', - 'password' => 'Rafael2012', - 'port' => 25, - ), - 'viewPath' => 'application.views.mails', - ), /*'widgetFactory'=>array( 'widgets'=>array( 'CLinkPager'=>array( @@ -134,10 +122,4 @@ $config = array( ),*/ ), - // 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', - ), ); \ No newline at end of file diff --git a/www/protected/config/mode_development.php b/www/protected/config/mode_development.php index 822d625..8711822 100644 --- a/www/protected/config/mode_development.php +++ b/www/protected/config/mode_development.php @@ -40,7 +40,22 @@ $configSpecific = array( 'charset' => 'utf8', 'tablePrefix' => '', ), - + + 'components'=>array( + 'mail' => array( + 'class' => 'application.extensions.yii-mail.YiiMail', + 'transportType' => 'smtp', + 'transportOptions' => array( + 'host' => 'mail.rodax-software.com', + 'encryption' => '', + 'username' => 'mantenimiento+rodax-software.com', + 'password' => '34y96w6d', + 'port' => 25, + ), + 'viewPath' => 'application.views.mails', + ), + ), + // Application Log 'log' => array( 'class' => 'CLogRouter', @@ -48,7 +63,7 @@ $configSpecific = array( // Save log messages on file array( 'class' => 'CFileLogRoute', - 'levels' => 'error, warning, trace, info', + 'levels' => 'error, warning, info', ), // Show log messages on web pages array( @@ -61,7 +76,11 @@ $configSpecific = array( ), ), + // 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', ), ); diff --git a/www/protected/config/mode_production.php b/www/protected/config/mode_production.php index f00a858..e18d6fe 100644 --- a/www/protected/config/mode_production.php +++ b/www/protected/config/mode_production.php @@ -24,14 +24,30 @@ $configSpecific = array( 'components' => array( // Database - 'db' => array( - 'connectionString' => 'mysql:host=PRODUCTION_HOST;dbname=PRODUCTION_DBNAME', - 'username' => 'USERNAME', - 'password' => 'PASSWORD', - 'charset'=>'utf8', - 'tablePrefix' => '', + 'db'=>array( + 'connectionString' => 'mysql:host=localhost;dbname=usuarios_dev', + 'emulatePrepare' => true, + 'username' => 'root', + 'password' => 'selfor', + 'charset' => 'utf8', + 'tablePrefix' => '', + ), + + 'components'=>array( + 'mail' => array( + 'class' => 'application.extensions.yii-mail.YiiMail', + 'transportType' => 'smtp', + 'transportOptions' => array( + 'host' => 'smtp.selforsistemas.com', + 'encryption' => '', + 'username' => 'admin@selforsistemas.com', + 'password' => 'Rafael2012', + 'port' => 25, + ), + 'viewPath' => 'application.views.mails', + ), ), - + // Application Log 'log' => array( 'class' => 'CLogRouter', @@ -39,19 +55,23 @@ $configSpecific = array( // Save log messages on file array( 'class' => 'CFileLogRoute', - 'levels' => 'error, warning, trace, info', + 'levels' => 'error, warning', ), // Send errors via email to the system admin - array( + /*array( 'class' => 'CEmailLogRoute', 'levels' => 'error, warning', 'emails' => 'marco@example.com', - ), + ),*/ ), ), ), - + + 'params' => array( + 'frontpage' => 'http://intranet-incam.dyndns.biz:8008/profind/', + 'email_remitente' => 'noreply@profindtic.com', + ), ); ?> \ No newline at end of file