| Server IP : 104.21.25.182 / Your IP : 216.73.217.68 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/security-malware-firewall/js/ |
Upload File : |
{"version":3,"file":"spbc-cookie.min.js","sources":["spbc-cookie.js"],"sourcesContent":["/**\n * Set Cookie\n * @param {string} cookies\n * @param {string} value\n * @param {number} expires\n */\nfunction spbcSetCookie( cookies, value, expires ) {/* eslint-disable-line no-unused-vars */\n if ( typeof cookies === 'string' && ( typeof value === 'string' || typeof value === 'number' ) ) {\n cookies = [[cookies, value, expires]];\n }\n\n // Cookies disabled\n if ( +spbcPublic.data__set_cookies === 0 ) {\n return;\n\n // Using traditional cookies\n } else if ( +spbcPublic.data__set_cookies === 1 ) {\n cookies.forEach( function(item, i, arr) {\n let expires = typeof item[2] !== 'undefined' ? 'expires=' + item[2] + '; ' : '';\n let ctSecure = location.protocol === 'https:' ? '; secure' : '';\n document.cookie = item[0] +\n '=' + encodeURIComponent(item[1]) +\n '; ' + expires + 'path=/; samesite=lax' +\n ctSecure;\n });\n }\n}\n\n/**\n * Send REST Request\n * @param {string} route\n * @param {obj} params\n */\nfunction spbcSendRESTRequest( route, params ) {/* eslint-disable-line no-unused-vars */\n let callback = params.callback || null;\n let data = params.data || [];\n let method = params.method || 'POST';\n\n jQuery.ajax({\n type: method,\n url: spbcPublic._rest_url + 'cleantalk-security/v1/' + route,\n data: data,\n beforeSend: function( xhr ) {\n xhr.setRequestHeader( 'X-WP-Nonce', spbcPublic._rest_nonce );\n xhr.setRequestHeader('X-Robots-Tag', 'noindex, nofollow');\n },\n success: function(result) {\n if (result.error) {\n console.log('Security by Cleantalk. Error: ' + (result.error || 'Unknown'));\n } else {\n if (callback) {\n let obj = null;\n callback(result, route, params, obj);\n }\n }\n },\n error: function(jqXHR, textStatus, errorThrown) {\n if ( errorThrown ) {\n console.log('SPBCT_REST_ERROR');\n console.log(jqXHR);\n console.log(textStatus);\n console.log('Security by Cleantalk plugin REST API error: ' +\n errorThrown +\n ' Please, contact Cleantalk tech support ' +\n 'https://wordpress.org/support/plugin/security-malware-firewall/');\n }\n },\n });\n}\n"],"names":["spbcSetCookie","cookies","value","expires","spbcPublic","data__set_cookies","forEach","item","i","arr","let","ctSecure","location","protocol","document","cookie","encodeURIComponent","spbcSendRESTRequest","route","params","callback","jQuery","ajax","type","method","url","_rest_url","data","beforeSend","xhr","setRequestHeader","_rest_nonce","success","result","error","console","log","jqXHR","textStatus","errorThrown"],"mappings":"AAMA,SAASA,cAAeC,EAASC,EAAOC,GACZ,UAAnB,OAAOF,GAA2C,UAAjB,OAAOC,GAAuC,UAAjB,OAAOA,IACtED,EAAU,CAAC,CAACA,EAASC,EAAOC,KAIO,GAAlC,CAACC,WAAWC,mBAI6B,GAAlC,CAACD,WAAWC,mBACpBJ,EAAQK,QAAS,SAASC,EAAMC,EAAGC,GAC/BC,IAAIP,EAA6B,KAAA,IAAZI,EAAK,GAAqB,WAAaA,EAAK,GAAK,KAAO,GACzEI,EAAiC,WAAtBC,SAASC,SAAwB,WAAa,GAC7DC,SAASC,OAASR,EAAK,GACnB,IAAMS,mBAAmBT,EAAK,EAAE,EAChC,KAAOJ,EAAU,uBACjBQ,CACR,CAAC,CAET,CAOA,SAASM,oBAAqBC,EAAOC,GACjCT,IAAIU,EAAWD,EAAOC,UAAY,KAIlCC,OAAOC,KAAK,CACRC,KAHSJ,EAAOK,QAAU,OAI1BC,IAAKrB,WAAWsB,UAAY,yBAA2BR,EACvDS,KANOR,EAAOQ,MAAQ,GAOtBC,WAAY,SAAUC,GAClBA,EAAIC,iBAAkB,aAAc1B,WAAW2B,WAAY,EAC3DF,EAAIC,iBAAiB,eAAgB,mBAAmB,CAC5D,EACAE,QAAS,SAASC,GACVA,EAAOC,MACPC,QAAQC,IAAI,kCAAoCH,EAAOC,OAAS,UAAU,EAEtEd,GAEAA,EAASa,EAAQf,EAAOC,EADd,IACyB,CAG/C,EACAe,MAAO,SAASG,EAAOC,EAAYC,GAC1BA,IACDJ,QAAQC,IAAI,kBAAkB,EAC9BD,QAAQC,IAAIC,CAAK,EACjBF,QAAQC,IAAIE,CAAU,EACtBH,QAAQC,IAAI,gDACRG,EAEA,yGAAiE,EAE7E,CACJ,CAAC,CACL"}