Changeset 2936723
- Timestamp:
- 07/10/2023 06:39:41 PM (3 years ago)
- Location:
- registerone-event-forms/trunk
- Files:
-
- 3 edited
-
admin/classes/RegisteroneShortcodes.php (modified) (15 diffs)
-
readme.txt (modified) (3 diffs)
-
registerone-wordpress-client.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
registerone-event-forms/trunk/admin/classes/RegisteroneShortcodes.php
r2848039 r2936723 68 68 function registerone_change_page_title() 69 69 { 70 $title = sanitize_text_field($_SESSION['title']);70 $title = isset($_SESSION['title']) ? sanitize_text_field($_SESSION['title']) : ''; 71 71 unset($_SESSION['title']); 72 72 return $title; … … 523 523 } 524 524 525 if(1 == 2 ) {525 if(1 == 2 || $_SERVER['REMOTE_ADDR'] == '72.107.108.236x') { 526 526 echo "<pre>"; 527 527 // print_r($this->event_attributes); … … 533 533 $responses = wp_remote_retrieve_body( wp_remote_request( $request_url, $request_args ) ); 534 534 535 if(1 == 2 ) {535 if(1 == 2 && $_SERVER['REMOTE_ADDR'] == '72.104.155.107') { 536 536 // die($this->current_screen); 537 537 … … 559 559 }elseif(isset($_SERVER['SERVER_ADDR'])) { 560 560 $return_local = json_decode($responses,true); 561 562 $return_local['status'] = isset($return_local['status']) ? $return_local['status'] : 0; 563 561 564 if(isset($return_local['type'])){ 562 565 if(stristr($return_local['type'], 'ErrorException')){ … … 580 583 } 581 584 582 if ( json_decode($responses,true)['status'] == 401){585 if ($return_local['status'] == 401){ 583 586 $redirect_url = "//" . $_SERVER['HTTP_HOST'] . strtok($_SERVER["REQUEST_URI"], '?'); 584 587 $redirect_url .= "?clearsession"; … … 587 590 exit(); 588 591 589 }elseif ( json_decode($responses,true)['status'] == 406){592 }elseif ($return_local['status'] == 406){ 590 593 591 594 $redirect_url = "//" . $_SERVER['HTTP_HOST'] . strtok($_SERVER["REQUEST_URI"], '?'); … … 599 602 exit(); 600 603 601 }elseif(isset( json_decode($responses,true)['sign_redirect'])){604 }elseif(isset($return_local['sign_redirect'])){ 602 605 $redirect_url = $this->_get_form_root_path(wp_get_referer()) . "?privacysign&pk=" . sanitize_text_field($_GET['pk']); 603 606 if(isset($_GET['rfc'])){ … … 732 735 } 733 736 */ 737 738 $formData['code'] = isset($formData['code']) ? $formData['code'] : ''; 734 739 735 740 if(in_array($formData['code'], $error_code_a)){ … … 4485 4490 var area_status = api_data['area_status_js'][id]; 4486 4491 4487 // BUG 11/28 - this fails if there's an appostrophie in the label or title4492 // FIX BUG 11/28 - this fails if there's an appostrophie in the label or title 4488 4493 var popup_content = area_status['toolTip']; 4489 4494 … … 6877 6882 $client_a = isset($formData['client_a']) ? $formData['client_a'] : []; 6878 6883 6879 if($client_a["client_id"] == '1056'){6880 // print_r($client_a); die;6881 }6882 6883 6884 $event_a = $formData['event_a']; 6884 6885 $pre_launch_count = $formData['pre_launch_count']; … … 7783 7784 private function _generate_input_field($input_type, $input_data, $audit = 0) 7784 7785 { 7786 $input_data['value'] = isset($input_data['value']) ? $input_data['value'] : ''; 7787 $input_data['phone_intl'] = isset($input_data['phone_intl']) ? $input_data['phone_intl'] : ''; 7788 7785 7789 switch($input_type) { 7786 7790 … … 8241 8245 </span> 8242 8246 <?php endif; ?> 8243 <input type="text" id="clients-<?= $input_data['model_field']; ?>" class="form-control" name="<?= $input_data['model_label']; ?>[<?= $input_data['model_field']; ?>]" maxlength="255" value="<?= $input_data['value']; ?>" style="<?= $max_width; ?>" <?= $filter_type; ?> <?= $required; ?> <?= $field_disabled ?>>8247 <input type="text" id="clients-<?= $input_data['model_field']; ?>" class="form-control" name="<?= $input_data['model_label']; ?>[<?= $input_data['model_field']; ?>]" maxlength="255" value="<?= isset($input_data['value']) ? $input_data['value'] : ''; ?>" style="<?= $max_width; ?>" <?= $filter_type; ?> <?= $required; ?> <?= $field_disabled ?>> 8244 8248 </div> 8245 8249 </div> … … 8370 8374 $max_width = $input_data['max_width'] != null ? $input_data['max_width'].'px' : '250px;'; 8371 8375 $min_width = '200px;'; 8376 $phone_number_intl = isset($phone_number_intl) ? $phone_number_intl : ''; 8372 8377 $required = $input_data['required'] == 1 ? 'required' : ''; 8373 8378 $input_data['field_label'] = $this->_format_required_labels($input_data['field_label'], $input_data['required']); … … 9647 9652 private function _set_application_steps($screen = "", $form = "", $formData = "", $raw_output = false) 9648 9653 { 9654 $formData["applicant_a"]["origin_applic_id"] = isset($formData["applicant_a"]["origin_applic_id"]) ? $formData["applicant_a"]["origin_applic_id"] : 0; 9655 9649 9656 if(!$raw_output){ 9650 9657 if((int)$formData["applicant_a"]["origin_applic_id"] == 0) { … … 10074 10081 } 10075 10082 ?> 10076 v3.6. 810083 v3.6.9 10077 10084 : <a href="https://app.registerone.com/privacy-policy" target="_blank">Privacy Policy</a> 10078 10085 <?php -
registerone-event-forms/trunk/readme.txt
r2848039 r2936723 7 7 Requires at least: 5 8 8 Tested up to: 6.0 9 Version 3.6. 810 Stable tag: 3.6. 89 Version 3.6.9 10 Stable tag: 3.6.9 11 11 Requires PHP: 5.6 12 12 License: GPLv2 or later … … 138 138 == Changelog == 139 139 140 = 3.6.9 = 141 * UPDATE: Correct issues with last WP update and plugin. 142 140 143 = 3.6.8 = 141 144 * UPDATE: Set Terms and Conditions block as read-only. … … 904 907 * Initial release 905 908 906 907 909 == Upgrade Notice == 908 910 909 = 3.0.0 = 910 * Improved ticketing forms and configuration. 911 912 = 2.1 = 913 * Zoomable/mobile friendly map offered on Amenities booth selector. 914 915 = 2.0.1.1 = 916 * UX: Wrap long content in info-popup. 917 * UX: Clear vendor-modal-title on refresh. 918 919 = 2.0.1 = 920 * NEW: Advanced venue mapping with mobile friendly interface, search, booth booking and more. 921 922 = 2.0 = 923 * NEW: Advanced venue mapping with mobile friendly interface, search, booth booking and more. 924 925 = 1.0.7 = 926 * Added support for application deposit payment types and fixed minor bugs. 927 928 = 1.0.6 = 929 * Form field validation and custom form background added, misc tweaks. 930 931 = 1.0.5 = 932 * Added custom field support for applicant Profile form. 933 934 = 1.0.4 = 935 * Compatibility for WP v4.9. Please upgrade if you're on v4.9 or higher. 936 937 = 1.0.3 = 938 * Added Paypal logo on checkout page. A few CSS corrections. 939 940 = 1.0.2 = 941 * Added support for images in Uploads form page, better completion status display and various fixes and display improvements. 942 943 = 1.0.1 = 944 * Added custom, selectable keywords for vendor services/merchandise. 945 946 = 1.0.0 = 947 * Initial release 911 = 3.6.9 = 912 * UPDATE: Correct issues with last WP update and plugin. -
registerone-event-forms/trunk/registerone-wordpress-client.php
r2848039 r2936723 4 4 Plugin URI: https://www.registerone.com 5 5 Description: RegisterONE – Exhibitor & Speaker Registration, Advanced Booth Mapping, Ticketing 6 Version: 3.6. 86 Version: 3.6.9 7 7 Author: RegisterONE 8 8 Author URI: http://www.registerone.com … … 108 108 109 109 add_filter('pre_option_stylesheet', function () { 110 return $this->r1_theme_name.'_fixes_css_error'; 110 // return $this->r1_theme_name.'_fixes_css_error'; 111 return $this->r1_theme_name; 111 112 }); 112 113 add_filter('pre_option_template', function () { 113 return $this->r1_theme_name.'_fixes_css_error'; 114 // return $this->r1_theme_name.'_fixes_css_error'; 115 return $this->r1_theme_name; 114 116 }); 115 117 }; … … 207 209 } 208 210 211 $this->plugin_api_auth_key = isset($this->plugin_api_auth_key) ? $this->plugin_api_auth_key : ''; 212 209 213 $headers = $this->_set_request_header(['Accept' => "application/json, text/javascript, */*; q=0.01", 'Authorization' => 'Basic ' . $this->plugin_api_auth_key]); 210 214 $request_args = $this->_get_request_args([ … … 260 264 private function _set_request_header($headers = []) 261 265 { 262 $current_headers = $this->default_headers; 266 // $current_headers = $this->default_headers; 267 $current_headers = isset($this->default_headers) ? $this->default_headers : []; 263 268 264 269 if(!empty($current_headers)) { 265 270 foreach($headers as $key => $val) { 266 267 271 $current_headers[$key] = $val; 268 272 } … … 293 297 private function _set_request_args($args = []) 294 298 { 295 $current_args = $this->default_args;299 $current_args = isset($this->default_args) ? $this->default_args : []; 296 300 297 301 if(!empty($args) && is_array($current_args)) {
Note: See TracChangeset
for help on using the changeset viewer.