Changeset 3070756
- Timestamp:
- 04/15/2024 12:34:09 PM (2 years ago)
- Location:
- fast-events
- Files:
-
- 1 deleted
- 42 edited
- 34 copied
-
tags/2.2.1 (copied) (copied from fast-events/trunk)
-
tags/2.2.1/assets/css/fast-events.css (copied) (copied from fast-events/trunk/assets/css/fast-events.css)
-
tags/2.2.1/assets/css/fast-events.min.css (copied) (copied from fast-events/trunk/assets/css/fast-events.min.css)
-
tags/2.2.1/assets/js/fe-payment.js (copied) (copied from fast-events/trunk/assets/js/fe-payment.js)
-
tags/2.2.1/assets/js/fe-payment.min.js (copied) (copied from fast-events/trunk/assets/js/fe-payment.min.js)
-
tags/2.2.1/changelog.txt (copied) (copied from fast-events/trunk/changelog.txt) (1 diff)
-
tags/2.2.1/fast-events.php (copied) (copied from fast-events/trunk/fast-events.php) (1 diff)
-
tags/2.2.1/includes/class-fast-events-auth.php (copied) (copied from fast-events/trunk/includes/class-fast-events-auth.php)
-
tags/2.2.1/includes/class-fast-events-helper.php (copied) (copied from fast-events/trunk/includes/class-fast-events-helper.php) (3 diffs)
-
tags/2.2.1/includes/class-fast-events-hooks.php (copied) (copied from fast-events/trunk/includes/class-fast-events-hooks.php)
-
tags/2.2.1/includes/class-fast-events-mailer.php (copied) (copied from fast-events/trunk/includes/class-fast-events-mailer.php)
-
tags/2.2.1/includes/class-fast-events-order-helper.php (copied) (copied from fast-events/trunk/includes/class-fast-events-order-helper.php)
-
tags/2.2.1/includes/class-fast-events-shortcode.php (copied) (copied from fast-events/trunk/includes/class-fast-events-shortcode.php) (1 diff)
-
tags/2.2.1/includes/class-fast-events-util.php (copied) (copied from fast-events/trunk/includes/class-fast-events-util.php)
-
tags/2.2.1/includes/class-fast-events.php (copied) (copied from fast-events/trunk/includes/class-fast-events.php) (1 diff)
-
tags/2.2.1/includes/classes/class-fast-events-account.php (modified) (2 diffs)
-
tags/2.2.1/includes/classes/class-fast-events-invoice.php (copied) (copied from fast-events/trunk/includes/classes/class-fast-events-invoice.php)
-
tags/2.2.1/includes/classes/class-fast-events-pdf.php (copied) (copied from fast-events/trunk/includes/classes/class-fast-events-pdf.php) (1 diff)
-
tags/2.2.1/includes/classes/class-fast-events-sub-account.php (modified) (1 diff)
-
tags/2.2.1/includes/classes/class-fast-events-tickets.php (modified) (1 diff)
-
tags/2.2.1/includes/fevt-personalise-functions.php (copied) (copied from fast-events/trunk/includes/fevt-personalise-functions.php)
-
tags/2.2.1/includes/fevt-update-functions.php (copied) (copied from fast-events/trunk/includes/fevt-update-functions.php)
-
tags/2.2.1/includes/rest-api/class-fast-events-admin.php (copied) (copied from fast-events/trunk/includes/rest-api/class-fast-events-admin.php) (3 diffs)
-
tags/2.2.1/includes/rest-api/class-fast-events-events.php (modified) (1 diff)
-
tags/2.2.1/includes/rest-api/class-fast-events-ordering.php (modified) (1 diff)
-
tags/2.2.1/includes/rest-api/class-fast-events-payments.php (copied) (copied from fast-events/trunk/includes/rest-api/class-fast-events-payments.php)
-
tags/2.2.1/includes/rest-api/class-fast-events-saas.php (modified) (1 diff)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-accounts.php (modified) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-bulk-emails.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-emails.php) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-bulk-order-emails.php (modified) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-bulk-refunds.php (modified) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-coupons-bulk-emails.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-coupons-bulk-emails.php)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-coupons.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-coupons.php)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-events.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-events.php) (3 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-input-fields.php (modified) (1 diff)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-logs.php (modified) (1 diff)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-mail-lists.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-mail-lists.php) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-new-order.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-new-order.php) (1 diff)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-orders.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-orders.php)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-pdf-templates.php (modified) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-scan-keys.php (modified) (2 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-stats-sales.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-stats-sales.php)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-sub-accounts.php (modified) (5 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-ticket-types.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-ticket-types.php) (4 diffs)
-
tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-webhooks.php (copied) (copied from fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-webhooks.php) (1 diff)
-
tags/2.2.1/languages (deleted)
-
tags/2.2.1/readme.txt (copied) (copied from fast-events/trunk/readme.txt) (2 diffs)
-
tags/2.2.1/templates/personalise-iframe.php (copied) (copied from fast-events/trunk/templates/personalise-iframe.php)
-
tags/2.2.1/uninstall.php (copied) (copied from fast-events/trunk/uninstall.php)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/fast-events.php (modified) (1 diff)
-
trunk/includes/class-fast-events-helper.php (modified) (3 diffs)
-
trunk/includes/class-fast-events-shortcode.php (modified) (1 diff)
-
trunk/includes/class-fast-events.php (modified) (1 diff)
-
trunk/includes/classes/class-fast-events-account.php (modified) (2 diffs)
-
trunk/includes/classes/class-fast-events-pdf.php (modified) (1 diff)
-
trunk/includes/classes/class-fast-events-sub-account.php (modified) (1 diff)
-
trunk/includes/classes/class-fast-events-tickets.php (modified) (1 diff)
-
trunk/includes/rest-api/class-fast-events-admin.php (modified) (3 diffs)
-
trunk/includes/rest-api/class-fast-events-events.php (modified) (1 diff)
-
trunk/includes/rest-api/class-fast-events-ordering.php (modified) (1 diff)
-
trunk/includes/rest-api/class-fast-events-saas.php (modified) (1 diff)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-accounts.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-emails.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-order-emails.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-refunds.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-events.php (modified) (3 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-input-fields.php (modified) (1 diff)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-logs.php (modified) (1 diff)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-mail-lists.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-new-order.php (modified) (1 diff)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-pdf-templates.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-scan-keys.php (modified) (2 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-sub-accounts.php (modified) (5 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-ticket-types.php (modified) (4 diffs)
-
trunk/includes/rest-api/public-api/class-fast-events-admin-webhooks.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fast-events/tags/2.2.1/changelog.txt
r3054284 r3070756 1 1 == Changelog == 2 3 = 2.2.1 = 4 * Fix: Public Ordering API could not be used. 5 * Fix: An event cannot refer to itself as a linked-event. 2 6 3 7 = 2.2.0 = -
fast-events/tags/2.2.1/fast-events.php
r3054284 r3070756 4 4 * Plugin URI: https://fast-events.eu/ 5 5 * Description: Sell online etickets wit a variety of payment options, mobile scanning, admin app, seating plans, online tracking for sports events and much more. 6 * Version: 2.2. 06 * Version: 2.2.1 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 -
fast-events/tags/2.2.1/includes/class-fast-events-helper.php
r3052205 r3070756 893 893 case 3: 894 894 // If the 'HTTP header' string doesn't contain the separator ':' -> exit. 895 if ( ! str_contains( $choice->user_group->rest_header, ':') ) {895 if ( ! str_contains( $choice->user_group->rest_header, ':' ) ) { 896 896 return 0; 897 897 } … … 1481 1481 * @param string $event_id The unique id of the event. 1482 1482 * @param string $email The email address of the orderer. 1483 * @param bool $update Do we need to update the values : true=yes, false=no (default).1483 * @param bool $update Do we need to update the values (true=yes, false=no -> default). 1484 1484 * 1485 1485 * Example $json: … … 1511 1511 * "events": [9], 1512 1512 * "orders": [39] 1513 * } 1513 * }. 1514 1514 * 1515 1515 * @return WP_Error|float -
fast-events/tags/2.2.1/includes/class-fast-events-shortcode.php
r3052205 r3070756 282 282 // Is the url-parameter 'redirect_uid' or 'ticket_ids' present or did. 283 283 if ( ( ! isset( $wp_query->query_vars[ self::FE_REDIRECT_UID ] ) && ! isset( $wp_query->query_vars[ self::FE_TICKETS_IDS ] ) ) || 284 ( isset( $wp_query->query_vars[ self::FE_TICKETS_IDS ] ) && ! isset( $wp_query->query_vars['hash'] ) ) ) {284 ( isset( $wp_query->query_vars[ self::FE_TICKETS_IDS ] ) && ! isset( $wp_query->query_vars['hash'] ) ) ) { 285 285 return ''; 286 286 } -
fast-events/tags/2.2.1/includes/class-fast-events.php
r3054284 r3070756 15 15 */ 16 16 class Fast_Events { 17 public const FAST_EVENTS_VERSION = '2.2. 0';17 public const FAST_EVENTS_VERSION = '2.2.1'; 18 18 public const FE_ADMIN_VERSION = 'v4.2'; 19 19 -
fast-events/tags/2.2.1/includes/classes/class-fast-events-account.php
r3022958 r3070756 81 81 82 82 /** 83 * Is the user and all sub-account blocked for REST calls.83 * Is the user and all sub-accounts blocked for REST calls. 84 84 * 85 85 * @since 2.0 … … 113 113 114 114 /** 115 * How many sub-account can this user create. This is baically the number of additional application passwords.115 * How many sub-accounts can this user create. This is baically the number of additional application passwords. 116 116 * 117 117 * @since 2.0 -
fast-events/tags/2.2.1/includes/classes/class-fast-events-pdf.php
r3052205 r3070756 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 use setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException;14 use setasign\Fpdi\PdfParser\Filter\FilterException;15 use setasign\Fpdi\PdfParser\PdfParserException;16 use setasign\Fpdi\PdfParser\Type\PdfTypeException;17 use setasign\Fpdi\PdfReader\PdfReaderException;18 13 use setasign\Fpdi\Tcpdf\Fpdi; 19 14 -
fast-events/tags/2.2.1/includes/classes/class-fast-events-sub-account.php
r3015747 r3070756 25 25 26 26 /** 27 * Is sub-account blocked.27 * Is the sub-account blocked. 28 28 * 29 29 * @since 2.0 -
fast-events/tags/2.2.1/includes/classes/class-fast-events-tickets.php
r3036391 r3070756 90 90 * - Email The emailaddress of the person who ordered the tickets 91 91 * - [order] Any input field name on order level 92 * - [ticket] Any input putthat has been personalised92 * - [ticket] Any input field that has been personalised 93 93 * 94 94 * @since 2.1.0 95 95 * @var array 96 96 */ 97 private array $layout = array();97 private array $layout; 98 98 99 99 /** -
fast-events/tags/2.2.1/includes/rest-api/class-fast-events-admin.php
r3052205 r3070756 928 928 * 929 929 * @since 1.0 930 * @since 1.4 Event authorization restriction 931 * @since 1.5 ROLLBACK after update error 932 * @since 1.10 Added 'stock_link' 930 * @since 1.4 Event authorization restriction 931 * @since 1.5 ROLLBACK after update error 932 * @since 1.10 Added 'stock_link' 933 * @since 2.2.1 An event cannot refer to itself as a linked-event 933 934 * 934 935 * @param WP_REST_Request $data Request instance. … … 948 949 $wpdb->query( 'START TRANSACTION' ); 949 950 950 // Lookup the order.951 // Lookup the event. 951 952 $event_table = $wpdb->prefix . 'fe_events'; 952 953 $event = $wpdb->get_row( $wpdb->prepare( "SELECT sold, input_fields FROM $event_table WHERE id = %d FOR UPDATE", $data['id'] ) ); … … 954 955 $wpdb->query( 'ROLLBACK' ); 955 956 return new WP_Error( 'not_found', __( 'Event not found', 'fast-events' ), array( 'status' => 404 ) ); 957 } 958 959 // Check stock_link. 960 if ( 0 !== $data['stock_link'] ) { 961 $cnt = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $event_table WHERE id = %d", $data['stock_link'] ) ); 962 if ( 0 === (int) $cnt ) { 963 return new WP_Error( 'not_found', __( 'Event for stock_link parameter not found', 'fast-events' ), array( 'status' => 404 ) ); 964 } 965 if ( $data['stock_link'] === $data['id'] ) { 966 return new WP_Error( 'invalid_event', __( 'An event cannot refer to itself as a linked-event', 'fast-events' ), array( 'status' => 400 ) ); 967 } 956 968 } 957 969 -
fast-events/tags/2.2.1/includes/rest-api/class-fast-events-events.php
r3036904 r3070756 15 15 */ 16 16 class Fast_Events_Events { 17 private const NAMESPACE = 'fast-events/v1';18 private const EVENTS_ROUTE = '/admin/events/';17 private const NAMESPACE = 'fast-events/v1'; 18 private const EVENTS_ROUTE = '/admin/events/'; 19 19 20 20 /** -
fast-events/tags/2.2.1/includes/rest-api/class-fast-events-ordering.php
r3036391 r3070756 170 170 } 171 171 172 return new Fast_Events_ Personalise();172 return new Fast_Events_Ordering(); -
fast-events/tags/2.2.1/includes/rest-api/class-fast-events-saas.php
r3022022 r3070756 30 30 * Current user object 31 31 * 32 * @since 1. 032 * @since 1.4 33 33 * @var ?WP_User 34 34 */ -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-accounts.php
r3015747 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventAccounts controller.3 * FE Admin Accounts controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Accounts … … 13 13 14 14 /** 15 * FE Admin EventsAccounts class.15 * FE Admin Accounts class. 16 16 */ 17 17 class Fast_Events_Admin_Accounts extends WP_REST_Controller { 18 18 19 19 /** 20 * Admin Event Ticket Types constructor.21 * 22 * @since 1.020 * Admin Accounts constructor. 21 * 22 * @since 2.0 23 23 */ 24 24 public function __construct() { -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-bulk-emails.php
r3052205 r3070756 20 20 * The maximum size of the request buffer with order_ids. 21 21 * 22 * @since 1.022 * @since 2.0 23 23 * @var int 24 24 */ … … 28 28 * Admin Bulk Emails constructor. 29 29 * 30 * @since 1.030 * @since 2.0 31 31 */ 32 32 public function __construct() { -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-bulk-order-emails.php
r3036391 r3070756 20 20 * The maximum size of the request buffer with order_ids. 21 21 * 22 * @since 1.022 * @since 2.0 23 23 * @var int 24 24 */ … … 28 28 * Admin Bulk Order Emails constructor. 29 29 * 30 * @since 1.030 * @since 2.0 31 31 */ 32 32 public function __construct() { -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-bulk-refunds.php
r3036391 r3070756 22 22 * The maximum size of the request buffer with order_ids. 23 23 * 24 * @since 1.024 * @since 2.0 25 25 * @var int 26 26 */ … … 30 30 * Admin Bulk Refunds constructor. 31 31 * 32 * @since 1.032 * @since 2.0 33 33 */ 34 34 public function __construct() { -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-events.php
r3052205 r3070756 518 518 * 519 519 * @since 1.0 520 * @since 1.4 Added saas_fee, saas_user_id, sender_name and sender_email to query 520 * @since 1.4.0 Added saas_fee, saas_user_id, sender_name and sender_email to query 521 * @since 2.2.1 An event cannot refer to itself as a linked-event 521 522 * 522 523 * @param WP_REST_Request $request Full details about the request. … … 534 535 $params = $request->get_params(); // This returns all params (JSON and defaults). 535 536 } else { 536 $params = $request->get_json_params(); 537 $params = $request->get_json_params(); 538 $params['id'] = $request['id']; 537 539 } 538 540 if ( null === $params ) { … … 571 573 } 572 574 573 if ( isset( $params['stock_link'] ) && 0 !== $params['stock_link'] ) { 574 $cnt = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $event_table WHERE id = %d", (int) $params['stock_link'] ) ); 575 if ( 0 === (int) $cnt ) { 576 return new WP_Error( 'not_found', __( 'Event for stock_link parameter not found', 'fast-events' ), array( 'status' => 404 ) ); 577 } 578 $changed_event['stock_link'] = $params['stock_link']; 575 if ( isset( $params['stock_link'] ) ) { 576 if ( 0 !== $params['stock_link'] ) { 577 $cnt = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $event_table WHERE id = %d", (int) $params['stock_link'] ) ); 578 if ( 0 === (int) $cnt ) { 579 return new WP_Error( 'not_found', __( 'Event for stock_link parameter not found', 'fast-events' ), array( 'status' => 404 ) ); 580 } 581 if ( self::UPDATE === $method && (int) $params['stock_link'] === (int) $params['id'] ) { 582 return new WP_Error( 'invalid_event', __( 'An event cannot refer to itself as a linked-event', 'fast-events' ), array( 'status' => 400 ) ); 583 } 584 $changed_event['stock_link'] = $params['stock_link']; 585 } else { 586 $changed_event['stock_link'] = 0; 587 } 579 588 } 580 589 -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-input-fields.php
r3036391 r3070756 3 3 * FE Admin Event Input Fields controller. 4 4 * 5 * @package Fast-Events/Rest-API/Admin/Input- fields5 * @package Fast-Events/Rest-API/Admin/Input-Fields 6 6 * @since 1.4 Event authorization restriction 7 7 */ -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-logs.php
r3022958 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventLogs controller.3 * FE Admin Logs controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Logs -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-mail-lists.php
r3052205 r3070756 122 122 global $wpdb; 123 123 124 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP );124 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP ); 125 125 126 126 // The 'WHERE event_id > 0' is needed for a possible limit in available events for the user … … 165 165 global $wpdb; 166 166 167 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP );167 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP ); 168 168 169 169 $result = $wpdb->get_row( -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-new-order.php
r3052205 r3070756 14 14 15 15 /** 16 * FE Admin EventsNew Order class.16 * FE Admin New Order class. 17 17 */ 18 18 class Fast_Events_Admin_New_Order extends WP_REST_Controller { 19 19 20 20 /** 21 * Admin EventNew Order constructor.21 * Admin New Order constructor. 22 22 * 23 23 * @since 1.0 -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-pdf-templates.php
r3015747 r3070756 13 13 14 14 /** 15 * FE Admin Events Input Fieldsclass.15 * FE Admin Pdf Template class. 16 16 */ 17 17 class Fast_Events_Admin_Pdf_Templates extends WP_REST_Controller { … … 300 300 * Delete a single PDF template. 301 301 * 302 * @since 1.0302 * @since 2.0 303 303 * 304 304 * @param WP_REST_Request $request Full details about the request. -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-scan-keys.php
r3036391 r3070756 14 14 15 15 /** 16 * FE Admin EventsScan Keys class.16 * FE Admin Scan Keys class. 17 17 */ 18 18 class Fast_Events_Admin_Scan_Keys extends WP_REST_Controller { … … 46 46 47 47 /** 48 * Admin EventScan Keys constructor.48 * Admin Scan Keys constructor. 49 49 * 50 50 * @since 1.0 -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-sub-accounts.php
r3015747 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventSub Accounts controller.3 * FE Admin Sub Accounts controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Sub-Accounts … … 13 13 14 14 /** 15 * FE Admin EventsAccounts class.15 * FE Admin Sub Accounts class. 16 16 */ 17 17 class Fast_Events_Admin_Sub_Accounts extends WP_REST_Controller { … … 42 42 43 43 /** 44 * Admin Event Ticket Types constructor.45 * 46 * @since 1.044 * Admin Sub Accounts constructor. 45 * 46 * @since 2.0 47 47 */ 48 48 public function __construct() { … … 157 157 158 158 /** 159 * Only 'fe_account' user with USER_APW_ADD are allowed.159 * Only 'fe_account' users with USER_APW_ADD are allowed. 160 160 * 161 161 * @since 2.0 … … 178 178 179 179 /** 180 * Get all 'fe_account' sub_account .180 * Get all 'fe_account' sub_accounts. 181 181 * 182 182 * @since 2.0 -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-ticket-types.php
r3054284 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventTicket Types controller.3 * FE Admin Ticket Types controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Ticket-types … … 14 14 15 15 /** 16 * FE Admin EventsTicket Types class.16 * FE Admin Ticket Types class. 17 17 */ 18 18 class Fast_Events_Admin_Ticket_Types extends WP_REST_Controller { … … 204 204 205 205 /** 206 * Get the authorization for the EventsTicket Types endpoints.206 * Get the authorization for the Ticket Types endpoints. 207 207 * 208 208 * @since 1.0 … … 324 324 325 325 /** 326 * Retrieve a single input_field.326 * Retrieve a single ticket type. 327 327 * 328 328 * @since 1.0 -
fast-events/tags/2.2.1/includes/rest-api/public-api/class-fast-events-admin-webhooks.php
r3052205 r3070756 22 22 * Admin Webhooks constructor. 23 23 * 24 * @since 1.024 * @since 2.0 25 25 */ 26 26 public function __construct() { -
fast-events/tags/2.2.1/readme.txt
r3054284 r3070756 1 1 === Fast Events === 2 2 * Contributors: fedata 3 * Tags: events, tickets, personalisation, sell online, qrcode3 * Tags: events, etickets, qrcode, sell online, tickets 4 4 * Requires at least: 6.0 5 5 * Requires PHP: 8.0 6 6 * Tested up to: 6.5 7 * Stable tag: 2.2. 07 * Stable tag: 2.2.1 8 8 * Donate link: https://docs.fast-events.eu/en/latest/misc/donate.html 9 9 * License: GPLv3 or later … … 188 188 == Changelog == 189 189 190 = 2.2.0 = 191 192 * Added flexible discount codes. Optionally linked to events, tickets types, user email, min/max number of tickets and min/max amount. Possible usage limit per user. 193 * Added volume pricing per ticket type. Eg. 1 ticket for 10.00, from 4 tickets for 9.00, from 10 tickets for 8.50, ... 194 * Two new filters: 'fast_events_order_mail' and 'fast_events_order_name' for filtering the emailaddress and name. 190 = 2.2.1 = 191 192 * Fix: Public Ordering API could not be used. 193 * Fix: An event cannot refer to itself as a linked-event. 195 194 196 195 -
fast-events/trunk/changelog.txt
r3054284 r3070756 1 1 == Changelog == 2 3 = 2.2.1 = 4 * Fix: Public Ordering API could not be used. 5 * Fix: An event cannot refer to itself as a linked-event. 2 6 3 7 = 2.2.0 = -
fast-events/trunk/fast-events.php
r3054284 r3070756 4 4 * Plugin URI: https://fast-events.eu/ 5 5 * Description: Sell online etickets wit a variety of payment options, mobile scanning, admin app, seating plans, online tracking for sports events and much more. 6 * Version: 2.2. 06 * Version: 2.2.1 7 7 * Requires at least: 6.0 8 8 * Requires PHP: 8.0 -
fast-events/trunk/includes/class-fast-events-helper.php
r3052205 r3070756 893 893 case 3: 894 894 // If the 'HTTP header' string doesn't contain the separator ':' -> exit. 895 if ( ! str_contains( $choice->user_group->rest_header, ':') ) {895 if ( ! str_contains( $choice->user_group->rest_header, ':' ) ) { 896 896 return 0; 897 897 } … … 1481 1481 * @param string $event_id The unique id of the event. 1482 1482 * @param string $email The email address of the orderer. 1483 * @param bool $update Do we need to update the values : true=yes, false=no (default).1483 * @param bool $update Do we need to update the values (true=yes, false=no -> default). 1484 1484 * 1485 1485 * Example $json: … … 1511 1511 * "events": [9], 1512 1512 * "orders": [39] 1513 * } 1513 * }. 1514 1514 * 1515 1515 * @return WP_Error|float -
fast-events/trunk/includes/class-fast-events-shortcode.php
r3052205 r3070756 282 282 // Is the url-parameter 'redirect_uid' or 'ticket_ids' present or did. 283 283 if ( ( ! isset( $wp_query->query_vars[ self::FE_REDIRECT_UID ] ) && ! isset( $wp_query->query_vars[ self::FE_TICKETS_IDS ] ) ) || 284 ( isset( $wp_query->query_vars[ self::FE_TICKETS_IDS ] ) && ! isset( $wp_query->query_vars['hash'] ) ) ) {284 ( isset( $wp_query->query_vars[ self::FE_TICKETS_IDS ] ) && ! isset( $wp_query->query_vars['hash'] ) ) ) { 285 285 return ''; 286 286 } -
fast-events/trunk/includes/class-fast-events.php
r3054284 r3070756 15 15 */ 16 16 class Fast_Events { 17 public const FAST_EVENTS_VERSION = '2.2. 0';17 public const FAST_EVENTS_VERSION = '2.2.1'; 18 18 public const FE_ADMIN_VERSION = 'v4.2'; 19 19 -
fast-events/trunk/includes/classes/class-fast-events-account.php
r3022958 r3070756 81 81 82 82 /** 83 * Is the user and all sub-account blocked for REST calls.83 * Is the user and all sub-accounts blocked for REST calls. 84 84 * 85 85 * @since 2.0 … … 113 113 114 114 /** 115 * How many sub-account can this user create. This is baically the number of additional application passwords.115 * How many sub-accounts can this user create. This is baically the number of additional application passwords. 116 116 * 117 117 * @since 2.0 -
fast-events/trunk/includes/classes/class-fast-events-pdf.php
r3052205 r3070756 11 11 defined( 'ABSPATH' ) || exit; 12 12 13 use setasign\Fpdi\PdfParser\CrossReference\CrossReferenceException;14 use setasign\Fpdi\PdfParser\Filter\FilterException;15 use setasign\Fpdi\PdfParser\PdfParserException;16 use setasign\Fpdi\PdfParser\Type\PdfTypeException;17 use setasign\Fpdi\PdfReader\PdfReaderException;18 13 use setasign\Fpdi\Tcpdf\Fpdi; 19 14 -
fast-events/trunk/includes/classes/class-fast-events-sub-account.php
r3015747 r3070756 25 25 26 26 /** 27 * Is sub-account blocked.27 * Is the sub-account blocked. 28 28 * 29 29 * @since 2.0 -
fast-events/trunk/includes/classes/class-fast-events-tickets.php
r3036391 r3070756 90 90 * - Email The emailaddress of the person who ordered the tickets 91 91 * - [order] Any input field name on order level 92 * - [ticket] Any input putthat has been personalised92 * - [ticket] Any input field that has been personalised 93 93 * 94 94 * @since 2.1.0 95 95 * @var array 96 96 */ 97 private array $layout = array();97 private array $layout; 98 98 99 99 /** -
fast-events/trunk/includes/rest-api/class-fast-events-admin.php
r3052205 r3070756 928 928 * 929 929 * @since 1.0 930 * @since 1.4 Event authorization restriction 931 * @since 1.5 ROLLBACK after update error 932 * @since 1.10 Added 'stock_link' 930 * @since 1.4 Event authorization restriction 931 * @since 1.5 ROLLBACK after update error 932 * @since 1.10 Added 'stock_link' 933 * @since 2.2.1 An event cannot refer to itself as a linked-event 933 934 * 934 935 * @param WP_REST_Request $data Request instance. … … 948 949 $wpdb->query( 'START TRANSACTION' ); 949 950 950 // Lookup the order.951 // Lookup the event. 951 952 $event_table = $wpdb->prefix . 'fe_events'; 952 953 $event = $wpdb->get_row( $wpdb->prepare( "SELECT sold, input_fields FROM $event_table WHERE id = %d FOR UPDATE", $data['id'] ) ); … … 954 955 $wpdb->query( 'ROLLBACK' ); 955 956 return new WP_Error( 'not_found', __( 'Event not found', 'fast-events' ), array( 'status' => 404 ) ); 957 } 958 959 // Check stock_link. 960 if ( 0 !== $data['stock_link'] ) { 961 $cnt = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $event_table WHERE id = %d", $data['stock_link'] ) ); 962 if ( 0 === (int) $cnt ) { 963 return new WP_Error( 'not_found', __( 'Event for stock_link parameter not found', 'fast-events' ), array( 'status' => 404 ) ); 964 } 965 if ( $data['stock_link'] === $data['id'] ) { 966 return new WP_Error( 'invalid_event', __( 'An event cannot refer to itself as a linked-event', 'fast-events' ), array( 'status' => 400 ) ); 967 } 956 968 } 957 969 -
fast-events/trunk/includes/rest-api/class-fast-events-events.php
r3036904 r3070756 15 15 */ 16 16 class Fast_Events_Events { 17 private const NAMESPACE = 'fast-events/v1';18 private const EVENTS_ROUTE = '/admin/events/';17 private const NAMESPACE = 'fast-events/v1'; 18 private const EVENTS_ROUTE = '/admin/events/'; 19 19 20 20 /** -
fast-events/trunk/includes/rest-api/class-fast-events-ordering.php
r3036391 r3070756 170 170 } 171 171 172 return new Fast_Events_ Personalise();172 return new Fast_Events_Ordering(); -
fast-events/trunk/includes/rest-api/class-fast-events-saas.php
r3022022 r3070756 30 30 * Current user object 31 31 * 32 * @since 1. 032 * @since 1.4 33 33 * @var ?WP_User 34 34 */ -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-accounts.php
r3015747 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventAccounts controller.3 * FE Admin Accounts controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Accounts … … 13 13 14 14 /** 15 * FE Admin EventsAccounts class.15 * FE Admin Accounts class. 16 16 */ 17 17 class Fast_Events_Admin_Accounts extends WP_REST_Controller { 18 18 19 19 /** 20 * Admin Event Ticket Types constructor.21 * 22 * @since 1.020 * Admin Accounts constructor. 21 * 22 * @since 2.0 23 23 */ 24 24 public function __construct() { -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-emails.php
r3052205 r3070756 20 20 * The maximum size of the request buffer with order_ids. 21 21 * 22 * @since 1.022 * @since 2.0 23 23 * @var int 24 24 */ … … 28 28 * Admin Bulk Emails constructor. 29 29 * 30 * @since 1.030 * @since 2.0 31 31 */ 32 32 public function __construct() { -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-order-emails.php
r3036391 r3070756 20 20 * The maximum size of the request buffer with order_ids. 21 21 * 22 * @since 1.022 * @since 2.0 23 23 * @var int 24 24 */ … … 28 28 * Admin Bulk Order Emails constructor. 29 29 * 30 * @since 1.030 * @since 2.0 31 31 */ 32 32 public function __construct() { -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-bulk-refunds.php
r3036391 r3070756 22 22 * The maximum size of the request buffer with order_ids. 23 23 * 24 * @since 1.024 * @since 2.0 25 25 * @var int 26 26 */ … … 30 30 * Admin Bulk Refunds constructor. 31 31 * 32 * @since 1.032 * @since 2.0 33 33 */ 34 34 public function __construct() { -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-events.php
r3052205 r3070756 518 518 * 519 519 * @since 1.0 520 * @since 1.4 Added saas_fee, saas_user_id, sender_name and sender_email to query 520 * @since 1.4.0 Added saas_fee, saas_user_id, sender_name and sender_email to query 521 * @since 2.2.1 An event cannot refer to itself as a linked-event 521 522 * 522 523 * @param WP_REST_Request $request Full details about the request. … … 534 535 $params = $request->get_params(); // This returns all params (JSON and defaults). 535 536 } else { 536 $params = $request->get_json_params(); 537 $params = $request->get_json_params(); 538 $params['id'] = $request['id']; 537 539 } 538 540 if ( null === $params ) { … … 571 573 } 572 574 573 if ( isset( $params['stock_link'] ) && 0 !== $params['stock_link'] ) { 574 $cnt = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $event_table WHERE id = %d", (int) $params['stock_link'] ) ); 575 if ( 0 === (int) $cnt ) { 576 return new WP_Error( 'not_found', __( 'Event for stock_link parameter not found', 'fast-events' ), array( 'status' => 404 ) ); 577 } 578 $changed_event['stock_link'] = $params['stock_link']; 575 if ( isset( $params['stock_link'] ) ) { 576 if ( 0 !== $params['stock_link'] ) { 577 $cnt = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $event_table WHERE id = %d", (int) $params['stock_link'] ) ); 578 if ( 0 === (int) $cnt ) { 579 return new WP_Error( 'not_found', __( 'Event for stock_link parameter not found', 'fast-events' ), array( 'status' => 404 ) ); 580 } 581 if ( self::UPDATE === $method && (int) $params['stock_link'] === (int) $params['id'] ) { 582 return new WP_Error( 'invalid_event', __( 'An event cannot refer to itself as a linked-event', 'fast-events' ), array( 'status' => 400 ) ); 583 } 584 $changed_event['stock_link'] = $params['stock_link']; 585 } else { 586 $changed_event['stock_link'] = 0; 587 } 579 588 } 580 589 -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-input-fields.php
r3036391 r3070756 3 3 * FE Admin Event Input Fields controller. 4 4 * 5 * @package Fast-Events/Rest-API/Admin/Input- fields5 * @package Fast-Events/Rest-API/Admin/Input-Fields 6 6 * @since 1.4 Event authorization restriction 7 7 */ -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-logs.php
r3022958 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventLogs controller.3 * FE Admin Logs controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Logs -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-mail-lists.php
r3052205 r3070756 122 122 global $wpdb; 123 123 124 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP );124 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP ); 125 125 126 126 // The 'WHERE event_id > 0' is needed for a possible limit in available events for the user … … 165 165 global $wpdb; 166 166 167 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP );167 $auth_query = fast_events_auth_func()->get_restricted_events( fast_events_auth_func()::FAST_EVENTS_AUTH_QUERY_ORDER_LOOKUP ); 168 168 169 169 $result = $wpdb->get_row( -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-new-order.php
r3052205 r3070756 14 14 15 15 /** 16 * FE Admin EventsNew Order class.16 * FE Admin New Order class. 17 17 */ 18 18 class Fast_Events_Admin_New_Order extends WP_REST_Controller { 19 19 20 20 /** 21 * Admin EventNew Order constructor.21 * Admin New Order constructor. 22 22 * 23 23 * @since 1.0 -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-pdf-templates.php
r3015747 r3070756 13 13 14 14 /** 15 * FE Admin Events Input Fieldsclass.15 * FE Admin Pdf Template class. 16 16 */ 17 17 class Fast_Events_Admin_Pdf_Templates extends WP_REST_Controller { … … 300 300 * Delete a single PDF template. 301 301 * 302 * @since 1.0302 * @since 2.0 303 303 * 304 304 * @param WP_REST_Request $request Full details about the request. -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-scan-keys.php
r3036391 r3070756 14 14 15 15 /** 16 * FE Admin EventsScan Keys class.16 * FE Admin Scan Keys class. 17 17 */ 18 18 class Fast_Events_Admin_Scan_Keys extends WP_REST_Controller { … … 46 46 47 47 /** 48 * Admin EventScan Keys constructor.48 * Admin Scan Keys constructor. 49 49 * 50 50 * @since 1.0 -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-sub-accounts.php
r3015747 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventSub Accounts controller.3 * FE Admin Sub Accounts controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Sub-Accounts … … 13 13 14 14 /** 15 * FE Admin EventsAccounts class.15 * FE Admin Sub Accounts class. 16 16 */ 17 17 class Fast_Events_Admin_Sub_Accounts extends WP_REST_Controller { … … 42 42 43 43 /** 44 * Admin Event Ticket Types constructor.45 * 46 * @since 1.044 * Admin Sub Accounts constructor. 45 * 46 * @since 2.0 47 47 */ 48 48 public function __construct() { … … 157 157 158 158 /** 159 * Only 'fe_account' user with USER_APW_ADD are allowed.159 * Only 'fe_account' users with USER_APW_ADD are allowed. 160 160 * 161 161 * @since 2.0 … … 178 178 179 179 /** 180 * Get all 'fe_account' sub_account .180 * Get all 'fe_account' sub_accounts. 181 181 * 182 182 * @since 2.0 -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-ticket-types.php
r3054284 r3070756 1 1 <?php 2 2 /** 3 * FE Admin EventTicket Types controller.3 * FE Admin Ticket Types controller. 4 4 * 5 5 * @package Fast-Events/Rest-API/Admin/Ticket-types … … 14 14 15 15 /** 16 * FE Admin EventsTicket Types class.16 * FE Admin Ticket Types class. 17 17 */ 18 18 class Fast_Events_Admin_Ticket_Types extends WP_REST_Controller { … … 204 204 205 205 /** 206 * Get the authorization for the EventsTicket Types endpoints.206 * Get the authorization for the Ticket Types endpoints. 207 207 * 208 208 * @since 1.0 … … 324 324 325 325 /** 326 * Retrieve a single input_field.326 * Retrieve a single ticket type. 327 327 * 328 328 * @since 1.0 -
fast-events/trunk/includes/rest-api/public-api/class-fast-events-admin-webhooks.php
r3052205 r3070756 22 22 * Admin Webhooks constructor. 23 23 * 24 * @since 1.024 * @since 2.0 25 25 */ 26 26 public function __construct() { -
fast-events/trunk/readme.txt
r3054284 r3070756 1 1 === Fast Events === 2 2 * Contributors: fedata 3 * Tags: events, tickets, personalisation, sell online, qrcode3 * Tags: events, etickets, qrcode, sell online, tickets 4 4 * Requires at least: 6.0 5 5 * Requires PHP: 8.0 6 6 * Tested up to: 6.5 7 * Stable tag: 2.2. 07 * Stable tag: 2.2.1 8 8 * Donate link: https://docs.fast-events.eu/en/latest/misc/donate.html 9 9 * License: GPLv3 or later … … 188 188 == Changelog == 189 189 190 = 2.2.0 = 191 192 * Added flexible discount codes. Optionally linked to events, tickets types, user email, min/max number of tickets and min/max amount. Possible usage limit per user. 193 * Added volume pricing per ticket type. Eg. 1 ticket for 10.00, from 4 tickets for 9.00, from 10 tickets for 8.50, ... 194 * Two new filters: 'fast_events_order_mail' and 'fast_events_order_name' for filtering the emailaddress and name. 190 = 2.2.1 = 191 192 * Fix: Public Ordering API could not be used. 193 * Fix: An event cannot refer to itself as a linked-event. 195 194 196 195
Note: See TracChangeset
for help on using the changeset viewer.