Commit 5eff87034a6290272d49ba06953a85cdd5eb8692
Merge remote-tracking branch 'origin/master'
Showing
714 changed files
with
7759 additions
and
724 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 714 files are displayed.
| 1 | +<IfModule mod_rewrite.c> | ||
| 2 | + | ||
| 3 | + Options +FollowSymlinks | ||
| 4 | + | ||
| 5 | + RewriteEngine On | ||
| 6 | + | ||
| 7 | +</IfModule> | ||
| 8 | + | ||
| 9 | +<IfModule mod_rewrite.c> | ||
| 10 | + | ||
| 11 | + RewriteBase / | ||
| 12 | + # deal with admin first | ||
| 13 | + RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] | ||
| 14 | + | ||
| 15 | + RewriteCond %{REQUEST_URI} ^/(admin) | ||
| 16 | + | ||
| 17 | + | ||
| 18 | + | ||
| 19 | + RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L] | ||
| 20 | + | ||
| 21 | + RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L] | ||
| 22 | + | ||
| 23 | + RewriteRule ^admin/js/(.*)$ backend/web/js/$1 [L] | ||
| 24 | + | ||
| 25 | + RewriteRule ^admin/images/(.*)$ backend/web/images/$1 [L] | ||
| 26 | + | ||
| 27 | + RewriteRule ^admin/fonts/(.*)$ backend/web/fonts/$1 [L] | ||
| 28 | + | ||
| 29 | + | ||
| 30 | + | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css|js|images|fonts)/ | ||
| 34 | + | ||
| 35 | + RewriteCond %{REQUEST_URI} ^/(admin) | ||
| 36 | + | ||
| 37 | + RewriteRule ^.*$ backend/web/index.php [L] | ||
| 38 | + | ||
| 39 | + | ||
| 40 | + | ||
| 41 | + RewriteCond %{REQUEST_URI} ^/(assets|css) | ||
| 42 | + | ||
| 43 | + RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L] | ||
| 44 | + | ||
| 45 | + RewriteRule ^css/(.*)$ frontend/web/css/$1 [L] | ||
| 46 | + | ||
| 47 | + RewriteRule ^js/(.*)$ frontend/web/js/$1 [L] | ||
| 48 | + | ||
| 49 | + RewriteRule ^images/(.*)$ frontend/web/images/$1 [L] | ||
| 50 | + | ||
| 51 | + RewriteRule ^fonts/(.*)$ frontend/web/fonts/$1 [L] | ||
| 52 | + | ||
| 53 | + | ||
| 54 | + RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|js|images|fonts)/ | ||
| 55 | + | ||
| 56 | + RewriteCond %{REQUEST_URI} !index.php | ||
| 57 | + | ||
| 58 | + RewriteCond %{REQUEST_FILENAME} !-f [OR] | ||
| 59 | + | ||
| 60 | + RewriteCond %{REQUEST_FILENAME} !-d | ||
| 61 | + | ||
| 62 | + RewriteRule ^.*$ frontend/web/index.php | ||
| 63 | + | ||
| 64 | +</IfModule> | ||
| 65 | + | ||
| 66 | +#для возможности загрузки файлов парсера | ||
| 67 | +<IfModule mod_php5.c> | ||
| 68 | + php_value upload_max_filesize 20M | ||
| 69 | + php_value post_max_size 30M | ||
| 70 | +</IfModule> | ||
| 0 | \ No newline at end of file | 71 | \ No newline at end of file |
| @@ -27,6 +27,9 @@ return [ | @@ -27,6 +27,9 @@ return [ | ||
| 27 | 'identityClass' => 'common\models\User', | 27 | 'identityClass' => 'common\models\User', |
| 28 | 'enableAutoLogin' => true, | 28 | 'enableAutoLogin' => true, |
| 29 | ], | 29 | ], |
| 30 | + 'request' => [ | ||
| 31 | + 'class' => 'common\components\LangRequest' | ||
| 32 | + ], | ||
| 30 | 'urlManager' => [ | 33 | 'urlManager' => [ |
| 31 | 'enablePrettyUrl' => true, | 34 | 'enablePrettyUrl' => true, |
| 32 | 'showScriptName' => false, | 35 | 'showScriptName' => false, |
backend/controllers/MenuLocationController.php
100644 → 100755
backend/controllers/NewOptionsLangController.php
100644 → 100755