tartou2 Posted January 21, 2011 Share Posted January 21, 2011 Hello everybody I have a simple and silly question. This is a javascript code if(typeof _adhtzu=='undefined')var _adhtzu=Math.floor(Math.random()*4294967296);if(typeof _adhtzc=='undefined')var _adhtzc=0;if(++_adhtzc<=3){(function(){var s=[],l=window.location,r=document.referrer;if(l.hostname.replace(/^www\./i,'')==r.replace(/^https?:\/\/(?:www\.)?([^\/]+).*$/i,'$1')){l=parent.window.location;r=parent.document.referrer;}function f(o){var b,m;for(var i=0;i<o.childNodes.length;i++){b=o.childNodes[i];if(b.childNodes.length)f(b);if(b.nodeName=='SCRIPT'&&(m=b.src.match(/^(?:https??\/\/adhitzads.com\/([0-9]+)(?:\/([a-z0-9]{1,32}))?\/?$/)))s.push(m);}}f(document);for(var i=0;i<s.length;i++)if(_adhtzc-1==i)document.write('<scr'+'ipt src="http'+(window.location.protocol=='https:'?'s':'')+'://p1.adhitzads.com/?z='+s[i][1]+(s[i][2]?'&s='+s[i][2]:'')+'&p='+_adhtzu+'&l='+escape(l)+(r?'&r='+escape(r):'')+'&c='+_adhtzc+'" language="javascript"></scr'+'ipt>');})()} I don't anything about javascript but if possible can anyone have a look at the code and tell me if it grab the viewer email and insert it in the image link? Thanks really appreciated Quote Link to comment https://forums.phpfreaks.com/topic/225240-need-help-with-this/ Share on other sites More sharing options...
Maq Posted January 21, 2011 Share Posted January 21, 2011 Here is your code formatted: if (typeof _adhtzu == 'undefined') var _adhtzu = Math.floor(Math.random() * 4294967296); if (typeof _adhtzc == 'undefined') var _adhtzc = 0; if (++_adhtzc (function () { var s = [], l = window.location, r = document.referrer; if (l.hostname.replace(/^www\./i, '') == r.replace(/^https?:\/\/(?:www\.)?([^\/]+).*$/i, '$1')) { l = parent.window.location; r = parent.document.referrer; } function f(o) { var b, m; for (var i = 0; i b = o.childNodes[i]; if (b.childNodes.length) f(b); if (b.nodeName == 'SCRIPT' && (m = b.src.match(/^(?:https??\/\/adhitzads.com\/([0-9]+)(?:\/([a-z0-9]{1,32}))?\/?$/))) s.push(m); } } f(document); for (var i = 0; i ' + 'ipt>'); })() } I don't anything about javascript but if possible can anyone have a look at the code and tell me if it grab the viewer email and insert it in the image link? Just take a look at the source and see if the email is inserted. Quote Link to comment https://forums.phpfreaks.com/topic/225240-need-help-with-this/#findComment-1163233 Share on other sites More sharing options...
tartou2 Posted January 21, 2011 Author Share Posted January 21, 2011 I am very sorry I mean the user ip not the user email Quote Link to comment https://forums.phpfreaks.com/topic/225240-need-help-with-this/#findComment-1163244 Share on other sites More sharing options...
Maq Posted January 21, 2011 Share Posted January 21, 2011 I am very sorry I mean the user ip not the user email Ok... then just take a look at the source and see if the IP is inserted. Quote Link to comment https://forums.phpfreaks.com/topic/225240-need-help-with-this/#findComment-1163254 Share on other sites More sharing options...
tartou2 Posted January 22, 2011 Author Share Posted January 22, 2011 Well Maq if I knew anything about javascript I wouldn't ask, I have find my way through the code. I don't even know how the syntax that find the ip looks like. Anyway, the code limit the adz appearance to only 3. Anyway one can help me on how to alter that code and to make it show like 20 adz ? I do not have access to the previous code so i can't edit it. So i need a code which i can add on the main page and which can alter the above adz limit Quote Link to comment https://forums.phpfreaks.com/topic/225240-need-help-with-this/#findComment-1163566 Share on other sites More sharing options...
.josh Posted January 22, 2011 Share Posted January 22, 2011 You cannot get a user's IP address with javascript so the answer is no. Quote Link to comment https://forums.phpfreaks.com/topic/225240-need-help-with-this/#findComment-1163608 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.