array( 'captcha' => 'fom.yii1-component-captcha' ), 'params' => array( // captcha 'recaptcha' => array( // koktel.hu site&secretkey 'private-key' => '6LeDWRoTAAAAAEfjMkCsdisVpT5zC_c0B1FBFuOf', 'public-key' => '6LeDWRoTAAAAADkOeP4yZbT6WDsL35n3gZqS3QUk', 'enabled' => !defined('YII_DEBUG'), ) ) ); array( 'content' => 'fom.yii1-component-content', ), 'controllerMap' => array( 'content' => 'content.ContentController', ), 'import' => array( 'content.*', 'content.types.TextContent.*', 'content.types.GalleryContent.*', 'content.types.VideoContent.*', 'content.types.Recipe3Content.*', 'content.types.Recipe1Content.*', 'content.types.CustomRecipeContent.*', ), 'modules' => array( 'admin' => array( 'controllerMap' => array( 'videoPreview' => 'content.types.VideoContent.VideoPreviewController', ), ), ), ); array( 'cropimage' => 'fom.yii1-component-cropimage', ), 'controllerMap' => array( 'cropimage' => 'cropimage.CropImageController', ), 'import' => array( 'cropimage.*', ), ); array( 'filemanager' => 'fom.yii1-component-filemanager', ), 'import' => array( // filemanager 'filemanager.*', 'filemanager.models.*', ), 'params' => array( 'filemanager' => array( 'presets' => array( 'default' => array( 'thumb' => array( 'Thumb', array( 'user-crop', 1.77777778, ), array( 'resize', 400, null, ) ) ) ) ) ), ); array( 'mailer' => 'fom.yii1-component-mailer', ), 'import' => array( // mail 'mailer.MailerComponent', 'mailer.ImgCache', // mehet esetleg külön repóba, ha kell máshol 'mailer.IBounceHandler', 'mailer.models.*', ), 'components' => array( 'mailer' => array( 'class' => 'mailer.MailerComponent', 'max_tries' => 5, 'imgCacheEnabled' => true, 'imgCacheDir' => 'uploads/mailer-imgcache', 'imgCacheMaxWidth' => 1024, 'smtpServers' => array( 'default' => array( 'host' => 's24.tarhely.com', 'port' => 465, 'auth' => true ), ), 'addresses' => array( 'noreply@nhsz.hu' => array( 'server' => 'default', 'username' => '_mainaccount@nhsz.hu', 'password' => 'BRqhFhkV5j6H', ), ), ), ), ); array( 'node2' => 'fom.yii1-component-node2', ), 'import' => array( 'node2.*', ), 'components' => array( 'node2' => array( 'class' => 'node2.NodeComponent', 'pathAliases' => array( 'nodeController' => 'node2.admin.controllers.NodeController', 'nodeControllerViewPath' => 'node2.admin.views', 'nodeControllerLayout' => 'node2.admin.views.layouts.admin_node_column2', ), 'nodeControllerAccessRules' => function() { if( isset($_GET['type']) && $_GET['type'] == 'Organization' && Yii::app()->controller->action->id != 'manage' && !Yii::app()->user->checkAccess('admin') ){ return array( array('deny', 'users' => array('*'), ), ); } else { return array( array('allow', 'roles' => array('admin','editor'), ), array('deny', 'users' => array('*'), ), ); } }, ), ), ); array( 'sitemap' => 'fom.yii1-component-sitemap', ), 'controllerMap' => array( 'sitemapGenerator' => 'sitemap.SitemapGeneratorController', ), 'import' => array( 'sitemap.ISitemapDataProvider', ), 'components' => array( 'sitemap' => array( 'class' => 'sitemap.SitemapGenerator', 'defaultDataProviderClass' => 'application.components.SitemapDataProvider', ), ), ); array( 'slug' => 'fom.yii1-component-slug', ), 'import' => array( 'slug.*', ), ); array( 'socialmedia' => 'fom.yii1-component-socialmedia', ), 'controllerMap' => array( 'facebook' => 'socialmedia.facebook.FacebookController' ), 'preload' => array( 'socialmedia' ), 'components' => array( // social media 'socialmedia' => array( 'class' => 'socialmedia.SocialmediaComponent', 'facebook' => array( 'appId' => '1793682464193550', 'appSecret' => 'cce98f9cf09ef362044c4b8de7f2e7d6' ) ) ), );