dump.php 978 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. #!! IMPORTANT:
  3. #!! this file is just an example, it doesn't incorporate any security checks and
  4. #!! is not recommended to be used in production environment as it is. Be sure to
  5. #!! revise it and customize to your needs.
  6. die("Make sure that you enable some form of authentication before removing this line.");
  7. ?>
  8. <!DOCTYPE html>
  9. <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
  10. <head>
  11. <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
  12. <title>Plupload - Form dump</title>
  13. </head>
  14. <body style="font: 13px Verdana; background: #eee; color: #333">
  15. <h1>Post dump</h1>
  16. <p>Shows the form items posted.</p>
  17. <table>
  18. <tr>
  19. <th>Name</th>
  20. <th>Value</th>
  21. </tr>
  22. <?php $count = 0; foreach ($_POST as $name => $value) { ?>
  23. <tr class="<?php echo $count % 2 == 0 ? 'alt' : ''; ?>">
  24. <td><?php echo htmlentities(stripslashes($name)) ?></td>
  25. <td><?php echo nl2br(htmlentities(stripslashes($value))) ?></td>
  26. </tr>
  27. <?php } ?>
  28. </table>
  29. </body>
  30. </html>