Показать сообщение отдельно

  #2  
Старый 20.04.2009, 12:00
0rs
Познающий
Регистрация: 30.12.2008
Сообщений: 64
С нами: 9138151

Репутация: 76
По умолчанию

Сама функция расшифровки
PHP код:
var codelock_bas = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 +/ '; 
function 
codelock_dec(str) 
{ 
  
str = str.split('@').join('CAg'); 
  
str = str.split(' ! ').join('W5'); 
  
str = str.split(' * ').join('CAgI'); 
  var 
bt, dt = ''; 
  for(
i = 0; 
  
i<str.length; 
  
i += 4) 
  { 
    
bt =(codelock_bas.indexOf(str.charAt(i)) & 0xff)<<18 |(codelock_bas.indexOf(str.charAt(i + 1)) & 0xff)<<12 |(codelock_bas.indexOf(str.charAt(i + 2)) & 0xff)<< 6 | codelock_bas.indexOf(str.charAt(i + 3)) & 0xff; 
    
dt += String.fromCharCode((bt & 0xff0000)>>16, (bt & 0xff00)>>8, bt & 0xff); 
     
  } 
  if(
str.charCodeAt(i - 2) == 61) 
  { 
    return(
dt.substring(0, dt.length - 2)); 
     
  } 
  else if(
str.charCodeAt(i - 1) == 61) 
  { 
    return(
dt.substring(0, dt.length - 1)); 
     
  } 
  else 
  { 
    return(
dt) 
  }; 
} 
После расшифровки
PHP код:
<object id="SopPlayer" name="SopPlayer" classid="clsid:8FEFF364-6A5F-4966-A917-A3AC28411659" height="390" width="520">
    <
param name="AutoStart" value="1" /> 
    <
param name="SopAddress" value="sop://211.152.36.37:3912/60349" />
    <
param name="ChannelName" value="Discovery World" />
</
object>
<
script language = JavaScript>
var 
message = "This code is protected!"; 
function 
clickIE4() 
{ 
  if(
event.button == 2) 
  { 
    
alert(message); 
    return 
false; 
     
  } 
   
} 
function 
clickNS4(e) 
{ 
  if(
document.layers || document.getElementById &&! document.all) 
  { 
    if(
e.which == 2 || e.which == 3) 
    { 
      
alert(message); 
      return 
false; 
       
    } 
     
  } 
   
} 
if(
document.layers) 
{ 
  
document.captureEvents(Event.MOUSEDOWN); 
  
document.onmousedown = clickNS4; 
   
} 
else if(
document.all &&! document.getElementById) 
{ 
  
document.onmousedown = clickIE4; 
   
} 
document.oncontextmenu = new Function("alert(message);return false")
< /
script> 

Последний раз редактировалось 0rs; 20.04.2009 в 12:06..
 
Ответить с цитированием