1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

<!--hppage status="protected"--> - How to Unlock ?

Discussion in 'JavaScript' started by pragos, Apr 15, 2006.

  1. #1
    Hello ,

    Someone doing cheat on my toplist and he was protect html codes ...

    Can we Encode it ? I need to unlock his codes...

    His Protected Page :

     
    pragos, Apr 15, 2006 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you have perl installed, do the following.

    Save that material to a file named "junk.html"

    Write a small perl script called reveal.pl

    Run the script and view the contents of the file named "revealed.html"

    This is the script:

    
    $infile = "junk.html";
    $outfile = "revealed.html";
    
    open(INFILE, "$infile");
    if(!INFILE) { return "cannot open $infile"; }
    if(INFILE)
    	{
    	my @content = <INFILE>;
    	$theText = join( "", @content);
    	}
    close(INFILE);
    
    while ( $theText =~ m/([=\%\&]([A-Za-z0-9]{2}))/g )
    	{ my $to  = hex($2); $to = chr($to); if($2 ne "01") { $theText =~ s/[=\%]$2/$to/g; } }
    
    open(OUTFILE, ">$outfile");
    if(!OUTFILE) { return "cannot create $outfile"; }
    print OUTFILE $theText;
    close(OUTFILE);
    
    Code (markup):
     
    clancey, Apr 15, 2006 IP