add CSV report for earlyaccess codes
This commit is contained in:
@@ -108,7 +108,7 @@ function booking_earlyaccess_generate_codes() {
|
|||||||
* @see https://stackoverflow.com/questions/1846202/php-how-to-generate-a-random-unique-alphanumeric-string
|
* @see https://stackoverflow.com/questions/1846202/php-how-to-generate-a-random-unique-alphanumeric-string
|
||||||
* Requires PHP7
|
* Requires PHP7
|
||||||
*/
|
*/
|
||||||
function booking_getToken($length){
|
function booking_getToken($length) {
|
||||||
$token = "";
|
$token = "";
|
||||||
$codeAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
$codeAlphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||||
//$codeAlphabet.= "abcdefghijklmnopqrstuvwxyz";
|
//$codeAlphabet.= "abcdefghijklmnopqrstuvwxyz";
|
||||||
@@ -121,3 +121,11 @@ function booking_getToken($length){
|
|||||||
|
|
||||||
return $token;
|
return $token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function to generate csv of early access codes for the current event
|
||||||
|
*/
|
||||||
|
function booking_earlyaccess_csv_report() {
|
||||||
|
|
||||||
|
}
|
@@ -726,6 +726,14 @@ function booking_menu() {
|
|||||||
'file' => 'booking.earlyaccess_admin.inc',
|
'file' => 'booking.earlyaccess_admin.inc',
|
||||||
'type' => MENU_LOCAL_ACTION,
|
'type' => MENU_LOCAL_ACTION,
|
||||||
);
|
);
|
||||||
|
$items['admin/config/booking/earlyaccess/csv'] = array(
|
||||||
|
'title' => 'Download Early Access Codes CSV',
|
||||||
|
'description' => 'Download Early Access Codes CSV',
|
||||||
|
'page callback' => 'booking_earlyaccess_csv_report',
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'file' => 'booking.earlyaccess_admin.inc',
|
||||||
|
'type' => MENU_LOCAL_ACTION,
|
||||||
|
);
|
||||||
|
|
||||||
//the paypal IPN
|
//the paypal IPN
|
||||||
$items[BOOKING_PAYPAL_IPN_PATH] = array(
|
$items[BOOKING_PAYPAL_IPN_PATH] = array(
|
||||||
|
Reference in New Issue
Block a user