skor do tohto ale neviem ako ...
Kód:
<form method="post" action="index.php" enctype="multipart/form-data">
<input type="file" name="decode" value="Upload" />
<input type="submit" value="Decode"/>
<br />
<?php
if (isset($_FILES['decode'])) {
$file = file_get_contents($_FILES['decode']['tmp_name']);
function decode{
some string
}
$str = $file;
eregi("\'([A-Z0-9 ]+)\'\,$REXISTHEDOG4FBI",$str,$pocket);
$str1=$pocket[1];
eregi("REXISTHEDOG4FBI\=\'([^\']*)\'",$str,$pocket);
$str2=$pocket[1];
$un_file=decode($str1,$str2);
echo '<form>
<textarea name="res" style="width:100%; height:300px;">'.htmlspecialchars(substr($un_file, 2)).'</textarea></form>';
}
?>