dirname(__FILE__) . DIRECTORY_SEPARATOR . '..', 'name' => 'https://flirt.ua', // preloading 'log' component 'preload' => [ 'log', 'gettext', 'importelastica'], 'import' => [ 'application.controllers.*', 'application.components.*', 'application.components.auth.*', 'application.components.auth.FB.*', 'application.components.auth.VK.*', 'application.components.auth.Mailru.*', 'application.components.core.*', 'application.components.core.lib.*', 'application.components.helpers.*', 'application.components.search.*', 'application.components.simplehtmldom.*', 'application.components.OpenAI.*', 'application.components.OpenAI.Contracts.*', 'application.components.OpenAI.Enums.*', 'application.components.OpenAI.Exceptions.*', 'application.components.OpenAI.Resources.*', 'application.components.OpenAI.Responses.*', 'application.components.OpenAI.Testing.*', 'application.components.OpenAI.Transporters.*', 'application.components.OpenAI.ValueObjects.*', 'application.components.AWS.*', 'application.components.AWS.Credentials.*', 'application.components.payments.*', 'ext.YiiMongoDbSuite14.*', 'application.models.*', 'application.forms.*', 'application.extensions.yii-mail.YiiMailMessage', 'application.extensions.phpredis.*', 'application.extensions.crontab.*', 'application.extensions.MongoPagination.*', 'application.extensions.Ipsp.*', 'application.modules.Updates.models.*', 'application.modules.Updates.models.embedded.*', 'application.modules.payments.models.*', 'application.modules.Mail.components.*', 'application.modules.Mail.models.*', 'ext.eoauth.*', 'ext.eoauth.lib.*', 'ext.lightopenid.*', 'ext.eauth.*', 'ext.eauth.services.*', ], 'modules' => [ 'gii' => [ 'class' => 'system.gii.GiiModule', 'password' => '6e9552c9bd8e', 'ipFilters' => false, //array('127.0.0.1', '::1', '88.135.220.195', '95.133.37.88', '80.91.190.163','31.40.105.37'), ], 'PHPI18nMessage', 'Mail', 'Landing', 'SocialHowMuch', 'payments', 'Botnet', 'Api' ], 'aliases' => [ 'RestfullYii' =>realpath(__DIR__ . '/../extensions/starship/RestfullYii'), ], 'components' => [ 'mobileDetect' => array( 'class' => 'ext.MobileDetect.MobileDetect' ), 'importelastica'=> [ 'class' => 'application.extensions.ElasticaLoader', 'libPath' => 'application.lib', //assume you installed Elastica to /lib/ ], 'redis' => [ 'class' => 'ext.phpredis.ARedisConnection', 'hostname' => '127.0.0.1', 'port' => '6379' ], 'gettext' => [ 'class' => 'ext.yii-gettext.GetText', 'domain' => 'frontend' ], // currently not in use - remove when swift_mailer will works 'mail' => [ 'class' => 'ext.yii-mail.YiiMail', 'transportType' => 'smtp', 'transportOptions' => [ 'host' => 'ssl://mail.ukraine.com.ua', //'encryption' =>'tls', 'username' => 'notification@flinch.com.ua', 'password' => 'B9ku6p7M', 'port' => 465 ], ], 'swift_mailer' => [ 'class' => 'ext.SwiftMailer.SwiftMailer', // Logging // logs brief messages about message success or failure 'log_mailer_debug' => true, // logs additional info from SwiftMailer about connection details // must be used in conjunction with logMailerActivity == true // check the send() method for realtime logging to console if required 'log_mailer_activity' => true, ], 'user' => [ // enable cookie-based authentication 'class' => 'WebUser', 'allowAutoLogin' => true, 'loginUrl' => array('/site/index') ], 'db' => [ 'emulatePrepare' => true, 'charset' => 'utf8mb4', 'enableProfiling' => true, 'enableParamLogging' => true, //'schemaCachingDuration' => 86400, ], 'errorHandler' => ['errorAction' => 'site/error'], 'log' => [ 'class' => 'CLogRouter', 'routes' => [ [ 'class' => 'CFileLogRoute', 'levels' => 'error, warning', 'filter' => [ 'class' => 'CLogFilter', 'logUser' => true, 'logVars' => ['_GET','_POST','_COOKIE','_SESSION'] ] ], /* [ 'class'=>'ext.yii-debug-toolbar.YiiDebugToolbarRoute', 'ipFilters'=> ['217.66.99.131', '127.0.0.1','80.91.190.168', '*'], ], */ [ 'class' => 'CFileLogRoute', 'logFile' => 'info.log', 'levels' => 'info', 'filter' => [ 'class' => 'CLogFilter', 'logUser' => true, ] ], [ 'class' => 'CFileLogRoute', 'logFile' => 'privat24_payments.log', 'categories' => 'payments.privat24.*' ], [ 'class' => 'CFileLogRoute', 'logFile' => 'sms_payments.log', 'categories' => 'payments.sms.*' ], [ 'class' => 'CFileLogRoute', 'logFile' => 'paymaster.log', 'categories' => 'payments.paymaster.*', 'levels' => 'error, warning, info, trace', ], [ 'class' => 'CFileLogRoute', 'logFile' => 'smsonline.log', 'categories' => 'payments.smsonline.*', 'levels' => 'error, warning, trace', ], [ 'class'=>'CFileLogRoute', 'categories'=>'system.db.*', 'logFile'=>'sql.log' ] ], ], 'request' => [ 'class' => 'MlHttpRequest', 'enableCookieValidation' => true ], 'urlManager' => [ 'class' => 'MlUrlManager', 'urlFormat' => 'path', 'showScriptName' => false, 'rules' => $routes ], 'cache' => [ 'class' => 'CRedisCache', 'keyPrefix' => '', // Must be same with console config 'database' => 1, ], 'authManager' => [ 'class' => 'PhpAuthManager', 'defaultRoles' => [ 'guest' ] ], 'messages' => [ /* TODO: turn on cache in production 'cachingDuration' => 180000, 'cacheID' => 'message_cache', */ 'forceTranslation' => false, 'behaviors' => array() ], 'loid' => array( 'class' => 'ext.lightopenid.loid', //'host' => 'http://flirt.ua' ), 'eauth' => [ 'class' => 'ext.eauth.EAuth', 'popup' => true, // Use the popup window instead of redirecting. 'cache' => false, // Cache component name or false to disable cache. Defaults to 'cache'. 'cacheExpire' => 0, // Cache lifetime. Defaults to 0 - means unlimited. 'services' => [ // You can change the providers and their classes. 'google_oauth' => [ // register your app here: https://code.google.com/apis/console/ 'class' => 'GoogleOAuthService', 'client_id' => '868818050399-6p6nki6gaghehvg30nt767bco6me8m1t.apps.googleusercontent.com', 'client_secret' => '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', 'title' => 'Google', ], 'facebook' => array( // register your app here: https://developers.facebook.com/apps/ 'class' => 'CustomFacebookService', 'client_id' => '310420348518104', 'client_secret' => '6d68477788987c30c486a1dfe34bad91', ), 'twitter' => [ // register your app here: https://dev.twitter.com/apps/new 'class' => 'TwitterOAuthService', 'key' => 'PnbIa6l82LizZJmpC0qrFE7sZ', 'secret' => 'YQQAaxbfmV8k8pkw1scGlQEw8ktZu9jHh7a7MVIkFhK3tkDzNy', ], ], ], ], 'sourceLanguage' => 'uk_Ua', 'language' => 'ua', 'charset' => 'utf-8', 'params' => [ // REST API config 'RestfullYii' => [ 'req.auth.username' => function() { return 'support@flirt.ua'; }, 'req.auth.password' => function() { return '6e9552c9bd8e'; }, 'req.auth.ajax.user' => function() { return true; } ], 'push_notifications' => [ 'enabled' => true, 'app_id' => '012d3f69-2ef0-49d7-8aee-884ce341f80b', 'subdomain_name' => 'loveua', 'rest_api_key' => 'MDdjZTVhNjktOWQ5Ni00YjE1LTkyOTEtNDE5ZDIwNGQ0YjY4' ], 'elastica' => [ 'host' => 'localhost', 'port' => '9200', 'debug' => false, 'http_username' => '', 'http_password' => '' ], 'adminEmail' => 'support@flirt.ua', 'newCityNotificationReceiver' => 'support@flirt.ua', // when new city - currently not in use 'adminEmailAddress' => 'support@flirt.ua', 'images_url' => 'https://flirt.ua/', 'supported_languages' => [ 'ua', 'ru', 'en' ], 'default_language' => 'ua', 'localization' => [ 'full_form' => [ 'ua' => 'uk_UA', 'ru' => 'ru_RU', 'en' => 'en_US' ] ], // could be legacy start: 'activeLangPrefixes' => [ 'ua', 'ru', 'en' ], 'defaultLangPrefix' => 'ua', 'activeCountries' => [ 'UA', 'RU', 'EN' ], // : end 'oAuth' => [ 'vk' => [ // sandbox //'appId' => '3375376', //'secretKey' => '8473pAPGGFg9BDqDTATZ' //production 'appId' => '3375818', 'secretKey' => 'zc0U9Ss8GVqywEVdeJVL' ], 'fb' => [ // production //'appId' => '201435546668553', //'secretKey' => 'b421462af76c2be1366ec75600cba852' // http://sharlockdating.com/ // 'appId' => '1895043614053373', // 'secretKey' => '3f7ecdf472c679eee6d45833331ff67f', 'appId' => '310420348518104', 'secretKey' => '6d68477788987c30c486a1dfe34bad91' ], 'mailru' => [ // local 'appId' => '727270', 'secretKey' => 'a9456243950f1e978aff48d34c52acf0', // production //'appId' => '', //'secretKey' => '', ], ], /** * @see protected/components/Mailer.php */ 'mailer_transports' => [ // RECOVERY CODE: VCKHUL6FYWYJ3VT57DV1GTH1 // API KEY: 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 'sendgrid' =>[ 'transport' => ['smtp.sendgrid.net', 587], 'username' => 'apikey', 'password' => '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', 'send_from' => 'support@flirt.ua' ], /* 'mailgun' =>[ 'transport' => ['smtp.eu.mailgun.org', 587], 'username' => 'postmaster@flirt.ua', 'password' => 'f1c563c91958158998cf12a921292c99-c2efc90c-f25260f7', 'send_from' => 'support@flirt.ua' ] 'loveua' =>[ 'transport' => ['mail.flirt.ua', 587], 'username' => 'notification@mail.flirt.ua', 'password' => '6e9552c9bd8d', 'send_from' => 'notification@mail.flirt.ua' ] */ ], 'mailer_utm' => $mailer_utm, /** * @see protected/components/SpamMailer.php */ 'spam_mailer' => [ 'limit' => 15000, 'interval' => 0.1, 'from' => ['support@flirt.ua' => 'Support flirt.ua'], 'subject' => 'flirt.ua!', 'dkim_domain' => 'flirt.ua', 'dkim_selector' => 'loveua', 'servers' => [ 'zetable' => [ 'fraction' => 0.5, 'utm_campaign' => 'SPAM_Soda', 'transport' => ['mail.flirt.ua', 25], 'username' => 'info@flirt.ua', 'password' => 'Mail26!90#', ], '217.12.220.169' => [ 'fraction' => 0.5, 'utm_campaign' => 'SPAM_Rus', 'transport' => ['217.12.220.169', 587], 'username' => 'info@asm45.ru', 'password' => 'pcMPylCBNi', ] ] ], 'known_referrals' => ['cpa', 'install', 'ukrnet', 'adwords', 'adwords_east', 'adwords_west', 'adwords_kiev', 'adwords_crimea', 'adwords_north', 'adwords_ukraine', 'adwords_center', 'adwords_south', 'adwords_dating_sites','adwords_dating_site','adwords_dating', 'adwords_mobile', 'adwords_desktop', 'landing_reg', 'soda'], 'tracking_search_engines' => ['google', 'yandex', 'vk', 'facebook', 'odnoklassniki', 'twitter', 'bigmir', 'meta', 'mail'], /* PRICES */ 'prices' => [ 'rise_position' => 47, 'recharge' => 20, 'photo_tape' => 38, 'adblock' => [ 1 => 10, 3 => 25, 7 => 50, 14 => 100, 31 => 160 ], //'vipstatus_old' => [ 1 => 59, 7 => 413, 31 => 1379, 90 => 3889, 180 => 160 ], 'vipstatus' => [ 7 => 356, 31 => 1271, 90 => 3700, 180 => 5600, 9999 => 12456], ], 'main_payment_system' => 'fondy', 'sms_payment_system' => 'smsonline', 'payment' => [ 'privat24' => [ 'merchant_id' => '129815', 'password' => '3H627W9aRi4Ht6rN4DFY9I3HyUJ0NEKY' ], 'sms' => [ 'secret_key' => '9g7zz5Wk211fn1C', 'project_id' => '1023', 'allowed_IPs' => [], 'available_numbers' => [ 7920 => 8, 576 => 10, 9405 => 15, 6925 => 25, 2914 => 30, 5639 => 50, ], 'prefixes' => [ 'rise_position' => 'LVTOP', 'recharge' => 'LVREC', 'photo_tape' => 'LVPHOTO', 'gift' => 'LVGIFT', 'block_ads' => 'LVADS', 'vip_status' => 'LVIP', ], 'number_by_type' => [ 'photo_tape' => '2914', 'recharge' => '5639', 'rise_position' => '5639', 'gift' => '9405', ], /* Available numbers: 8 UAH => 6907 10 UAH => 576 16 UAH => 6915 25 UAH => 6925 30 UAH => 2914 50 UAH => 5639 */ ], 'fondy' => [ // Production 'settings' => [ 'merchant_id' => '1554256', // 'transaction_password' => 'o7vr2v00l61TohdMef2b4NpM6eS2ZDDX', 'transaction_password' => 'scTMxxZOX4E8RMa0PUZIdpGubx25AM40', 'response_url' => 'https://flirt.ua/payments/fondy/result', 'allowed_IPs' => [''], ], 'systems' => [ 'fondycard' => 'card', 'privat24' => 'p24' ], ], // 'liqpay' => [ // // Development // 'settings' => [ // 'action_url' => 'https://www.liqpay.ua/api/3/checkout', // 'client_redirect_url' => 'http://flirt.ua', // 'server_redirect_url' => 'http://flirt.ua', // 'public_key' => 'i29129207888', // 'private_key' => 'o1q4EjEJ0CQup4F9Nw2XhRXti8amD3mOcEoQIVTl', // ], // ], // 'smsonline' => [ // 'settings' => [ // 'ips' => ['95.163.74.17', '89.111.54.189', '91.142.251.129', '194.67.81.38', '85.192.45.22'], // 'secretKey' => '26b200496412599dd4545b9064ef362c' // ], // 'data' => [ // 'recharge' => [ // 'number' => 12345, // 'prefix' => 'REC' // ], // 'rise_position' => [ // 'number' => 33, // 'prefix' => 'TOP' // ], // 'photo_tape' => [ // 'number' => 12321, // 'prefix' => 'PHOTO' // ], // 'gift' => [ // 'number' => 12321, // 'prefix' => 'GIFT' // ] // ], // 'main_prefix' => 'LVPAY' // ] ], 'rtm_name' => 'https://rtm.flirt.ua', 'aws_face_collection' => 'LoveSearch', 'error_code' => null, 'search_engine' => 'ElasticSearchForm', // SphinxSearchForm or ElasticSearchForm 'disable_moderation' => true, 'users_per_page_in_search' => 16, 'mobile_users_per_page_in_search' => 16, 'users_in_search' => 500000, 'google_ads_cookie_consent' => '', 'is_gdpr' => false, 'turn_on_page_logger' => false, ] ];