Файл: MoneyExchange v2.1/assets/js/cryptobox.min.js
Строк: 142
<?php
/**
*
* Cryptocoin Payment Box Javascript
*
* @package GoUrl Bitcoin/Altcoin Payment Box and Crypto Captcha
* @copyright 2014-2016 Delta Consultants
* @category Javascript
* @website https://gourl.io
* @api https://gourl.io/api.html
* @version 1.7.4
*
*/
function cryptobox_cookie(e){for(var o=e+"=",n=document.cookie.split(";"),t=0;t<n.length;t++){for(var a=n[t];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(o))return a.substring(o.length,a.length)}return""}function cryptobox_show(e,o,n,t,a,i,l,r,c,s,d,p,m,u,I,f){"number"!=typeof I&&(I=0),"number"!=typeof f&&(f=0);var b=n.substr(0,n.indexOf("AA"));if(""==b||e!=b||-1==n.indexOf("PUB"))alert("Invalid payment box public_key");else if(0>=t&&0>=a||t>0&&a>0)alert("You can use in payment box options one of variable only: amount or amountUSD. You cannot place values in that two variables together");else if(0!=t&&(t-0!=t||1e-4>t))alert("Invalid payment box amount");else if(0!=a&&(a-0!=a||.01>a))alert("Invalid payment box amountUSD");else if("COOKIE"!=s&&"SESSION"!=s&&"IPADDRESS"!=s&&"MANUAL"!=s)alert("Invalid payment box userFormat value");else if("COOKIE"==s&&""==p)alert("Invalid payment box cookie name");else if("COOKIE"==s&&""==cryptobox_cookie(p))alert("Please enable Cookies in your browser !");else if("COOKIE"==s&&cryptobox_cookie(p)!=c)alert("Invalid cookie value. It may be you are viewing an older copy of the page that is stored in the website cache. Please contact with website owner, need to disable/turn-off caching for current page");else if(""==d)alert("Invalid orderID");else if(""==i)alert("Invalid period");else if(50!=n.length)alert("Invalid public key");else if(""!=m&&(-1==m.indexOf("DEV")||m.length<20))alert("Invalid webdev_key, leave it empty");else if(""==u)alert("Invalid payment box hash");else{var y="https://coins.gourl.io/b/"+encodeURIComponent(e)+"/c/"+encodeURIComponent(o)+"/p/"+encodeURIComponent(n)+"/a/"+encodeURIComponent(t)+"/au/"+encodeURIComponent(a)+"/pe/"+encodeURIComponent(i.replace(" ","_"))+"/l/"+encodeURIComponent(l)+"/i/"+encodeURIComponent(r)+"/u/"+encodeURIComponent(c)+"/us/"+encodeURIComponent(s)+"/o/"+encodeURIComponent(d)+(m?"/w/"+encodeURIComponent(m):"")+(I>0?"/ws/"+encodeURIComponent(I):"")+(f>0?"/hs/"+encodeURIComponent(f):"")+"/h/"+encodeURIComponent(u)+"/z/"+Math.random(),h=document.getElementById(r);null==h?alert('Cryptobox iframeID HTML with id "'+r+'" not exist!'):h.src=y}return!0}function cryptobox_msghide(e){setTimeout(function(){document.getElementById(e).style.display="none"},15e3)}
?>