All pastes #435678 Raw Edit

Mine

public php v1 · immutable
·published 2007-04-12 02:01 UTC
rendered paste body
<form method="post" action="quotes.php"><textarea cols="40" rows="8" name="quote"></textarea><br /><input type="submit" /><br /><br /><?/* *   yuck :( */if(isset($_POST['quote'])) { $quote = strtolower($_POST['quote']); $o = $quote; $quote = preg_quote($quote); $quote = preg_replace('/\w/','\w',$quote);#print $quote; $file = fopen('quotes.txt','r'); while(!feof($file)) {  $line = fgets($file, 4096);  $qline = preg_quote($line);  if(preg_match('/'.$quote.'/',$line,$match))   $arr[] = $match; }$yay = strtolower($arr[0][0]);print "!solve ".$yay;print "<br /><br />";$real = array();$foo = str_split($yay);foreach($foo as $bar) { if(ctype_alpha($bar)) {  if(!in_array($bar,$real)) {   $real[] = $bar;  } }}$crypt = array();$poo = str_split($o);foreach($poo as $far) { if(ctype_alpha($far)) {  if(!in_array($far,$crypt)) {   $crypt[] = $far;  } }}echo implode('',$crypt).'='.implode('',$real);}?>