[altsys] use `XoopsDatabaseFactory::getDatabaseConnection`

replace deprecated method `Database::getInstance` to `XoopsDatabaseFactory::getDatabaseConnection`
Merge branch 'master' of https://github.com/xoopscube/altsys

Conflicts:
	xoops_trust_path/libs/altsys/blocks/block_functions.php
	xoops_trust_path/libs/altsys/class/MyBlocksAdmin.class.php
	xoops_trust_path/libs/altsys/class/MyBlocksAdminForX22.class.php
	xoops_trust_path/libs/altsys/class/d3utilities.php
	xoops_trust_path/libs/altsys/include/admin_in_theme_header.inc.php
	xoops_trust_path/libs/altsys/include/adminmenu_functions.php
	xoops_trust_path/libs/altsys/include/tpls_functions.php
	xoops_trust_path/libs/altsys/mylangadmin.php
	xoops_trust_path/libs/altsys/mymenusub/myblocksadmin.php
	xoops_trust_path/libs/altsys/mymenusub/mylangadmin.php
	xoops_trust_path/libs/altsys/mymenusub/mytplsadmin.php
	xoops_trust_path/libs/altsys/mypreferences.php
	xoops_trust_path/libs/altsys/mytplsadmin.php
	xoops_trust_path/libs/altsys/mytplsform.php
	xoops_trust_path/libs/altsys/oninstall.php
	xoops_trust_path/libs/altsys/onuninstall.php
	xoops_trust_path/libs/altsys/onupdate.php
	xoops_trust_path/libs/altsys/put_templates.php