index.php
<?php }else{ if($kod_sesji==$_POST['kod_txt']){ } else{ } $kod_sesji=NULL; } for ($e=0;$e<DLUGOSC_KODU;$e++){ $kod_sesji=$litera_kodu; $litera_kodu=$litera_kodu ^ $litera_klucza; $kod=$litera_kodu; } echo "<html> <body><br>"; echo "<br> <form method=\"post\" action=\"index.php\"> <input type=\"text\" name=\"kod_txt\" size=\"8\" maxlength=\"".DLUGOSC_KODU."\"> <input type=\"submit\" value=\"ok\"> </form> "; echo "</body> </html>"; ?>
get_token.php
<?php $grafika=imagecreatefromjpeg('./tlo.jpg'); for ($x=0;$x<strlen($szyfr);$x++){ $kod=$kod.($litera_klucza^$litera_szyfru); } $tlo=imagecolorallocate($grafika,0,0,0); $tekst=imagecolorallocate($grafika,0,0,0); $kolo=imagecolorallocate($grafika,200,150,100); for ($x=1;$x<=15;$x++){ } imagestring($grafika,5,12,5,$kod,$tekst); Imagegif($grafika); ?>