JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
a30f93dd93cc3b93620f629e610c21356f29fda6
[ckeditor.git] / _samples / assets / _posteddata.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <?php\r
3 /*\r
4 Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
5 For licensing, see LICENSE.html or http://ckeditor.com/license\r
6 */\r
7 ?>\r
8 <html xmlns="http://www.w3.org/1999/xhtml">\r
9 <head>\r
10         <title>Sample &mdash; CKEditor</title>\r
11         <meta http-equiv="content-type" content="text/html; charset=utf-8" />\r
12         <link type="text/css" rel="stylesheet" href="sample.css" />\r
13 </head>\r
14 <body>\r
15         <h1 class="samples">\r
16                 CKEditor &mdash; Posted Data\r
17         </h1>\r
18         <table border="1" cellspacing="0" id="outputSample">\r
19                 <colgroup><col width="120" /></colgroup>\r
20                 <thead>\r
21                         <tr>\r
22                                 <th>Field&nbsp;Name</th>\r
23                                 <th>Value</th>\r
24                         </tr>\r
25                 </thead>\r
26 <?php\r
27 \r
28 if ( isset( $_POST ) )\r
29         $postArray = &$_POST ;                  // 4.1.0 or later, use $_POST\r
30 else\r
31         $postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS\r
32 \r
33 foreach ( $postArray as $sForm => $value )\r
34 {\r
35         if ( get_magic_quotes_gpc() )\r
36                 $postedValue = htmlspecialchars( stripslashes( $value ) ) ;\r
37         else\r
38                 $postedValue = htmlspecialchars( $value ) ;\r
39 \r
40 ?>\r
41                 <tr>\r
42                         <th style="vertical-align: top"><?php echo htmlspecialchars($sForm); ?></th>\r
43                         <td><pre class="samples"><?php echo $postedValue?></pre></td>\r
44                 </tr>\r
45         <?php\r
46 }\r
47 ?>\r
48         </table>\r
49         <div id="footer">\r
50                 <hr />\r
51                 <p>\r
52                         CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>\r
53                 </p>\r
54                 <p id="copy">\r
55                         Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.\r
56                 </p>\r
57         </div>\r
58 </body>\r
59 </html>\r