tweak lucky number function
This commit is contained in:
@@ -871,7 +871,7 @@ function booking_generate_luckynumbers() {
|
|||||||
$attendees = $attendee_query->fetchAll();
|
$attendees = $attendee_query->fetchAll();
|
||||||
|
|
||||||
//assuming there's less than 900 people, generate numbers within that range and shuffle the order
|
//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);
|
shuffle($numbers);
|
||||||
|
|
||||||
foreach ($attendees as $attendee)
|
foreach ($attendees as $attendee)
|
||||||
|
@@ -1291,7 +1291,23 @@ function booking_payment_completed_page()
|
|||||||
global $event;
|
global $event;
|
||||||
$output = "";
|
$output = "";
|
||||||
$return_array = array();
|
$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
|
//set the page title
|
||||||
$bookingTitle = !empty($event->booking_eventname) ? $event->booking_eventname : 'Event';
|
$bookingTitle = !empty($event->booking_eventname) ? $event->booking_eventname : 'Event';
|
||||||
drupal_set_title($bookingTitle . ' Registration Completed');
|
drupal_set_title($bookingTitle . ' Registration Completed');
|
||||||
|
Reference in New Issue
Block a user