1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00
Commit Graph

13102 Commits

Author SHA1 Message Date
Cameron
721892f5bf Signup template upgraded to full v2.x standards. Template cleanup of usersettings and contact templates. 2021-01-03 10:17:01 -08:00
Cameron
566613f050 Comment menu template now using v2.x wrappers. Template moved to templates folder. 2021-01-03 08:45:18 -08:00
Cameron
3b0ff5d4ef RSS template upgraded to v2.x spec. Bootstrap 5 styling fixes. 2021-01-03 07:54:43 -08:00
Cameron
c3c830d296 Removed <label> from rememberme in signin shortcodes. 2021-01-02 12:31:08 -08:00
Cameron
8d0af7cf46 Backward compatibility css 2021-01-02 12:28:32 -08:00
Cameron
dd184a024c Issue #4332 Bootstrap 5 Fixes 2021-01-02 12:06:46 -08:00
Cameron
833d3f6133 Issue #4332 Bootstrap 5 Menu styling: news, login, online menus. 2021-01-02 10:34:23 -08:00
Cameron
a7d8b1d41f Styling Rules Menus: btn-sm and btn-primary for primary buttons. btn-sm btn-secondary for additional buttons. 2021-01-02 09:43:54 -08:00
Cameron
4d4750e9cc Issue #4332 - Chatbox menu styling. PM menu button size fix. 2021-01-02 08:51:34 -08:00
Cameron
204603f38a Issue #4332 - BS4/5 New Forum Posts menu template fixes. 2021-01-02 08:11:20 -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
6f3040a64a Disable long method check. 2020-12-31 17:05:21 -08:00
Cameron
0d5b4b299e Issue #4332 - replaced href value with '#' and added data-bs-toggle='dropdown' to make dropdown function. 2020-12-31 16:58:27 -08:00
Cameron
afc1608392 Issue #4332 - Used .dropdown-menu-end to 'pull-right' 2020-12-31 16:50:33 -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
60027348b4 Fixes "Updates to be Installed" functionality in Plugin Manager. 2020-12-31 10:24:13 -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
5f1fc512fc Signin template tweaks. 2020-12-31 07:29:05 -08:00
Cameron
6ef9b8f2f2 Issue #4325 - use vartrue(); 2020-12-31 07:10:25 -08:00
Cameron
03e536a5b4 Merge pull request #4328 from Jimmi08/patch-6
Issue #4327  -  correct HTML markup for PM dropdown
2020-12-31 07:03:47 -08:00
Cameron
fc758b13d6 Merge pull request #4326 from Jimmi08/patch-5
BS3 support for dropdown tooggle
2020-12-31 07:03:19 -08:00
Cameron
1b98867f24 Increased logging during forum upgrade. 2020-12-31 06:55:31 -08:00
Nick Liu
ad44a3d5f0 PHP 8: Fixed fatal error in fileinspector.php
```
PHP Fatal error:  Uncaught TypeError: Unsupported operand types: array & int in ~/public_html/e107_admin/fileinspector.php:1266
Stack trace:
#0 ~/public_html/e107_admin/fileinspector.php(717): file_inspector->getOldVersionOfPath()
#1 ~/public_html/e107_admin/fileinspector.php(677): file_inspector->generateDirectoryHtml()
#2 ~/public_html/e107_admin/fileinspector.php(961): file_inspector->generateScanResultsHtml()
#3 ~/public_html/e107_admin/fileinspector.php(156): file_inspector->scan_results()
#4 ~/public_html/e107_handlers/admin_ui.php(1076): fileinspector_admin->init()
#5 ~/public_html/e107_admin/fileinspector.php(249): e_admin_dispatcher->__construct()
#6 {main}
  thrown in ~/public_html/e107_admin/fileinspector.php on line 1266
```
2020-12-31 13:22:42 +01:00
Jimako
d2e72a2855 FIX #4327 - correct HTML markup for PM dropdown 2020-12-31 11:37:21 +01:00
Jimako
788929a9b7 BS3 support for dropdown tooggle 2020-12-31 06:40:27 +01:00
Cameron
515d81ebb7 Sigin plugin/shortcode added. 2020-12-30 14:24:38 -08:00
Cameron
ffc605f936 Fixes #4324 typo causing fatal error. 2020-12-30 10:18:33 -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
Cameron
710394273c Merge pull request #4323 from Jimmi08/patch-4
added info titles for menu, added alt6 markup,
2020-12-30 07:58:49 -08:00
Cameron
3ad4964b2d BS5 fixes. 2020-12-30 07:57:43 -08:00
Cameron
072c2a129a Bootstrap5 tweaks. Added support for Brazilian Portuguese. 2020-12-30 07:16:18 -08:00
Jimako
14a7198555 added info titles for menu, added alt6 markup,
simplified items.
2020-12-30 11:02:37 +01:00
Cameron
a4e380d6a1 Navigation Menu added. 2020-12-29 12:48:57 -08:00
Cameron
10ad436e28 Support for Bootstrap5. Clear cache in theme manager when choosing themes. 2020-12-29 12:43:25 -08:00
Cameron
e595c0841a Fixes Media-Manager remote image import. 2020-12-29 11:13:18 -08:00