Plugin Directory

Changeset 2791670


Ignore:
Timestamp:
09/29/2022 05:59:38 AM (4 years ago)
Author:
pechenki
Message:

add Lang and fix error

Location:
telsender/trunk
Files:
5 edited

Legend:

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

    r2790597 r2791670  
    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/index.php

    r2790597 r2791670  
    88Description: Плагин отправляет заявки из форм в телеграм канал
    99Author: Pechenki
    10 Version: 1.14
     10Version: 1.14.1
    1111Author URI: https://pechenki.top/telsender.html
    1212*/
  • telsender/trunk/readme.txt

    r2790597 r2791670  
    4646
    4747== Changelog ==
     48= 1.14.1 =
     49 - fix error
    4850= 1.14 =
    4951_Add event_
  • telsender/trunk/template/log.php

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

    r2790597 r2791670  
    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.