Committer: sboronchiev
LJSUP-12527: Beeline branding of main page U trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/Homepage.pm 2012-06-25 08:35:41 UTC (rev 12166) +++ trunk/cgi-bin/LJ/Hooks/Homepage.pm 2012-06-25 09:18:50 UTC (rev 12167) @@ -56,8 +56,15 @@ my $remote = LJ::get_remote(); return if $remote && ($remote->get_cap('paid') || !$remote->in_class('plus')); - ## only users from Russia + ## only users from Russia, Ukraine and Belorussia return if LJ::GeoLocation->get_country_info_by_ip ne 'RU'; + + ## beeline branding - 00.00 28 of June till 23.59 19 0f July + my $time = time(); + if ($time > 1340827200 || $time > 1342727940) { + return if LJ::GeoLocation->get_country_info_by_ip ne 'UA'; + return if LJ::GeoLocation->get_country_info_by_ip ne 'BY'; + } ## only Cyr users return unless LJ::SUP->is_remote_sup; @@ -89,9 +96,8 @@ # beeline # 00.00 28 of June till 23.59 19 0f July if (LJ::_is_branding_active() && ($time > 1340827200 && $time < 1342727940)) { - my $rnd = int(rand(1_000_000)); return - '<a href="http://shopping-digest.ru/?utm_source=LJ_com&utm_medium=homepage&utm_content=branding-statis&utm_campaign=fed_megafon_sup_spec-anons" class="beeline-link" target="_blank"> </a>'; + '<a href="http://ad.adriver.ru/cgi-bin/click.cgi?sid=1&bt=21&ad=342511&pid=864734&bid=1845012&bn=1845012&rnd=911750838" class="beeline-link" target="_blank"> </a> <img src="http://ad.adriver.ru/cgi-bin/rle.cgi?sid=1&bt=21&ad=342511&pid=864734&bid=1845012&bn=1845012&rnd=911750838" width="1" height="1" border="0" class="brandingdragon-pixel" />'; } });