Changeset 2736582
- Timestamp:
- 06/02/2022 06:30:58 PM (4 years ago)
- Location:
- telsender/trunk
- Files:
-
- 7 edited
-
clasess/TelsenderCore.php (modified) (1 diff)
-
clasess/TscfwcSetting.php (modified) (1 diff)
-
readme.md (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
template/contact-form.php (modified) (1 diff)
-
template/log.php (modified) (1 diff)
-
template/wp-forms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
telsender/trunk/clasess/TelsenderCore.php
r2736141 r2736582 55 55 add_action('wpforms_process_complete', array($this, 'tscfwc_wp_form'), 10, 4); 56 56 add_action('woocommerce_after_order_object_save', array($this, 'tscfwc_woocommerce_new_order_status'), 99, 2); 57 58 57 if ($this->tscfwc_setting_acsesform) { 59 58 add_action("wpcf7_mail_sent", array($this, 'wpcf7_tscfwc'), 99, 1); -
telsender/trunk/clasess/TscfwcSetting.php
r2736141 r2736582 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/readme.md
r2736141 r2736582 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.0 7 Stable tag: trunk7 Stable tag: 1.13 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
telsender/trunk/readme.txt
r2736141 r2736582 5 5 Requires PHP: 5.6 6 6 Tested up to: 6.0 7 Stable tag: trunk7 Stable tag: 1.13 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
telsender/trunk/template/contact-form.php
r2736141 r2736582 9 9 <?php 10 10 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; 14 15 echo '</select>'; 15 16 ?> -
telsender/trunk/template/log.php
r2736141 r2736582 1 1 <div class="log0wrap"> 2 3 2 4 <table> 3 5 <tbody> -
telsender/trunk/template/wp-forms.php
r2736141 r2736582 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.