|
| 1 | +<?php |
| 2 | + |
| 3 | +return array( |
| 4 | + // application data |
| 5 | + 'name' => 'Login System', |
| 6 | + 'version' => '1.0.2', |
| 7 | + |
| 8 | + // installation settings |
| 9 | + 'installationKey' => 'ceqwrvu9jn', |
| 10 | + |
| 11 | + // Password keys settings (for database passwords only) |
| 12 | + // Remember: changing these settings after installation may lead to unstable work of application |
| 13 | + // encryptAlgorithm - md5, sha1 (not recommended), sha256, whirlpool, etc |
| 14 | + 'password' => array( |
| 15 | + 'encryption' => true, |
| 16 | + 'encryptAlgorithm' => 'sha256', |
| 17 | + 'encryptSalt' => true, |
| 18 | + 'hashKey' => 'apphp_directy_login_system', |
| 19 | + ), |
| 20 | + |
| 21 | + // Text encryption settings (for database text fields only) |
| 22 | + // Remember: changing these settings after installation may lead to unstable work of application |
| 23 | + // Encryption level - PHP or DB |
| 24 | + // encryptAlgorithm - PHP: aes-256-cbc DB: AES |
| 25 | + 'text' => array( |
| 26 | + 'encryption' => true, |
| 27 | + 'encryptAlgorithm' => 'aes-256-cbc', |
| 28 | + 'encryptKey' => 'apphp_directy_cmf', |
| 29 | + ), |
| 30 | + |
| 31 | + // Default email settings |
| 32 | + 'email' => array( |
| 33 | + 'mailer' => 'smtpMailer', /* phpMail | phpMailer | smtpMailer */ |
| 34 | + |
| 35 | + 'fromName' => '', /* John Smith */ |
| 36 | + 'isHtml' => true, |
| 37 | + 'smtp' => array( |
| 38 | + 'auth' => true, /* true or false */ |
| 39 | + 'secure' => 'ssl', /* 'ssl', 'tls' or '' */ |
| 40 | + 'host' => 'smtp.gmail.com', |
| 41 | + 'port' => '465', |
| 42 | + 'username' => '', |
| 43 | + 'password' => '', |
| 44 | + ), |
| 45 | + ), |
| 46 | + |
| 47 | + // Validations |
| 48 | + // Define array of 'excluded' controllers, ex.: array('PaymentProviders', 'Checkout') |
| 49 | + // Token type: 'session', 'cookie' or 'multipages' |
| 50 | + 'validation' => array( |
| 51 | + 'csrf' => array('enable' => false, 'exclude' => array('PaymentProviders'), 'tokenType' => 'session'), |
| 52 | + 'bruteforce' => array('enable' => true, 'badLogins' => 5, 'badRestores' => 5, 'redirectDelay' => 3) |
| 53 | + ), |
| 54 | + |
| 55 | + // Exception handling |
| 56 | + // Define exceptions exceptions in application |
| 57 | + 'exceptionHandling' => array( |
| 58 | + 'enable' => true, |
| 59 | + 'level' => 'global' |
| 60 | + ), |
| 61 | + |
| 62 | + // Output compression |
| 63 | + 'compression' => array( |
| 64 | + 'gzip' => array('enable' => false), |
| 65 | + 'html' => array('enable' => false), |
| 66 | + 'css' => array('enable' => false, 'path' => 'assets/minified/css/', 'minify' => true), |
| 67 | + 'js' => array('enable' => false, 'path' => 'assets/minified/js/', 'minify' => true), |
| 68 | + ), |
| 69 | + |
| 70 | + // Session settings |
| 71 | + 'session' => array( |
| 72 | + 'customStorage' => false, /* true value means use a custom storage (database), false - standard storage */ |
| 73 | + 'cacheLimiter' => '', /* to prevent 'Web Page expired' message for POST request use "private,must-revalidate" */ |
| 74 | + 'lifetime' => 24, /* session timeout in minutes, default: 24 min = 1440 sec */ |
| 75 | + ), |
| 76 | + |
| 77 | + // Cookies settings |
| 78 | + 'cookies' => array( |
| 79 | + 'domain' => '', |
| 80 | + 'path' => '/' |
| 81 | + ), |
| 82 | + |
| 83 | + // Cache settings |
| 84 | + 'cache' => array( |
| 85 | + 'enable' => false, |
| 86 | + 'type' => 'auto', /* 'auto' or 'manual' */ |
| 87 | + 'lifetime' => 20, /* in minutes */ |
| 88 | + 'path' => 'protected/tmp/cache/' |
| 89 | + ), |
| 90 | + |
| 91 | + // Logger settings |
| 92 | + 'log' => array( |
| 93 | + 'enable' => false, |
| 94 | + 'path' => 'protected/tmp/logs/', |
| 95 | + 'fileExtension' => 'php', |
| 96 | + 'dateFormat' => 'Y-m-d H:i:s', |
| 97 | + 'threshold' => 1, |
| 98 | + 'filePermissions' => 0644, |
| 99 | + 'lifetime' => 30 /* in days */ |
| 100 | + ), |
| 101 | + |
| 102 | + // RSS Feed settings |
| 103 | + 'rss' => array( |
| 104 | + 'path' => 'feeds/' |
| 105 | + ), |
| 106 | + |
| 107 | + // Datetime settings |
| 108 | + 'defaultTimeZone' => 'UTC', |
| 109 | + |
| 110 | + // Template default settings |
| 111 | + 'template' => array( |
| 112 | + 'default' => 'default' |
| 113 | + ), |
| 114 | + |
| 115 | + // Layout default settings |
| 116 | + 'layouts' => array( |
| 117 | + 'enable' => false, |
| 118 | + 'default' => 'default' |
| 119 | + ), |
| 120 | + |
| 121 | + // Layout default settings |
| 122 | + 'layouts' => array( |
| 123 | + 'enable' => array('frontend' => false, 'backend' => false), |
| 124 | + 'default' => 'default' |
| 125 | + ), |
| 126 | + |
| 127 | + // Application default settings |
| 128 | + 'defaultBackendDirectory' => 'backoffice', /* default backoffice directory */ |
| 129 | + 'defaultErrorController' => 'Error', /* may be overridden by module settings */ |
| 130 | + 'defaultController' => 'Index', /* may be overridden by module settings */ |
| 131 | + 'defaultAction' => 'index', /* may be overridden by module settings */ |
| 132 | + |
| 133 | + // Application Backend settings |
| 134 | + 'restoreAdminPassword' => array( |
| 135 | + 'enable' => true, |
| 136 | + 'recoveryType' => 'direct' /* 'direct' - send new password directly, 'recovery' - send link to recovery page */ |
| 137 | + ), |
| 138 | + |
| 139 | + // Application components |
| 140 | + 'components' => array( |
| 141 | + 'Bootstrap' => array('enable' => true, 'class' => 'Bootstrap'), |
| 142 | + ), |
| 143 | + |
| 144 | + // Widget settings |
| 145 | + 'widgets' => array( |
| 146 | + 'paramKeysSensitive' => true |
| 147 | + ), |
| 148 | + |
| 149 | + // Application helpers |
| 150 | + 'helpers' => array( |
| 151 | + //'helper' => array('enable' => true, 'class' => 'Helper'), |
| 152 | + ), |
| 153 | + |
| 154 | + // Application modules |
| 155 | + 'modules' => array( |
| 156 | + 'setup' => array('enable' => true, 'removable' => false, 'backendDefaultUrl' => ''), |
| 157 | + ), |
| 158 | + |
| 159 | + // Url manager |
| 160 | + 'urlManager' => array( |
| 161 | + 'urlFormat' => 'shortPath', /* get | path | shortPath */ |
| 162 | + 'rules' => array( |
| 163 | + // Required by payments module. If you remove these rules - make sure you define full path URL for pyment providers |
| 164 | + //'paymentProviders/handlePayment/provider/([a-zA-Z0-9\_]+)/handler/([a-zA-Z0-9\_]+)/module/([a-zA-Z0-9\_]+)[\/]?$' => 'paymentProviders/handlePayment/provider/{$0}/handler/{$1}/module/{$2}', |
| 165 | + 'paymentProviders/handlePayment/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_]+)[\/]?$' => 'paymentProviders/handlePayment/provider/{$0}/handler/{$1}/module/{$2}', |
| 166 | + //'paymentProviders/handlePayment/provider/([a-zA-Z0-9\_]+)/handler/([a-zA-Z0-9\_]+)[\/]?$' => 'paymentProviders/handlePayment/provider/{$0}/handler/{$1}', |
| 167 | + 'paymentProviders/handlePayment/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_]+)[\/]?$' => 'paymentProviders/handlePayment/provider/{$0}/handler/{$1}', |
| 168 | + //'paymentProviders/handlePayment/provider/([a-zA-Z0-9\_]+)[\/]?$' => 'paymentProviders/handlePayment/provider/{$0}', |
| 169 | + 'paymentProviders/handlePayment/([a-zA-Z0-9\_]+)[\/]?$' => 'paymentProviders/handlePayment/provider/{$0}', |
| 170 | + // Required by dynamic pages, if you want to use user-friendly URLs |
| 171 | + //'controller/action/value1/value2' => 'controllerName/action/param1/value1/param2/value2', |
| 172 | + //'sitepages/show/example-page-1' => 'sitePages/show/name/about-us', |
| 173 | + //'value1' => 'controllerName/action/param1/value1', |
| 174 | + //'about-us' => 'sitePages/show/name/about-us', |
| 175 | + ), |
| 176 | + ), |
| 177 | + |
| 178 | +); |
0 commit comments