* scripts/decode_bug.php3:
- Cleaned up code to use <pre> arouund output
This commit is contained in:
@@ -56,6 +56,12 @@
|
||||
/**
|
||||
* If the form has been submitted -> decodes the bug report
|
||||
*/
|
||||
function PMA_printDecodedBug($textdata)
|
||||
{
|
||||
return 'Decoded:<br />' . "\n"
|
||||
. '<pre>' . $textdata . '</pre><br />' . "\n";
|
||||
}
|
||||
|
||||
if (!empty($_POST) && isset($_POST['bug_encoded'])) {
|
||||
$bug_encoded = $_POST['bug_encoded'];
|
||||
}
|
||||
@@ -72,17 +78,16 @@ if (!empty($bug_encoded)) {
|
||||
$bug_decoded = base64_decode($bug_encoded);
|
||||
if (substr($bug_encoded, 0, 2) == 'eN') {
|
||||
if (function_exists('gzuncompress')) {
|
||||
$result = ' Decoded:<br />' . "\n"
|
||||
. ' ' . gzuncompress($bug_decoded) . '<br />' . "\n";
|
||||
$result = PMA_printDecodedBug(gzuncompress($bug_decoded));
|
||||
} else {
|
||||
$result = 'Error: "gzuncompress()" is unavailable!' . "\n";
|
||||
}
|
||||
}
|
||||
else {
|
||||
$result = ' Decoded:<br />' . "\n"
|
||||
. ' ' . $bug_decoded . '<br />'. "\n";
|
||||
$result = PMA_printDecodedBug($bug_decoded);
|
||||
} // end if... else...
|
||||
|
||||
|
||||
echo '<p>' . "\n" . $result . '</p>' . "\n";
|
||||
} // end if
|
||||
?>
|
||||
|
Reference in New Issue
Block a user