|
@@ 143-156 (lines=14) @@
|
| 140 |
|
return; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
if ( isset( $_REQUEST['edu-thankyou'] ) && isset( $_REQUEST['svea'] ) ) { |
| 144 |
|
$booking_id = intval( $_GET['booking_id'] ); |
| 145 |
|
$programme_booking_id = intval( $_GET['programme_booking_id'] ); |
| 146 |
|
|
| 147 |
|
$deleted = $this->update_booking( intval( EDU()->session['svea-order-id'] ), $booking_id, $programme_booking_id ); |
| 148 |
|
|
| 149 |
|
EDU()->session['svea-order-id'] = null; |
| 150 |
|
|
| 151 |
|
if ( $deleted ) { |
| 152 |
|
@wp_redirect( get_home_url() ); |
| 153 |
|
echo "<script type='text/javascript>location.href = '" . esc_js( get_home_url() ) . "';</script>"; |
| 154 |
|
exit( 0 ); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
/** |
|
@@ 361-374 (lines=14) @@
|
| 358 |
|
exit( 0 ); |
| 359 |
|
} |
| 360 |
|
|
| 361 |
|
if ( isset( $_REQUEST['edu-thankyou'] ) && isset( $_REQUEST['svea'] ) && ! empty( $_GET['status'] ) ) { |
| 362 |
|
$booking_id = intval( $_GET['booking_id'] ); |
| 363 |
|
$programme_booking_id = intval( $_GET['programme_booking_id'] ); |
| 364 |
|
|
| 365 |
|
$deleted = $this->update_booking( intval( EDU()->session['svea-order-id'] ), $booking_id, $programme_booking_id ); |
| 366 |
|
|
| 367 |
|
EDU()->session['svea-order-id'] = null; |
| 368 |
|
|
| 369 |
|
if ( $deleted ) { |
| 370 |
|
@wp_redirect( get_home_url() ); |
| 371 |
|
echo "<script type='text/javascript>location.href = '" . esc_js( get_home_url() ) . "';</script>"; |
| 372 |
|
exit( 0 ); |
| 373 |
|
} |
| 374 |
|
} |
| 375 |
|
} |
| 376 |
|
|
| 377 |
|
/** |