tweak lucky number function

This commit is contained in:
2016-06-14 22:52:00 +10:00
parent 7d9c9ee566
commit 894a798d96
3 changed files with 36 additions and 20 deletions

View File

@@ -871,7 +871,7 @@ function booking_generate_luckynumbers() {
$attendees = $attendee_query->fetchAll();
//assuming there's less than 900 people, generate numbers within that range and shuffle the order
$numbers = range(100,650);
$numbers = range(100,750);
shuffle($numbers);
foreach ($attendees as $attendee)

View File

@@ -1291,7 +1291,23 @@ function booking_payment_completed_page()
global $event;
$output = "";
$return_array = array();
/*
$parameters = drupal_get_query_parameters();
//check if we got a transaction token from paypal
if (isset($parameters['token'])) {
//check to make sure the value is something we're expecting
$paypal_token = $parameters['token'];
if (! preg_match('/^[0-9A-Fa-f\-]+$/', $paypal_token)) {
//parameter from url is not what we were expecting so ignore it and just use the site-wide tokens for this page
$tokens = booking_define_tokens();
}
else {
//query the payments table to find the attendee that this paypal token belongs to
}
}
*/
//set the page title
$bookingTitle = !empty($event->booking_eventname) ? $event->booking_eventname : 'Event';
drupal_set_title($bookingTitle . ' Registration Completed');