提交 | 用户 | 时间
|
58d006
|
1 |
<!DOCTYPE html> |
A |
2 |
<?php |
|
3 |
/* |
|
4 |
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. |
|
5 |
For licensing, see LICENSE.html or http://ckeditor.com/license |
|
6 |
*/ |
|
7 |
?> |
|
8 |
<html> |
|
9 |
<head> |
|
10 |
<meta charset="utf-8"> |
|
11 |
<title>Sample — CKEditor</title> |
|
12 |
<link rel="stylesheet" href="sample.css"> |
|
13 |
</head> |
|
14 |
<body> |
|
15 |
<h1 class="samples"> |
|
16 |
CKEditor — 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 Name</th> |
|
23 |
<th>Value</th> |
|
24 |
</tr> |
|
25 |
</thead> |
|
26 |
<?php |
|
27 |
|
|
28 |
if ( isset( $_POST ) ) |
|
29 |
$postArray = &$_POST ; // 4.1.0 or later, use $_POST |
|
30 |
else |
|
31 |
$postArray = &$HTTP_POST_VARS ; // prior to 4.1.0, use HTTP_POST_VARS |
|
32 |
|
|
33 |
foreach ( $postArray as $sForm => $value ) |
|
34 |
{ |
|
35 |
if ( get_magic_quotes_gpc() ) |
|
36 |
$postedValue = htmlspecialchars( stripslashes( $value ) ) ; |
|
37 |
else |
|
38 |
$postedValue = htmlspecialchars( $value ) ; |
|
39 |
|
|
40 |
?> |
|
41 |
<tr> |
|
42 |
<th style="vertical-align: top"><?php echo $sForm?></th> |
|
43 |
<td><pre class="samples"><?php echo $postedValue?></pre></td> |
|
44 |
</tr> |
|
45 |
<?php |
|
46 |
} |
|
47 |
?> |
|
48 |
</table> |
|
49 |
<div id="footer"> |
|
50 |
<hr> |
|
51 |
<p> |
|
52 |
CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a> |
|
53 |
</p> |
|
54 |
<p id="copy"> |
|
55 |
Copyright © 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. |
|
56 |
</p> |
|
57 |
</div> |
|
58 |
</body> |
|
59 |
</html> |