[insert_php] function get_request_parameter( $key, $default = ” ) {
// If not request set
if ( ! isset( $_REQUEST[ $key ] ) || empty( $_REQUEST[ $key ] ) ) {
return $default;
}

// Set so process it
return strip_tags( (string) wp_unslash( $_REQUEST[ $key ] ) );
}
$friday = strtotime(‘this Friday’);
$saturday = strtotime(‘this Saturday’);
$sunday = strtotime(‘this Sunday’);
if ((int)(date(‘N’)) == 5) { $friday=strtotime(‘today’); }
if ((int)(date(‘N’)) == 6) { $saturday=strtotime(‘next saturday’); $sunday=strtotime(‘+8 days’);}
if ((int)(date(‘N’)) == 7) { $sunday=strtotime(‘next sunday’); }
$access_code=get_request_parameter(‘access_code’,”);
echo ”

Book the weekend of ” .
date( “l, M d, Y”, $friday) .
” and leaving ” .date( “l, M d, Y”, $sunday) . “
“;
$iframe = ‘‘;
echo $iframe;[/insert_php]