Added default values for $_GET['d'] and $_GET['p'].