You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

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