View file templates/i345.php

File size: 862B
<?php

###Шифровка данных
function encode($p){
$pb = base64_encode($p);

$pc = '';
for ($i = '0'; $i <= strlen($pb); $i++){
$pc = $pc.base64_encode(substr($pb,$i,1)).'';
}
$pc = str_replace('=','',$pc);
$pc = gzdeflate(gzcompress(gzdeflate(gzcompress(base64_encode($pc),9),9),9),9);
$pc = base64_encode($pc);
return $pc;
}

###Дешифровка данных
function decode($p){
$pc1 = base64_decode($p); $pc1 = gzinflate($pc1);
$pc1 = gzuncompress($pc1); $pc1 = gzinflate($pc1);
$pc1 = gzuncompress($pc1); $pc1 = base64_decode($pc1);
$pc = ''; $q = '';
for ($i1 = '0'; $i1 < strlen($pc1); $i1++)
     {
     	if (!strstr((($i1+2)/2),'.')) {$pc = $pc.substr($pc1,$i1,2).'==';}
     }
$pc1 = '';
for ($w = '0'; $w <= strlen($pc); $w++)
     {
     	$pc1 = $pc1.base64_decode(substr($pc,$w,4));
     }
$pc1 = base64_decode($pc1);
return $pc1;
}
?>