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

115 Commits

Author SHA1 Message Date
Cameron
7de11ed496 Added tokens to some links. 2022-01-01 13:05:17 -08: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
6d29e4244d Fix icon appearing on admin language selection. Minor tweaks 2021-02-13 07:58:24 -08:00
Cameron
b4c33735d6 Closes #4380 - Moved submit button on language file editor modal. Removed some PHP errors. 2021-02-12 14:27:21 -08:00
Cameron
d985b830f4 Removed some unused LANs. Cleaned up the deprecated LAN tool a little. 2021-02-11 12:29:16 -08:00
Cameron
49b8a9690d Issue #4020 2 new prefs added. Allow default collapsing of side-bar and enable/disable labels on nav-bar.
Icon cleanup and will now try to guess the right icon based on mode/action. Styling fixes. Removed unused admin stylesheets from bootstrap3.
2021-02-03 11:46:32 -08:00
Cameron
76dbd4469e Fixed error in {XURL_ICONS} shortcode. Added a test. Fixed some warnings in the admin/language page. 2021-01-25 17:57:34 -08:00
Cameron
04bbad449a Test admin scripts are parsing correctly. 2021-01-16 13:32:35 -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
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
daf77daa21 Fixes Issue #4229 - Online language packs not displaying if version contains "-rc1" 2020-08-19 10:06:53 -07:00
Cameron
9bab8cc8c4 Closes #3345 e107.org updated to display current language pack and 2 versions earlier. 2018-08-04 15:08:32 -07:00
Cameron
b50677d50a Issue #2860 - Additional Mark-Time added for 'Online' for reviewing performance. 2018-01-13 14:11:46 -08:00
Cameron
da3dfa1a96 Disabled unused code. 2018-01-13 13:00:44 -08:00
Gábor
28003c70b1
Update language.php 2017-11-12 12:34:53 +01:00
Cameron
e1b5dd9449 Display pre-release language packs. 2017-11-07 14:21:06 -08:00
Cameron
7317fd1309 Admin > Language : LAN Fix. 2017-05-03 12:30:26 -07:00
Cameron
4650aa8d91 New constant: e_VERSION for the currently installed version of e107. Prevents the need for further loading of ver.php and useful to detect when an upgrade of core files has been performed. 2017-04-27 15:21:20 -07:00
Cameron
077b1d34a7 Feature: Language-Packs can now be downloaded and installed without leaving the admin area. 2017-04-23 12:38:05 -07:00
Cameron
cdc23fb2d7 Admin-area navigation 2017-02-01 18:25:32 -08:00
Cameron
43d0211590 Code cleanup: deprecated include_lan() 2017-01-23 09:41:23 -08:00
Tijn Kuyper
347c9f9af0 Update methods to load LAN files in Admin Area
(fingers crossed there are no typo's...)
2017-01-17 01:33:03 +01:00
MikeyGMT
16b55dc7e7 Deprecated Lans Sort Files in Order and Move Help To top Row #2278
Deprecated Lans Sort Files in Order and Move Help To top Row #2278
Does not resolve missing handlers and for phrase in search all files.
2017-01-15 10:59:58 +00:00
lonalore
d03cdda0af Code cleanup. 2016-12-15 15:08:49 +01:00
Cameron
fd1a026f88 PHP7 Fix. 2016-11-28 16:27:17 -08:00
Cameron
0fb2d8d094 Merge pull request #1956 from yesszus/patch-4
Update e107_admin/language.php
2016-10-25 11:37:30 -07:00
Cameron
2720c2af16 Fixes #1955 - Language 'tables' option hidden when not enabled. 2016-10-25 11:33:51 -07:00
Gábor
359b6e3a7f Update language.php
Add bbcode support.
2016-10-25 08:02:58 +02:00
MikeyGMT
fc71008951 #6 Clean up Lans on Core Languages & Checker - addDebug reversed
#6 Clean up Lans on Core Languages & Checker - I have reverted
translations from addDebug messages.
2016-10-11 14:48:13 +01:00
MikeyGMT
c5fbb5332c #6 Clean up Lans on Core Languages & Checker
#6 Clean up Lans on Core Languages & Checker
2016-10-10 20:06:43 +01:00
Cameron
5b37aa6deb Fix for admin language permissions. 2016-06-17 18:21:40 -07: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
44a6298b79 Issue #6 - Removed URLs from LANs 2015-08-31 17:17:28 -07:00
Cameron
8356f01d2b Admin Latest and Status indicators upgraded to bootstrap3. 2015-07-22 19:49:02 -07:00
Cameron
a26de7bc84 Issue #1138 - Bootstrap3 UI fixes. 2015-07-15 19:33:15 -07:00
Cameron
ecd6e93a85 Issue #6 Language-file optimization. 2015-07-11 14:46:29 -07:00
Cameron
f490b49c79 Issue #6 Language-file optimization. 2015-07-11 14:11:56 -07:00
Cameron
9c6cfc0b86 Issue #6 Language-file optimization. 2015-07-10 15:41:07 -07:00
Cameron
c3d8cd9236 Issue #5 Language File Optimization. 2015-07-10 15:04:14 -07:00
Cameron
9a9c4096ef Issue #6 Core Language-File checking fixes and LAN optimization. 2015-07-10 14:25:16 -07:00
Cameron
349a1ba8a3 Admin Language area finally using the adminUI. 2015-07-09 19:24:59 -07:00
Cameron
483d43a829 MySQL: Refactored 'db_Table_exists' to 'isTable' method. (BC compatible) and removed use of pref global. 2015-07-07 13:02:34 -07:00
Cameron
64f9a747e2 Language admin ui fixes. 2015-07-07 12:03:45 -07:00
Cameron
6d4d02116b Language tables GUI cleanup. data-return option added to e-expandit selector. 2015-07-04 11:22:41 -07:00
Cameron
cf4ac712bd LAN Fixes. Core language-file verification tool re-enabled and enhanced. (developer mode only) 2015-07-03 19:39:02 -07:00
Lóna Lore
7eedeb8237 remove duplication 2015-05-08 08:47:22 +02:00
Lóna Lore
96f3332fb1 only use [x], [y], [z] replacement patterns 2015-05-07 10:55:44 +02:00
Lóna Lore
fe6e09d08d removed debug messages from LAN files 2015-05-07 10:44:11 +02:00
Lóna Lore
f48ca466e9 Issue #6: Remove and optimize (hardcoded) LANS 2015-05-01 12:46:46 +02:00