1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

5033 Commits

Author SHA1 Message Date
Cameron
182164a4a0 Issue #4344 Signup shortcode Extended user field fix. 2021-01-12 12:19:37 -08:00
Cameron
56f8389417 CoreTemplate tests. FPW BC constant fix. 2021-01-11 18:05:29 -08:00
Cameron
1d8df4c150 Renamed some methods in e_signup. 2021-01-11 16:46:33 -08:00
Cameron
c8a070de27 PHP8 Error fix for failed admin area login. Debug Paths code improvement. 2021-01-11 16:29:32 -08:00
Cameron
67e7823a60 Simple login test added. 2021-01-11 15:14:56 -08:00
Cameron
3d217bc49b Forum and User-extended shortcode improvements and test tweaks. 2021-01-11 08:45:08 -08:00
Cameron
d4df39bc75 More User Extended Tests. 2021-01-10 18:07:05 -08:00
Cameron
33b76590df User-extended cleanup 2021-01-10 14:37:42 -08:00
Cameron
4012ead989 More user extended tests, including {USER_EXTENDED} shortcode. 2021-01-10 10:08:34 -08:00
Cameron
e948c6fc11 PHP8 - BC Fix for newforumposts_menu.php 2021-01-09 10:08:57 -08:00
Cameron
fa4900e2c4 PHP8 Fixes. Only attempt to load plugin language files when the languages folder exists. BC avatar function fix. 2021-01-09 09:09:12 -08:00
Cameron
c8ba5fe30a Shortcode tests for list_new, pm, rss_menu, signin and simpleParse() 2021-01-08 17:00:23 -08:00
Cameron
487c10fc1d Fix for computeLapse() displaying just "in" by itself. 2021-01-08 13:49:23 -08:00
Cameron
eec9a163cb PHP8 fixes. Tests added for online shortcodes, page/e_shortcode.php 2021-01-08 11:46:30 -08:00
Cameron
452f594ad2 Issue #4336 and tests for e107::plugLan() (e107::lan()) . Error message will be displayed in debug mode when a LAN file failed to load. 2021-01-08 09:56:33 -08:00
Cameron
eb2cb9a7cb PHP8 Fatal error fix. 2021-01-07 14:11:54 -08:00
Cameron
3f5d3786b2 PHP8 fixes and shortcode tests for forum, gallery, hero and login_menu. admin-shortcode time fix. 2021-01-07 13:24:55 -08:00
Cameron
3d19db894b PHP8 Fixes and shortcode tests for chatbox_menu, download, faqs, forum and forum-post 2021-01-07 09:42:19 -08:00
Cameron
ac9c19bae9 PHP8 class cleanup 2021-01-06 11:52:29 -08:00
Cameron
f0ce3ac4a9 PHP8 Fixes. RSS speed improvement. 2021-01-05 16:40:01 -08:00
Cameron
53866fd6b9 Improved check for CLI mode. Parsed $argv to $_GET in CLI mode. 2021-01-05 12:25:28 -08:00
Cameron
661fd6fb2c Test for toRss() 2021-01-05 10:36:58 -08:00
Cameron
741d91a76b Additional checks for constants. Disable addon lookup cache in debug mode. 2021-01-05 10:04:26 -08:00
Cameron
7dec5cf40e More $_E107 options 2021-01-05 08:54:09 -08:00
Cameron
ed0629a976 Issue #4332 - Bootstrap5 fixes. 2021-01-04 13:02:19 -08:00
Cameron
f8f40a23fe Missing page-subtitle field added. 2021-01-04 12:48:37 -08:00
Cameron
26899dcfbc Comment template cleanup. 2021-01-04 08:16:21 -08:00
Cameron
11c768d3c0 Fixes shortcode wrapper conflict within the same template. 2021-01-04 07:47:40 -08:00
Cameron
f20f00408c Updated vendor folder. 2021-01-04 05:24:35 -08:00
Cameron
f9492a8c89 Issue #4332 - Bootstrap5 fix for toBadge() 2021-01-03 11:01:54 -08:00
Cameron
7c14cd7b10
Merge pull request #4335 from Deltik/fix-3867
Accurate relative path calculations in e107::set_paths()
2021-01-02 07:51:18 -08:00
Moc
ccd22d4ea5
Clear addons update check after plugin install, and when clearing all caches 2021-01-02 16:34:11 +01:00
Nick Liu
c533e6c1e3
#3867: Accurate relative path calculations in e107::set_paths()
e107 historically conflated e_BASE with a URI path and a local file
system path. e_BASE seems to have been redefined later to mean a
relative path to the e107 root from the calling script, and e_HTTP was
introduced to resolve URIs from the web browser. e_ROOT is the absolute
path represented by e_BASE.

Because of legacy usage of e_BASE depending on it being a relative path,
e_BASE must remain as a relative path, but how the path was determined
was incorrectly implemented.

This commit fixes multiple issues with e107::set_paths():

* e_BASE is now a relative path calculated reliably by a helper function
* If ./e107_handlers/e107_class.php is in a sensible place and
  ./class2.php can be found one directory up, this path will be used as
  the traversal target.
* If ./e107_handlers/e107_class.php is at an exotic path,
  debug_backtrace() will be inspected to find "class2.php", and a
  relative path will be made to the dirname() of that class2.php
* In CLI mode, chdir() is now called to set the working directory to the
  e107 root. This is to maintain relative path consistency. Previously,
  the absolute path would be stored in e_BASE, which may lead to
  inconsistent behavior.
* e_HTTP is now resolved from $_SERVER['SCRIPT_NAME'] instead of
  $_SERVER['PHP_SELF'] because arbitrary strings and slashes can be
  added to the end of $_SERVER['PHP_SELF'] and could lead to e_HTTP
  storing URIs that descended too far.

Fixes: #3867
2021-01-02 02:13:11 +01:00
Nick Liu
2eebd4f0ca
e_file_inspector: No longer conflate insecure files and cached old files
Related ticket: https://github.com/e107inc/e107/issues/4312
2021-01-02 01:07:40 +01:00
Cameron
5438da3764 layout override option when theme preview is active. themepreview=xxx&layout=xxxx 2021-01-01 14:11:56 -08:00
Cameron
78b0079a03 Theme Preview working again. Use ?themepreview=themeDir 2021-01-01 14:05:51 -08:00
Cameron
1a510cb897 Bootstrap 4 fixes. USERTHEME fix. 2021-01-01 12:29:43 -08:00
Cameron
14862f0463 PHP8 Warning removal. 2021-01-01 10:45:26 -08:00
Cameron
81634d5f5a Issue #4332 Carousel fixes. Newsfeed now uses json to store data. 2021-01-01 09:33:51 -08:00
Cameron
e6ceafd496 Fixes #4334 - Ajax ordering on Extended User fields. 2021-01-01 07:38:24 -08:00
Cameron
5d0b8ff5e1 Fix for Bootstrap5 alert messages. 2020-12-31 16:29:25 -08:00
Cameron
a7d637b02f Media-Manager ajax filter fix. 2020-12-31 16:14:43 -08:00
Cameron
a09e8605c5 Fix typo in isImage() 2020-12-31 15:00:12 -08:00
Cameron
8906cf1e26 When using Bootstrap 5 and no template is found, fallback to bootstrap 4 template if present in core folder. 2020-12-31 11:46:53 -08:00
Cameron
6e19d79a63 Ajax form fix. 2020-12-31 10:57:22 -08:00
Cameron
8871cdd097 Styling fixes 2020-12-31 09:31:30 -08:00
Cameron
5d7f921023 PHP8 Warning fixes. 2020-12-31 09:06:20 -08:00
Cameron
798638a590 PHP warning fixes. 2020-12-31 08:01:34 -08:00
Cameron
515d81ebb7 Sigin plugin/shortcode added. 2020-12-30 14:24:38 -08:00
Cameron
b5ff8c76f7 Fix for lancheck failing due to ../ in the URL on plugin/theme folders. 2020-12-30 10:11:04 -08:00