Plugin Directory

Changeset 2736582


Ignore:
Timestamp:
06/02/2022 06:30:58 PM (4 years ago)
Author:
pechenki
Message:

fix stable tag and other problem

Location:
telsender/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • telsender/trunk/clasess/TelsenderCore.php

    r2736141 r2736582  
    5555        add_action('wpforms_process_complete', array($this, 'tscfwc_wp_form'), 10, 4);
    5656        add_action('woocommerce_after_order_object_save', array($this, 'tscfwc_woocommerce_new_order_status'), 99, 2);
    57 
    5857        if ($this->tscfwc_setting_acsesform) {
    5958            add_action("wpcf7_mail_sent", array($this, 'wpcf7_tscfwc'), 99, 1);
  • telsender/trunk/clasess/TscfwcSetting.php

    r2736141 r2736582  
    149149    }
    150150
    151     /**
    152      * @param $param
    153      * @return array|false|mixed
    154      */
    155     protected function server($param = null)
    156     {
    157         if (isset($_SERVER)) {
    158             $server = $_SERVER;
    159             if (isset($server[$param])) {
    160                 return filter_input(INPUT_SERVER, $param);
    161             }
    162             if ($param) {
    163                 return false;
    164             }
    165 
    166             return array_combine(array_keys($server), array_map(function ($s) {
    167                 return filter_input(INPUT_SERVER, $s);
    168             }, array_keys($server)));
    169         }
    170         return false;
    171     }
    172 
    173     /**
    174      * @param $param
    175      * @return array|false|mixed
    176      */
    177     protected function session($param = null)
    178     {
    179         if (isset($_SESSION)) {
    180             $session = $_SESSION;
    181             if (isset($session[$param])) {
    182                 return filter_var($session[$param], FILEINFO_RAW);
    183             }
    184             if ($param) {
    185                 return false;
    186             }
    187 
    188         }
    189         return false;
    190     }
    191151
    192152
  • telsender/trunk/readme.md

    r2736141 r2736582  
    55Requires PHP: 5.6
    66Tested up to: 6.0
    7 Stable tag: trunk
     7Stable tag: 1.13
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • telsender/trunk/readme.txt

    r2736141 r2736582  
    55Requires PHP: 5.6
    66Tested up to: 6.0
    7 Stable tag: trunk
     7Stable tag: 1.13
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • telsender/trunk/template/contact-form.php

    r2736141 r2736582  
    99    <?php
    1010    echo '<select multiple id="selinfo" name="tscfwc_setting_acsesform[]" >';
    11         foreach ($cf7List as $pst) {
    12             echo '<option ' . ((in_array($pst->ID, (array)$this->tscfwc_setting_acsesform)) ? 'selected' : '') . '  value="' . $pst->ID . '">' . $pst->post_title . '</option>';
    13         }
     11    foreach ($cf7List as $pst):?>
     12       <option <?php echo esc_attr( (in_array($pst->ID, (array) $this->tscfwc_setting_acsesform) ? 'selected' : '')) ?>  value="<?php echo esc_attr( $pst->ID ) ?>"><?php echo esc_attr($pst->post_title) ?></option>
     13    <?php
     14    endforeach;
    1415    echo '</select>';
    1516    ?>
  • telsender/trunk/template/log.php

    r2736141 r2736582  
    11<div class="log0wrap">
     2
     3
    24    <table>
    35        <tbody>
  • telsender/trunk/template/wp-forms.php

    r2736141 r2736582  
    44
    55    echo '<select multiple id="wpforms_list" name="tscfwc_setting_acseswpforms[]" >';
    6     foreach ($wpfList as $pst) {
    7         echo '<option ' . ((in_array($pst->ID, (array)$this->tscfwc_setting_acseswpforms)) ? 'selected' : '') . '  value="' . $pst->ID . '">' . $pst->post_title . '</option>';
    8     }
     6    foreach ($wpfList as $pst): ?>
     7        <option <?php echo esc_attr( in_array($pst->ID, (array) $this->tscfwc_setting_acseswpforms) ? 'selected' : '') ?>  value="<?php echo esc_attr( $pst->ID ) ?>"><?php echo esc_attr($pst->post_title); ?></option>
     8    <?php endforeach;
     9
    910    echo '</select>';
    1011    ?>
Note: See TracChangeset for help on using the changeset viewer.