AO Downloads a file - Alfa Romeo Forum
You are currently unregistered, register for more features.    
The AO Bug Lounge
Find an image missing? A page you cannot access? Post it here.

 
Thread Tools
(Post Link) post #1 of 20 Old 04-03-11 Thread Starter
Status: Looking for an Alfa ;-)
AO Silver Member
 
GTLeigh's Avatar
 
Join Date: Apr 2004
Location: United Kingdom
County: Leicestershire
Posts: 2,541
AO Downloads a file

Hi im on an iMac - i've just logged into AO for the first time today, and everytime I click on a link or page my Mac downloads a file called cb-render.php

Never done it before is it a virus??

Cheers
GTLeigh is offline  
Sponsored Links
Advertisement
 
Status: R.I.P Allan Simonsen
AO Silver Member
 
philoldsmobile's Avatar
 
Join Date: Dec 2007
Location: United Kingdom
County: Buckinghamshire
Posts: 4,191
yup same here too..... mac mini dual core BTW..

did some investigating and it seems to be some sort of cookie, but i'm curious.. i *think* its legit, perhaps they are fiddling with the script..

(cant get anything past a mac! heheh!)
philoldsmobile is offline  
Status: R.I.P Allan Simonsen
AO Silver Member
 
philoldsmobile's Avatar
 
Join Date: Dec 2007
Location: United Kingdom
County: Buckinghamshire
Posts: 4,191
<?php
/**
* This class will be used for ad testing where we're going to test out dropping cookies on users based on what we think
* they're interested in
*/
include('RedisPHP.php');

class CookieBuckets {

public function __construct($userGuid) {
$this->enabled = true;
$this->redis = null;

$this->cookieImage = "";
$this->sendCookie = false;

try {
$this->redis = new RedisPHP("grv-crawl09");
$this->redis->ping();

$this->userGuid = $userGuid;

$this->currentDay = (int) date('z') + 1;

} catch (Exception $e) {
$this->enabled = false;
}
}


// give up the redis resources, close the socket
function __destruct() {

if (!is_null($this->redis)) {
$this->redis->disconnect();
}
}


public function isEnabled() {
return $this->enabled;
}

public function getSendCookie() {
return $this->sendCookie;
}

public function dropTheHottness() {
// check to see if we need to drop cookies on this person or not

$key = "ads_b_{$this->userGuid}";
$dayKey = "ads_b_{$this->currentDay}_{$this->userGuid}";
$bucket = $this->redis->get($dayKey);
if (is_null($bucket)) {
$this->setCookieForNewUserToday($key, $dayKey, $bucket);
}

}

public function getCookie() {
return $this->cookieImage;
}

/**
* this is what happens when we see a new user for the first time today
*/
private function setCookieForNewUserToday($key, $dayKey, $bucket) {

// check if eligible for ad test
$adBucket = $this->redis->get($key);
if (is_null($adBucket)) {
// set the fact we don't want to give this guy anything
$this->redis->set($dayKey, '0');
$this->redis->incr("ads_daily_{$this->currentDay}_nonbucketusers");
return false;
}

$this->redis->incr("ads_daily_{$this->currentDay}_bucketedusers");
$this->setCookieImage($adBucket, $dayKey);

}

private function setCookieImage($adBucket, $dayKey) {


$tokens = explode("-", $adBucket);
$category = $tokens[0];
$bucket = (int) $tokens[1];

$buckets = array(
'Jim Test' => array(
1 => '<img src="http://plushimages.net/temp/scripts/dropcookie.php?b1" width="1" height="1" border="0">',
2 => '<img src="http://plushimages.net/temp/scripts/dropcookie.php?b2" width="1" height="1" borde

Be judged for the man you are, and the actions of your life, not the book you read or the statue you pray to.......

Never hold a grudge, its a sign of a small, petty person.
philoldsmobile is offline  
munky
Status: - Update
Guest
 
Posts: n/a
Same here on windows 7 and firefox.

First the double posts, now this... AO is falling apart
 
Status: BORED
 
David P's Avatar
 
Join Date: Aug 2003
Location: Ireland
County: Cork
Posts: 85,180
Garage
Maybe related to the slow site issue that's been a problem since early this morning
David P is offline  
Status: bring back tapatalk
AO Silver Member
 
trashbat's Avatar
 
Join Date: Jun 2010
Location: United Kingdom
County: Manchester
Posts: 3,193
It's not a cookie, it's the source code for a website providing one. You're never supposed to see it, so some advertiser has cocked up.
trashbat is offline  
munky
Status: - Update
Guest
 
Posts: n/a
that would be http://input.insights.gravity.com perhaps...
 
Status: Misunderstood by many....
AO Platinum Member
 
n13roy's Avatar
 
Join Date: Feb 2008
Location: South Wales
Posts: 28,482

Member car:

147 JTDm Ti

I'm now getting.........

To help protect your security. Internet Explorer blocked this site from downloading files to your Computer.......

Think I'll come back on here tomorrow, methinks !!!!......
n13roy is offline  
GJ
Status: Relaxed
AO Platinum Member
 
GJ's Avatar
 
Join Date: Sep 2004
Location: United Kingdom
County: Herefordshire
Posts: 17,658

Member car:

Spider S4



This is what I get...
GJ is offline  
Status: SAGA(Sad Alfa Gits Anonymous.)
Club Member
Membro Premio
 
guiliasuper's Avatar
 
Club Member Number: 643
Join Date: Sep 2008
Location: United Kingdom
County: Kent
Posts: 3,428
MacBookPro has 14 cb_render.php.. Chrome has informed that site is attempting multiple downloads .
Quote:
<?php
/**
* This class will be used for ad testing where we're going to test out dropping cookies on users based on what we think
* they're interested in
*/
include('RedisPHP.php');

class CookieBuckets {

public function __construct($userGuid) {
$this->enabled = true;
$this->redis = null;

$this->cookieImage = "";
$this->sendCookie = false;

try {
$this->redis = new RedisPHP("grv-crawl09");
$this->redis->ping();

$this->userGuid = $userGuid;

$this->currentDay = (int) date('z') + 1;

} catch (Exception $e) {
$this->enabled = false;
}
}


// give up the redis resources, close the socket
function __destruct() {

if (!is_null($this->redis)) {
$this->redis->disconnect();
}
}


public function isEnabled() {
return $this->enabled;
}

public function getSendCookie() {
return $this->sendCookie;
}

public function dropTheHottness() {
// check to see if we need to drop cookies on this person or not

$key = "ads_b_{$this->userGuid}";
$dayKey = "ads_b_{$this->currentDay}_{$this->userGuid}";
$bucket = $this->redis->get($dayKey);
if (is_null($bucket)) {
$this->setCookieForNewUserToday($key, $dayKey, $bucket);
}

}

public function getCookie() {
return $this->cookieImage;
}

/**
* this is what happens when we see a new user for the first time today
*/
private function setCookieForNewUserToday($key, $dayKey, $bucket) {

// check if eligible for ad test
$adBucket = $this->redis->get($key);
if (is_null($adBucket)) {
// set the fact we don't want to give this guy anything
$this->redis->set($dayKey, '0');
$this->redis->incr("ads_daily_{$this->currentDay}_nonbucketusers");
return false;
}

$this->redis->incr("ads_daily_{$this->currentDay}_bucketedusers");
$this->setCookieImage($adBucket, $dayKey);

}

private function setCookieImage($adBucket, $dayKey) {


$tokens = explode("-", $adBucket);
$category = $tokens[0];
$bucket = (int) $tokens[1];

$buckets = array(
'Jim Test' => array(
1 => '<img src="http://plushimages.net/temp/scripts/dropcookie.php?b1" width="1" height="1" border="0">',
2 => '<img src="http://plushimages.net/temp/scripts/dropcookie.php?b2" width="1" height="1" border="0">',
3 => '<img src="http://plushimages.net/temp/scripts/dropcookie.php?b3" width="1" height="1" border="0">',
4 => '<img src="http://plushimages.net/temp/scripts/dropcookie.php?b4" width="1" height="1" border="0">'
),

'Fashion' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD01" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD02" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD03" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD04" width="1" height="1" border="0">',
),

'Cars' => array(

1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD05" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD06" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD07" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD08" width="1" height="1" border="0">',

),

'Finance' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD09" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD10" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD11" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD12" width="1" height="1" border="0">',
),

'High Level Food and Drink' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD13" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD14" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD15" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD16" width="1" height="1" border="0">',
),

'Fitness' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD17" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD18" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD19" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD20" width="1" height="1" border="0">',
),

'Medicine' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD21" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD22" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD23" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD24" width="1" height="1" border="0">',
),

'Household' => array(

1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD25" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD26" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD27" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD28" width="1" height="1" border="0">',
),

'Outdoor Recreation' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD29" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD30" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD31" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD32" width="1" height="1" border="0">',
),

'Culture' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD33" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD34" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD35" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD36" width="1" height="1" border="0">',
),

'History' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD37" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD38" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD39" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD40" width="1" height="1" border="0">',
),

'Law' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD41" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD42" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD43" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD44" width="1" height="1" border="0">',
),

'Politics' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD45" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD46" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD47" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD48" width="1" height="1" border="0">',
),

'Popular Culture' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD49" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD50" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD51" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD52" width="1" height="1" border="0">',
),

'High Level Sports' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD53" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD54" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD55" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD56" width="1" height="1" border="0">',
),

'Computers' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD57" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD58" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD59" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD60" width="1" height="1" border="0">',
),

'Mobile' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD61" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD62" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD63" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD64" width="1" height="1" border="0">',
),

'Places' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD65" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD66" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD67" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD68" width="1" height="1" border="0">',
),

'Tourism' => array(
1 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD69" width="1" height="1" border="0">',
2 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD70" width="1" height="1" border="0">',
3 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD71" width="1" height="1" border="0">',
4 => '<img src="http://bh.contextweb.com/bh/set.aspx?action=add&advid=3020&token=GAD72" width="1" height="1" border="0">',
),


);


if (isset($buckets[@$category])) {
$adTarget = $buckets[$category][$bucket];

$this->sendCookie = true;
$this->cookieImage = $adTarget;
$adBucket = str_replace(" ", "-", $adBucket);
$bucketKey = "ads_daily_{$this->currentDay}_{$adBucket}";
$this->redis->incr($bucketKey);

$bucketKey2 = "ads_daily_alltime_{$adBucket}";
$this->redis->incr($bucketKey2);


} else {

$this->redis->incr("ads_daily_{$this->currentDay}_invalidcategories");
}

// set the fact we hit this user:
$this->redis->set($dayKey, '1');


}

}

?>
<?php

$cb = new CookieBuckets($_GET['g']);

if ($cb->isEnabled()) {
$cb->dropTheHottness();
if ($cb->getSendCookie()) {

$wrapper = "<html><head></head><body>" . $cb->getCookie() . "</body></html>";
echo $wrapper;
} else {
$wrapper = "<html><head></head><body>null</body></html>";
echo $wrapper;

}
}
?>

Last edited by guiliasuper; 04-03-11 at 17:26.
guiliasuper is offline  
munky
Status: - Update
Guest
 
Posts: n/a
Quote:
Originally Posted by GJ View Post


This is what I get...
pink tinted windows
 
GJ
Status: Relaxed
AO Platinum Member
 
GJ's Avatar
 
Join Date: Sep 2004
Location: United Kingdom
County: Herefordshire
Posts: 17,658

Member car:

Spider S4

Quote:
Originally Posted by munky View Post
pink tinted windows
Your feeble attempts at profiling me have been negated

Windows 7 and a modified AO background... with a bit of colour

.... what more could I want

BTW I'm wearing black socks

GJ is offline  
munky
Status: - Update
Guest
 
Posts: n/a
The irony is, I have black windows in firefox and windows... but am wearing pink socks
 
Status: Molto felice
AO Rosso Alfa Member
 
Gibbo's Avatar
 
Join Date: Oct 2004
Location: United Kingdom
County: Bristol
Posts: 54,872
And a nightie



Gibbo is offline  
Status: Ellie Pearl 14/10/2006 - 11/04/2011
AO Platinum Member
 
Anjenha's Avatar
 
Join Date: Dec 2009
Location: United Kingdom
County: Hertfordshire
Posts: 17,798
But no knickers
Anjenha is offline  
GJ
Status: Relaxed
AO Platinum Member
 
GJ's Avatar
 
Join Date: Sep 2004
Location: United Kingdom
County: Herefordshire
Posts: 17,658

Member car:

Spider S4

I don't wear knickers... or nighties....

You lot are awful...


Whereas I'm an angel

As for Munkey... who can say


GJ is offline  
munky
Status: - Update
Guest
 
Posts: n/a
I wear all of the above. As often as possible.
 
Status: R.I.P Allan Simonsen
AO Silver Member
 
philoldsmobile's Avatar
 
Join Date: Dec 2007
Location: United Kingdom
County: Buckinghamshire
Posts: 4,191
all working now
philoldsmobile is offline  
Status: anniversary tomorrow !
AO Gold Member
 
alfamoment's Avatar
 
Join Date: Dec 2009
Location: United Kingdom
County: Neath Port Talbot
Posts: 11,159
Quote:
Originally Posted by philoldsmobile View Post
all working now
what did you do to stop it? I am still having the little grey boxes every thread page I open gives me a new one!! Am up to 110 tonight already! gggrrr! :headbanging: :headbanging: :headbanging: :headbanging:
alfamoment is offline  
Status: anniversary tomorrow !
AO Gold Member
 
alfamoment's Avatar
 
Join Date: Dec 2009
Location: United Kingdom
County: Neath Port Talbot
Posts: 11,159
by the way using Windows 7 and Google Chrome,m browser does this also happen on Explorer??
alfamoment is offline  
Reply

Go Back   Alfa Romeo Forum > The Official AO Problem Discussion Forum > Submit Your Questions / Bugs > The AO Bug Lounge

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 
For the best viewing experience please update your browser to Google Chrome