$SUSPECTS[]='StoP DD0siN9 @t!'; $SUSPECTS[]='St0P dDOsIn9 AT!'; $SUSPECTS[]='sTOp DD0sINg a+!'; $SUSPECTS[]='sTop DD0s|N9 AT!'; $SUSPECTS[]='S+op DdoSinG At!'; $SUSPECTS[]='S+Op DDOsIng AT!'; $SUSPECTS[]='s+oP DdosiNG at!'; */ /*$ORIGINAL ="BTW, HERE'S THE TRUE COLORS OF YOUR GLORIOUS HERO CHRISTOPHER POOLE: HTTP://WWW.ANONTALK.COM/DUMP/MOOTARD.TXT"; $SUSPECTS[]='btW, HER3'."'".'S tHE TRUe COloRs OF YOur GLOriOUs h3Ro <HristoPhEr POoL3: HTTP://Www.@noNt@LK.{0M/DUMp/MoOtArD.Txt'; */ $ORIGINAL = $_GET['input']; echo "<h2>Debugging</h2><p>Using " . mb_detect_encoding($ORIGINAL) . " encoding.</p>\n"; // ISO-8859-1 echo "<h2>Original Text</h2><p>" . OutputWithLineNumbers($ORIGINAL) . "\n"; echo "<h2>Defucked Text</h2>" . OutputWithLineNumbers(defuck_comment($ORIGINAL)) . "\n"; echo "<h2>Randomness Score: " . GetRandomScore(defuck_comment($ORIGINAL)) . "</h2>"; $rm = var_export(GatherReplacements($ORIGINAL), true); //file_put_contents('replacement_matrix.php','<'.'?php'.$rm); //echo "<h2>Replacement Matrix</h2><pre>".htmlspecialchars($rm)."</pre>\n"; function ordUTF8($c, $index = 0, &$bytes = null) { $len = strlen($c); $bytes = 0; if ($index >= $len) { return false; } $h = ord($c[$index]); if ($h <= 0x7f) { $bytes = 1; return $h;
'<input type="checkbox" name="c['.$i.']" value="1" checked="checked" />', '<label for="filter['.$i.']">Text to filter:</label><textarea name="filter['.$i.']" class="filter">'.htmlspecialchars($filterstring).'</textarea><select name="type['.$i.']">'.$opts.'</select><label for="replace['.$i.']">Replace with:</label><textarea name="replace['.$i.']"></textarea>', ($_POST['act']=='Preview') ? OutputWithLineNumbers(defuck_comment($_POST['filter'][$i])):'' )); $i++; } unset($_SESSION['2BFiltered']); } if(!empty($_POST['filter'])) { foreach($_POST['filter'] as $filterstring) { $t->Row(array( '<input type="checkbox" name="c['.$i.']" value="1" checked="checked" />', '<label for="filter['.$i.']">Text to filter:</label><textarea name="filter['.$i.']" class="filter">'.htmlspecialchars($filterstring).'</textarea><select name="type['.$i.']">'.$opts.'</select><label for="replace['.$i.']">Replace with:</label><textarea name="replace['.$i.']"></textarea>', ($_POST['act']=='Preview') ? OutputWithLineNumbers(defuck_comment($_POST['filter'][$i])):'' )); $i++; } } $t->Row(array( '<input type="checkbox" name="c[]" value="1" checked="checked" />', '<label for="filter[]">Text to filter:</label><textarea name="filter[]" class="filter"></textarea><select name="type[]">'.$opts.'</select><label for="replace[]">Replace with:</label><textarea name="replace[]"></textarea>', '' )); echo $t; ?> <input type="reset" /> <input type="submit" name="act" value="Submit" /> </form>