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