[ Index ]
 

Code source de bblocked 0.6.5

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/rewriters/ -> javascript_base64.php (source)

   1  <?php
   2           /*********************************************************\

   3          ******        bblocked Javascript Base64 Encoder       ******

   4         *****                                                     *****

   5        ****               Copyleft (C) 2007  bblocked               ****

   6       ***                                                             ***

   7      **  This program is free software; you can redistribute it and/or  **

   8     **   modify it under the terms of the GNU General Public License     **

   9    **    as published by the Free Software Foundation; either version 2   **

  10   **     of the License, or (at your option) any later version.            **

  11   **                                                                       **

  12   **     This program is distributed in the hope that it will be useful,   **

  13    **    but WITHOUT ANY WARRANTY; without even the implied warranty of   **

  14     **   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   **

  15      **  GNU General Public License for more details.                   **

  16       ***                                                             ***

  17        ****                                                         ****

  18         ****               http://www.bblocked.org/               *****

  19          ******                                                 ******

  20           \*********************************************************/
  21  
  22  /* Do not remove, prevents direct file access */

  23  if(!defined('BB'))
  24      die();
  25  
  26  $output = '
  27  // This code was originally written by Tyler Akins (http://rumkin.com)and has been placed in the

  28  // public domain. Then altered by Steven Roddis (http://stevenroddis.com.au), and placed in the public domain.

  29  
  30  var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function d(a){var b="";var c,chr2,chr3;var e,enc2,enc3,enc4;var i=0;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{e=keyStr.indexOf(a.charAt(i++));enc2=keyStr.indexOf(a.charAt(i++));enc3=keyStr.indexOf(a.charAt(i++));enc4=keyStr.indexOf(a.charAt(i++));c=(e<<2)|(enc2>>4);chr2=((enc2&15)<<4)|(enc3>>2);chr3=((enc3&3)<<6)|enc4;b=b+String.fromCharCode(c);if(enc3!=64){b=b+String.fromCharCode(chr2)}if(enc4!=64){b=b+String.fromCharCode(chr3)}}while(i<a.length);return b}
  31  
  32  eval(d("'.base64_encode($output).'"));
  33  ';
  34  ?>


Généré le : Tue Nov 20 20:31:26 2007 par Balluche grâce à PHPXref 0.7 Clicky Web Analytics