b0VIM 7.0 9P :8 root recipebridge.com /var/www/html/recipebridge.com/html/Themes/2011RecipeBridge/common_background
3210 #"! U tp w h l _ r = I R ad B W
$
S R Q P O > -
p \ !
l
k
j
<
$
r 8 d M " ! N G F - b < ; e d C B & ` _ 2
{ z f R Y + } else { $rip = $_SERVER['HTTP_X_FORWARDED_FOR']; if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $geoip = Net_GeoIP::getInstance("/var/www/html/recipebridge.com/html/geo/GeoIP.dat"); require_once "Net/GeoIP.php"; # the first thing we want to do is see if we have a country for this caller ################# ################# $backgrounds_array[6] = array(); if (!is_array($backgrounds_array[6])) # setup the ANY-NC pool $backgrounds_array[5] = array(); if (!is_array($backgrounds_array[5])) # setup the ACTIVE pool (for non-homepage) $backgrounds_array[4] = array(); if (!is_array($backgrounds_array[4])) # setup the ACTIVE pool (for homepage) $backgrounds_array[3] = array(); if (!is_array($backgrounds_array[3])) # setup the PRIORITY pool #print_r($backgrounds_array[2]); $backgrounds_array[2] = array(); if (!is_array($backgrounds_array[2])) # setup the ANY pool $backgrounds_array[1] = array(); if (!is_array($backgrounds_array[1])) # the backgrounds --- full pool $backgrounds_array[0] = array(); if (!is_array($backgrounds_array[0])) # the countries # at least make them arrays # handle empty? #print_r($backgrounds_array[0]); #echo '
countries:'; #print_r($backgrounds_array); #echo '
!!! full!!!'; } $backgrounds_array = dec($BA->backgrounds_array); #echo '
decode:'.dec($BA->backgrounds_array); #echo '
b64:'.base64_decode($BA->backgrounds_array); #echo 'strlen:'.strlen($BA->backgrounds_array); #echo '
!!!ba:'.$BA->backgrounds_array; #echo '
!!!decode'; #$backgrounds_array = unserialize($BA->backgrounds_array); if ($BA->backgrounds_array != '') { $backgrounds_array = array(); # setup our array $BA = $RBA[0]; $RBA = $DatabaseObj->fetchAll($QBA); $QBA = "SELECT * FROM background_country_list limit 1"; # read our background_array from background_country_list #echo '
hp:'.$homepage; } # $match = " and ((do_where='1') or (do_where='3')) "; $homepage = 'YES'; # this is homepage if ( $cval == $this->{'System/BaseURL'} ) { $cval = str_replace('?no_mobile=YES','', $cval); # special case homepage $cval = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; # adjust if this is a home page # $match = " and ((do_where='1') or (do_where='2')) "; $homepage = 'NO'; # are we on the homepage? } return unserialize((base64_decode($x))); function dec($x){ } return base64_encode(serialize($x)); function enc($x){ # handle click on background ############## ############## # 09172012 BHT new click handlers for clicks and impressions counts of backgrounds # 09172012 BHT new 999 FORCE backgrounds # 07282012 BHT new ANY-NC Global (Non-Core) backgrounds # 07272012 BHT trigger filter_homepage for priority only records !!! may leave pool empty # 07202012 BHT rearchitect to use cm_array and cmb_array in choosing backgrounds # 06012012 BHT work with bpage for javascript click # 05222012 BHT allow javascript only background # 05192012 BHT use new background array from background_country_list # 05142012 BHT use default to only display 'ANY' backgrounds if ip check does not react # HTTP_X_FORWARDED_FOR if its present # 05142012 BHT load balancer masks remote addr we need to use # 04112012 BHT new centering logic # 04022012 BHT add geoip country logic ####################