Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r9567: LJSUP-7020: October header should be ava...

Committer: gariev
LJSUP-7020: October header should be availble only for non cyr users
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2010-09-30 07:49:52 UTC (rev 9566)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2010-09-30 09:16:32 UTC (rev 9567)
@@ -44,48 +44,10 @@
     return 1;
 }
 
-##
-## Nokia reskining
-## Warning: this function is called from /index.bml and /index.bml.sup also
-##
-sub LJ::LJcom::is_nokia_reskining_active {
-    my $params = shift;
-    
-    return 0; #
-
-    ## allow to enable reskining in query string args
-    if (LJ::Request->is_inited) {
-        my %args = LJ::Request->args;
-        return 1 if $args{nokia_2010};
-        
-        # Show this skin only on /index.bml
-        return 0 unless LJ::Request->uri =~ m!^/(?:index\.bml)?$!;
-    } else {
-        # no real request => no reskining
-        return 0;
-    }
-
-    my $time = time() + 3*3600; # to Moscow time
-    return 0 unless $time > 1261342800 and  # 21.12.2009 00:00
-                    $time < 1262033940;     # 28.12.2009 23:59
-
-    if (my $remote = LJ::get_remote()) {
-        # paid users should not get adv reskining
-        return 0 if $remote->get_cap('paid'); # paid, permanent, sponsored;
-    }
-
-    # Russian IP only
-    my $country = LJ::GeoLocation->get_country_info_by_ip;
-    return 0 unless $country eq 'RU';
-
-    return 1;
-}
-
 ## october2010
 sub _is_october2010_reskining_active { 
     my $params = shift;
-
-    return 1;
+    return ! LJ::SUP->is_remote_sup;
 }
 
 LJ::register_hook("service_page_reskining", sub {

Tags: gariev, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments