Plugin Directory

Changeset 2936723


Ignore:
Timestamp:
07/10/2023 06:39:41 PM (3 years ago)
Author:
registerone
Message:

v3.6.9

Location:
registerone-event-forms/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • registerone-event-forms/trunk/admin/classes/RegisteroneShortcodes.php

    r2848039 r2936723  
    6868                    function registerone_change_page_title()
    6969                    {
    70                         $title = sanitize_text_field($_SESSION['title']);
     70                        $title = isset($_SESSION['title']) ? sanitize_text_field($_SESSION['title']) : '';
    7171                        unset($_SESSION['title']);
    7272                        return $title;
     
    523523        }
    524524
    525         if(1 == 2) {
     525        if(1 == 2 || $_SERVER['REMOTE_ADDR'] == '72.107.108.236x') {
    526526            echo "<pre>";
    527527            // print_r($this->event_attributes);
     
    533533        $responses = wp_remote_retrieve_body( wp_remote_request( $request_url, $request_args ) );
    534534
    535         if(1 == 2) {
     535        if(1 == 2 && $_SERVER['REMOTE_ADDR'] == '72.104.155.107') {
    536536            // die($this->current_screen);
    537537
     
    559559        }elseif(isset($_SERVER['SERVER_ADDR'])) {
    560560            $return_local = json_decode($responses,true);
     561
     562            $return_local['status'] = isset($return_local['status']) ? $return_local['status'] : 0;
     563
    561564            if(isset($return_local['type'])){
    562565                if(stristr($return_local['type'], 'ErrorException')){
     
    580583        }
    581584
    582         if (json_decode($responses,true)['status'] == 401){
     585        if ($return_local['status'] == 401){
    583586            $redirect_url = "//" . $_SERVER['HTTP_HOST'] . strtok($_SERVER["REQUEST_URI"], '?');
    584587            $redirect_url .= "?clearsession";
     
    587590            exit();
    588591
    589         }elseif (json_decode($responses,true)['status'] == 406){
     592        }elseif ($return_local['status'] == 406){
    590593
    591594            $redirect_url = "//" . $_SERVER['HTTP_HOST'] . strtok($_SERVER["REQUEST_URI"], '?');
     
    599602            exit();
    600603
    601         }elseif(isset(json_decode($responses,true)['sign_redirect'])){
     604        }elseif(isset($return_local['sign_redirect'])){
    602605            $redirect_url = $this->_get_form_root_path(wp_get_referer()) . "?privacysign&pk=" . sanitize_text_field($_GET['pk']);
    603606            if(isset($_GET['rfc'])){
     
    732735        }
    733736        */
     737
     738        $formData['code'] = isset($formData['code']) ? $formData['code'] : '';
    734739
    735740        if(in_array($formData['code'], $error_code_a)){
     
    44854490                        var area_status = api_data['area_status_js'][id];
    44864491
    4487                         // BUG 11/28 - this fails if there's an appostrophie in the label or title
     4492                        // FIX BUG 11/28 - this fails if there's an appostrophie in the label or title
    44884493                        var popup_content = area_status['toolTip'];
    44894494
     
    68776882            $client_a = isset($formData['client_a']) ? $formData['client_a'] : [];
    68786883
    6879             if($client_a["client_id"] == '1056'){
    6880                 // print_r($client_a); die;
    6881             }
    6882 
    68836884            $event_a = $formData['event_a'];
    68846885            $pre_launch_count = $formData['pre_launch_count'];
     
    77837784        private function _generate_input_field($input_type, $input_data, $audit = 0)
    77847785        {
     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
    77857789            switch($input_type) {
    77867790
     
    82418245                                    </span>
    82428246                                <?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 ?>>
    82448248                            </div>
    82458249                        </div>
     
    83708374                $max_width = $input_data['max_width'] != null ? $input_data['max_width'].'px' : '250px;';
    83718375                $min_width = '200px;';
     8376                $phone_number_intl = isset($phone_number_intl) ? $phone_number_intl : '';
    83728377                $required = $input_data['required'] == 1 ? 'required' : '';
    83738378                $input_data['field_label'] = $this->_format_required_labels($input_data['field_label'], $input_data['required']);
     
    96479652        private function _set_application_steps($screen = "", $form = "", $formData = "", $raw_output = false)
    96489653        {
     9654            $formData["applicant_a"]["origin_applic_id"] = isset($formData["applicant_a"]["origin_applic_id"]) ? $formData["applicant_a"]["origin_applic_id"] : 0;
     9655
    96499656            if(!$raw_output){
    96509657                if((int)$formData["applicant_a"]["origin_applic_id"] == 0) {
     
    1007410081                            }
    1007510082                            ?>
    10076                             v3.6.8
     10083                            v3.6.9
    1007710084                            : <a href="https://app.registerone.com/privacy-policy" target="_blank">Privacy Policy</a>
    1007810085                            <?php
  • registerone-event-forms/trunk/readme.txt

    r2848039 r2936723  
    77Requires at least: 5
    88Tested up to: 6.0
    9 Version 3.6.8
    10 Stable tag: 3.6.8
     9Version 3.6.9
     10Stable tag: 3.6.9
    1111Requires PHP: 5.6
    1212License: GPLv2 or later
     
    138138== Changelog ==
    139139
     140= 3.6.9 =
     141* UPDATE: Correct issues with last WP update and plugin.
     142
    140143= 3.6.8 =
    141144* UPDATE: Set Terms and Conditions block as read-only.
     
    904907* Initial release
    905908
    906 
    907909== Upgrade Notice ==
    908910
    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  
    44Plugin URI: https://www.registerone.com
    55Description: RegisterONE – Exhibitor & Speaker Registration, Advanced Booth Mapping, Ticketing
    6 Version: 3.6.8
     6Version: 3.6.9
    77Author: RegisterONE
    88Author URI: http://www.registerone.com
     
    108108
    109109                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;
    111112                });
    112113                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;
    114116                });
    115117            };
     
    207209                }
    208210
     211                $this->plugin_api_auth_key = isset($this->plugin_api_auth_key) ? $this->plugin_api_auth_key : '';
     212
    209213                $headers = $this->_set_request_header(['Accept' => "application/json, text/javascript, */*; q=0.01", 'Authorization' => 'Basic ' . $this->plugin_api_auth_key]);
    210214                $request_args = $this->_get_request_args([
     
    260264        private function _set_request_header($headers = [])
    261265        {
    262             $current_headers = $this->default_headers;
     266            // $current_headers = $this->default_headers;
     267            $current_headers = isset($this->default_headers) ? $this->default_headers : [];
    263268
    264269            if(!empty($current_headers)) {
    265270                foreach($headers as $key => $val) {
    266 
    267271                    $current_headers[$key] = $val;
    268272                }
     
    293297        private function _set_request_args($args = [])
    294298        {
    295             $current_args = $this->default_args;
     299            $current_args = isset($this->default_args) ? $this->default_args : [];
    296300
    297301            if(!empty($args) && is_array($current_args)) {
Note: See TracChangeset for help on using the changeset viewer.