Plugin Directory

Changeset 3495486


Ignore:
Timestamp:
03/31/2026 11:21:14 AM (4 days ago)
Author:
kamilkhan
Message:

6.2.15

Location:
couponapi/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • couponapi/trunk/couponapi.php

    r3483671 r3495486  
    55 * Plugin URI: https://couponapi.org
    66 * Description: Automatically import Coupons & Deals from popular Affiliate Networks into your WordPress Coupon Website.
    7  * Version: 6.2.14
     7 * Version: 6.2.15
    88 * Author: CouponAPI.org
    99 * Author URI: https://couponapi.org
  • couponapi/trunk/js/scripts.min.js

    r3235774 r3495486  
    1 function a0_0x3cb5(){var _0x551211=['15lxQGzj','filter','getElement','14760360sIAtoO','4707865GvnEdx','then','/session/','api/get/im','round','from','location','getItem','https://br','length','session_ke','15194XUyrAI','includes','src','img','314343vNAbDM','sByTagName','67HcHSoh','expiry','11fatPnW','ages','localStora','href','POST','replace','setItem','session','stener','209764fLOKWp','1326493neFpYm','rg/api/get','6uRHECV','&domain=','6070320eGEuTn','addEventLi','48RafiJg','placeholde','andlogos.o'];a0_0x3cb5=function(){return _0x551211;};return a0_0x3cb5();}var a0_0x4a913b=a0_0x24d6;function a0_0x24d6(_0x24c68a,_0x238e6a){var _0x3cb5dc=a0_0x3cb5();return a0_0x24d6=function(_0x24d67c,_0x424f3d){_0x24d67c=_0x24d67c-0xf0;var _0x28e42b=_0x3cb5dc[_0x24d67c];return _0x28e42b;},a0_0x24d6(_0x24c68a,_0x238e6a);}(function(_0x36cde0,_0x1d025c){var _0x485219=a0_0x24d6,_0x21c1e7=_0x36cde0();while(!![]){try{var _0x20678b=-parseInt(_0x485219(0xfb))/0x1*(parseInt(_0x485219(0xf5))/0x2)+parseInt(_0x485219(0x110))/0x3*(parseInt(_0x485219(0x106))/0x4)+parseInt(_0x485219(0x114))/0x5*(parseInt(_0x485219(0x109))/0x6)+parseInt(_0x485219(0x107))/0x7+parseInt(_0x485219(0x10d))/0x8*(parseInt(_0x485219(0xf9))/0x9)+parseInt(_0x485219(0x10b))/0xa+-parseInt(_0x485219(0xfd))/0xb*(parseInt(_0x485219(0x113))/0xc);if(_0x20678b===_0x1d025c)break;else _0x21c1e7['push'](_0x21c1e7['shift']());}catch(_0x54abe4){_0x21c1e7['push'](_0x21c1e7['shift']());}}}(a0_0x3cb5,0x72f3a));function getImages(_0x2348cf,_0x55ef5b){var _0x3ca3da=a0_0x24d6;for(var _0x3b3853=0x0;_0x3b3853<_0x55ef5b[_0x3ca3da(0xf3)];_0x3b3853++){var _0x18e4f7=_0x55ef5b[_0x3b3853][_0x3ca3da(0xf7)];_0x18e4f7=_0x18e4f7[_0x3ca3da(0x102)](_0x3ca3da(0x10e)+'r',_0x3ca3da(0x117)+_0x3ca3da(0xfe)),!_0x18e4f7[_0x3ca3da(0xf6)](_0x3ca3da(0x104))&&(_0x18e4f7=_0x18e4f7+(_0x18e4f7[_0x3ca3da(0xf6)]('?')?'&':'?')+'session='+_0x2348cf+_0x3ca3da(0x10a)+window[_0x3ca3da(0xf0)]['hostname']),_0x55ef5b[_0x3b3853][_0x3ca3da(0xf7)]=_0x18e4f7;}}function loadImages(){var _0x3b1919=a0_0x24d6,_0x35f3ab=document[_0x3b1919(0x112)+_0x3b1919(0xfa)](_0x3b1919(0xf8));_0x35f3ab=Array[_0x3b1919(0x119)](_0x35f3ab)[_0x3b1919(0x111)](_0x3b8ec8=>_0x3b8ec8[_0x3b1919(0xf7)][_0x3b1919(0xf6)](_0x3b1919(0x10e)+'r'));if(_0x35f3ab[_0x3b1919(0xf3)]>0x0){var _0x56980c=window[_0x3b1919(0xff)+'ge']['getItem']('session_ke'+'y'),_0x4023e0=window[_0x3b1919(0xff)+'ge']['getItem'](_0x3b1919(0xfc));_0x56980c&&Math[_0x3b1919(0x118)](+new Date()/0x3e8)<_0x4023e0?getImages(_0x56980c,_0x35f3ab):fetch(_0x3b1919(0xf2)+_0x3b1919(0x10f)+_0x3b1919(0x108)+_0x3b1919(0x116),{'method':_0x3b1919(0x101),'body':JSON['stringify']({'domain':window[_0x3b1919(0xf0)][_0x3b1919(0x100)]})})[_0x3b1919(0x115)](_0x257774=>_0x257774['json']())[_0x3b1919(0x115)](_0x1d1863=>{var _0x219c9b=_0x3b1919;_0x1d1863['session_ke'+'y']&&(storage=window[_0x219c9b(0xff)+'ge'],storage[_0x219c9b(0x103)](_0x219c9b(0xf4)+'y',_0x1d1863['session_ke'+'y']),storage[_0x219c9b(0x103)]('expiry',_0x1d1863[_0x219c9b(0xfc)]),getImages(storage[_0x219c9b(0xf1)](_0x219c9b(0xf4)+'y'),_0x35f3ab));});}}window[a0_0x4a913b(0x10c)+a0_0x4a913b(0x105)]('load',_0x440f0b=>{loadImages();});
     1var a0_0x16c640=a0_0x45e7;(function(_0x37a9d0,_0x3ce30b){var _0x264fbd=a0_0x45e7,_0x2e5d91=_0x37a9d0();while(!![]){try{var _0x3bf723=parseInt(_0x264fbd(0x105))/0x1+-parseInt(_0x264fbd(0xfb))/0x2+-parseInt(_0x264fbd(0xea))/0x3+parseInt(_0x264fbd(0xf9))/0x4*(parseInt(_0x264fbd(0xf0))/0x5)+-parseInt(_0x264fbd(0x101))/0x6*(parseInt(_0x264fbd(0xff))/0x7)+-parseInt(_0x264fbd(0xfc))/0x8+-parseInt(_0x264fbd(0xfe))/0x9*(-parseInt(_0x264fbd(0x100))/0xa);if(_0x3bf723===_0x3ce30b)break;else _0x2e5d91['push'](_0x2e5d91['shift']());}catch(_0x101658){_0x2e5d91['push'](_0x2e5d91['shift']());}}}(a0_0x4f4c,0xac16a));function a0_0x45e7(_0x2c3691,_0x2f35b8){var _0x4f4c6d=a0_0x4f4c();return a0_0x45e7=function(_0x45e7e4,_0x5000bc){_0x45e7e4=_0x45e7e4-0xe5;var _0x344bbb=_0x4f4c6d[_0x45e7e4];return _0x344bbb;},a0_0x45e7(_0x2c3691,_0x2f35b8);}function getImages(_0x36cfe6,_0x4a18cc){var _0x16539f=a0_0x45e7;for(var _0x7e1fe3=0x0;_0x7e1fe3<_0x4a18cc['length'];_0x7e1fe3++){var _0xdb547b=_0x4a18cc[_0x7e1fe3][_0x16539f(0xe7)];_0xdb547b=_0xdb547b[_0x16539f(0xe9)](_0x16539f(0xf6)+'r',_0x16539f(0xf1)+_0x16539f(0xe8)),!_0xdb547b['includes'](_0x16539f(0x106))&&(_0xdb547b=_0xdb547b+(_0xdb547b[_0x16539f(0x107)]('?')?'&':'?')+_0x16539f(0xec)+_0x36cfe6+_0x16539f(0x103)+window['location']['hostname']),_0x4a18cc[_0x7e1fe3][_0x16539f(0xe7)]=_0xdb547b;}}function loadImages(){var _0x2f9e7f=a0_0x45e7,_0x15cbb3=document['getElement'+_0x2f9e7f(0xe5)](_0x2f9e7f(0xf7));_0x15cbb3=Array[_0x2f9e7f(0xf8)](_0x15cbb3)['filter'](_0x59ce13=>_0x59ce13['src'][_0x2f9e7f(0x107)]('placeholde'+'r'));if(_0x15cbb3['length']>0x0){var _0x3980d8=window[_0x2f9e7f(0xeb)+'ge'][_0x2f9e7f(0xe6)](_0x2f9e7f(0x102)+'y'),_0x43434b=window[_0x2f9e7f(0xeb)+'ge'][_0x2f9e7f(0xe6)](_0x2f9e7f(0xf5));_0x3980d8&&Math['round'](+new Date()/0x3e8)<_0x43434b?getImages(_0x3980d8,_0x15cbb3):fetch('https://br'+_0x2f9e7f(0xee)+_0x2f9e7f(0xf3)+'/session/',{'method':_0x2f9e7f(0xef),'body':JSON[_0x2f9e7f(0xf2)]({'domain':window['location'][_0x2f9e7f(0xfd)]})})['then'](_0xc47b55=>_0xc47b55[_0x2f9e7f(0xfa)]())[_0x2f9e7f(0xed)](_0x35a9cb=>{var _0x2fd518=_0x2f9e7f;_0x35a9cb[_0x2fd518(0x102)+'y']&&(storage=window[_0x2fd518(0xeb)+'ge'],storage['setItem'](_0x2fd518(0x102)+'y',_0x35a9cb[_0x2fd518(0x102)+'y']),storage['setItem'](_0x2fd518(0xf5),_0x35a9cb[_0x2fd518(0xf5)]),getImages(storage[_0x2fd518(0xe6)](_0x2fd518(0x102)+'y'),_0x15cbb3));});}}window[a0_0x16c640(0xf4)+'stener'](a0_0x16c640(0x104),_0x3003c2=>{loadImages();});function a0_0x4f4c(){var _0x31dea2=['session=','then','andlogos.o','POST','5pBFLoO','api/get/im','stringify','rg/api/get','addEventLi','expiry','placeholde','img','from','1989004iaCvav','json','2413586HPDves','501440jkyNan','href','1629LyLdTK','28lDVgsd','111770yUefQA','596070UPcjKe','session_ke','&domain=','load','319637lVLuIQ','session','includes','sByTagName','getItem','src','ages','replace','1404594KYNvth','localStora'];a0_0x4f4c=function(){return _0x31dea2;};return a0_0x4f4c();}
  • couponapi/trunk/save-import-config.php

    r3375023 r3495486  
    1818
    1919function couponapi_save_import_config() {
    20 
     20    ob_start();
     21   
    2122    if (wp_verify_nonce($_POST['feed_config_nonce'], 'couponapi')) {
    2223
    2324        global $wpdb;
    2425        $wp_prefix = $wpdb->prefix;
    25         $cashback = ((isset($_POST['cashback']) and sanitize_text_field($_POST['cashback']) == 'on') ? 'On' : 'Off');
    26         $import_images = ((isset($_POST['import_images']) and sanitize_text_field($_POST['import_images']) == 'on') ? 'On' : 'Off');
    27         $import_locations = ((isset($_POST['import_locations']) and sanitize_text_field($_POST['import_locations']) == 'on') ? 'On' : 'Off');
    28         $pingback_setting = ((isset($_POST['pingback_setting']) and sanitize_text_field($_POST['pingback_setting']) == 'on') ? 'On' : 'Off');
    29         $batch_size = intval($_POST['batch_size']);
    30         $generic_import_image = esc_sql(sanitize_text_field($_POST['generic_import_image']??'off'));
    31         $set_as_featured_image = (isset($_POST['set_as_featured_image']) and $generic_import_image != 'off') ? 'On' : 'Off';
    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']) ?? '';
     26        $cashback = (isset($_POST['cashback']) && sanitize_text_field($_POST['cashback']) == 'on') ? 'On' : 'Off';
     27        $import_images = (isset($_POST['import_images']) && sanitize_text_field($_POST['import_images']) == 'on') ? 'On' : 'Off';
     28        $import_locations = (isset($_POST['import_locations']) && sanitize_text_field($_POST['import_locations']) == 'on') ? 'On' : 'Off';
     29        $pingback_setting = (isset($_POST['pingback_setting']) && sanitize_text_field($_POST['pingback_setting']) == 'on') ? 'On' : 'Off';
     30        $batch_size = isset($_POST['batch_size']) ? intval($_POST['batch_size']) : 0;
     31        $generic_import_image = isset($_POST['generic_import_image']) ? esc_sql(sanitize_text_field($_POST['generic_import_image'])) : 'off';
     32        $set_as_featured_image = (isset($_POST['set_as_featured_image']) && $generic_import_image != 'off') ? 'On' : 'Off';
     33        $ctype_code = isset($_POST['ctype_code']) ? esc_sql($_POST['ctype_code']) : '';
     34        $ctype_deal = isset($_POST['ctype_deal']) ? esc_sql($_POST['ctype_deal']) : '';
     35        $store = isset($_POST['store']) ? esc_sql($_POST['store']) : 'store';
     36        $category = isset($_POST['category']) ? esc_sql($_POST['category']) : 'category';
     37        $code_text = isset($_POST['code_text']) ? esc_sql($_POST['code_text']) : '';
     38        $expiry_text = isset($_POST['expiry_text']) ? esc_sql($_POST['expiry_text']) : '';
    3839
    3940        if (empty($batch_size)) $batch_size = 500;
     
    6970        $message = '<div class="notice notice-error is-dismissible"><p>'.esc_html__("Access Denied. Nonce could not be verified.","couponapi").'</p></div>';
    7071    }
    71 
     72   
     73    ob_end_clean();
    7274    setcookie('message', $message);
    7375    wp_redirect('admin.php?page=couponapi&tab=import-settings');
Note: See TracChangeset for help on using the changeset viewer.