Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit 62836b8

Browse files
authored
Merge pull request #1422 from evolution-cms/3.x
Evo 3.0 RC3
2 parents 118427e + 6f49d16 commit 62836b8

File tree

6,091 files changed

+681783
-168560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,091 files changed

+681783
-168560
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@
4343
!/assets/site/index.html
4444
!/assets/site/.htaccess
4545

46+
# Core
47+
/core/composer.lock
48+
/core/vendor/bin
49+
/core/.install
50+
4651
# Manager
4752
/manager/includes/config.inc.php
53+
/manager/media/style/default/css/styles.min.css
4854

4955
# Composer
5056
/composer.phar
@@ -61,6 +67,9 @@ _ide_helper.php
6167
/node_modules
6268
npm-debug.log
6369

70+
71+
#docker
72+
/docker/nginx/logs/*
6473
# System
6574
ftpsync.settings
6675
Thumbs.db

.htaccess

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# For full documentation and other suggested options, please see
2+
# http://rtfm.modx.com/evolution/1.0/administration/friendly-url-solutions
3+
# including for unexpected logouts in multi-server/cloud environments
4+
# and especially for the first three commented out rules
5+
6+
#php_flag register_globals Off
7+
AddDefaultCharset utf-8
8+
#php_value date.timezone Europe/Moscow
9+
10+
#Options +FollowSymlinks
11+
RewriteEngine On
12+
RewriteBase /
13+
14+
# Fix Apache internal dummy connections from breaking [(site_url)] cache
15+
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
16+
RewriteRule .* - [F,L]
17+
18+
#Remove ///// in url
19+
#RewriteCond %{REQUEST_URI} ^(.*)/{2,}(.*)$
20+
#RewriteRule . %1/%2 [R=301,L]
21+
22+
#redirect http to https
23+
#RewriteCond %{HTTP:SSL} !=1 [NC]
24+
#RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [L,R=301]
25+
#or
26+
#RewriteCond %{HTTPS} off
27+
#RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI}
28+
29+
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
30+
#RewriteCond %{HTTP_HOST} !^$
31+
#RewriteCond %{HTTP_HOST} !^www\. [NC]
32+
#RewriteCond %{HTTP_HOST} (.+)$
33+
#RewriteRule ^(.*)$ http://www.%1/$1 [R=permanent,L] .
34+
35+
# without www
36+
#RewriteCond %{HTTP_HOST} .
37+
#RewriteCond %{HTTP_HOST} !^example\.com [NC]
38+
#RewriteRule (.*) http://example.com/$1 [R=301,L]
39+
40+
# without www all domains
41+
#RewriteCond %{HTTP_HOST} .
42+
#RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
43+
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
44+
45+
# 301 that removes index.php?q= from all urls
46+
#RewriteCond %{THE_REQUEST} \s/+index\.php\?&q=([^\s&]+) [NC]
47+
#RewriteRule ^ /%1? [R=301,L]
48+
#RewriteCond %{THE_REQUEST} \s/+index\.php\?q=([^\s&]+) [NC]
49+
#RewriteRule ^ /%1? [R=301,L]
50+
51+
# Exclude /assets and /manager directories and images from rewrite rules
52+
RewriteRule ^(manager|assets|js|css|images|img)/.*$ - [L]
53+
RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]
54+
55+
# For Friendly URLs
56+
RewriteCond %{REQUEST_FILENAME} !-f
57+
RewriteCond %{REQUEST_FILENAME} !-d
58+
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
59+
60+
# Reduce server overhead by enabling output compression if supported.
61+
#php_flag zlib.output_compression On
62+
#php_value zlib.output_compression_level 5

.tx/config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, f
1111

1212
[modx-evolution.countrylist]
1313
file_filter = manager/includes/lang/country/<lang>_country.inc.php
14-
source_file = manager/includes/lang/country/english_country.inc.php
14+
source_file = manager/includes/country/english_country.inc.php
1515
source_lang = en
1616
type = PHP_ALT_ARRAY
1717

1818
[modx-evolution.manager]
19-
file_filter = manager/includes/lang/<lang>.inc.php
20-
source_file = manager/includes/lang/english.inc.php
19+
file_filter = manager/includes/<lang>.inc.php
20+
source_file = manager/includes/english.inc.php
2121
source_lang = en
2222
type = PHP_ALT_ARRAY
2323

Dockerfile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
FROM php:7.2-fpm
2+
# Copy composer.lock and composer.json
3+
COPY composer.json /var/www/
4+
# Set working directory
5+
WORKDIR /var/www
6+
# Install dependencies
7+
RUN apt-get update && apt-get install -y \
8+
build-essential \
9+
libpng-dev \
10+
libjpeg62-turbo-dev \
11+
libfreetype6-dev \
12+
locales \
13+
zip \
14+
jpegoptim optipng pngquant gifsicle \
15+
vim \
16+
unzip \
17+
git \
18+
curl
19+
# Clear cache
20+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
21+
# Install extensions
22+
RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl
23+
RUN docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/
24+
RUN docker-php-ext-install gd
25+
# Install composer
26+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
27+
# Add user for laravel application
28+
RUN groupadd -g 1000 www
29+
RUN useradd -u 1000 -ms /bin/bash -g www www
30+
# Copy existing application directory contents
31+
COPY . /var/www
32+
# Copy existing application directory permissions
33+
COPY --chown=www:www . /var/www
34+
# Change current user to www
35+
USER www
36+
# Expose port 9000 and start php-fpm server
37+
EXPOSE 9000
38+
CMD ["php-fpm"]

README.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,47 @@
1-
# Evolution CMS
1+
## Evolution CMS
22

3-
[![CMS Evolution](https://img.shields.io/badge/CMS-Evolution-brightgreen.svg)](https://github.com/evolution-cms/evolution) [![GitHub release](https://img.shields.io/github/release/evolution-cms/evolution.svg)](https://github.com/evolution-cms/evolution/releases) ![PHP version](https://img.shields.io/badge/PHP->=v5.6-green.svg?php=5.6) [![Issues](https://img.shields.io/github/issues-closed-raw/evolution-cms/evolution.svg?maxAge=2592000)](https://github.com/evolution-cms/evolution/issues) [![Code quality](https://img.shields.io/scrutinizer/g/evolution-cms/evolution.svg?maxAge=2592000&b=develop)](https://scrutinizer-ci.com/g/evolution-cms/evolution/?branch=develop) [![Documentation](https://img.shields.io/badge/Documentation-processed-orange.svg)](https://github.com/evolution-cms/docs/)
3+
[![CMS Evolution](https://img.shields.io/badge/CMS-Evolution-brightgreen.svg)](https://github.com/evolution-cms/evolution) [![GitHub release](https://img.shields.io/github/release/evolution-cms/evolution.svg)](https://github.com/evolution-cms/evolution/releases) ![PHP version](https://img.shields.io/badge/PHP->=v7.3-red.svg?php=7.3) [![Issues](https://img.shields.io/github/issues-closed-raw/evolution-cms/evolution.svg?maxAge=2592000)](https://github.com/evolution-cms/evolution/issues) [![Code quality](https://img.shields.io/scrutinizer/g/evolution-cms/evolution.svg?maxAge=2592000&b=develop)](https://scrutinizer-ci.com/g/evolution-cms/evolution/?branch=develop) [![Documentation](https://img.shields.io/badge/Documentation-processed-orange.svg)](https://github.com/evolution-cms/docs/)
44

5-
Evolution CMS requires **PHP >= 5.6**
5+
Evolution CMS requires **PHP >= 7.3**
66

7+
## What is Evolution CMS
78

8-
## What is EVO
9-
10-
**EVO** is an open source Content Management System and Application Framework.
9+
**Evolution CMS** is an open source Content Management System and Application Framework.
1110

1211
## History
1312

14-
Initially inspired by **Etomite 0.6**, then it been **MODX Evolution 0.7 - 1.0.8** is an ongoing project written by *Raymond Irving* and a core team of contributors **MODX**, and now its **Evolution CMS** maintained by *Dmytro Lukianenko* and a core team of contributors at the **EVO Project**.
13+
Initially inspired by **Etomite 0.6**, then it been **MODX Evolution 0.7 - 1.0.8** is an ongoing project written by *Raymond Irving* and a core team of contributors **MODX**, and now its **Evolution CMS** maintained by *Dmytro Lukianenko* and a core team of contributors at the **Evolution CMS Project**.
1514

1615
## License
1716

18-
**EVO** is distributed under the **GPL license** and is now run by a professional team of developers from all over the world. Visit the Forums for more information.
17+
**Evolution CMS** is distributed under the **GPL license** and is now run by a professional team of developers from all over the world. Visit the Forums for more information.
1918

2019
## Features
2120

22-
**EVO** provides a fast, lightweight and powerful framework on which to deploy and secure your website and web applications.
21+
**Evolution CMS** provides a fast, lightweight and powerful framework on which to deploy and secure your website and web applications.
2322

2423
For example, it gives you a true system for registered web users and groups that is separate from administration users. You can grant some web users access to one page and others access to another page.
2524

2625
For content management, you can easily duplicate documents, folders (and all their children!), chunks and snippets.
2726

28-
Most significant, though, is **EVO's** ability to empower you to quickly and easily create and maintain a rich and dynamic website like never before.
29-
27+
Most significant, though, is **Evolution CMS's** ability to empower you to quickly and easily create and maintain a rich and dynamic website like never before.
3028

3129
## Install
32-
Just use [Evo Installer](https://github.com/evolution-cms/installer)
30+
Just use [Evolution CMS Installer](https://github.com/evolution-cms/installer)
31+
32+
## Docker
3333

34+
To run **Evolution CMS** using docker make **docker-compose up -d** command in your terminal. Additional configs and access parameters you can find in **docker-compose.yml** file and **docker** folder
3435

35-
### Screenshots
36+
## Screenshots
3637

3738
![screenshot_1](https://user-images.githubusercontent.com/7342798/30167975-5ec146c0-93e8-11e7-8cf8-b324c2b09477.jpg)
3839

3940
![screenshot_2](https://user-images.githubusercontent.com/7342798/30128635-b34fa2a4-9343-11e7-9d87-13d0e17fb69e.jpg)
4041

4142
![screenshot_3](https://user-images.githubusercontent.com/7342798/30128638-b5b2cdc8-9343-11e7-8c75-0864d00fe28a.jpg)
4243

43-
### References
44+
## References
4445

4546
Official Website:
4647
https://evo.im/
@@ -52,7 +53,8 @@ Previous Releases:
5253
https://modx.com/download/evolution/previous-releases.html
5354

5455
Extras:
55-
https://extras.evolution-cms.com
56+
https://extras.evo.im
5657

5758
Documentation:
59+
https://docs.evo.im
5860
https://evolution-docs.com

assets/backup/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
order deny,allow
2-
allow from all
2+
deny from all

assets/cache/.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
order deny,allow
2+
deny from all

assets/cache/siteManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
<?php
2-
define('MGR_DIR', 'manager');
1+
<?php
2+
define('MGR_DIR', 'manager');

assets/cache/sitePublishing.idx.php

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)