{% else-1 %}
Криптовать адрес сайта через LinkCrypt

                        


<?php

$link=($_POST['linkk']);
function code($link){
$a=array('j' , '.' , 'w' , 'f' , 'o', 'r', 'u' , 'm' , 'a' , 'q' , 't' , 's' , 'v' , 'y' , 'b' , 'c' , 'd' , 'e' , 'i' , 'g' , 'h' , '*' , 'p' , ':' , '?' , '=' , '>' , '<' , 'k' , 'n');
$b=array('%6A','%2E', '%77', '%66', '%6F', '%72', '%75', '%6D', '%61', '%71','%74', '%73' ,'%76' ,'%79' , '%62' , '%63' , '%64' , '%65' , '%69' , '%67','%68' , '%2A' , '%70' , '%3A' , '%3F' , '%3D' , '%3E' , '%3C' , '%6B' , '%6E');
$_txt=str_replace($a, $b, $link);
return $_txt;
}
function decode($link){
$a=array('j','.', 'w', 'f', 'o', 'r', 'u', 'm', 'a', 'q', 't', 's', 'v', 'y', 'b', 'c', 'd', 'e', '2', 'i', 'g', 'h','*','p',':','/','?','=',''','>','<',' ','k','n','1','2','3','4','5','6','7','8','9');
$b=array('%6A','%2E', '%77', '%66', '%6F', '%72', '%75', '%6D', '%61', '%71','%74','%73','%76','%79', '%62', '%63','%64','%65','%32','%69','%67','%68','%2A','% 70','%3A','%2F','%3F','%3D','%27','%3E','%3C','%20 ','%6B','%6E','%31','%32','%33','%34','%35','%36', '%37','%38','%39');
$_txt=str_replace($b, $a, $link);
return $_txt;
}

switch ( $_REQUEST['type']) {
case 0:$otvet= code($link);
break;


case 1:$otvet= decode($link);
break;
}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ru">
<head>
<title>LinkCrypt</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<STYLE>
body
{
background-color:#222;
color:#999;
font-family:Verdana;
font-size:9pt;
padding:0px;
margin:0px;
}
table
{
font-family:Verdana, Arial;
font-size:13px;
}
form
{
padding:20px;
margin:20px;
}
input, select
{
background:#292929;
padding:2px;
font-size:12px;
border:1px solid #444;
font-family:Verdana; color:#888;
}
</style>
</head>
<body>
<table align="center" >
<tr><td align="center">LinkCrypt</td></tr>
<form method=post>
<tr><td align="center"><br>
<input name="type" type="radio" value="0" checked>enciphering
<input name="type" type="radio" value="1" checked>deenciphering
</td></tr>
<tr>
<td >
<input type=input name="linkk" size=48>
<input type=input name=datafromuser size=48 value="<? echo $otvet;?> " ></td></tr>
<br>
<tr><td align="center"><br><input type="submit" value="[crypt]" style="width:608px;">
</form>
</td></tr>
</body>
</html>';
?>
0 48 0
Без комментариев...