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

622 Commits

Author SHA1 Message Date
Cameron
25e5978ae8 CLI mode debug class clean exit fix. 2021-01-16 14:49:56 -08:00
Cameron
8f4b3429dc Removed old comments from e107_class.php. userlogin class cleanup. New user login test added. 2021-01-16 08:43:51 -08:00
Cameron
d51f5cb936 Legacy textparse class removed. Separate emote and profanity classes. 2021-01-14 17:26:15 -08:00
Cameron
aa3c267ef6 Issue #4345 - Fixes {NEWS_BODY=extended} 2021-01-14 07:54:16 -08:00
Cameron
992b7b4bfe Tests for SEF URLs. Search page fix. 2021-01-13 16:16:50 -08:00
Cameron
ca471b31db PHP8 Fix for search.php . e_HTTP fix for CLI mode. 2021-01-13 11:20:58 -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
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
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
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
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
f9492a8c89 Issue #4332 - Bootstrap5 fix for toBadge() 2021-01-03 11:01:54 -08: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
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
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
072c2a129a Bootstrap5 tweaks. Added support for Brazilian Portuguese. 2020-12-30 07:16:18 -08:00
Cameron
10ad436e28 Support for Bootstrap5. Clear cache in theme manager when choosing themes. 2020-12-29 12:43:25 -08:00
Cameron
94f772577a trackback plugin removed. 2020-12-29 10:04:33 -08:00
Cameron
6ed9ad3e0d Simplified inAdminDir(). 2020-12-27 12:13:51 -08:00
Cameron
026415b476 Moved the "in admin area" check into its own method. Added a test for it. Removed the outdated user/usersettings check. 2020-12-27 11:25:48 -08:00
Cameron
51df14c054 Code optimization 2020-12-27 09:50:21 -08:00
Cameron
7dfac0dcfa Issue #4299 - PHP8 compatibility fixes. 2020-12-25 10:23:56 -08:00
Cameron
812b7cbcb3 Code cleanup. Moved checkvalidtheme() out of class2.php and into e_theme as initTheme() 2020-12-21 17:46:32 -08:00
Cameron
630f3f415f Improved detection of deprecated functions/methods and display in DEBUG mode: deprecated. 2020-12-21 10:00:28 -08:00
Cameron
153cf33aa7 Fix test for PHP 5.6 2020-12-20 13:44:18 -08:00
Cameron
bdb4104f9c Moved parseheader() to e107 class as renderLayout() Added test. 2020-12-20 13:25:03 -08:00
Cameron
b0fc50890b Code optimization 2020-12-19 09:50:29 -08:00
Cameron
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -08:00
Cameron
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
Cameron
44e260b121 Code cleanup and optimization 2020-12-14 16:21:48 -08:00
Cameron
a8c79eda5b e107::wysiwyg() test. Still needs some work for reliable result. 2020-12-12 20:10:41 -08:00
Cameron
c1f5a6f8dc Increase speed of TinyMce footer. 2020-12-12 12:40:26 -08:00
Cameron
cf14705535 Code speed optimization 2020-12-12 11:32:23 -08:00
Cameron
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
Cameron
7229aa6c50 Preparations for WebP conversions. e107::title() added to eventually replace defining e_PAGETITLE. 2020-12-08 18:15:08 -08:00
Cameron
b4596dda47 Old PHPThumb class removed. (Replaced by Intervention) 2020-12-06 11:33:09 -08:00
Cameron
86690cee65 Parser staticUrl() test and JS manager addLink() test added. 2020-12-03 14:20:34 -08:00
Cameron
69cb52e848 staticUrl() to always returns a full path. 2020-12-03 10:31:19 -08:00
Cameron
f621aeaa56 e107::link() now supports a plain HTML string. Useful for font preloading.
eg. e107::link('rel="preload" href="{THEME}fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin');
Bootstrap automatic font preload added.
2020-12-03 08:22:51 -08:00
Cameron
c9bc789b79 Added an option for pre-loading of library assets. More info: https://web.dev/uses-rel-preload/ 2020-12-02 13:17:23 -08:00
Nick Liu
52ecd679e6
Replaced JavaScript minifier with one that works with PHP 8.0
(Looks like tedivm/jshrink is abandoned)
2020-11-30 12:55:03 +01:00
Nick Liu
f256b924ce
Fix all PHP 8.0 test failures 2020-11-30 12:55:00 +01:00
Cameron
cc223aa7f6 Fixes #4262 - Inaccurate "include" path debug message. 2020-11-02 10:30:41 -08:00
Cameron
be958eb708 Allow SEF-URL generation to function in CLI mode without 'e_MOD_REWRITE' enabled. (must still be 'active' in prefs) 2020-08-12 14:09:42 -07:00
Cameron
0c8668ee51 PHP Error removal when using CLI. 2020-08-11 09:57:39 -07:00