Changeset 2791670
- Timestamp:
- 09/29/2022 05:59:38 AM (4 years ago)
- Location:
- telsender/trunk
- Files:
-
- 5 edited
-
clasess/TscfwcSetting.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
template/log.php (modified) (1 diff)
-
template/wp-forms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telsender/trunk/clasess/TscfwcSetting.php
r2790597 r2791670 149 149 } 150 150 151 /**152 * @param $param153 * @return array|false|mixed154 */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 $param175 * @return array|false|mixed176 */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 }191 151 192 152 -
telsender/trunk/index.php
r2790597 r2791670 8 8 Description: Плагин отправляет заявки из форм в телеграм канал 9 9 Author: Pechenki 10 Version: 1.14 10 Version: 1.14.1 11 11 Author URI: https://pechenki.top/telsender.html 12 12 */ -
telsender/trunk/readme.txt
r2790597 r2791670 46 46 47 47 == Changelog == 48 = 1.14.1 = 49 - fix error 48 50 = 1.14 = 49 51 _Add event_ -
telsender/trunk/template/log.php
r2790597 r2791670 1 1 <div class="log0wrap"> 2 3 2 4 <table> 3 5 <tbody> -
telsender/trunk/template/wp-forms.php
r2790597 r2791670 4 4 5 5 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 9 10 echo '</select>'; 10 11 ?>
Note: See TracChangeset
for help on using the changeset viewer.