Fixed the script to work with the newest version of phpMyAdmin 

(tested with 3.5.7).

The export_type is switched from database to server as for the database export now the tables have to be listed.
To have the db in the file name this line is also modified.