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

Commit

Permalink
Browse files Browse the repository at this point in the history
…into evolution-cms-develop

# Conflicts:
#	assets/cache/updater/ht.access
  • Loading branch information
Dmi3yy committed Mar 2, 2018
2 parents eb5ae03 + c0a8397 commit 782cff3
Show file tree
Hide file tree
Showing 523 changed files with 23,900 additions and 21,183 deletions.
68 changes: 63 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,74 @@
# ignore any files beginning with .
#\.*
# assets
/assets/.thumbs/*
!/assets/.thumbs/index.html
!/assets/.thumbs/.htaccess

/assets/backup/*
!/assets/backup/index.html
!/assets/backup/.htaccess

# and any files in the cache directory
/assets/cache/*
!/assets/cache/.htaccess
!/assets/cache/index.html
!/assets/cache/siteManager.php
!/assets/cache/sitePublishing.idx.php
!/assets/cache/images/index.html
!/assets/cache/rss/index.html
!/assets/cache/updater/index.html

/assets/docs/*
!/assets/docs/.htaccess
!/assets/docs/changelog.txt
!/assets/docs/index.html
!/assets/docs/license.txt

/assets/export/*
!/assets/export/index.html
!/assets/export/.htaccess

/assets/files/*
!/assets/files/index.html
!/assets/files/.htaccess

/assets/images/*
!/assets/images/index.html
!/assets/images/evo-logo.png
!/assets/images/.htaccess

# and the config file
/assets/import/*
!/assets/import/index.html
!/assets/import/.htaccess

/assets/site/*
!/assets/site/index.html
!/assets/site/.htaccess

# Manager
/manager/includes/config.inc.php

# Windows and Mac
# Composer
/composer.phar
/vendor/*
!/vendor/.htaccess
!/vendor/index.html

# IDE Helper
modx_evolution.IDEhelper.php
_ide_helper.php
.phpstorm.meta.php

#node.JS
/node_modules
npm-debug.log

# System
ftpsync.settings
Thumbs.db
Desktop.ini
.DS_Store
.idea
.vagrant
.rocketeer

# except do not ignore .gitignore
!.gitignore
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Evolution CMS

![PHP version](https://img.shields.io/badge/PHP->=v5.6-green.svg?php=5.6) [![GitHub release](https://img.shields.io/github/release/evolution-cms/evolution.svg)](https://github.com/evolution-cms/evolution/)
[![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/)

Evolution CMS requires **PHP >= 5.6**

Expand Down
5 changes: 5 additions & 0 deletions assets/.thumbs/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
File renamed without changes.
File renamed without changes.
6 changes: 5 additions & 1 deletion assets/docs/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ IndexIgnore */*
<Files "changelog.txt">
Order Allow,Deny
Deny from all
</Files>
</Files>
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
92 changes: 92 additions & 0 deletions assets/docs/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,98 @@
This file shows the changes in recent releases of Evolution CMS. The most current release is usually the
development release, and is only shown to give an idea of what's currently in the pipeline.


Evolution CMS 1.4.1 (Mar 02, 2018)
* [GitHub:#3a9224b03] - revert [I] save_content.processor.php Initialize full cache only when alias, parent, and published are changed (dmi3yy)
* [GitHub:#dae083a26] - Update FormLister (dmi3yy)
* [GitHub:#367a6507e] - update DocLister (dmi3yy)
* [GitHub:#ef6dfb889] - fix #548 (Pathologic)
* [GitHub:#8770f4f99] - function method (Agel_Nash)
* [GitHub:#16e54b2fe] - deleting an unused variables and functions (64j)
* [GitHub:#db08547fa] - fix #539 (Agel_Nash)
* [GitHub:#1f24ed117] - cli (Agel_Nash)
* [GitHub:#76c89acab] - phpDoc (Agel_Nash)
* [GitHub:#8c93023a7] - Исправлено добавление фигурных скобок в пустые параметры плагина (media_kot)
* [GitHub:#bb183dd25] - fix #102 (Pathologic)
* [GitHub:#22618e102] - single entry point (Pathologic)
* [GitHub:#14e98f967] - join() => implode() (Agel_Nash)
* [GitHub:#ef6566b2d] - intval() => (int) (Agel_Nash)
* [GitHub:#c1a3d3a31] - refactor (Agel_Nash)
* [GitHub:#19f4fe321] - public method (Agel_Nash)
* [GitHub:#8b8bce9d8] - Duplicate function name manager/processors/save_template.processor.php (Agel_Nash)
* [GitHub:#573aa5683] - It seems like $categories defined by $cm->getCategories() (Agel_Nash)
* [GitHub:#fdc0ee465] - New random method for $table_prefix (Vitaliy Rudnyh)
* [GitHub:#1ce79fbf4] - Step 1 + fix conflicts (Agel_Nash)
* [GitHub:#31d870fdb] - Change version and date (Vitaliy Rudnyh)
* [GitHub:#438eacc6b] - Add php-doc (Vitaliy Rudnyh)
* [GitHub:#8583aae71] - formatting psr-2 (Vitaliy Rudnyh)
* [GitHub:#697b1e3e8] - Check exists mysqi extension (Vitaliy Rudnyh)
* [GitHub:#638334d94] - Fix install error on PHP 7.2 (Vitaliy Rudnyh)
* [GitHub:#663a1fdb4] - Commented "plugin locks" / lock-file (Deesen)
* [GitHub:#00fbcc2fc] - [F] #523 If config.inc.php exists, change chmod to 0666 (Deesen)
* [GitHub:#0f6f45a85] - - Fix classname Imagic and Gmagic - Refactor (Agel_Nash)
* [GitHub:#ae66352b5] - Step 2 (Agel_Nash)
* [GitHub:#de7245b0a] - Fix Imagick class name (Agel_Nash)
* [GitHub:#0d0d9ae28] - Fix Gmagic class name (Agel_Nash)
* [GitHub:#af9476613] - refactor array_change_key_case function (Agel_Nash)
* [GitHub:#426b74903] - Fix IN_MANAGER_MODE (Agel_Nash)
* [GitHub:#8d4595dc7] - Step 1 (Agel_Nash)
* [GitHub:#a1b09fad5] - fix install (Pathologic)
* [GitHub:#1581c4c75] - Fix readme (Agel_Nash)
* [GitHub:#8061c2891] - Update badges (Agel_Nash)
* [GitHub:#63117c3b0] - sqlParser for PHP5 (Agel_Nash)
* [GitHub:#095021f7d] - Remove closing tag ```?>``` in files (Agel_Nash)
* [GitHub:#d98fbcb3e] - random table prefix (Agel_Nash)
* [GitHub:#868b6aaa7] - Code style (Agel_Nash)
* [GitHub:#932ceff2f] - Update .gitignore and .htaccess files (Agel_Nash)
* [GitHub:#923a1c674] - [F] #481 Fix export of Static-HTML with FURLs enabled (Deesen)
* [GitHub:#fcd59ef78] - fix #397 (Pathologic)
* [GitHub:#1ce8cb620] - fix #484 (64j)
* [GitHub:#a22a4ddb3] - fix #396 (Pathologic)
* [GitHub:#5c176a09a] - fix #484 need permission for editing templates or chunks or snippets or plugins (64j)
* [GitHub:#3738d46a5] - fix #484 need permission for editing documents (64j)
* [GitHub:#65d13ad82] - fix error session "nrtotalmessages" for role editor (64j)
* [GitHub:#654b69146] - fix russian lang extrascheck (Serg)
* [GitHub:#93d503295] - single entry point (Pathologic)
* [GitHub:#93e702991] - fixed something (Pathologic)
* [GitHub:#52dd369e1] - single entry point (Pathologic)
* [GitHub:#7e06c92bf] - fix Store module unparsed placeholders (Pathologic)
* [GitHub:#b530747af] - moved page icon to style.php (Nicola)
* [GitHub:#1db4e4baf] - page icon - mutate password (Nicola)
* [GitHub:#83318077b] - icon_help (Nicola)
* [GitHub:#6ac0a5c24] - fix broken OnWUsrFormRender event (Pathologic)
* [GitHub:#47b459a0e] - update SystemEvent (Pathologic)
* [GitHub:#c7873b6b0] - Update plugin.updater.php (Mr B)
* [GitHub:#81df65a80] - [MODxMailer] log only public properties (Pathologic)
* [GitHub:#a4081217d] - Update modxmailer.class.inc.php (Pathologic)
* [GitHub:#c9ca177af] - fix #493 (Pathologic)
* [GitHub:#bb4152705] - fix #475 (64j)
* [GitHub:#2f0685fe2] - [F] fix for moving content to another tab (Mr B)
* [GitHub:#b010fe286] - fix #42 (Pathologic)
* [GitHub:#d902a2ce6] - fix #258 (Pathologic)
* [GitHub:#20ff0eb2e] - fix #258 (Pathologic)
* [GitHub:#7b63c4293] - Update style.css (Mr B)
* [GitHub:#a91dc393d] - [I] Add right menu section ids (Mr B)
* [GitHub:#28a085634] - [I] QM+ Remove space from Edit Resource text (Mr B)
* [GitHub:#b34a39c60] - [F] Quick Manager+ ID text fix (Mr B)
* [GitHub:#4aa572f2f] - [I] #483 Provide [+base_path+] and [+base_url+] (Deesen)
* [GitHub:#8a6338966] - [F] #477 Cache plugin-properties using parseProperties() (Deesen)
* [GitHub:#26def6fef] - fix #478 (Pathologic)
* [GitHub:#6a754cc4b] - Fix tree buttons JS (Piotr Matysiak)
* [GitHub:#2987cfff4] - fix and improvements (Outdated Extras Check) (Nicola)
* [GitHub:#cd946c440] - ability to use extended DocumentParser class (Pathologic)
* [GitHub:#83b776239] - [F] Fix Information tab logo path (Mr B)
* [GitHub:#2902c56b2] - [I] Allow default-placeholders like [+which_browser+] in theme-values - $this-set('browserPath', '[+site_manager_url+]media/browser/[+which_browser+]/...') (Deesen)
* [GitHub:#c49d50d2d] - [F] #442 New inlite-theme is only compatible with inline-mode - backend falls back to modern-theme (Deesen)
* [GitHub:#f29ec8638] - [I] Extras/Store - New feature "Install by file-upload" - accepts ZIP-files from https://github.com/extras-evolution/ (Deesen)
* [GitHub:#633908ec0] - Replaced "MODX Content Manager" by "EVO Content Manager" (Deesen)
* [GitHub:#5aeb2a3f7] - Updated project-description (MODX to EVO) (Deesen)
* [GitHub:#cfea32cab] - Update mm_hidefields.php (Mr B)
* [GitHub:#6df0e1c33] - Update jquery.ddMM.js (Mr B)
* [GitHub:#6609e8c51] - [I] Updated TinyMCE4 to v4.7.4 (from v4.6.3) - added param "mobile" to theme.base - added param "Skin-Theme" to settings - fixed/improved theme/skin settings and labels (Deesen)
* [GitHub:#6cff1adc0] - fix #463 (Pathologic)


Evolution CMS 1.4.0 (Jan 25, 2018)
* [GitHub:#b1fffc26] - fix for php 7.2 (dmi3yy)
* [GitHub:#da5b0533] - [F] Moving which_editor with resource content for MM (Mr B)
Expand Down
5 changes: 5 additions & 0 deletions assets/export/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
5 changes: 5 additions & 0 deletions assets/files/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
5 changes: 5 additions & 0 deletions assets/images/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
5 changes: 5 additions & 0 deletions assets/import/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
4 changes: 2 additions & 2 deletions assets/lib/APIHelpers.class.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
// extension_loaded('mbstring') ???

/**
* Class APIhelpers
*/
Expand Down Expand Up @@ -65,7 +65,7 @@ public static function mb_trim_word($html, $len, $encoding = 'UTF-8')
* @param Closure $validate null функция дополнительной валидации значения (должна возвращать true или false)
* @return mixed
*/
public static function getkey($data, $key, $default = null)
public static function getkey($data, $key, $default = null, $validate = null)
{
$out = $default;
if (is_array($data) && (is_int($key) || is_string($key)) && $key !== '' && array_key_exists($key, $data)) {
Expand Down
12 changes: 7 additions & 5 deletions assets/lib/Formatter/SqlFormatter.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,8 @@ protected static function getNextToken($string, $previous = null)
if ($string[0] === '-' || $string[0] === '#') {
$last = strpos($string, "\n");
$type = self::TOKEN_TYPE_COMMENT;
} else { // Comment until closing comment tag
} else {
// Comment until closing comment tag
$last = strpos($string, "*/", 2) + 2;
$type = self::TOKEN_TYPE_BLOCK_COMMENT;
}
Expand Down Expand Up @@ -833,7 +834,7 @@ protected static function getNextToken($string, $previous = null)
} // Non-quoted variable name
else {
preg_match('/^(' . $string[0] . '[a-zA-Z0-9\._\$]+)/', $string, $matches);
if ($matches) {
if (!empty($matches)) {
$ret[self::TOKEN_VALUE] = $matches[1];
}
}
Expand Down Expand Up @@ -973,7 +974,7 @@ protected static function tokenize($string)
}

// See if the token is already cached
if ($cacheKey && isset(self::$token_cache[$cacheKey])) {
if ($cacheKey !== false && isset(self::$token_cache[$cacheKey])) {
// Retrieve from cache
$token = self::$token_cache[$cacheKey];
$token_length = strlen($token[self::TOKEN_VALUE]);
Expand All @@ -985,7 +986,7 @@ protected static function tokenize($string)
self::$cache_misses++;

// If the token is shorter than the max length, store it in cache
if ($cacheKey && $token_length < self::$max_cachekey_size) {
if ($cacheKey !== false && $token_length < self::$max_cachekey_size) {
self::$token_cache[$cacheKey] = $token;
}
}
Expand Down Expand Up @@ -1044,7 +1045,8 @@ public static function format($string, $highlight = true)
// Get highlighted token if doing syntax highlighting
if ($highlight) {
$highlighted = self::highlightToken($token);
} else { // If returning raw text
} else {
// If returning raw text
$highlighted = $token[self::TOKEN_VALUE];
}

Expand Down
7 changes: 6 additions & 1 deletion assets/lib/Helpers/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ class Config
protected $fs = null;
protected $path = '';

/**
* Config constructor.
*
* @param array $cfg
*/
public function __construct($cfg = array())
{
if ($cfg) {
if (!empty($cfg)) {
$this->setConfig($cfg);
}
$this->fs = FS::getInstance();
Expand Down
Loading

0 comments on commit 782cff3

Please sign in to comment.