posteddata.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <?php
  3. /*
  4. Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
  5. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  6. */
  7. ?>
  8. <html lang="en">
  9. <head>
  10. <meta charset="utf-8">
  11. <title>Sample &mdash; CKEditor</title>
  12. <link rel="stylesheet" href="sample.css">
  13. <meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities.">
  14. </head>
  15. <body>
  16. <h1 class="samples">
  17. CKEditor &mdash; Posted Data
  18. </h1>
  19. <table border="1" cellspacing="0" id="outputSample">
  20. <colgroup><col width="120"></colgroup>
  21. <thead>
  22. <tr>
  23. <th>Field&nbsp;Name</th>
  24. <th>Value</th>
  25. </tr>
  26. </thead>
  27. <?php
  28. if (!empty($_POST))
  29. {
  30. foreach ( $_POST as $key => $value )
  31. {
  32. if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) )
  33. continue;
  34. if ( get_magic_quotes_gpc() )
  35. $value = htmlspecialchars( stripslashes((string)$value) );
  36. else
  37. $value = htmlspecialchars( (string)$value );
  38. ?>
  39. <tr>
  40. <th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th>
  41. <td><pre class="samples"><?php echo $value; ?></pre></td>
  42. </tr>
  43. <?php
  44. }
  45. }
  46. ?>
  47. </table>
  48. <div id="footer">
  49. <hr>
  50. <p>
  51. CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a>
  52. </p>
  53. <p id="copy">
  54. Copyright &copy; 2003-2023, <a class="samples" href="https://cksource.com/">CKSource</a> Holding sp. z o.o. All rights reserved.
  55. </p>
  56. </div>
  57. </body>
  58. </html>