function espresso_export_ticket() { do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, ''); //Version 2.0 if (isset($_REQUEST['ticket_launch']) && $_REQUEST['ticket_launch'] == 'true') { echo espresso_ticket_launch($_REQUEST['id'], $_REQUEST['r_id']); } //End Version 2.0 //Deprecated version 1.0 //Export PDF Ticket if (isset($_REQUEST['download_ticket']) && $_REQUEST['download_ticket'] == 'true') { if (file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "/ticketing/template.php")) { require_once EVENT_ESPRESSO_UPLOAD_DIR . "/ticketing/template.php"; //Old url string $r_id = espresso_return_reg_id(); //Attendee id $a_id = isset($_REQUEST['id']) && !empty($_REQUEST['id']) ? $_REQUEST['id'] : false; if ($a_id != false && $r_id != false) { espresso_ticket($a_id, $r_id); } } } //End Deprecated version 1.0 }
//copy gateways to gateway directory if (isset($_REQUEST['event_espresso_admin_action'])) { if ($_REQUEST['event_espresso_admin_action'] == 'copy_gateways') { add_action('admin_init', 'event_espresso_trigger_copy_gateways'); } } //Check to make sure all of the main pages are setup properly, if not show an admin message. if ((!isset($_REQUEST['event_page_id']) || $_REQUEST['event_page_id'] == NULL) && $org_options['event_page_id'] == ('0' || '') || $org_options['return_url'] == ('0' || '') || $org_options['notify_url'] == ('0' || '')) { add_action('admin_notices', 'event_espresso_activation_notice'); } } //Removed by Seth 12-6-11 /* if (!function_exists('is_ssl')) { function is_ssl() { if (isset($_SERVER['HTTPS'])) { if (strtolower($_SERVER['HTTPS']) == 'on') return true; if ($_SERVER['HTTPS'] == '1') return true; } elseif (isset($_SERVER['SERVER_PORT']) && ( $_SERVER['SERVER_PORT'] == '443')) { return true; } return false; } } */ //Export PDF Ticket (new) if (isset($_REQUEST['ticket_launch']) && $_REQUEST['ticket_launch'] == 'true') { echo espresso_ticket_launch($_REQUEST['id'], $_REQUEST['r_id']); }