Nick Liu
6b75f341ad
#4938 : Workaround for PHP 8.2.0 segmentation fault / assertion error
...
Casting a `SimpleXMLElement` to an array should be equivalent to
`get_object_vars(…)` as far as I can tell. At least all existing
tests pass and I don't see any visual regressions upon making this
change.
By replacing `get_object_vars(…)` with a cast to array, we sidestep
this PHP 8.2.0 bug: https://github.com/php/php-src/issues/10200
Fixes: https://github.com/e107inc/e107/issues/4938
2023-01-02 14:24:57 +01:00
Cameron
ba82fec626
Closes #4745 - check for xml/install.xml during plugin installation.
2022-04-04 18:30:33 -07:00
Cameron
55980a29a8
Generated PHPDoc for all classes in e107_handlers where one was missing. toNumber() updated to always return int or float.
2022-04-04 10:54:24 -07:00
Cameron
8d29f97bd2
Sort by primary id when exporting tables. Alert-box styling fix on modern-light admin theme.
2021-05-11 13:26:27 -07:00
Cameron
3f8e043998
Replaced e107::getAdminLog() with e107::getLog(). e107::getAdminLog() will continue as a deprecated alias.
2020-12-22 09:36:02 -08:00
Cameron
b6dbb86c1d
Issue #4270 - Admin-UI: WebP support when rendering 'type'=>'image'
2020-12-17 09:55:51 -08:00
Cameron
44e260b121
Code cleanup and optimization
2020-12-14 16:21:48 -08:00
Cameron
f605ddc552
Code optimization and cleanup.
2020-12-10 15:52:48 -08:00
Cameron
afaac88003
PHP8 Compatibility and code cleanup.
2020-12-08 12:21:12 -08:00
Cameron
2a1b4d75df
Fix for installation issue.
2019-09-03 05:09:19 -07:00
Cameron
f5317e329f
Theme preferences import/export added to 'database' admin area.
2019-07-09 12:08:52 -07:00
Cameron
ce7f3feb38
PDO class now used by default. mysql_class.php currently deprecated until it is modified to use mysqli. Install routine upgraded. Install logging vastly improved.
2019-06-03 15:27:36 -07:00
Cameron
27d12c0ab6
PHP7 fixes
2019-01-18 14:07:59 -08:00
Cameron
e0d988aaeb
Issue #3524 XML import/export array issue.
2018-11-15 14:20:08 -08:00
Deltik
ee19eac05d
PHP 7.2 consistency hack in xmlClass::xml2array()
...
This is a workaround to make the output of xmlClass::xml2array() in PHP
7.2 equal to that of prior PHP versions.
Consider this fix to be a part 2 of #3026 .
PHP 7.2 changed the behavior of how we extract tags from
SimpleXMLElement resources. This hack adds a toleration for either the
PHP 7.2 behavior and the past behavior, which allows consistent parsing
of XML files.
One side effect of this change is the fixing of an innocuous bug that
provided blank values in some "@value" keys that should not have existed
in the first place. This should hopefully have no practical effect on
current uses of the modified method.
Fixes : #3027
2018-02-05 09:28:57 -06:00
Deltik
b0f6cc8aa1
Sanity check in xmlClass::xml2array() for PHP 7.2
...
Since PHP 7.2, running get_object_vars() on a SimpleXMLElement object
may return sequential arrays rather than nothing if there were no
children.
This commit introduces a sanity check in xmlClass::xml2array() that
ensures child tags are processed rather than sequential array keys.
This sanity check does not affect past major versions of PHP.
Fixes : #3018
Supersedes: #3019
2018-02-04 05:57:54 -06:00
Cameron
707dca17a8
Remove wysiwyg from theme install settings.
2017-12-17 16:11:09 -08:00
Cameron
0c1bbbd5c8
Fix for importing/exporting polls and ratings which use chr(1)
2017-12-17 08:49:17 -08:00
Cameron
0fda16e713
Added lastErrorMessage() method to XML class.
2017-09-14 12:07:30 -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
ff38b2ad07
Closes #2309 - AdminUI Batch Export option added.
2017-01-27 18:02:57 -08:00
Cameron
aaf9478278
Database > Export : Rename file if theme/install/install.xml already exists.
2017-01-26 11:10:44 -08:00
Cameron
68c9e840b5
Plugin Pref import routine.
2016-12-25 08:47:48 -08:00
Cameron
5f0419cac4
Export of plugin prefs complete.
2016-12-24 12:41:06 -08:00
Cameron
cbc6beb789
Preparations for plugin-pref export support.
2016-12-24 09:34:00 -08:00
Cameron
67e0b43734
Issue #6 , Fix for duplicate LAN_IP, PHP 7.1 fixes. Fix for CLI failing when SSL is enabled, but command is using 'http'. Allow cURL to follow redirects, preventing broken feeds under certain circumstances.
2016-12-16 12:13:52 -08:00
Cameron
52b473dd33
Extra debug option for tracking XML issues.
2016-10-28 09:09:47 -07:00
Cameron
8e44dd147d
CURL init cleanup.
2016-06-01 10:41:47 -07:00
Cameron
60f1d78dce
MySQL error message fix. Custom Page userclass fix. Media-manager import fix for files contained '%'. XML DB export fix. Other News custom caption fix. FB Like menu without app_id fix.
2016-05-30 15:19:19 -07:00
Cameron
a16ee111e9
Installation configuration fixes. RSS install now included default configuration correctly.
2016-02-25 18:45:20 -08:00
Cameron
53b6519f55
Fix for CDATA in XML feeds. e107 blog feed now working with SSL enabled.
2016-02-16 13:08:15 -08:00
Cameron
4e8412b16c
Issue #1287 - PHP7 and SSL fixes.
2016-02-14 19:00:12 -08:00
Cameron
486f3d4961
Issue #1356 - PHP7 Fixes.
2016-02-14 12:15:55 -08:00
Cameron
9fe58ba256
Additional info added to install log when failures happen.
2016-02-11 13:07:59 -08:00
Cameron
9c27f20290
Fix for xml class being unable to parse media: and opensearch: xml tags.
2015-06-16 01:09:27 -07:00
Cameron
3ed8e426e0
Admin-log speed optimization and minor enhancements.
2015-03-08 11:12:42 -07:00
Cameron
e576370e57
Remove some references to deprecated functions/methods.
2015-02-14 23:34:15 -08:00
SecretR
1bf95ff0ed
phpDoc fix
2014-02-25 11:43:28 +02:00
Cameron
dd57ec8db8
Fix for 'silent' pref save. Removed deprecated notice from XML class.
2014-01-21 05:12:58 -08:00
Cameron
c0ea76bbe6
BC Fix for when $NEWSLISTSTYLE is used.
2014-01-20 04:15:59 -08:00
Cameron
8796039d08
Backward compatibility fixes.
2014-01-20 03:26:15 -08:00
Cameron
cf18561926
Fix for xml class url conflicts.
2013-11-03 21:46:56 -08:00
Cameron
8d4f1b97c8
Multi-site work in progress.
2013-07-14 09:45:01 -07:00
SecretR
0e75ada2a9
Reverting PHP v5.3.0+ method used in XML parser
2013-06-12 17:20:42 +03:00
SecretR
3c50b42bd4
Eliminating some duplicate methods, more marketplace eAuth work
2013-06-06 15:25:54 +03:00
Cameron
15656e7ccb
Issue #371 - quick fix for forum extended fields.
2013-06-03 03:05:59 -07:00
SecretR
a6a49b18e1
Remote communication rewrite (still in progress); Experimental XML
...
parser (testing phase)
2013-05-16 19:48:55 +03:00
SecretR
f5a4f06791
Better handling of empty values (XML handler)
2013-05-16 19:48:55 +03:00
SecretR
08149e6710
String tag values issue (XML Handler)
2013-05-16 19:48:55 +03:00
Cameron
086e8c3afc
Plugin and Theme manager fixes. Start on e-alert (requires more work)
2013-05-03 21:38:22 -07:00