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