View file sejkmotorv1.0/kod.php

File size: 522B
<?php
include("gore.php");
include("conf.php");
?>
<div class="a">Encoder/decoder</div>
<div class="b">
<?php
$text=$_POST['text'];
$sta=$_POST['sta'];

if(!$text){
echo "You must write text !!!";
}
else
{
if($sta==kod){
$text2=base64_encode($text);
echo "Encoded:<br/>";
echo "<input type=\"text\" value=\"$text2\" />";
}
else
{
if($sta=de){
$text2=base64_decode($text);
echo "Decoded:<br/>";
echo "<input type=\"text\" value=\"$text2\" />";
}
}
}


echo "</div>";
include("dole.php");
?>