'; echo 'Password Grid Generator'; if(!isset($_GET['version'])) { $id = crc32($_GET['mail']); $h = exec("/usr/local/bin/passcard $id", $out); echo ' '; echo '

Your Password Card is Ready

'; if(!empty($_GET['msg'])) $msg = htmlentities($_GET['msg']); else $msg = htmlentities($_GET['mail']); foreach($out as $k => $d) { $d = str_replace('%%MSG%%', $msg, $d); $d = str_replace('%%COPY%%', 'generated on tchetch.net', $d); echo $d; } } else { echo ''; echo ''; echo '

Password Grid Generator

'; echo '

Your card is ready

'; $mail = escapeshellarg($_GET['mail']); $mailH = htmlentities($_GET['mail']); if(!empty($_GET['unwanted'])) { $unwanted = escapeshellarg($_GET['unwanted']); $unwantedH = htmlentities($_GET['unwanted']); } else { $unwanted = escapeshellarg('0Ool1'); $unwantedH = htmlentities('0Ool1'); } $msg = htmlentities($_GET['msg']); $h = exec('/usr/local/bin/passcard2 ' . $mail . ' ' . $unwanted, $ret); $id = $ret[0]; echo '
'."\n"; echo ''."\n"; for($i=0;$i<26;$i++){ echo ''."\n"; } echo ''."\n"; $cellId = 0; $classR='rowI'; for($i=1;$i'; echo ''."\n"; $classC='colI'; foreach($tr as $td) { if($classC=='colI') $classC='colP'; else $classC='colI'; echo ''."\n"; $cellId++; } echo ''."\n"; } echo '
&#' . ($i+65) . ';
&#' . (($i-1)+48) . ';&#' . $td . ';
'."\n"; echo '
'; echo '

generated by tchetch.net, v2.1

'; echo '

ID : ' . $id . '

'; echo '

' . $mailH . '

'; echo '

' . $msg . '

'; echo '

Unwanted char : ' . $unwantedH . '

'; echo '
'; } echo ''; ?>