Update dialog.php

Edited to work with new config.php