Permalink
Browse files

Regenerated delivery

  • Loading branch information...
mbeccati committed Jan 24, 2017
1 parent 05bb9f4 commit a51ee66865681ecf99ac256d4310ba323e8b3c83
Showing with 14 additions and 6 deletions.
  1. +6 −2 www/delivery/afr.php
  2. +2 −2 www/delivery/avw.php
  3. +3 −1 www/delivery/ck.php
  4. +3 −1 www/delivery/lg.php
@@ -4317,7 +4317,8 @@ function MAX_flashGetFlashObjectInline()
if (!isset($refresh)) $refresh = 0;
if (!isset($resize)) $resize = 0;
$banner = MAX_adSelect($what, $campaignid, $target, $source, $withtext, $charset, $context, true, $ct0, $loc, $referer);
if (!empty($banner['html']) && !empty($n)) {
if (!empty($n)) {
if (!empty($banner['html'])) {
$cookie = array();
$cookie[$conf['var']['adId']] = $banner['bannerid'];
if ($zoneid != 0) {
@@ -4326,7 +4327,10 @@ function MAX_flashGetFlashObjectInline()
if (!empty($source)) {
$cookie[$conf['var']['channel']] = $source;
}
MAX_cookieAdd($conf['var']['vars'] . "[$n]", serialize($cookie));
MAX_cookieAdd($conf['var']['vars'] . "[$n]", json_encode($cookie, JSON_UNESCAPED_SLASHES));
} else {
MAX_cookieUnset($conf['var']['vars'] . "[$n]");
}
}
MAX_cookieFlush();
MAX_commonSendContentTypeHeader('text/html', $charset);
@@ -4330,7 +4330,7 @@ function _adSelectDiscardNonMatchingAds(&$aAds, $aContext, $source, $richMedia)
if ($conf['logging']['adImpressions']) {
MAX_Delivery_log_logAdImpression($row['bannerid'], $zoneid);
}
MAX_cookieAdd($conf['var']['vars'] . "[$n]", serialize($cookie));
MAX_cookieAdd($conf['var']['vars'] . "[$n]", json_encode($cookie, JSON_UNESCAPED_SLASHES));
MAX_cookieFlush();
if ($row['bannerid'] == '') {
if ($row['default_banner_image_url'] != '') {
@@ -4342,7 +4342,7 @@ function _adSelectDiscardNonMatchingAds(&$aAds, $aContext, $source, $richMedia)
MAX_redirect($creativeURL);
}
} else {
MAX_cookieAdd($conf['var']['vars'] . "[$n]", 'DEFAULT');
MAX_cookieUnset($conf['var']['vars'] . "[$n]");
MAX_cookieFlush();
MAX_commonDisplay1x1();
}
@@ -3144,13 +3144,15 @@ function MAX_querystringConvertParams()
$n = isset($aGet[$conf['var']['n']]) ? $aGet[$conf['var']['n']] : '';
}
if (!empty($n) && !empty($_COOKIE[$conf['var']['vars']][$n])) {
$aVars = unserialize(stripslashes($_COOKIE[$conf['var']['vars']][$n]));
$aVars = json_decode($_COOKIE[$conf['var']['vars']][$n], true);
if (is_array($aVars)) {
foreach ($aVars as $name => $value) {
if (!isset($_GET[$name])) {
$aGet[$name] = $value;
}
}
}
}
$_GET = $aGet;
$_REQUEST = $_GET + $_POST + $_COOKIE;
}
@@ -3144,13 +3144,15 @@ function MAX_querystringConvertParams()
$n = isset($aGet[$conf['var']['n']]) ? $aGet[$conf['var']['n']] : '';
}
if (!empty($n) && !empty($_COOKIE[$conf['var']['vars']][$n])) {
$aVars = unserialize(stripslashes($_COOKIE[$conf['var']['vars']][$n]));
$aVars = json_decode($_COOKIE[$conf['var']['vars']][$n], true);
if (is_array($aVars)) {
foreach ($aVars as $name => $value) {
if (!isset($_GET[$name])) {
$aGet[$name] = $value;
}
}
}
}
$_GET = $aGet;
$_REQUEST = $_GET + $_POST + $_COOKIE;
}

0 comments on commit a51ee66

Please sign in to comment.