Pink Poogle Toy Forum

The official community of Pink Poogle Toy. Bear with me while I tweak everything
It is currently Wed Sep 16, 2026 11:12 am

All times are UTC




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 20, 2005 11:26 pm 
Beyond Godly
Beyond Godly
Offline

Posts: 4460
Joined: Fri Jan 21, 2005 1:23 pm
Location: Essex, UK "'"Set by WIS"'"
I was just viewing source of the new maraqua restaurant and found this...

Code:
<!--
function setCookie(NameOfCookie, value, expirehours) {
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expirehours * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) + ((expirehours == null) ? "" : "; expires=" + ExpireDate.toGMTString()) + "; path=/;" ;
}
 
function getCookie(name) {
   var beg = document.cookie.indexOf(name+"=");
   var len = beg+name.length+1;
   var end = document.cookie.indexOf(";",len);
   if (end == -1){
      end = document.cookie.length;
   }
   return unescape(document.cookie.substring(len,end));
}

function writeBanner(site){
   var bnum=new Number(Math.floor(99999999 * Math.random())+1);
   document.write('<SCR'+'IPT LANGUAGE="JavaScript" ');
   document.write('SRC="http://servedby.advertising.com/site='+site+'/size=728090/bnum='+bnum+'/optn=1">');
   document.write('</SCR'+'IPT>');
}

function call3rdParty(){
   document.write ('<script language="javascript" src="http://media.fastclick.net/w/get.media?sid=18587&m=1&tp=5&d=j&t=n"></script>');
}


var cookie_name = 'AdCom699904';
var g_c = 'AdComGb';
setCookie(g_c,'1',8760);

if (document.cookie.indexOf(g_c)!=-1 ){
   if (document.cookie.indexOf(cookie_name)==-1 ){
      setCookie(cookie_name,'1',24);
      writeBanner('699904');
   }else{
      var v = getCookie(cookie_name);
      if (v < 3){
         writeBanner('699905');
         v++;
         setCookie(cookie_name,v,24);
   }else if(v < 19){
         writeBanner('699906');
         v++;
         setCookie(cookie_name,v,24);
      }else{
         call3rdParty();
      }
   }
}else{
   call3rdParty();
}
// -->


I saw quite a few "ad-sites" in there and quite a lot of mentions of cookies and I instantly thought cookie-grabbers... I don't really know a lot about webcoding so I just wanted to see if anyone can shed any light on the situation...

_________________
ImageImage

Boom-shaka-laka! Rawr come and join us in the Randomness
Sig Halloween'd by Tom!


Top
 
   
 Post subject:
PostPosted: Wed Apr 20, 2005 11:29 pm 
PPT God
PPT God
Offline

Posts: 1093
Joined: Tue Jul 27, 2004 8:47 pm
Why would an official Neopets shop need a cookie-grabber? :roll:

_________________
Image


Top
 
   
 Post subject:
PostPosted: Wed Apr 20, 2005 11:31 pm 
Newbie
Newbie
Offline

Posts: 7
Joined: Fri Dec 03, 2004 6:16 pm
It's not a cookie grabber. Relax. It's perfectly normal (and safe) coding.


Top
 
   
 Post subject:
PostPosted: Wed Apr 20, 2005 11:32 pm 
PPT Trainee
PPT Trainee
Offline

Posts: 653
Joined: Wed Mar 30, 2005 5:51 pm
I think it has to do with the frequency of the ads.


Top
 
   
 Post subject:
PostPosted: Wed Apr 20, 2005 11:33 pm 
Beyond Godly
Beyond Godly
Offline

Posts: 4460
Joined: Fri Jan 21, 2005 1:23 pm
Location: Essex, UK "'"Set by WIS"'"
shadyviolet wrote:
It's not a cookie grabber. Relax. It's perfectly normal (and safe) coding.


ok thanks

mods you can lock this now :)

_________________
ImageImage

Boom-shaka-laka! Rawr come and join us in the Randomness
Sig Halloween'd by Tom!


Top
 
   
 Post subject:
PostPosted: Wed Apr 20, 2005 11:34 pm 
Honorary Member
Honorary Member
Offline

Posts: 2476
Joined: Mon May 31, 2004 9:18 pm
ICQ: 279147659
Website: http://fiddelysquat.deviantart.com
Glad this is cleared up. ;) I changed the topic title to let people know why it was locked. I don't want anybody assuming bad things about you. :D

_________________
Image


Top
 
   
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Limited