* scripts/decode_bug.php3: Parser BUG decoder merged
This commit is contained in:
Robin Johnson
2002-07-31 05:33:38 +00:00
parent 2c0718bc67
commit 1d19a99d55
2 changed files with 42 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-07-30 Robin Johnson <robbat2@users.sourceforge.net>
* scripts/decode_bug.php3: Parser BUG decoder merged
2002-07-30 Marc Delisle <lem9@users.sourceforge.net>
* config.inc.php3: how to test auto-detect
* lang/turkish: update, thanks to Bora Alioglu

39
scripts/decode_bug.php3 Normal file
View File

@@ -0,0 +1,39 @@
<?php
/* $Id$ */
/** Parser BUG decoder
* This is the parser bug decoder system
* Throw the bug data in teh query box, and hit submit for output.
*
* Copyright 2002 Robin Johnson <robbat2@users.sourceforge.net>
*/
?>
<html>
<h4>Parser BUG decoder</h4>
<form method="post" action="decode_bug.php3">
<textarea name="foo" cols="72" rows="10">
</textarea>
<br />
<input type="submit" />
<input type="hidden" name="bar" value="<?php echo rand(); ?>" />
</form>
<hr />
<?php
if(isset($_REQUEST['foo']))
{
$foo = $_REQUEST['foo'];
} else {
$foo = "";
}
$foo = eregi_replace("[[:space:]]", "", $foo);
$bar = base64_decode($foo);
if(substr($foo,0,2) == 'eN')
{
$bar = gzuncompress($bar);
}
echo "Decoded:<br />".$bar."<br />";
?>
</html>