You know I have had some critics about xaseco2, but i still love this controller since I learned to code making plugins for this... so xymph and all others, here's my attemt to add some years to xaseco2 triumph I had this crazy idea... and looks like it works... this should enable xaseco2 and alot of dependand plugins to work without any additional changes!

to be very first command after <?php and the comments
(there is other require_once, add this to be the very first before others)

*edit*
In case you want all-in-one solution, without need of editing any source files... Modernizer is now added to Toffes patched xaseco2 fork, which you might be interested, since it has already patches for https and new serverlogin stuff for MX and it has added 2MB maps support:

tested & working [ ubuntu 16.04 cli ]
i had to disable plugin.fufi.autoqueue.php

a few other plugins generate warnings in the logfile

[XAseco2] PHP Version is 7.0.4-7ubuntu2.1 on Linux

[XAseco2] Load plugin [plugin.checkpoints.php]
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; Checkpoints has a deprecated constructor on line 34 in file .. /plugins/plugin.checkpoints.php

[XAseco2] Load plugin [plugin.dedimania.php]
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; IXR_RequestStd has a deprecated constructor on line 164 in file .. /includes/GbxRemote.response.php
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; IXR_ResponseStd has a deprecated constructor on line 197 in file .. /includes/GbxRemote.response.php
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; Webaccess has a deprecated constructor on line 121 in file .. /includes/web_access.inc.php
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; WebaccessUrl has a deprecated constructor on line 318 in file .. /includes/web_access.inc.php
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; XmlrpcDB has a deprecated constructor on line 13 in file .. /includes/xmlrpc_db.inc.php

[XAseco2] Load plugin [plugin.rasp_jukebox.php]
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; MXInfo has a deprecated constructor on line 230 in file .. /includes/mxinfosearcher.inc.php

[XAseco2] Load plugin [plugin.musicserver.php]
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; Music has a deprecated constructor on line 23 in file .. /plugins/plugin.musicserver.php
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; Ogg_Comments has a deprecated constructor on line 18 in file .. /includes/ogg_comments.inc.php

[XAseco2] Load plugin [plugin.fufi.menu.php]
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; FufiMenu has a deprecated constructor on line 27 in file .. /plugins/plugin.fufi.menu.php
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; FufiMenuEntry has a deprecated constructor on line 734 in file .. /plugins/plugin.fufi.menu.php

[XAseco2] Load plugin [plugin.nouse.betting.php]
[PHP 8192] Methods with the same name as their class will not be constructors in a future version of PHP; betting_planets has a deprecated constructor on line 97 in file .. /plugins/plugin.nouse.betting.php

[07/23,19:06:26] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'tm2_modernizertest'
[PHP Warning] Missing argument 1 for mysql_get_server_info(), called in .. /plugins/plugin.localdatabase.php on line 80 and defined on line 171 in file .. /includes/modernizer.inc.php

was a db corruption (missing some columns, invalid default date format and missing Id auto-increment) so erased than manualy rebuilt one by one throw phpmyadmin challenges, players, records and rs_x tables using sql files provided with Xaseco, modified the date and datetime default values to "1000-01-01 00:00:00" and now it runs...