improved detection of incorrect db parameters (db, id, pw, prefix), bringing it more in line with the 2.x checks; this got rid of the "...expects parameter to be a resource..." errors
Tested the new repair_settings.php against 2.0.16, 1.0.23 & 1.1.21 DBs, against php7.1 & php5.6.
php5.6 was tested with mysqli disabled to ensure mysql calls still worked.
Fixes #33
Changes specific to the 1.x compatibility logic:
Tested the new repair_settings.php against 2.0.16, 1.0.23 & 1.1.21 DBs, against php7.1 & php5.6. php5.6 was tested with mysqli disabled to ensure mysql calls still worked.