1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

142 Commits

Author SHA1 Message Date
Cameron
025ff07aab Fixes #4737 Removal of type="text/javascript" and type="text/css" 2022-03-31 08:24:34 -07:00
Cameron
afc0489e8c e107 Website URL updated to https. 2021-11-29 13:31:32 -08:00
Cameron
c8e48970ce Avoid error in PHP8. 2021-10-18 13:32:35 -07:00
Cameron
73dfbf0d74 Issue #4299 - PHP8 fatal error fixes 2021-10-17 08:43:07 -07:00
Nick Liu
f6d6d1b185
Deprecate e_parse::toJS()
`e_parse::toJS()`, documented with the description

> Convert text blocks which are to be embedded within JS

, does not protect strings from injections, which appears to be its
primary use.  Additionally, it performs multiple unrelated string
modifications:

* Replace Windows line breaks with a literal `\\n` (which would later be
  parsed as `\n` in JavaScript/JSON)
* Does not modify Unix line breaks (`\n`), which is inconsistent with
  the Windows line break behavior
* Removes HTML tags
* Replaces HTML entities as `htmlentities()` does

This method cannot be fixed because its usages are inconsistent.  Most
notably, some usages surround the method's output in single quotes while
others surround it with double quotes.  Strings cannot be JSON-encoded
without confounding quotation mark styles.

All core usages of `e_parse::toJS()` have been replaced with
alternatives, which are also documented in the method's DocBlock.

Fixes: #4546
2021-08-31 00:11:14 +02:00
Cameron
9890615761 Admin menu icons for collapsed menu. 2021-02-01 18:18:30 -08:00
Cameron
acc1a9af0d Plugin script tests and PHP8 fixes. 2021-01-22 13:44:10 -08:00
Cameron
f055b49d91 PHP8 Plugin code cleanup 2021-01-21 09:38:38 -08:00
Cameron
3b0ff5d4ef RSS template upgraded to v2.x spec. Bootstrap 5 styling fixes. 2021-01-03 07:54:43 -08:00
Cameron
402d1f4126 Closes #1801 Code cleanup. Deprecated method errors added. 2020-12-22 14:48:28 -08:00
Cameron
601df26d51 Code optimization for speed and reduced memory usage. 2020-12-20 11:50:10 -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
42f0e902d4 Issue #4283 - Update deprecated sql method usage. Removed old code. 2020-12-17 05:52:54 -08:00
Cameron
e1593de8ee Removed redundant PHP closing tags. 2020-08-10 15:49:44 -07:00
Cameron
26ff074ee5 Issue #2970 Bootstrap 3 pull-left/right combined with Bootstrap 4 float-left/right. News Email/Print icon default styles added. 2019-06-17 12:27:53 -07:00
Cameron
95b336dea3 Fix for getUsersInClass() query. Chart class experiment (commented out) 2019-05-01 17:08:33 -07:00
Cameron
65f1a46fcf Fixes #3792 Poll Menu redirection issue. 2019-05-01 09:31:37 -07:00
Deltik
1f824faa69
Renormalized all text file line endings 2019-03-29 19:13:32 -05:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Tijn Kuyper
690db62a88
Fixes #3494 - additional fix in poll html markup 2018-10-09 12:20:07 +02:00
Tijn Kuyper
72f6534eae
Fixes #3494 - wrong HTML markup with poll_answer id 2018-10-08 17:04:19 +02:00
Cameron
b40b1916a3 Issue #2970 btn-default > btn-default btn-secondary 2018-01-10 15:06:40 -08:00
Cameron
43f2a70b40 Issue #6 Missing System-log LANs. Preferences page Menu caption fix. 2017-11-16 20:18:11 -08:00
Arun S. Sekher
f5bc5d1cce Fix for poll preview not shown issue #2660, Also fix broken 'forum post form poll preview' with one minor known caveat. 2017-06-28 17:35:21 +04:00
Arun S. Sekher
be1ba919d3 [LAN] - Fix 'Active from', 'to' language terms for 'All previous polls' list in oldpolls.php. 2017-06-16 01:04:18 +04:00
Cameron
c46726dd31 Merge pull request #2675 from arunshekher/oldpolls_comments_container_html_fix
oldpolls.php comments container html fix
2017-06-14 12:39:53 -07:00
Cameron
4fd79e4ae7 Issue #2683, Issue #2659 - Poll LANs. 2017-06-14 12:35:03 -07:00
Arun S. Sekher
eca9fb87ae Replace comments form and listing with 'compose_comment' method, fix comments container html validation error 2017-06-10 22:01:41 +04:00
Arun S. Sekher
c80254b24f [html] - Fix 'Element li not allowed as child of element div in this context.' validation error 2017-06-03 15:19:58 +04:00
Arun S. Sekher
b5ee9beafc [LAN] - Update POLLLAN_28 to more appropriate phrase in its context.
Update 'Previous polls' to 'All Previous polls'
2017-06-03 02:50:52 +04:00
leo
874728d22e Update poll_class.php
Missing LAN call as being moved from English php (poll) to admin/lan_admin php
2017-05-29 14:12:58 +02:00
Cameron
cdc23fb2d7 Admin-area navigation 2017-02-01 18:25:32 -08:00
Cameron
30092ef372 GUI styling fixes. Theme thumbnail preview corrected on missing preview images. 2017-02-01 08:54:28 -08:00
Cameron
43d0211590 Code cleanup: deprecated include_lan() 2017-01-23 09:41:23 -08:00
MikeyGMT
2c68d9ee52 Text to LANS #6 - Polls
Text to LANS #6 - Polls
2017-01-01 12:04:29 +00:00
lonalore
c226e9a10b Code cleanup. Fixed undefined variables. 2016-12-20 10:58:43 +01:00
Cameron
6008fe5b68 Fix for PHP Warning in PHP 7.1 2016-12-16 12:57:43 -08:00
Cameron
dc1c46acc1 Forum Post BC-Fixes. Renamed forum-post shortcodes to avoid name conflicts. 2016-04-27 14:37:43 -07:00
Cameron
f6026fe1ec Added filter by template to News admin area list. 2016-04-20 18:08:52 -07:00
Cameron
42191db509 Poll notice removal. 2016-04-20 17:37:46 -07:00
Cameron
f6ca9f8883 Newsfeeds: Fixes #1495. Admin-area rewrite using admin-ui. Newsfeed class is now compatible with PHP7. 2016-04-20 17:25:32 -07:00
Cameron
8282802d5e Fixes #1449 - Polls failing in PHP7 and Multiple options voting not functioning. 2016-03-23 16:43:41 -07:00
Jimmi08
5750b91b91 Issue #1309. e_BASE."user.php" replaced with SEF URL. 2016-01-27 11:56:59 +01:00
Cameron
796f5fa95c Header location cleanup. From now, please use e107::redirect(); to redirect to the home page, or e107::redirect('admin'); to redirect to the admin start page or e107::redirect($url); 2016-01-13 19:18:12 -08:00
Cameron
a3514ca716 Plugin/Theme modal fixes and improved commercial plugin/theme handling. 2015-07-17 23:09:36 -07:00
Cameron
d12eef2f07 Issue #1138 - Bootstrap3 theme mostly complete. 2015-07-16 01:17:21 -07:00
Cameron
6499ff72f7 Issue #1138 Added 'btn-default' where missing. 2015-07-13 19:09:30 -07:00
Cameron
af53d2dd3d Issue #6 - LANs: Replace all references to "Comments" with LAN_COMMENTS 2015-07-07 18:02:16 -07:00
Cameron
6b5d95388f Issue #6 Language-file standards. Wrap definitions in double-quotes. 2015-07-07 17:43:49 -07:00