From 23a70525aecddc71f643e199eb2f2bc2228006d0 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 6 Dec 2015 08:07:52 -0500 Subject: [PATCH] This was related to the previous SQL parser. If someone still needs it to decode an old bug report, he/she can still get this script from an older branch. Signed-off-by: Marc Delisle --- scripts/decode_bug.php | 106 ----------------------------------------- 1 file changed, 106 deletions(-) delete mode 100644 scripts/decode_bug.php diff --git a/scripts/decode_bug.php b/scripts/decode_bug.php deleted file mode 100644 index 80f79da3ac..0000000000 --- a/scripts/decode_bug.php +++ /dev/null @@ -1,106 +0,0 @@ - - * - * @package PhpMyAdmin-debug - */ - -/** - * Displays the form - */ -?> - - - - - - - - phpMyAdmin - Parser bug report decoder - - - - - -

Parser bug report decoder

-
- -
- - Encoded bug report:
- -

- -
-
- - decodes the bug report - */ - -/** - * Display the decoded bug report in ASCII format - * - * @param string $textdata the text data - * - * @return string the text enclosed by "
...
" tags - * - * @access public - */ -function PMA_printDecodedBug($textdata) -{ - return '
' . htmlspecialchars($textdata) . '

'; -} // end of the "PMA_printDecodedBug()" function - - -if (!empty($_POST) && isset($_POST['bug_encoded'])) { - $bug_encoded = $_POST['bug_encoded']; -} - -if (!empty($bug_encoded) && is_string($bug_encoded)) { - if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { - $bug_encoded = stripslashes($bug_encoded); - } - - /** @var PMA_String $pmaString */ - $pmaString = $GLOBALS['PMA_String']; - - $bug_encoded = preg_replace('/[[:space:]]/', '', $bug_encoded); - $bug_decoded = base64_decode($bug_encoded); - if (/*overload*/mb_substr($bug_encoded, 0, 2) == 'eN') { - if (function_exists('gzuncompress')) { - $result = PMA_printDecodedBug(gzuncompress($bug_decoded)); - } else { - $result = 'Error: "gzuncompress()" is unavailable!' . "\n"; - } - } else { - $result = PMA_printDecodedBug($bug_decoded); - } // end if... else... - - echo '

Decoded:

' . "\n" - . $result . "\n"; -} // end if -?> - - -