Completed
Push — master ( fc3d6f...f7b1d9 )
by Sergi Tur
28:05
created

public/plugins/posteddata.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<!DOCTYPE html>
0 ignored issues
show
File has mixed line endings; this may cause incorrect results
Loading history...
2
<?php
3
/*
4
Copyright (c) 2003-2016, 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
28
if (!empty($_POST)) {
29
    foreach ($_POST as $key => $value) {
30
        if ((!is_string($value) && !is_numeric($value)) || !is_string($key)) {
31
            continue;
32
        }
33
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="http://ckeditor.com/">http://ckeditor.com</a>
52
		</p>
53
		<p id="copy">
54
			Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved.
55
		</p>
56
	</div>
57
</body>
58
</html>
59