Changeset 3360423
- Timestamp:
- 09/12/2025 09:46:26 AM (7 months ago)
- Location:
- couponapi/trunk
- Files:
-
- 6 edited
-
brandlogos-resync.php (modified) (1 diff)
-
couponapi.php (modified) (2 diffs)
-
save-api-config.php (modified) (1 diff)
-
save-brandlogos-config.php (modified) (1 diff)
-
save-import-config.php (modified) (1 diff)
-
views.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
couponapi/trunk/brandlogos-resync.php
r3160492 r3360423 125 125 126 126 $resync = array('empty_logos' => isset($_POST['empty_logos']), 'grey_logos' => isset($_POST['grey_logos']), 'custom_logos' => isset($_POST['custom_logos'])); 127 $resync['store_slugs'] = $_POST['store_slugs'] ? explode(',', sanitize_text_field($_POST['store_slugs'])) : false;127 $resync['store_slugs'] = $_POST['store_slugs'] ? explode(',', esc_sql(sanitize_text_field($_POST['store_slugs']))) : false; 128 128 $wpdb->query("INSERT INTO `{$wpdb->prefix}couponapi_logs` (`microtime`, `msg_type`, `message`) VALUES (" . microtime(true) . ", 'info', 'Starting logos resync process. This may take several minutes...') "); 129 129 wp_schedule_single_event(time(), 'couponapi_process_brandlogos_resync_event', array($resync)); -
couponapi/trunk/couponapi.php
r3235774 r3360423 5 5 * Plugin URI: https://couponapi.org 6 6 * Description: Automatically import Coupons & Deals from popular Affiliate Networks into your WordPress Coupon Website. 7 * Version: 6.2. 97 * Version: 6.2.10 8 8 * Author: CouponAPI.org 9 9 * Author URI: https://couponapi.org … … 493 493 494 494 $file_location = "https://couponapi.org/api/download_feed.php"; 495 $file = $_GET['filename'];495 $file = esc_sql($_GET['filename']); 496 496 497 497 $sql = "SELECT * FROM " . $wp_prefix . "couponapi_config WHERE name IN ('API_KEY','pingback_setting')"; -
couponapi/trunk/save-api-config.php
r2866319 r3360423 26 26 27 27 $autopilot = ((isset($_POST['autopilot']) AND sanitize_text_field($_POST['autopilot']) == 'on')? 'On':'Off'); 28 $API_KEY = sanitize_key(trim($_POST['API_KEY']));28 $API_KEY = esc_sql(sanitize_key(trim($_POST['API_KEY']))); 29 29 $last_extract_date = esc_sql(sanitize_text_field($_POST['last_extract_date'])); 30 30 $last_extract_time = esc_sql(sanitize_text_field($_POST['last_extract_time'])); -
couponapi/trunk/save-brandlogos-config.php
r3015468 r3360423 23 23 24 24 global $wpdb; 25 $use_logos = (sanitize_text_field($_POST['use_logos'] ?? 'if_empty'));25 $use_logos = esc_sql(sanitize_text_field($_POST['use_logos'] ?? 'if_empty')); 26 26 $use_grey_image = $_POST['use_grey_image'] != 'on' ? 'off' : 'on'; 27 27 couponapi_process_use_logos($use_logos); 28 $size = (sanitize_text_field($_POST['size'] ?? 'horizontal'));28 $size = esc_sql(sanitize_text_field($_POST['size'] ?? 'horizontal')); 29 29 30 30 $sql = "REPLACE INTO {$wpdb->prefix}couponapi_config (name,value) VALUES ('use_logos','$use_logos'), ('use_grey_image','$use_grey_image'), ('size','$size')"; -
couponapi/trunk/save-import-config.php
r3166980 r3360423 28 28 $pingback_setting = ((isset($_POST['pingback_setting']) and sanitize_text_field($_POST['pingback_setting']) == 'on') ? 'On' : 'Off'); 29 29 $batch_size = intval($_POST['batch_size']); 30 $generic_import_image = sanitize_text_field($_POST['generic_import_image']??'off');30 $generic_import_image = esc_sql(sanitize_text_field($_POST['generic_import_image']??'off')); 31 31 $set_as_featured_image = (isset($_POST['set_as_featured_image']) and $generic_import_image != 'off') ? 'On' : 'Off'; 32 $ctype_code = $_POST['ctype_code']?? '';33 $ctype_deal = $_POST['ctype_deal']?? '';34 $store = isset($_POST['store'])? $_POST['store']:'store';35 $category = isset($_POST['category'])? $_POST['category']:'category';36 $code_text = $_POST['code_text']?? '';37 $expiry_text = $_POST['expiry_text']?? '';32 $ctype_code = esc_sql($_POST['ctype_code']) ?? ''; 33 $ctype_deal = esc_sql($_POST['ctype_deal']) ?? ''; 34 $store = isset($_POST['store'])?esc_sql($_POST['store']):'store'; 35 $category = isset($_POST['category'])?esc_sql($_POST['category']):'category'; 36 $code_text = esc_sql($_POST['code_text']) ?? ''; 37 $expiry_text = esc_sql($_POST['expiry_text']) ?? ''; 38 38 39 39 if (empty($batch_size)) $batch_size = 500; -
couponapi/trunk/views.php
r3166980 r3360423 558 558 // Get Logs 559 559 if (!empty($_POST['log_duration'])) { 560 $log_duration = $_POST['log_duration'];560 $log_duration = esc_sql($_POST['log_duration']); 561 561 } else { 562 562 $log_duration = '1 HOUR';
Note: See TracChangeset
for help on using the changeset viewer.