Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
830 commits
Select commit Hold shift + click to select a range
781a578
<ul> only if count roles > 0
Segr Mar 27, 2014
428b523
Disable direct call of filesource/plugin.filesource.php
Segr Mar 27, 2014
fbff630
Merge pull request #225 from Segr/bugfix
Jako Mar 28, 2014
f466faf
Fix possible SQL injection vulnerability in manager
Jako Mar 28, 2014
45f47c6
Fix possible XSS vulnerability in manager
Jako Mar 28, 2014
c5b2ce3
Merge pull request #1 from modxcms/bugfix
Segr Mar 29, 2014
cb6e8be
Updated Finnish Language - thanks to Kari Söderholm
Jako Mar 31, 2014
00051ce
Merge pull request #2 from modxcms/bugfix
Segr Mar 31, 2014
7fdf3c2
Fixes in QM+
Segr Mar 31, 2014
2ff654f
Use MODX_MANAGER_PATH for include
Segr Mar 31, 2014
c1b463a
Remove trailing ?>, FileSource save plugin code without it
Segr Mar 31, 2014
2b15a75
Remove trailing ?>, FileSource save plugin code without it
Segr Mar 31, 2014
6c4f6b4
Add more debug info about query
Segr Mar 31, 2014
e88c78d
Fix typo in document.parser.class.inc.php
Segr Mar 31, 2014
3fac66b
Use clearCache('full')
Segr Mar 31, 2014
4aca668
Show snippet params in debug info only if it`s present
Segr Mar 31, 2014
e74aee6
Stop the unnecessary call recursive functions
Segr Mar 31, 2014
e5fb3aa
Use new 'all' param
Segr Mar 31, 2014
89a3711
Merge pull request #228 from Segr/bugfix
Jako Mar 31, 2014
98acdd6
MariaDB. POSIX collating elements are not supported
Apr 1, 2014
852093b
Possible fix for valid cache file file_exist check but not found file
Jako Apr 2, 2014
e6ca725
Missing error message in evalSnippet/evalPlugin error
Jako Apr 2, 2014
ef2424a
Merge commit '89a3711aea6da6d6a7a21e5b579defeb7bf243b2' into bugfix
Jako Apr 2, 2014
7300f38
Update TinyMCE default width to 100% (issue #202)
Haprog Apr 2, 2014
21f3463
Fix bug #140
Haprog Apr 2, 2014
3a76b6c
Merge pull request #231 from Haprog/bug-140
Jako Apr 3, 2014
488c893
Fix bug #233
Haprog Apr 3, 2014
f0c9a77
Remove extra line break from end of file that was accidentally added …
Apr 3, 2014
53a5f41
Merge pull request #234 from Haprog/bug-233
Jako Apr 3, 2014
9a7b2bb
Fix bug #235
Haprog Apr 3, 2014
1d59725
Merge pull request #237 from Haprog/bug-235
Jako Apr 3, 2014
7ca2938
Critical Fix - Fixes Access Permissions error
aaronwardle Apr 3, 2014
3bfdfd7
Send user processor mails as text.
Jako Apr 3, 2014
e6963f8
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Apr 3, 2014
5fd0713
Merge pull request #239 from aaronwardle/bugfix
Jako Apr 3, 2014
364aeec
Merge pull request #229 from MrSwed/bugfix
Jako Apr 3, 2014
b801927
Merge pull request #230 from Haprog/tinymce-default-width
Jako Apr 3, 2014
20f6323
Merge commit '7300f38b0e187f45c18046e9e6f0762bad23fd66' into bugfix
Jako Apr 3, 2014
ccbe3b9
Use modx_charset for non japanese languages als mail charset
Jako Apr 3, 2014
807dbd9
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Apr 3, 2014
651e846
Send system mails as text
Jako Apr 3, 2014
7bf05d8
Merge pull request #3 from modxcms/bugfix
Segr Apr 4, 2014
fc29642
Fix bug - Send mail at $modx->logEvent()
yama Apr 5, 2014
65b9087
New design of installer like Revo
yama Apr 5, 2014
751d22e
Fix (Lost installer image file)
yama Apr 5, 2014
5b87dd6
Wayfinder - Small fix
yama Apr 5, 2014
cc65308
Wayfinder - Small fixes
yama Apr 5, 2014
89e5c14
Wayfinder - Use __construct()
yama Apr 5, 2014
41ad3c4
Wayfinder - Fix
yama Apr 5, 2014
e3da37d
Wayfinder - Fix undefined variable
yama Apr 5, 2014
80486bb
Wayfinder - Fix htmlentities
yama Apr 5, 2014
52bae77
Wayfinder - Fix fetch template
yama Apr 5, 2014
3cb3d0b
Wayfinder - Fix Read config
yama Apr 5, 2014
b239aa8
Wayfinder - Fix
yama Apr 5, 2014
74fea39
Keep original publish state, publishedon, publishedby on save
Jako Apr 6, 2014
c31b326
Merge pull request #241 from yama/bugfix
yama Apr 6, 2014
a571dfc
Merge pull request #4 from modxcms/bugfix
Segr Apr 7, 2014
0da61aa
Updated Japanese Language - thanks to Mika Kobayashi
Jako Apr 8, 2014
3e7cd8c
$virtualDir= $this->config['virtual_dir'];
Dmi3yy Apr 8, 2014
52242c8
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Dmi3yy Apr 8, 2014
07960d2
Use published='all' for one query
Segr Apr 9, 2014
1ccab06
Merge pull request #249 from Segr/bugfix
Jako Apr 9, 2014
f9d09ff
Fix
yama Apr 10, 2014
fb6a5c6
Merge pull request #251 from yama/bugfix
yama Apr 10, 2014
7e668ac
Fix - $modx_textdir
yama Apr 10, 2014
0bb19bf
Wayfinder - Fix empty value of alias
yama Apr 10, 2014
a75ec98
Merge pull request #252 from yama/bugfix
yama Apr 10, 2014
243ec89
Fixing #247
Jako Apr 22, 2014
c4f18f6
Fixing 'Array is currently editing these settings'
Jako Apr 22, 2014
9b0c95d
fix info character_set_database and collation_database
Dmi3yy Apr 23, 2014
686bc60
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Dmi3yy Apr 23, 2014
a23ec37
Now we can specify document ID if needed
Apr 23, 2014
7dafcf8
DB request only made if $hereId != $modx->documentObject['id']
Apr 24, 2014
41ba52f
Merge pull request #253 from yakimoff/develop
Jako Apr 24, 2014
3608861
fix tinyMCE style for use in custom manager theme
Dmi3yy Apr 24, 2014
8bd7d4e
Merge branch 'develop' into bugfix
Dmi3yy Apr 30, 2014
64d730f
sample-robots.txt add Disallow: /assets/packages/ #201
Dmi3yy Apr 30, 2014
78bc5f3
fix in $modx->getSettings
Apr 30, 2014
c00c515
Merge pull request #256 from Pathologic/bugfix
Jako Apr 30, 2014
7588072
http://modx.im/blog/news/1999.html#comment20388
Dmi3yy May 5, 2014
b902b09
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Dmi3yy May 5, 2014
dd5d8f3
Fix - Don't parse EVAL binding at the TV form
yama May 7, 2014
c938674
New feature - @@EVAL at the TV form
yama May 7, 2014
b3ab833
fix update value+1 in login.processor
Dmi3yy May 12, 2014
739bd86
Revert "fix update value+1 in login.processor"
Dmi3yy May 12, 2014
c15a609
fix resourse.php http://modx.im/blog/questions/2197.html
Dmi3yy May 12, 2014
c98b8dd
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
yama May 12, 2014
3d9186f
Ditto - &noResults parameter doesn't work
yama May 12, 2014
eea2a6b
Fix
yama May 13, 2014
c228460
Merge pull request #260 from yama/bugfix
Jako May 13, 2014
79e1f0f
Added polish eForm language - thanks to Piotr Matysiak
Jako May 13, 2014
f9eeb72
Updated Finnish language
Jako May 13, 2014
ed0d697
Delete unnecessary bold tags
yama May 14, 2014
39a2e5c
Bug fix - $modx->sendmail() cc and bcc
yama May 15, 2014
1bcc38e
Fix - $modx->sendmail() $param['from']
yama May 15, 2014
cb69e7d
TinyMCE - Fix toolbar style
yama May 16, 2014
9c14e64
Update - TinyMCE 3.5.11
yama May 16, 2014
3a920f1
#223
Dmi3yy May 19, 2014
b30c2e2
Tools>Export - Fix language entry
yama May 20, 2014
8d55236
#262 Requirements not checked php version
yama May 20, 2014
0919124
Harden index-ajax.php
Jako Jun 4, 2014
729d1f8
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 4, 2014
13eac12
Update AjaxSearch to 1.10.1
Jako Jun 5, 2014
deefcdc
Update to 1.0.14
Jako Jun 5, 2014
96bd80f
Remove only known @BINDINGS
Jako Jun 5, 2014
7a3f33c
MODX Evolution 1.0.14
opengeek Jun 5, 2014
41048c3
add .tpl, .less, .sass for View/Edit in FileMnager
Dmi3yy Jun 6, 2014
39ee732
Fixing issue with accounts not getting unblocked automatically (#267)
Jako Jun 6, 2014
a50a3ef
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 6, 2014
f75ac90
Merge branch 'bugfix' into develop
Jako Jun 6, 2014
766e662
Fix for CJK multi byte environment
yama Jun 7, 2014
576e210
Remove "?>" from end of php file
yama Jun 7, 2014
2c4d02d
Fix for CJK multi byte environment
yama Jun 7, 2014
43bcf75
Fixed some style issues
Jako Jun 8, 2014
c43da9b
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 8, 2014
7b80a42
Fixed some style issues
Jako Jun 8, 2014
8b79b00
Fixed some style issues
Jako Jun 8, 2014
f551c60
Début de traduction pour la 1.0.14
Jun 9, 2014
aa9a73c
Début de traduction pour la 1.0.14
Jun 9, 2014
a761a63
mise à jour des messages de gestionnaire de fichiers
Jun 9, 2014
45cb1ff
Début de traduction pour la 1.0.14
Jun 9, 2014
fca3bb2
Début de traduction pour la 1.0.14
Jun 9, 2014
edd0e4e
Début de traduction pour la 1.0.14
Jun 10, 2014
baf841a
Début de traduction pour la 1.0.14
Jun 10, 2014
c65123d
Début de traduction pour la 1.0.14
Jun 10, 2014
03a1e04
Première version complète de la traduction pour la 1.0.14
Jun 10, 2014
6b468fb
French translation for 1.0.14
Jun 10, 2014
8d69336
Merge pull request #269 from ackwa/lang-fr
Jako Jun 10, 2014
8752559
Add "level" to the "wrapperLevel" placeholders
Jun 11, 2014
2a00501
Merge pull request #271 from ackwa/wayfinder-level-placeholder
Jako Jun 11, 2014
35ab4dc
Merge branch 'bugfix' into develop
Dmi3yy Jun 11, 2014
caf0f98
Add placeholder for PHP version in language files
Jako Jun 11, 2014
582b0d7
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 11, 2014
05137e4
Updated language files
Jako Jun 11, 2014
1f76491
Refactoring #265
Jako Jun 13, 2014
996157b
Updated some language files from Transifex
Jako Jun 13, 2014
dfe0020
Fixing Webusers Not Showing Private Resources #273
Jako Jun 13, 2014
ea9ccdf
Quickfix for Refused to set unsafe header "Connection" #227
Jako Jun 16, 2014
f7aecc4
Fixing #275
Jako Jun 16, 2014
9ab2678
Added support for lastRowTpl that will apply to last row of a list
Jun 17, 2014
6e0fd11
Updated swedish language
Jako Jun 17, 2014
99c10e8
Re-Added Breadcrumbs snippet commented documentation #236
Jako Jun 17, 2014
818e55e
Merge pull request #278 from jasonabird/develop
Jako Jun 17, 2014
8095f14
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 17, 2014
98c1a2e
Merge commit '818e55eb9b30f29b172abec9b017c8739f509473' into bugfix
Jako Jun 17, 2014
ad335ad
Re-Added Breadcrumbs snippet commented documentation #236
Jako Jun 17, 2014
179c875
Update tagging.extender.inc.php
mrhaw Jun 18, 2014
0fc2ccb
Update tagging.extender.inc.php
mrhaw Jun 19, 2014
7781b65
Small fix - smtp password field in system settings
yama Jun 20, 2014
1849346
Refactor - File browser settings
yama Jun 20, 2014
e30be5e
Merge pull request #279 from mrhaw/patch-1
Jako Jun 20, 2014
66255dc
Change DOCTYPE declaration(HTML5)
yama Jun 21, 2014
916dde4
Revert missing commit
yama Jun 22, 2014
eb3a458
Remove changes added during #90
Jako Jun 22, 2014
60a2276
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 22, 2014
a98fe41
Update KCFinder Dutch language file
yama Jun 24, 2014
f34cc36
#283 Hide META tags content in Resource Overview when META Keywords t…
yama Jun 24, 2014
dbbfebb
Revert "#283 Hide META tags content in Resource Overview when META Ke…
yama Jun 24, 2014
744fdcc
#283 Hide META tags content in Resource Overview when META Keywords t…
yama Jun 24, 2014
102fe60
Fixing #226 - Wayfinder problems after upgrading MODX from 1.0.10 to …
Jako Jun 25, 2014
a517ffe
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 25, 2014
a245648
Rename function name
Jako Jun 25, 2014
27d7adf
Bugfix - wrong quotes
Jako Jun 25, 2014
f4a559b
Updated polish and brazilian portuguese languages from Transifex
Jako Jun 25, 2014
987f8b8
Output Content-Type header at messageCount
yama Jun 26, 2014
696a8d6
Remove semicoron
yama Jun 26, 2014
7bc2557
Update eForm to 1.4.6
Jako Jun 27, 2014
e0c80f3
Update eForm to 1.4.6
Jako Jun 27, 2014
7db1410
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jun 27, 2014
09a93c5
Update Wayfinder to 2.0.4
Jako Jun 27, 2014
1e22788
Update Wayfinder to 2.0.4
Jako Jun 27, 2014
be143a1
Removed wrong array keys
Jako Jun 30, 2014
cb5b0e0
Removed unused variables
Jako Jun 30, 2014
6a23f91
New Security Feed! -> english.inc.php
mrhaw Jul 1, 2014
dfbd44e
Bugfix for hideMenu parameter
Jako Jul 2, 2014
71f43df
Fixes for phpthumb snippet
Jako Jul 2, 2014
3420716
Fixes for phpthumb snippet
Jako Jul 2, 2014
5266730
Fixes for phpthumb snippet
Jako Jul 2, 2014
473ce85
Fixing $modx->makeUrl($modx->config['site_start']) should return '/' …
Jako Jul 2, 2014
a0aea79
Fixing $modx->makeUrl($modx->config['site_start']) should return '/' …
Jako Jul 2, 2014
9a121bc
Fixing $modx->makeUrl($modx->config['site_start']) should return '/' …
Jako Jul 2, 2014
0dbeb4a
Small fixes
Jako Jul 2, 2014
6166167
Updated Dutch language
Jako Jul 2, 2014
b87cfd8
Merge pull request #288 from mrhaw/patch-1
Dmi3yy Jul 3, 2014
d2b7cb0
fix http://joxi.ru/Y_SlUxjKTJBBH38Lv8U
Dmi3yy Jul 3, 2014
efeb546
Refactor - $modx->makeUrl()
yama Jul 3, 2014
aef110e
Refactor - $modx->makeUrl()
yama Jul 3, 2014
45f08ec
datepicker localization
Jul 3, 2014
384da40
fix
Jul 3, 2014
fcfcc80
startDay
Jul 3, 2014
afc8a6b
fix
Jul 3, 2014
f3f585c
Merge pull request #292 from Pathologic/datepicker
Jako Jul 3, 2014
04cdccc
Bugfix
Jako Jul 3, 2014
2aad3e3
Updated languages from Transifex
Jako Jul 4, 2014
f5629f3
Skip all fields without name attribute in eFormParseTemplate
Jako Jul 4, 2014
022b755
Fix PHP Notices from document.parser
OptimusCrime Jul 4, 2014
10539dd
Merge pull request #293 from OptimusCrime/develop
Jako Jul 4, 2014
fd8579c
Merge commit '10539ddc4957a0de163f6187c16a4f89bbb022f7' into bugfix
Jako Jul 4, 2014
b49e81e
show only allowed images in their folder
Pathologic Jul 5, 2014
0448cf7
fix uploader
Jul 6, 2014
394d3ee
Merge pull request #295 from Pathologic/patch-1
Jako Jul 6, 2014
be2f392
+ The “OnDocFormPrerender” and “OnDocFormRender” events now have the …
Jul 7, 2014
263af6d
Merge pull request #297 from DivanDesign/develop
Dmi3yy Jul 7, 2014
009c87d
Merge pull request #296 from Pathologic/kcfinder
Dmi3yy Jul 7, 2014
b8f910d
Merge branch 'develop' into bugfix
Dmi3yy Jul 7, 2014
b74b11b
update mm to 0.6.2
Dmi3yy Jul 7, 2014
0f4aba1
eForm - Fix Invalid address error
yama Jul 7, 2014
3715940
typo fix
Dmi3yy Jul 7, 2014
8cb0307
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Dmi3yy Jul 7, 2014
0c29ed0
select/deselect all templates for tv
Jul 7, 2014
6a87f51
Set $modx->config['server_offset_time']
yama Jul 9, 2014
2d86096
Refactor - $modx->isBackend()
yama Jul 9, 2014
855fc76
Refactor - $modx->isFrontend()
yama Jul 9, 2014
39a62fb
Replace insideManager() to isBackend()
yama Jul 9, 2014
c54e367
Revert - $modx->makeFriendlyURL()
yama Jul 9, 2014
62c8d9b
Small fix - header.inc.php
yama Jul 9, 2014
71492ad
Delete unnecessary evaluate PHP code
yama Jul 9, 2014
acbaf8b
Refactor - Calling method of deprecated-function
yama Jul 9, 2014
d8872e7
Update media.js
Pathologic Jul 10, 2014
3cbfefb
Merge pull request #303 from Pathologic/patch-3
Dmi3yy Jul 10, 2014
abc925a
revert Use preg_replace with /e to make it evaluate PHP
Dmi3yy Jul 11, 2014
1eb5d1f
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Dmi3yy Jul 11, 2014
d2d1bbf
Merge pull request #299 from Pathologic/mutate_tmplvars
Dmi3yy Jul 14, 2014
13d0d6d
fix makeFriendlyURL for site_start
Dmi3yy Jul 14, 2014
d9c3cda
Update mutate_user.dynamic.php
bossloper Jul 16, 2014
1f515e7
Merge pull request #305 from bossloper/patch-1
Dmi3yy Jul 16, 2014
618dc78
Merge remote-tracking branch 'upstream/master' into bugfix
juliolopez78 Jul 16, 2014
51c473f
Update config.php
bossloper Jul 16, 2014
5c97732
Update uploader.php
bossloper Jul 16, 2014
7f48637
Updated languages from Transifex
Jako Jul 16, 2014
b972898
Updated languages from Transifex
Jako Jul 16, 2014
a65d520
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Jako Jul 16, 2014
f1f53d3
Updated languages from Transifex
Jako Jul 16, 2014
c2775fd
Fixed CodeMirror syntax HTML entity highlighting
juliolopez78 Jul 16, 2014
cf82426
Merge pull request #309 from juliolopez78/bugfix
Dmi3yy Jul 17, 2014
7f05792
Allow load any extension without changing the core code
tonatos3 Jul 23, 2014
a28bcc3
Merge pull request #310 from tonatos3/bugfix
Dmi3yy Jul 23, 2014
2a08f79
Merge pull request #306 from bossloper/patch-2
Dmi3yy Jul 23, 2014
31f6759
$modx to $this
Dmi3yy Jul 23, 2014
2da96f6
Wayfinder, move levelClass from li to ul
tonatos3 Jul 23, 2014
7df3e3d
Merge pull request #312 from tonatos3/bugfix
Dmi3yy Jul 23, 2014
56357ce
fix makeURL
Dmi3yy Aug 4, 2014
90e38bb
Merge branch 'bugfix' of https://github.com/modxcms/evolution into bu…
Dmi3yy Aug 4, 2014
c7f6d34
Wayfinder, revert levelClass, add outerLevelClass
tonatos3 Aug 5, 2014
80796e1
Merge pull request #319 from tonatos3/bugfix
Jako Aug 5, 2014
a2a3a57
Fix save mutate_content form on press Enter in input field
tonatos3 Aug 5, 2014
50c5628
Updated languages from Transifex
Jako Aug 22, 2014
a1e10bc
Merge commit '80796e162981785f667512eb04cf7094b0e61bdf' into bugfix
Jako Aug 22, 2014
98e68cb
Change publishedon, set value from current time to pub_date
tonatos3 Aug 25, 2014
7f5a219
Merge pull request #322 from tonatos3/bugfix
Dmi3yy Sep 8, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.gitattributes export-ignore
.tx export-ignore
65 changes: 65 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[main]
host = https://www.transifex.com
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norsk, pl: polish-utf8, pt_BR: portuguese-br-utf8, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

[modx-evolution.installer]
file_filter = install/lang/<lang>.inc.php
source_file = install/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish-utf8, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norwegian, pl: polish-utf8, pt_BR: portuguese-br-utf8, pt: portuguese, ru: russian-UTF8, sv: svenska, zh: chinese

[modx-evolution.countrylist]
file_filter = manager/includes/lang/country/<lang>_country.inc.php
source_file = manager/includes/lang/country/english_country.inc.php
source_lang = en
type = PHP_ALT_ARRAY

[modx-evolution.manager]
file_filter = manager/includes/lang/<lang>.inc.php
source_file = manager/includes/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY

[modx-evolution.ditto]
file_filter = assets/snippets/ditto/lang/<lang>.inc.php
source_file = assets/snippets/ditto/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian-utf8, cs: czech, da: danish, de: german, es: spanish, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands, no: norwegian, pl: polish-utf8, pt_BR: portuguese-br, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

[modx-evolution.eform]
file_filter = assets/snippets/eform/lang/<lang>.inc.php
source_file = assets/snippets/eform/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norwegian, pl: polish, pt_BR: portuguese-br, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

[modx-evolution.docmanager]
file_filter = assets/modules/docmanager/lang/<lang>.inc.php
source_file = assets/modules/docmanager/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norwegian, pl: polish-utf8, pt_BR: portuguese-br, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

[modx-evolution.ajaxsearch]
file_filter = assets/snippets/ajaxSearch/lang/<lang>.inc.php
source_file = assets/snippets/ajaxSearch/lang/english-utf8.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norsk-utf8, pl: polish-utf8, pt_BR: portuguese-br, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

[modx-evolution.filesource]
file_filter = assets/plugins/filesource/lang/<lang>.inc.php
source_file = assets/plugins/filesource/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norwegian, pl: polish-utf8, pt_BR: portuguese-br, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

[modx-evolution.tinymce]
file_filter = assets/plugins/tinymce/lang/<lang>.inc.php
source_file = assets/plugins/tinymce/lang/english.inc.php
source_lang = en
type = PHP_ALT_ARRAY
lang_map = bg: bulgarian, cs: czech, da: danish, de: german, es: spanish-utf8, fa: persian, fi: finnish, fr: francais-utf8, he: hebrew, it: italian, ja: japanese-utf8, nl: nederlands-utf8, no: norwegian, pl: polish-utf8, pt_BR: portuguese-br, pt: portuguese, ru: russian-UTF8, sv: svenska-utf8, zh: chinese

2 changes: 1 addition & 1 deletion assets/.thumbs/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Un authorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
2 changes: 1 addition & 1 deletion assets/backup/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Un authorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
3 changes: 0 additions & 3 deletions assets/cache/siteCache.idx.php

This file was deleted.

2 changes: 1 addition & 1 deletion assets/cache/siteManager.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
define("MGR_DIR", "manager");
define('MGR_DIR', 'manager');
2 changes: 1 addition & 1 deletion assets/files/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Un authorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
2 changes: 1 addition & 1 deletion assets/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<h2>Un authorized access</h2>
<h2>Unauthorized access</h2>
You're not allowed to access file folder
47 changes: 23 additions & 24 deletions assets/libs/document.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
e-mail: ur001@mail.ru

Example of use:
require_once('assets/libs/docmanager/document.class.inc.php');
require_once('assets/libs/document.class.inc.php');
$doc = new Document();
$doc->Set('parent',$folder);
$doc->Set('alias','post'.time());
Expand Down Expand Up @@ -71,21 +71,17 @@ function Document($id=0,$fields="*"){
function Save($clearcache=1){
global $modx;
$tablename=$modx->getFullTableName('site_content');
$fields = $modx->db->escape($this->fields);
if($this->isNew){
$this->fields['id']=$modx->db->insert($this->fields, $tablename);
$this->fields['id']=$modx->db->insert($fields, $tablename);
$this->isNew = false;
} else {
$id=$this->fields['id'];
$modx->db->update($this->fields, $tablename, "id=$id");
$modx->db->update($fields, $tablename, "id='{$id}'");
}
if(is_array($this->tvs)) $this->saveTVs();
if ($clearcache == 1) {
$modx->clearCache();
include_once (MODX_MANAGER_PATH . '/processors/cache_sync.class.processor.php');
$sync = new synccache();
$sync->setCachepath(MODX_BASE_PATH . "assets/cache/");
$sync->setReport(false);
$sync->emptyCache();
$modx->clearCache('full');
}
}

Expand Down Expand Up @@ -154,8 +150,7 @@ function SetTemplate($tpl){
global $modx;
// Retrieve id of template if name is given
if(!is_numeric($tpl)) {
$tablename=$modx->getFullTableName('site_templates');
$tpl = $modx->db->getValue("SELECT id FROM $tablename WHERE templatename='$tpl' LIMIT 1");
$tpl = $modx->db->getValue($modx->db->select('id', $modx->getFullTableName('site_templates'), "templatename='{$tpl}'", '', 1));
if(empty($tpl)) return false;
}

Expand All @@ -170,8 +165,8 @@ function Delete(){
if($this->isNew) return;
global $modx;
$id=$this->fields['id'];
$modx->db->delete($modx->getFullTableName('site_content'),"id=$id");
$modx->db->delete($modx->getFullTableName('site_tmplvar_contentvalues'),"contentid=$id");
$modx->db->delete($modx->getFullTableName('site_content'),"id='{$id}'");
$modx->db->delete($modx->getFullTableName('site_tmplvar_contentvalues'),"contentid='{$id}'");
$this->isNew=true;
}

Expand Down Expand Up @@ -202,17 +197,20 @@ function saveTVs(){
$this->oldTVs = array();

$tvc = $modx->getFullTableName('site_tmplvar_contentvalues');
$id=$this->fields['id'];
foreach($this->tvs as $tv=>$value)
if(isset($this->tvNames[$tv])){
$tmplvarid=$this->tvNames[$tv];
$fields = array(
'tmplvarid' => $this->tvNames[$tv],
'contentid' => $this->fields['id'],
'value' => $value,
);
$fields = $modx->db->escape($fields);
if(isset($this->oldTVs[$tv])){
if($this->oldTVs[$tv]==$this->tvNames[$tv]) continue;
$sql="UPDATE $tvc SET value='$value' WHERE tmplvarid=$tmplvarid AND contentid=$id";
$modx->db->update($fields, $tvc, "tmplvarid='{$fields['tmplvarid']}' AND contentid='{$fields['contentid']}'");
}
else
$sql="INSERT INTO $tvc (tmplvarid,value,contentid) VALUES ($tmplvarid,'$value',$id)";
$modx->db->query($sql);
$modx->db->insert($fields, $tvc);
}
}

Expand All @@ -227,12 +225,13 @@ function fillOldTVValues(){
}
$tvc = $modx->getFullTableName('site_tmplvar_contentvalues');
$tvs = $modx->getFullTableName('site_tmplvars');
$sql = 'SeLECT tvs.name as name, tvc.value as value '.
"FROM $tvc tvc INNER JOIN $tvs tvs ".
'ON tvs.id=tvc.tmplvarid WHERE tvc.contentid ='.$this->fields['id'];
$result = $modx->db->query($sql);
$result = $modx->db->select(
'tvs.name as name, tvc.value as value',
$modx->getFullTableName('site_tmplvar_contentvalues')." tvc
INNER JOIN ".$modx->getFullTableName('site_tmplvars')." tvs ON tvs.id=tvc.tmplvarid WHERE tvc.contentid =".$this->fields['id'].""
);
$TVs = array();
while ($row = mysql_fetch_assoc($result)) $TVs[$row['name']] = $row['value'];
while ($row = $modx->db->getRow($result)) $TVs[$row['name']] = $row['value'];
return $TVs;
}

Expand All @@ -243,7 +242,7 @@ function fillTVNames(){
global $modx;
$this->tvNames = array();
$result = $modx->db->select('id, name', $modx->getFullTableName('site_tmplvars'));
while ($row = mysql_fetch_assoc($result)) $this->tvNames[$row['name']] = $row['id'];
while ($row = $modx->db->getRow($result)) $this->tvNames[$row['name']] = $row['id'];
}

function setAlias ($alias = '') {
Expand Down
74 changes: 32 additions & 42 deletions assets/libs/resourse.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ class resourse {
private $tvid = array();
private $log = array();
private $edit = 0;
private $dafeult_field ;
private $default_field ;
private $table=array('"'=>'_',"'"=>'_',' '=>'_','.'=>'_',','=>'_','а'=>'a','б'=>'b','в'=>'v',
'г'=>'g','д'=>'d','е'=>'e','ё'=>'e','ж'=>'zh','з'=>'z','и'=>'i','й'=>'y','к'=>'k',
'л'=>'l','м'=>'m','н'=>'n','о'=>'o','п'=>'p','р'=>'r','с'=>'s','т'=>'t','у'=>'u',
'ф'=>'f','х'=>'h','ц'=>'c','ч'=>'ch','ш'=>'sh','щ'=>'sch','ь'=>'','ы'=>'y','ъ'=>'',
'э'=>'e','ю'=>'yu','я'=>'ya','А'=>'A','Б'=>'B','В'=>'V','Г'=>'G','Д'=>'D','Е'=>'E',
'Ё'=>'E','Ж'=>'Zh','З'=>'Z','И'=>'I','Й'=>'Y','К'=>'K','Л'=>'L','М'=>'M','Н'=>'N',
'О'=>'O','П'=>'P','Р'=>'R','С'=>'S','Т'=>'T','У'=>'U','Ф'=>'F','Х'=>'H','Ц'=>'C',
'Ч'=>'Ch','Ш'=>'Sh','Щ'=>'Sch','Ь'=>'','Ы'=>'Y','Ъ'=>'','Э'=>'E','Ю'=>'Yu','Я'=>'Ya',
'Ч'=>'Ch','Ш'=>'Sh','Щ'=>'Sch','Ь'=>'','Ы'=>'Y','Ъ'=>'','Э'=>'E','Ю'=>'Yu','Я'=>'Ya','/'=>'-',
);

private $set;
Expand Down Expand Up @@ -153,13 +153,13 @@ private function makeTable(){
}

private function Uset($key){
if(!isset($this->field[$key])){
$this->set[]= "{$key}=''";
$this->log[] = '{$key} is empty';
if(!isset($this->field[$key])){
$this->set[$key]= "";
$this->log[] = "{$key} is empty";
} else {
try{
if(is_scalar($this->field[$key])){
$this->set[]= "{$key}='{$this->field[$key]}'";
$this->set[$key]= $this->field[$key];
} else throw new Exception("{$key} is not scalar <pre>".print_r($this->field[$key],true)."</pre>");
}catch(Exception $e){ die($e->getMessage()); }
}
Expand All @@ -175,12 +175,7 @@ private function invokeEvent($name,$data=array(),$flag=false){
}

public function clearCache($fire_events = null){
$this->modx->clearCache();
include_once (MODX_MANAGER_PATH . '/processors/cache_sync.class.processor.php');
$sync = new synccache();
$sync->setCachepath(MODX_BASE_PATH . "assets/cache/");
$sync->setReport(false);
$sync->emptyCache();
$this->modx->clearCache('full');
$this->invokeEvent('OnSiteRefresh',array(),$fire_events);
}

Expand Down Expand Up @@ -213,9 +208,8 @@ private function setTemplate($tpl) {
if(!is_numeric($tpl) || $tpl != (int) $tpl) {
try{
if(is_scalar($tpl)){
$sql = "SELECT id FROM {$this->_table['site_templates']} WHERE templatename = '{$tpl}'";
$rs = $this->query($sql);
if(!$rs || $this->modx->db->getRecordCount($rs) <= 0) throw new Exception("Template {$tpl} is not exists");
$rs = $this->modx->db->select('id', $this->_table['site_templates'], "templatename = '{$tpl}'");
if($this->modx->db->getRecordCount($rs) <= 0) throw new Exception("Template {$tpl} is not exists");
$tpl = $this->modx->db->getValue($rs);
} else throw new Exception("Invalid template name: ".print_r($tpl,1));
}catch(Exception $e){
Expand Down Expand Up @@ -243,13 +237,9 @@ private function getAlias(){
return $this->checkAlias($alias);
}

private function query($SQL){
return $this->modx->db->query($SQL);
}

public function get_TV(){
$result = $this->query('SELECT id,name FROM '.$this->_table['site_tmplvars']);
while($row = $this->modx->db->GetRow($result)) {
$result = $this->modx->db->select('id,name', $this->_table['site_tmplvars']);
while($row = $this->modx->db->getRow($result)) {
$this->tv[$row['name']] = $row['id'];
$this->tvid[$row['id']] = $row['name'];
}
Expand All @@ -263,10 +253,10 @@ public function fromArray($data){
public function edit($id){
if(!$this->flag) $this->document($id);

$result = $this->query("SELECT * from {$this->_table['site_content']} where id=".(int)$id);
$result = $this->modx->db->select('*', $this->_table['site_content'], "id=".(int)$id);
$this->fromArray($this->modx->db->getRow($result));

$result = $this->query("SELECT * from {$this->_table['site_tmplvar_contentvalues']} where contentid=".(int)$id);
$result = $this->modx->db->select('*', $this->_table['site_tmplvar_contentvalues'], "contentid=".(int)$id);
while ($row = $this->modx->db->getRow($result)){
$this->set($this->tvid[$row['tmplvarid']], $row['value']);
}
Expand All @@ -282,7 +272,7 @@ private function systemID(){
(int)$this->modx->config['unauthorized_page'],
(int)$this->modx->config['site_unavailable_page']
);
$data = $this->query("SELECT DISTINCT setting_value FROM {$this->_table['web_user_settings']} WHERE setting_name='login_home' AND setting_value!=''");
$data = $this->modx->db->select('DISTINCT setting_value', $this->_table['web_user_settings'], "setting_name='login_home' AND setting_value!=''");
$data = $this->modx->db->makeArray($data);
foreach($data as $item){
$ignore[]=(int)$item['setting_value'];
Expand All @@ -302,8 +292,8 @@ public function delete($ids,$fire_events = null){
),$fire_events);

$id = $this->sanitarIn($_ids);
$this->query("DELETE from {$this->_table['site_content']} where id IN ({$id})");
$this->query("DELETE from {$this->_table['site_tmplvar_contentvalues']} where contentid IN ({$id})");
$this->modx->db->delete($this->_table['site_content'], "id IN ({$id})");
$this->modx->db->delete($this->_table['site_tmplvar_contentvalues'], "contentid IN ({$id})");

$this->invokeEvent('OnEmptyTrash',array(
"ids"=>$_ids
Expand Down Expand Up @@ -349,10 +339,7 @@ final protected function sanitarIn($data,$sep=','){
if(!is_array($data)){
$data=explode($sep,$data);
}
$out=array();
foreach($data as $item){
$out[]=$this->modx->db->escape($item);
}
$out = $this->modx->db->escape($data);
$out="'".implode("','",$out)."'";
return $out;
}
Expand Down Expand Up @@ -410,9 +397,9 @@ private function checkAlias($alias){
$flag = false;
$_alias = $this->modx->db->escape($alias);
if(!$this->modx->config['allow_duplicate_alias'] || ($this->modx->config['allow_duplicate_alias'] && $this->modx->conifg['use_alias_path'])){
$flag = $this->modx->db->getValue($this->query("SELECT id FROM {$this->_table['site_content']} WHERE alias='{$_alias}' AND parent={$this->get('parent')} LIMIT 1"));
$flag = $this->modx->db->getValue($this->modx->db->select('id', $this->_table['site_content'], "alias='{$_alias}' AND parent={$this->get('parent')}", '', 1));
} else {
$flag = $this->modx->db->getValue($this->query("SELECT id FROM {$this->_table['site_content']} WHERE alias='{$_alias}' LIMIT 1"));
$flag = $this->modx->db->getValue($this->modx->db->select('id', $this->_table['site_content'], "alias='{$_alias}'", '', 1));
}
if(($flag && $this->newDoc) || (!$this->newDoc && $flag && $this->id != $flag)){
$suffix = substr($alias, -2);
Expand Down Expand Up @@ -451,31 +438,34 @@ public function save($fire_events = null,$clearCache = false){
if ($this->newDoc && $this->get($key) == '' && $this->get($key)!==$value){
$this->set($key,$value);
}
$this->Uset($key);
$this->Uset($key,$value);
unset($fld[$key]);
}
if (!empty($this->set)){
if($this->newDoc){
$SQL = "INSERT into {$this->_table['site_content']} SET ".implode(', ', $this->set);
$this->modx->db->insert($this->set, $this->_table['site_content']);
}else{
$SQL = "UPDATE {$this->_table['site_content']} SET ".implode(', ', $this->set)." WHERE id = ".$this->id;
$this->modx->db->update($this->set, $this->_table['site_content'], "id = '{$this->id}'");
}
$this->query($SQL);
}

if($this->newDoc) $this->id = $this->modx->db->getInsertId();

foreach($fld as $key=>$value){
if ($value=='') continue;
if ($this->tv[$key]!=''){
$rc = $this->query("SELECT value FROM {$this->_table['site_tmplvar_contentvalues']} WHERE `contentid` = '{$this->id}' AND `tmplvarid` = '{$this->tv[$key]}';");
$row = mysql_fetch_assoc($rc);
if (is_array($row)) {
if ($row[0] != $value) {
$result = $this->query("UPDATE {$this->_table['site_tmplvar_contentvalues']} SET `value` = '{$value}' WHERE `contentid` = '{$this->id}' AND `tmplvarid` = '{$this->tv[$key]}';");
$fields = array(
'tmplvarid' => $this->tv[$key],
'contentid' => $this->id,
'value' => $this->modx->db->escape($value),
);
$rc = $this->modx->db->select('value', $this->_table['site_tmplvar_contentvalues'], "contentid = '{$fields['contentid']}' AND tmplvarid = '{$fields['tmplvarid']}'");
if ($row = $this->modx->db->getRow($rs)) {
if ($row['value'] != $value) {
$this->modx->db->update($fields, $this->_table['site_tmplvar_contentvalues'], "contentid = '{$fields['contentid']}' AND tmplvarid = '{$fields['tmplvarid']}'");
}
}else{
$result = $this->query("INSERT into {$this->_table['site_tmplvar_contentvalues']} SET `contentid` = {$this->id},`tmplvarid` = {$this->tv[$key]},`value` = '{$value}';");
$this->modx->db->insert($fields, $this->_table['site_tmplvar_contentvalues']);
}
}
}
Expand Down
Loading