lmce-admin & weborbiter php deprecation warnings on trusty, failures on xenial
On trusty there are some warnings in apache error.log
[Thu Sep 19 20:48:33.352170 2019] [:error] [pid 11296] [client 192.168.80.1:58186] PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /var/www/lmce-admin/weborbiter/IT.php on line 1095
This causes the web orbiter to fail completely on xenial resulting in a blank page and not being able to login.
The file IT.php is from HTML_Template_IT and updating this to the latest version fixes the problem.
adodb have updated, this should be compatible with all php versions.
Further patches throughout lmce-admin in the php files replacing ereg with preg_match, there are probably more efficient ways to do this but this makes some parts of the lmce-admin functional again in xenial. These changes should also be compatible across the php version in trusty.
Pushing branch soon, thanks.
https://git.linuxmce.org/Gavlee/linuxmce/commits/iss2829-lmce-admin-php