1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00
Commit Graph

12764 Commits

Author SHA1 Message Date
Cameron
bece1934c2 FileInspector progress bar 2020-04-02 12:13:04 -07:00
Cameron
d640ee8ccf File Inspector UI enhancements. 2020-04-01 16:32:23 -07:00
Cameron
4e2a7af367 Merge pull request #4119 from Deltik/core-image-exclusions
CoreImage: Support path exclusions
2020-04-01 11:36:34 -07:00
Nick Liu
6253020c92 CoreImage: Support path exclusions
install.php and robots.txt should not be in the database.
2020-04-01 13:29:46 -05:00
Cameron
94b9f59e62 Remove .github folder after git pull. 2020-04-01 10:22:03 -07:00
Nick Liu
89cac32c17 Removed unexpected ob_end_flush() at the beginning of fileinspector.php 2020-03-31 19:51:11 -05:00
Cameron
0f961176d6 PHP Notices. 2020-03-31 11:56:04 -07:00
Nick Liu
a04db4e2c8 Hotfix: Don't fatal error if core_image.php is corrupt 2020-03-29 15:56:33 -05:00
Cameron
4e78b5e1ad Merge pull request #4114 from e107inc/build-release
Automated Release Builds
2020-03-28 15:30:04 -07:00
Cameron
fd6c9563bd datepicker() deprecated $option['type'] and added $option['mode'] as a replacement. Provides a workaround to a conflict involving a custom 'type' in the writeParms(). 2020-03-28 15:23:38 -07:00
Cameron
428ca4ad0b Additional date filter options added for 3/6/9 months 2020-03-28 14:30:28 -07:00
Cameron
ea5493f723 Avoid a conflict when using a data-label within a carousel. 2020-03-28 13:10:35 -07:00
Nick Liu
07f5bebab5 Code cleanup for automated release builds
Low-hanging resolutions for Code Climate
2020-03-27 21:57:51 -05:00
Nick Liu
5eb116142a File Inspector: Added missing glyph "folder_uncalc" 2020-03-27 17:32:59 -05:00
Nick Liu
03dfb5cce3 Implemented insecure file check in File Inspector
Bugs fixed:

* Security failure status is now prioritized in
  file_inspector::getStatusForValidationCode()
* File Inspector list view now supports filters
2020-03-27 17:06:16 -05:00
Nick Liu
aca78c086b fileinspector.php: Corrected a typo: </dit> → </div> 2020-03-27 17:06:16 -05:00
Nick Liu
b4f55049f8 File Inspector now shows the old e107 version of core files
Bugfixes related to this change:

* e_file_inspector: During validation, the checksum is now calculated,
  even if the file is old.
* e_file_inspector_json: Strip the "v" from the beginning of version
  numbers in the database to make them proper PHP-standardized versions.
2020-03-27 17:06:16 -05:00
Nick Liu
09d3d2b166 Reimplemented File Inspector "Display results as"
List mode is supported again

Also added file size support
2020-03-27 17:06:15 -05:00
Nick Liu
f73d491df5 Removed support for "Check Integrity Of Core Files"
Integrity is now always checked.
2020-03-27 17:06:15 -05:00
Nick Liu
e9e080afec Reintroduced filters in File Inspector
Now supports:

* "Show Core Files"
* "Show Missing Core Files"
* "Show Non Core Files"
* "Show Old Core Files"

Removed support for:

* "Exclude Language-Files"
2020-03-27 17:06:15 -05:00
Nick Liu
00d171473e Validation bits improvement for e_file_inspector
Now File Inspector detects old files regardless of their hash value.
2020-03-27 17:06:15 -05:00
Nick Liu
6095c94de3 Minimum viable rewrite of File Inspector frontend 2020-03-27 17:06:14 -05:00
Nick Liu
6f6556178f e_file_inspector_json_phar: Smaller core image
e_file_inspector_json_phar is an extended implementation of
e_file_inspector_json that encapsulates a JSON core image into a
gzip-compressed phar.

This results in space savings of over 60% compared to plain JSON.
2020-03-27 17:06:14 -05:00
Nick Liu
b425b4e45d CoreImage: API rework 2020-03-27 17:06:14 -05:00
Nick Liu
76bb9f6ad8 Extra performance in e_file_inspector_json
Squeezed out more performance at the cost of memory usage
2020-03-27 17:06:13 -05:00
Nick Liu
b8ed70693f Restored JSON core image generator for performance
PDO SQLite was performing unacceptably poorly.
Let's just load the entire integrity image into RAM…
2020-03-27 17:06:13 -05:00
Nick Liu
90bdc88d55 Performance of e_file_inspector_sqlphar::pathToDefaultPath()
Optimized performance of e_file_inspector_sqlphar::pathToDefaultPath()
by eliminating expensive method calls
2020-03-27 17:06:13 -05:00
Nick Liu
e10c3230f4 Bugfixes and performance optimization for e_file_inspector
- MOD: e_file_inspector::validate() will no longer bother with
       checksumming a file if the database hash is not present for the
       requested version.
- MOD: Better check for e_file_inspector::VALIDATED_DETERMINABLE
- MOD: e_file_inspector::VALIDATED_UPTODATE will now pass if there is no
       checksum in the database and no calculable checksum in the real
       file.
- FIX: Better documentation for
       e_file_inspector_interface::VALIDATED_DETERMINABLE
- FIX: Use the same bit for e_file_inspector::VALIDATED for a full
       validation check in e_file_inspector::validate()
2020-03-27 17:06:12 -05:00
Nick Liu
bb1c32489c Add a version filter to e_file_inspector::getPathIterator() 2020-03-27 17:06:12 -05:00
Nick Liu
0494000356 Rewrote e_file_inspector validation constants
Now uses bit flags, as the previous approach of "overriding" the
validation code may hide information.  Previously,
e_file_inspector::VALIDATION_FAIL could be overridden by
e_file_inspector::VALIDATION_OLD.  Now, e_file_inspector::VALIDATED_HASH
and e_file_inspector::VALIDATED_UPTODATE provides information about
both.
2020-03-27 17:06:12 -05:00
Nick Liu
695774569c Add old e107 releases to workflow build-release.yml 2020-03-27 17:06:12 -05:00
Nick Liu
e828d61b28 Add bzip2 support to workflow test-unit.yml 2020-03-27 17:06:11 -05:00
Nick Liu
0e7ad8a1b0 Rewrite e_file_inspector implementation: Use SQLite phar 2020-03-27 17:06:11 -05:00
Nick Liu
84081c3d3d CoreImage: Pack SQLite into phar
This has two benefits:

1. Protects the SQLite database from being accessed on the Internet by
   having the e107_INIT constant check.
2. Compresses the SQLite database, saving over ⅔ of the space!
2020-03-27 17:06:11 -05:00
Nick Liu
d3539cd5b5 CoreImage: Table for versions, slight space savings 2020-03-27 17:06:10 -05:00
Nick Liu
6a9bfeee5f CoreImage: Performance optimization for removed files
Much faster checksumming of deleted files by using git-checkout instead
of git-show
2020-03-27 17:06:10 -05:00
Nick Liu
caa0826c5e CoreImage: Replaced JSON with SQLite
Looks like SQLite scales better when there are more files to put in the
database.
2020-03-27 17:06:10 -05:00
Deltik
20dbdefb77 Began work on the core_image.php reader 2020-03-27 17:06:10 -05:00
Deltik
6aeee58ac2 JSON reimplementation of CoreImage 2020-03-27 17:06:09 -05:00
Nick Liu
e8a68f15d1 Reimplemented core_image.php deprecated checksums
Format is different and currently incompatible.  The checksum has been
replaced with an associated array where the keys are the e107 version
and the values are the checksum from that e107 version.
2020-03-27 17:06:09 -05:00
Nick Liu
0cf9483075 Defensive cleanup of e107_make.php 2020-03-27 17:06:09 -05:00
Nick Liu
0d80b82b49 Bare minimum to build releases in GitHub Actions 2020-03-27 17:06:08 -05:00
Nick Liu
537106c64f Code warning cleanup of e107_make.php 2020-03-27 17:06:08 -05:00
Nick Liu
a9d8344659 Reformatted e107_make.php 2020-03-27 17:06:08 -05:00
Nick Liu
39c097953f Updated make.ini for #4099
App root files introduced in https://github.com/e107inc/e107/pull/4099
2020-03-27 17:06:08 -05:00
Nick Liu
554baf07e8 Imported e107_make.php and make.ini to begin release builds
(Code from @CaMer0n)
2020-03-27 17:06:07 -05:00
Nick Liu
ab3444afa1 .editorconfig for IntelliJ mostly fitting the existing code style 2020-03-27 17:06:07 -05:00
Cameron
3f415f70c1 Admin-UI: Log Query, Page and Observer Methods to e_LOG when in debug mode. 2020-03-27 14:06:44 -07:00
Cameron
3173c9c173 Prevent e-modal conflict with other modals. (also supports data-modal-target attribute) 2020-03-26 15:30:09 -07:00
Cameron
f4b4ba61d5 Clear system cache after running Git pull or sync. 2020-03-26 11:53:37 -07:00